msm-pcm-routing-v2.c 949 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #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 int0_mi2s_switch_enable;
  53. static int int4_mi2s_switch_enable;
  54. static int pri_mi2s_switch_enable;
  55. static int sec_mi2s_switch_enable;
  56. static int tert_mi2s_switch_enable;
  57. static int quat_mi2s_switch_enable;
  58. static int quin_mi2s_switch_enable;
  59. static int fm_pcmrx_switch_enable;
  60. static int usb_switch_enable;
  61. static int lsm_port_index;
  62. static int slim0_rx_aanc_fb_port;
  63. static int msm_route_ec_ref_rx;
  64. static int msm_ec_ref_ch = 4;
  65. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  66. static int msm_ec_ref_sampling_rate = 48000;
  67. static uint32_t voc_session_id = ALL_SESSION_VSID;
  68. static int msm_route_ext_ec_ref;
  69. static bool is_custom_stereo_on;
  70. static bool is_ds2_on;
  71. static bool swap_ch;
  72. static int aanc_level;
  73. static int num_app_cfg_types;
  74. #define WEIGHT_0_DB 0x4000
  75. /* all the FEs which can support channel mixer */
  76. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  77. /* input BE for each FE */
  78. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  79. enum {
  80. MADNONE,
  81. MADAUDIO,
  82. MADBEACON,
  83. MADULTRASOUND,
  84. MADSWAUDIO,
  85. };
  86. #define ADM_LSM_PORT_INDEX 9
  87. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  88. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  89. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  90. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  91. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  92. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  93. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  94. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  95. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  96. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  97. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  98. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  99. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  100. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  101. #define LSM_FUNCTION_TEXT "LSM Function"
  102. static const char * const lsm_port_text[] = {
  103. "None",
  104. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  105. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  106. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  107. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  108. TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  109. };
  110. struct msm_pcm_route_bdai_pp_params {
  111. u16 port_id; /* AFE port ID */
  112. unsigned long pp_params_config;
  113. bool mute_on;
  114. int latency;
  115. };
  116. static struct msm_pcm_route_bdai_pp_params
  117. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  118. {HDMI_RX, 0, 0, 0},
  119. {DISPLAY_PORT_RX, 0, 0, 0},
  120. };
  121. /*
  122. * The be_dai_name_table is passed to HAL so that it can specify the
  123. * BE ID for the BE it wants to enable based on the name. Thus there
  124. * is a matching table and structure in HAL that need to be updated
  125. * if any changes to these are made.
  126. */
  127. struct msm_pcm_route_bdai_name {
  128. unsigned int be_id;
  129. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  130. };
  131. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  132. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  133. int fe_id);
  134. static void msm_routing_load_topology(size_t data_size, void *data);
  135. static void msm_routing_unload_topology(uint32_t topology_id);
  136. static int msm_routing_get_bit_width(unsigned int format)
  137. {
  138. int bit_width;
  139. switch (format) {
  140. case SNDRV_PCM_FORMAT_S32_LE:
  141. bit_width = 32;
  142. break;
  143. case SNDRV_PCM_FORMAT_S24_LE:
  144. case SNDRV_PCM_FORMAT_S24_3LE:
  145. bit_width = 24;
  146. break;
  147. case SNDRV_PCM_FORMAT_S16_LE:
  148. default:
  149. bit_width = 16;
  150. }
  151. return bit_width;
  152. }
  153. static bool msm_is_resample_needed(int input_sr, int output_sr)
  154. {
  155. bool rc = false;
  156. if (input_sr != output_sr)
  157. rc = true;
  158. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  159. (rc ? "oh yes" : "not really"),
  160. input_sr, output_sr);
  161. return rc;
  162. }
  163. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  164. int channels)
  165. {
  166. int rc = 0;
  167. switch (topology) {
  168. case SRS_TRUMEDIA_TOPOLOGY_ID:
  169. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  170. msm_dts_srs_tm_init(port_id, copp_idx);
  171. break;
  172. case DS2_ADM_COPP_TOPOLOGY_ID:
  173. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  174. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  175. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  176. is_custom_stereo_on);
  177. if (rc < 0)
  178. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  179. __func__, topology, port_id,
  180. is_custom_stereo_on, rc);
  181. break;
  182. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  183. if (is_ds2_on) {
  184. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  185. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  186. is_custom_stereo_on);
  187. if (rc < 0)
  188. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  189. __func__, topology, port_id, rc);
  190. } else {
  191. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  192. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  193. is_custom_stereo_on);
  194. if (rc < 0)
  195. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  196. __func__, topology, port_id, rc);
  197. }
  198. break;
  199. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  200. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  201. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  202. if (rc < 0)
  203. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  204. __func__, topology, port_id, copp_idx, rc);
  205. break;
  206. default:
  207. /* custom topology specific feature param handlers */
  208. break;
  209. }
  210. }
  211. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  212. {
  213. switch (topology) {
  214. case SRS_TRUMEDIA_TOPOLOGY_ID:
  215. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  216. msm_dts_srs_tm_deinit(port_id);
  217. break;
  218. case DS2_ADM_COPP_TOPOLOGY_ID:
  219. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  220. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  221. msm_ds2_dap_deinit(port_id);
  222. break;
  223. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  224. if (is_ds2_on) {
  225. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  226. msm_ds2_dap_deinit(port_id);
  227. } else {
  228. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  229. msm_dolby_dap_deinit(port_id);
  230. }
  231. break;
  232. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  233. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  234. msm_qti_pp_asphere_deinit(port_id);
  235. break;
  236. default:
  237. /* custom topology specific feature deinit handlers */
  238. break;
  239. }
  240. }
  241. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  242. int path_type, int perf_mode)
  243. {
  244. int itr = 0, rc = 0;
  245. if ((path_type == ADM_PATH_PLAYBACK) &&
  246. (perf_mode == LEGACY_PCM_MODE) &&
  247. is_custom_stereo_on) {
  248. for (itr = 0; itr < payload.num_copps; itr++) {
  249. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  250. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  251. continue;
  252. }
  253. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  254. payload.port_id[itr],
  255. payload.copp_idx[itr],
  256. payload.session_id,
  257. Q14_GAIN_ZERO_POINT_FIVE,
  258. Q14_GAIN_ZERO_POINT_FIVE,
  259. Q14_GAIN_ZERO_POINT_FIVE,
  260. Q14_GAIN_ZERO_POINT_FIVE);
  261. if (rc < 0)
  262. pr_err("%s: err setting custom stereo\n",
  263. __func__);
  264. }
  265. }
  266. }
  267. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  268. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  269. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  270. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  271. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  272. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  273. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  274. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  275. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  276. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  277. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  278. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  279. LPASS_BE_AFE_PCM_RX},
  280. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  281. LPASS_BE_AFE_PCM_TX},
  282. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  283. LPASS_BE_AUXPCM_RX},
  284. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  285. LPASS_BE_AUXPCM_TX},
  286. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  287. LPASS_BE_VOICE_PLAYBACK_TX},
  288. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  289. LPASS_BE_VOICE2_PLAYBACK_TX},
  290. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  291. LPASS_BE_INCALL_RECORD_RX},
  292. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_INCALL_RECORD_TX},
  294. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  295. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  296. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  297. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  298. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  299. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  300. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  301. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  302. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  303. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  304. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  305. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  306. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  307. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  308. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  309. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  310. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  311. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  312. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  313. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  314. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  315. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  316. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  317. LPASS_BE_QUAT_MI2S_RX},
  318. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  319. LPASS_BE_QUAT_MI2S_TX},
  320. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  321. LPASS_BE_SEC_MI2S_RX},
  322. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  323. LPASS_BE_SEC_MI2S_TX},
  324. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  325. LPASS_BE_PRI_MI2S_RX},
  326. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  327. LPASS_BE_PRI_MI2S_TX},
  328. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  329. LPASS_BE_TERT_MI2S_RX},
  330. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_TERT_MI2S_TX},
  332. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_AUDIO_I2S_RX},
  334. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_SEC_AUXPCM_RX},
  336. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_SEC_AUXPCM_TX},
  338. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_PRI_SPDIF_RX},
  340. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_SEC_MI2S_RX_SD1},
  342. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_QUIN_MI2S_RX},
  344. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_QUIN_MI2S_TX},
  346. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_SENARY_MI2S_TX},
  348. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_PRI_TDM_RX_0},
  350. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_PRI_TDM_TX_0},
  352. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_PRI_TDM_RX_1},
  354. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_PRI_TDM_TX_1},
  356. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_PRI_TDM_RX_2},
  358. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_PRI_TDM_TX_2},
  360. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_PRI_TDM_RX_3},
  362. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_TX_3},
  364. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_RX_4},
  366. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_TX_4},
  368. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_RX_5},
  370. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_TX_5},
  372. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_RX_6},
  374. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_TX_6},
  376. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_RX_7},
  378. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_TX_7},
  380. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_SEC_TDM_RX_0},
  382. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_SEC_TDM_TX_0},
  384. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_SEC_TDM_RX_1},
  386. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_SEC_TDM_TX_1},
  388. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_SEC_TDM_RX_2},
  390. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_SEC_TDM_TX_2},
  392. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_SEC_TDM_RX_3},
  394. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_TX_3},
  396. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_RX_4},
  398. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_TX_4},
  400. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_RX_5},
  402. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_TX_5},
  404. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_RX_6},
  406. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_TX_6},
  408. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_RX_7},
  410. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_TX_7},
  412. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_TERT_TDM_RX_0},
  414. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_TERT_TDM_TX_0},
  416. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_TERT_TDM_RX_1},
  418. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_TERT_TDM_TX_1},
  420. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_TERT_TDM_RX_2},
  422. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_TERT_TDM_TX_2},
  424. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_TERT_TDM_RX_3},
  426. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_TX_3},
  428. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_RX_4},
  430. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_TX_4},
  432. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_RX_5},
  434. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_TX_5},
  436. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_RX_6},
  438. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_TX_6},
  440. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_RX_7},
  442. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_TX_7},
  444. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_QUAT_TDM_RX_0},
  446. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_QUAT_TDM_TX_0},
  448. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_QUAT_TDM_RX_1},
  450. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_QUAT_TDM_TX_1},
  452. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_QUAT_TDM_RX_2},
  454. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_QUAT_TDM_TX_2},
  456. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_QUAT_TDM_RX_3},
  458. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_TX_3},
  460. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_RX_4},
  462. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_TX_4},
  464. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_RX_5},
  466. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_TX_5},
  468. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_RX_6},
  470. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_TX_6},
  472. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_RX_7},
  474. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_TX_7},
  476. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUIN_TDM_RX_0},
  478. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUIN_TDM_TX_0},
  480. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUIN_TDM_RX_1},
  482. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUIN_TDM_TX_1},
  484. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUIN_TDM_RX_2},
  486. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUIN_TDM_TX_2},
  488. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUIN_TDM_RX_3},
  490. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_TX_3},
  492. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_RX_4},
  494. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_TX_4},
  496. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_RX_5},
  498. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_TX_5},
  500. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_RX_6},
  502. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_TX_6},
  504. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_RX_7},
  506. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_TX_7},
  508. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_INT_BT_A2DP_RX},
  510. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_USB_AUDIO_RX},
  512. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_USB_AUDIO_TX},
  514. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_DISPLAY_PORT},
  516. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_DISPLAY_PORT1},
  518. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_TERT_AUXPCM_RX},
  520. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_TERT_AUXPCM_TX},
  522. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_QUAT_AUXPCM_RX},
  524. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_QUAT_AUXPCM_TX},
  526. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_QUIN_AUXPCM_RX},
  528. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_QUIN_AUXPCM_TX},
  530. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_INT0_MI2S_RX},
  532. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_INT0_MI2S_TX},
  534. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_INT1_MI2S_RX},
  536. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_INT1_MI2S_TX},
  538. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_INT2_MI2S_RX},
  540. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_INT2_MI2S_TX},
  542. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_INT3_MI2S_RX},
  544. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_INT3_MI2S_TX},
  546. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_INT4_MI2S_RX},
  548. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_INT4_MI2S_TX},
  550. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_INT5_MI2S_RX},
  552. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_INT5_MI2S_TX},
  554. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_INT6_MI2S_RX},
  556. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_INT6_MI2S_TX},
  558. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_SEN_AUXPCM_RX},
  560. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_SEN_AUXPCM_TX},
  562. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_SENARY_MI2S_RX},
  564. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_WSA_CDC_DMA_RX_0},
  566. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_WSA_CDC_DMA_TX_0},
  568. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_WSA_CDC_DMA_RX_1},
  570. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_WSA_CDC_DMA_TX_1},
  572. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_WSA_CDC_DMA_TX_2},
  574. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_VA_CDC_DMA_TX_0},
  576. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_VA_CDC_DMA_TX_1},
  578. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_RX_CDC_DMA_RX_0},
  580. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_TX_CDC_DMA_TX_0},
  582. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_RX_CDC_DMA_RX_1},
  584. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_TX_CDC_DMA_TX_1},
  586. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_RX_CDC_DMA_RX_2},
  588. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_TX_CDC_DMA_TX_2},
  590. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_RX_CDC_DMA_RX_3},
  592. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_TX_CDC_DMA_TX_3},
  594. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_RX_CDC_DMA_RX_4},
  596. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_TX_CDC_DMA_TX_4},
  598. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_RX_CDC_DMA_RX_5},
  600. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_TX_CDC_DMA_TX_5},
  602. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_RX_CDC_DMA_RX_6},
  604. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_RX_CDC_DMA_RX_7},
  606. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_PRI_SPDIF_TX},
  608. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_SEC_SPDIF_RX},
  610. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_SEC_SPDIF_TX},
  612. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  613. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  614. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  615. };
  616. /* Track ASM playback & capture sessions of DAI
  617. * Track LSM listen sessions
  618. */
  619. static struct msm_pcm_routing_fdai_data
  620. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  621. /* MULTIMEDIA1 */
  622. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  623. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  624. /* MULTIMEDIA2 */
  625. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  626. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  627. /* MULTIMEDIA3 */
  628. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  629. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  630. /* MULTIMEDIA4 */
  631. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  632. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  633. /* MULTIMEDIA5 */
  634. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  635. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  636. /* MULTIMEDIA6 */
  637. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  638. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  639. /* MULTIMEDIA7*/
  640. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  641. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  642. /* MULTIMEDIA8 */
  643. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  644. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  645. /* MULTIMEDIA9 */
  646. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  647. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  648. /* MULTIMEDIA10 */
  649. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  650. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  651. /* MULTIMEDIA11 */
  652. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  653. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  654. /* MULTIMEDIA12 */
  655. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  656. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  657. /* MULTIMEDIA13 */
  658. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  659. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  660. /* MULTIMEDIA14 */
  661. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  662. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  663. /* MULTIMEDIA15 */
  664. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  665. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  666. /* MULTIMEDIA16 */
  667. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  668. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  669. /* MULTIMEDIA17 */
  670. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  671. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  672. /* MULTIMEDIA18 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  675. /* MULTIMEDIA19 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  678. /* MULTIMEDIA20 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  681. /* MULTIMEDIA21 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  684. /* MULTIMEDIA26 */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  687. /* MULTIMEDIA27 */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  690. /* MULTIMEDIA28 */
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  693. /* MULTIMEDIA29 */
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  696. /* VOIP */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  699. /* AFE_RX */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  702. /* AFE_TX */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  705. /* VOICE_STUB */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  708. /* DTMF_RX */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  711. /* QCHAT */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  714. /* VOLTE_STUB */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  717. /* LSM1 */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  720. /* LSM2 */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  723. /* LSM3 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  726. /* LSM4 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  729. /* LSM5 */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  732. /* LSM6 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  735. /* LSM7 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  738. /* LSM8 */
  739. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  740. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  741. /* VOICE2_STUB */
  742. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  743. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  744. /* VOICEMMODE1 */
  745. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  746. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  747. /* VOICEMMODE2 */
  748. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  749. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  750. };
  751. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  752. [MSM_BACKEND_DAI_MAX];
  753. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  754. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  755. static struct msm_pcm_stream_app_type_cfg
  756. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  757. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  758. /* The caller of this should acquire routing lock */
  759. void msm_pcm_routing_get_bedai_info(int be_idx,
  760. struct msm_pcm_routing_bdai_data *be_dai)
  761. {
  762. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  763. memcpy(be_dai, &msm_bedais[be_idx],
  764. sizeof(struct msm_pcm_routing_bdai_data));
  765. }
  766. /* The caller of this should acquire routing lock */
  767. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  768. struct msm_pcm_routing_fdai_data *fe_dai)
  769. {
  770. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  771. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  772. sizeof(struct msm_pcm_routing_fdai_data));
  773. }
  774. void msm_pcm_routing_acquire_lock(void)
  775. {
  776. mutex_lock(&routing_lock);
  777. }
  778. void msm_pcm_routing_release_lock(void)
  779. {
  780. mutex_unlock(&routing_lock);
  781. }
  782. static int msm_pcm_routing_get_app_type_idx(int app_type)
  783. {
  784. int idx;
  785. pr_debug("%s: app_type: %d\n", __func__, app_type);
  786. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  787. if (app_type_cfg[idx].app_type == app_type)
  788. return idx;
  789. }
  790. pr_info("%s: App type not available, fallback to default\n", __func__);
  791. return 0;
  792. }
  793. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  794. {
  795. int idx;
  796. pr_debug("%s: app_type: %d\n", __func__, app_type);
  797. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  798. if (lsm_app_type_cfg[idx].app_type == app_type)
  799. return idx;
  800. }
  801. pr_debug("%s: App type not available, fallback to default\n", __func__);
  802. return 0;
  803. }
  804. static bool is_mm_lsm_fe_id(int fe_id)
  805. {
  806. bool rc = true;
  807. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  808. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  809. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  810. rc = false;
  811. }
  812. return rc;
  813. }
  814. /*
  815. * msm_pcm_routing_send_chmix_cfg:
  816. * send the channel mixer command to mix the input channels
  817. * into output channels.
  818. *
  819. * @fe_id: front end id
  820. * @ip_channel_cnt: input channel count
  821. * @op_channel_cnt: output channel count
  822. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  823. * @session_type: indicates session is of type TX or RX
  824. * @stream_type: indicates either Audio or Listen stream type
  825. */
  826. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  827. int op_channel_cnt, int *ch_wght_coeff,
  828. int session_type, int stream_type)
  829. {
  830. int rc = 0, idx = 0;
  831. int be_index = 0, port_id;
  832. unsigned int session_id = 0;
  833. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  834. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  835. stream_type);
  836. if (!is_mm_lsm_fe_id(fe_id)) {
  837. /* bad ID assigned in machine driver */
  838. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  839. return -EINVAL;
  840. }
  841. if (ch_wght_coeff == NULL) {
  842. pr_err("%s: Null channel weightage coefficients passed\n",
  843. __func__);
  844. return -EINVAL;
  845. }
  846. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  847. port_id = msm_bedais[be_index].port_id;
  848. if (!msm_bedais[be_index].active ||
  849. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  850. continue;
  851. session_id = fe_dai_map[fe_id][session_type].strm_id;
  852. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  853. unsigned long copp =
  854. session_copp_map[fe_id][session_type][be_index];
  855. if (!test_bit(idx, &copp))
  856. continue;
  857. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  858. session_id, ip_channel_cnt,
  859. op_channel_cnt, ch_wght_coeff,
  860. session_type, stream_type);
  861. if (rc < 0)
  862. pr_err("%s: err setting channel mix config\n",
  863. __func__);
  864. }
  865. }
  866. return 0;
  867. }
  868. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  869. int msm_pcm_routing_reg_stream_app_type_cfg(
  870. int fedai_id, int session_type, int be_id,
  871. struct msm_pcm_stream_app_type_cfg *cfg_data)
  872. {
  873. int ret = 0;
  874. if (cfg_data == NULL) {
  875. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  876. ret = -EINVAL;
  877. goto done;
  878. }
  879. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  880. __func__, fedai_id, session_type, be_id,
  881. cfg_data->app_type, cfg_data->acdb_dev_id,
  882. cfg_data->sample_rate);
  883. if (!is_mm_lsm_fe_id(fedai_id)) {
  884. pr_err("%s: Invalid machine driver ID %d\n",
  885. __func__, fedai_id);
  886. ret = -EINVAL;
  887. goto done;
  888. }
  889. if (session_type != SESSION_TYPE_RX &&
  890. session_type != SESSION_TYPE_TX) {
  891. pr_err("%s: Invalid session type %d\n",
  892. __func__, session_type);
  893. ret = -EINVAL;
  894. goto done;
  895. }
  896. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  897. pr_err("%s: Received out of bounds be_id %d\n",
  898. __func__, be_id);
  899. ret = -EINVAL;
  900. goto done;
  901. }
  902. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  903. /*
  904. * Store the BE ID of the configuration information set as the latest so
  905. * the get mixer control knows what to return.
  906. */
  907. last_be_id_configured[fedai_id][session_type] = be_id;
  908. done:
  909. return ret;
  910. }
  911. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  912. /**
  913. * msm_pcm_routing_get_stream_app_type_cfg
  914. *
  915. * Receives fedai_id, session_type, be_id, and populates app_type,
  916. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  917. * -EINVAL and does not alter passed values.
  918. *
  919. * fedai_id - Passed value, front end ID for which app type config is wanted
  920. * session_type - Passed value, session type for which app type config
  921. * is wanted
  922. * be_id - Returned value, back end device id the app type config data is for
  923. * cfg_data - Returned value, configuration data used by app type config
  924. */
  925. int msm_pcm_routing_get_stream_app_type_cfg(
  926. int fedai_id, int session_type, int *bedai_id,
  927. struct msm_pcm_stream_app_type_cfg *cfg_data)
  928. {
  929. int be_id;
  930. int ret = 0;
  931. if (bedai_id == NULL) {
  932. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  933. ret = -EINVAL;
  934. goto done;
  935. } else if (cfg_data == NULL) {
  936. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  937. ret = -EINVAL;
  938. goto done;
  939. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  940. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  941. ret = -EINVAL;
  942. goto done;
  943. } else if (session_type != SESSION_TYPE_RX &&
  944. session_type != SESSION_TYPE_TX) {
  945. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  946. ret = -EINVAL;
  947. goto done;
  948. }
  949. be_id = last_be_id_configured[fedai_id][session_type];
  950. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  951. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  952. ret = -EINVAL;
  953. goto done;
  954. }
  955. *bedai_id = be_id;
  956. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  957. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  958. __func__, fedai_id, session_type, *bedai_id,
  959. cfg_data->app_type, cfg_data->acdb_dev_id,
  960. cfg_data->sample_rate);
  961. done:
  962. return ret;
  963. }
  964. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  965. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  966. int cal_index)
  967. {
  968. struct list_head *ptr, *next;
  969. struct cal_block_data *cal_block = NULL;
  970. pr_debug("%s\n", __func__);
  971. list_for_each_safe(ptr, next,
  972. &cal_data[cal_index]->cal_blocks) {
  973. cal_block = list_entry(ptr,
  974. struct cal_block_data, list);
  975. if (cal_utils_is_cal_stale(cal_block))
  976. continue;
  977. if (((struct audio_cal_info_adm_top *)cal_block
  978. ->cal_info)->path == path) {
  979. return cal_block;
  980. }
  981. }
  982. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  983. return NULL;
  984. }
  985. static struct cal_block_data *msm_routing_find_topology(int path,
  986. int app_type,
  987. int acdb_id,
  988. int cal_index)
  989. {
  990. struct list_head *ptr, *next;
  991. struct cal_block_data *cal_block = NULL;
  992. struct audio_cal_info_adm_top *cal_info;
  993. pr_debug("%s\n", __func__);
  994. list_for_each_safe(ptr, next,
  995. &cal_data[cal_index]->cal_blocks) {
  996. cal_block = list_entry(ptr,
  997. struct cal_block_data, list);
  998. if (cal_utils_is_cal_stale(cal_block))
  999. continue;
  1000. cal_info = (struct audio_cal_info_adm_top *)
  1001. cal_block->cal_info;
  1002. if ((cal_info->path == path) &&
  1003. (cal_info->app_type == app_type) &&
  1004. (cal_info->acdb_id == acdb_id)) {
  1005. return cal_block;
  1006. }
  1007. }
  1008. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  1009. __func__, path, app_type, acdb_id);
  1010. return msm_routing_find_topology_by_path(path, cal_index);
  1011. }
  1012. /*
  1013. * Retrieving cal_block will mark cal_block as stale.
  1014. * Hence it cannot be reused or resent unless the flag
  1015. * is reset.
  1016. */
  1017. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1018. int be_id)
  1019. {
  1020. int topology = NULL_COPP_TOPOLOGY;
  1021. struct cal_block_data *cal_block = NULL;
  1022. int app_type = 0, acdb_dev_id = 0;
  1023. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1024. __func__, fedai_id, session_type, be_id);
  1025. if (cal_data == NULL)
  1026. goto done;
  1027. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1028. acdb_dev_id =
  1029. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1030. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1031. cal_block = msm_routing_find_topology(session_type, app_type,
  1032. acdb_dev_id,
  1033. ADM_TOPOLOGY_CAL_TYPE_IDX);
  1034. if (cal_block != NULL) {
  1035. topology = ((struct audio_cal_info_adm_top *)
  1036. cal_block->cal_info)->topology;
  1037. cal_utils_mark_cal_used(cal_block);
  1038. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1039. } else {
  1040. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1041. pr_debug("%s: Check for LSM topology\n", __func__);
  1042. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1043. cal_block = msm_routing_find_topology(session_type, app_type,
  1044. acdb_dev_id,
  1045. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1046. if (cal_block != NULL) {
  1047. topology = ((struct audio_cal_info_adm_top *)
  1048. cal_block->cal_info)->topology;
  1049. cal_utils_mark_cal_used(cal_block);
  1050. }
  1051. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1052. }
  1053. done:
  1054. pr_debug("%s: Using topology %d\n", __func__, topology);
  1055. return topology;
  1056. }
  1057. static uint8_t is_be_dai_extproc(int be_dai)
  1058. {
  1059. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1060. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1061. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1062. return 1;
  1063. else
  1064. return 0;
  1065. }
  1066. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1067. int path_type, int perf_mode,
  1068. uint32_t passthr_mode)
  1069. {
  1070. int i, port_type, j, num_copps = 0;
  1071. struct route_payload payload;
  1072. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1073. path_type == ADM_PATH_COMPRESSED_RX) ?
  1074. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1075. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1076. if (!is_be_dai_extproc(i) &&
  1077. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1078. (msm_bedais[i].active) &&
  1079. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1080. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1081. unsigned long copp =
  1082. session_copp_map[fedai_id][sess_type][i];
  1083. if (test_bit(j, &copp)) {
  1084. payload.port_id[num_copps] =
  1085. msm_bedais[i].port_id;
  1086. payload.copp_idx[num_copps] = j;
  1087. payload.app_type[num_copps] =
  1088. fe_dai_app_type_cfg
  1089. [fedai_id][sess_type][i]
  1090. .app_type;
  1091. payload.acdb_dev_id[num_copps] =
  1092. fe_dai_app_type_cfg
  1093. [fedai_id][sess_type][i]
  1094. .acdb_dev_id;
  1095. payload.sample_rate[num_copps] =
  1096. fe_dai_app_type_cfg
  1097. [fedai_id][sess_type][i]
  1098. .sample_rate;
  1099. num_copps++;
  1100. }
  1101. }
  1102. }
  1103. }
  1104. if (num_copps) {
  1105. payload.num_copps = num_copps;
  1106. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1107. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1108. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1109. }
  1110. }
  1111. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1112. int stream_type)
  1113. {
  1114. int i, session_type, path_type, port_type;
  1115. u32 mode = 0;
  1116. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1117. /* bad ID assigned in machine driver */
  1118. pr_err("%s: bad MM ID\n", __func__);
  1119. return;
  1120. }
  1121. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1122. session_type = SESSION_TYPE_RX;
  1123. path_type = ADM_PATH_PLAYBACK;
  1124. port_type = MSM_AFE_PORT_TYPE_RX;
  1125. } else {
  1126. session_type = SESSION_TYPE_TX;
  1127. path_type = ADM_PATH_LIVE_REC;
  1128. port_type = MSM_AFE_PORT_TYPE_TX;
  1129. }
  1130. mutex_lock(&routing_lock);
  1131. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1132. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1133. if (!is_be_dai_extproc(i) &&
  1134. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1135. (msm_bedais[i].active) &&
  1136. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1137. mode = afe_get_port_type(msm_bedais[i].port_id);
  1138. adm_connect_afe_port(mode, dspst_id,
  1139. msm_bedais[i].port_id);
  1140. break;
  1141. }
  1142. }
  1143. mutex_unlock(&routing_lock);
  1144. }
  1145. static bool route_check_fe_id_adm_support(int fe_id)
  1146. {
  1147. bool rc = true;
  1148. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1149. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1150. /* fe id is listen while port is set to afe */
  1151. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1152. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1153. __func__, fe_id, lsm_port_index);
  1154. rc = false;
  1155. }
  1156. }
  1157. return rc;
  1158. }
  1159. /*
  1160. * msm_pcm_routing_get_pp_ch_cnt:
  1161. * Read the processed channel count
  1162. *
  1163. * @fe_id: Front end ID
  1164. * @session_type: Inidicates RX or TX session type
  1165. */
  1166. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1167. {
  1168. struct msm_pcm_stream_app_type_cfg cfg_data;
  1169. int be_id = 0, app_type_idx = 0, app_type = 0;
  1170. int ret = -EINVAL;
  1171. memset(&cfg_data, 0, sizeof(cfg_data));
  1172. if (!is_mm_lsm_fe_id(fe_id)) {
  1173. pr_err("%s: bad MM ID\n", __func__);
  1174. return -EINVAL;
  1175. }
  1176. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1177. &be_id, &cfg_data);
  1178. if (ret) {
  1179. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1180. return ret;
  1181. }
  1182. app_type = cfg_data.app_type;
  1183. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1184. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1185. }
  1186. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1187. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1188. int dspst_id, int stream_type,
  1189. uint32_t passthr_mode)
  1190. {
  1191. int i, j, session_type, path_type, port_type, topology;
  1192. int num_copps = 0;
  1193. struct route_payload payload;
  1194. u32 channels, sample_rate;
  1195. u16 bit_width = 16;
  1196. bool is_lsm;
  1197. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1198. __func__, fe_id, perf_mode, dspst_id,
  1199. stream_type, passthr_mode);
  1200. if (!is_mm_lsm_fe_id(fe_id)) {
  1201. /* bad ID assigned in machine driver */
  1202. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1203. return -EINVAL;
  1204. }
  1205. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1206. session_type = SESSION_TYPE_RX;
  1207. if (passthr_mode != LEGACY_PCM)
  1208. path_type = ADM_PATH_COMPRESSED_RX;
  1209. else
  1210. path_type = ADM_PATH_PLAYBACK;
  1211. port_type = MSM_AFE_PORT_TYPE_RX;
  1212. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1213. session_type = SESSION_TYPE_TX;
  1214. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1215. path_type = ADM_PATH_COMPRESSED_TX;
  1216. else
  1217. path_type = ADM_PATH_LIVE_REC;
  1218. port_type = MSM_AFE_PORT_TYPE_TX;
  1219. } else {
  1220. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1221. return -EINVAL;
  1222. }
  1223. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1224. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1225. mutex_lock(&routing_lock);
  1226. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1227. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1228. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1229. if (!route_check_fe_id_adm_support(fe_id)) {
  1230. /* ignore adm open if not supported for fe_id */
  1231. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1232. mutex_unlock(&routing_lock);
  1233. return 0;
  1234. }
  1235. payload.num_copps = 0; /* only RX needs to use payload */
  1236. /* re-enable EQ if active */
  1237. msm_qti_pp_send_eq_values(fe_id);
  1238. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1239. if (!is_be_dai_extproc(i) &&
  1240. (afe_get_port_type(msm_bedais[i].port_id) ==
  1241. port_type) &&
  1242. (msm_bedais[i].active) &&
  1243. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1244. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1245. /*
  1246. * check if ADM needs to be configured with different
  1247. * channel mapping than backend
  1248. */
  1249. if (!msm_bedais[i].adm_override_ch)
  1250. channels = msm_bedais[i].channel;
  1251. else
  1252. channels = msm_bedais[i].adm_override_ch;
  1253. bit_width = msm_routing_get_bit_width(
  1254. msm_bedais[i].format);
  1255. app_type =
  1256. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1257. if (app_type && is_lsm) {
  1258. app_type_idx =
  1259. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1260. sample_rate =
  1261. fe_dai_app_type_cfg[fe_id][session_type][i]
  1262. .sample_rate;
  1263. bit_width =
  1264. lsm_app_type_cfg[app_type_idx].bit_width;
  1265. } else if (app_type) {
  1266. app_type_idx =
  1267. msm_pcm_routing_get_app_type_idx(
  1268. app_type);
  1269. sample_rate =
  1270. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1271. bit_width =
  1272. app_type_cfg[app_type_idx].bit_width;
  1273. } else {
  1274. sample_rate = msm_bedais[i].sample_rate;
  1275. }
  1276. acdb_dev_id =
  1277. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1278. topology = msm_routing_get_adm_topology(fe_id,
  1279. session_type,
  1280. i);
  1281. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1282. || (passthr_mode ==
  1283. COMPRESSED_PASSTHROUGH_GEN)
  1284. || (passthr_mode ==
  1285. COMPRESSED_PASSTHROUGH_IEC61937))
  1286. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1287. pr_debug("%s: Before adm open topology %d\n", __func__,
  1288. topology);
  1289. copp_idx =
  1290. adm_open(msm_bedais[i].port_id,
  1291. path_type, sample_rate, channels,
  1292. topology, perf_mode, bit_width,
  1293. app_type, acdb_dev_id);
  1294. if ((copp_idx < 0) ||
  1295. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1296. pr_err("%s:adm open failed coppid:%d\n",
  1297. __func__, copp_idx);
  1298. mutex_unlock(&routing_lock);
  1299. return -EINVAL;
  1300. }
  1301. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1302. __func__, fe_id, session_type, i);
  1303. set_bit(copp_idx,
  1304. &session_copp_map[fe_id][session_type][i]);
  1305. if (msm_is_resample_needed(
  1306. sample_rate,
  1307. msm_bedais[i].sample_rate))
  1308. adm_copp_mfc_cfg(
  1309. msm_bedais[i].port_id, copp_idx,
  1310. msm_bedais[i].sample_rate);
  1311. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1312. unsigned long copp =
  1313. session_copp_map[fe_id][session_type][i];
  1314. if (test_bit(j, &copp)) {
  1315. payload.port_id[num_copps] =
  1316. msm_bedais[i].port_id;
  1317. payload.copp_idx[num_copps] = j;
  1318. payload.app_type[num_copps] =
  1319. fe_dai_app_type_cfg
  1320. [fe_id][session_type][i]
  1321. .app_type;
  1322. payload.acdb_dev_id[num_copps] =
  1323. fe_dai_app_type_cfg
  1324. [fe_id][session_type][i]
  1325. .acdb_dev_id;
  1326. payload.sample_rate[num_copps] =
  1327. fe_dai_app_type_cfg
  1328. [fe_id][session_type][i]
  1329. .sample_rate;
  1330. num_copps++;
  1331. }
  1332. }
  1333. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1334. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1335. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1336. msm_routing_send_device_pp_params(
  1337. msm_bedais[i].port_id,
  1338. copp_idx, fe_id);
  1339. }
  1340. }
  1341. if (num_copps) {
  1342. payload.num_copps = num_copps;
  1343. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1344. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1345. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1346. }
  1347. mutex_unlock(&routing_lock);
  1348. return 0;
  1349. }
  1350. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1351. {
  1352. u32 session_id;
  1353. switch (val) {
  1354. case MSM_FRONTEND_DAI_QCHAT:
  1355. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1356. break;
  1357. case MSM_FRONTEND_DAI_VOIP:
  1358. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1359. break;
  1360. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1361. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1362. break;
  1363. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1364. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1365. break;
  1366. default:
  1367. session_id = 0;
  1368. }
  1369. pr_debug("%s session_id 0x%x", __func__, session_id);
  1370. return session_id;
  1371. }
  1372. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1373. int dspst_id, int stream_type)
  1374. {
  1375. int copp_idx = 0;
  1376. int sess_type = 0;
  1377. int i = 0, j = 0, be_id;
  1378. int ret = 0;
  1379. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1380. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1381. return 0;
  1382. }
  1383. if (!(channel_mixer[fe_id].enable)) {
  1384. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1385. __func__, fe_id);
  1386. return 0;
  1387. }
  1388. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1389. sess_type = SESSION_TYPE_RX;
  1390. else
  1391. sess_type = SESSION_TYPE_TX;
  1392. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1393. ++i) {
  1394. be_id = channel_input[fe_id][i] - 1;
  1395. channel_mixer[fe_id].input_channels[i] =
  1396. msm_bedais[be_id].channel;
  1397. if ((msm_bedais[be_id].active) &&
  1398. test_bit(fe_id,
  1399. &msm_bedais[be_id].fe_sessions[0])) {
  1400. unsigned long copp =
  1401. session_copp_map[fe_id][sess_type][be_id];
  1402. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1403. if (test_bit(j, &copp)) {
  1404. copp_idx = j;
  1405. break;
  1406. }
  1407. }
  1408. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1409. __func__,
  1410. fe_id, be_id, msm_bedais[be_id].channel,
  1411. copp_idx);
  1412. ret = adm_programable_channel_mixer(
  1413. msm_bedais[be_id].port_id,
  1414. copp_idx, dspst_id, sess_type,
  1415. channel_mixer + fe_id, i);
  1416. }
  1417. }
  1418. return ret;
  1419. }
  1420. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1421. int dspst_id, int stream_type)
  1422. {
  1423. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1424. struct route_payload payload;
  1425. u32 channels, sample_rate;
  1426. uint16_t bits_per_sample = 16;
  1427. uint32_t passthr_mode = LEGACY_PCM;
  1428. int ret = 0;
  1429. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1430. /* bad ID assigned in machine driver */
  1431. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1432. return -EINVAL;
  1433. }
  1434. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1435. session_type = SESSION_TYPE_RX;
  1436. path_type = ADM_PATH_PLAYBACK;
  1437. port_type = MSM_AFE_PORT_TYPE_RX;
  1438. } else {
  1439. session_type = SESSION_TYPE_TX;
  1440. path_type = ADM_PATH_LIVE_REC;
  1441. port_type = MSM_AFE_PORT_TYPE_TX;
  1442. }
  1443. mutex_lock(&routing_lock);
  1444. payload.num_copps = 0; /* only RX needs to use payload */
  1445. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1446. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1447. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1448. /* re-enable EQ if active */
  1449. msm_qti_pp_send_eq_values(fedai_id);
  1450. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1451. if (!is_be_dai_extproc(i) &&
  1452. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1453. (msm_bedais[i].active) &&
  1454. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1455. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1456. /*
  1457. * check if ADM needs to be configured with different
  1458. * channel mapping than backend
  1459. */
  1460. if (!msm_bedais[i].adm_override_ch)
  1461. channels = msm_bedais[i].channel;
  1462. else
  1463. channels = msm_bedais[i].adm_override_ch;
  1464. bits_per_sample = msm_routing_get_bit_width(
  1465. msm_bedais[i].format);
  1466. app_type =
  1467. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1468. if (app_type) {
  1469. app_type_idx =
  1470. msm_pcm_routing_get_app_type_idx(app_type);
  1471. sample_rate =
  1472. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1473. .sample_rate;
  1474. bits_per_sample =
  1475. app_type_cfg[app_type_idx].bit_width;
  1476. } else
  1477. sample_rate = msm_bedais[i].sample_rate;
  1478. acdb_dev_id =
  1479. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1480. .acdb_dev_id;
  1481. topology = msm_routing_get_adm_topology(fedai_id,
  1482. session_type,
  1483. i);
  1484. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1485. sample_rate, channels, topology,
  1486. perf_mode, bits_per_sample,
  1487. app_type, acdb_dev_id);
  1488. if ((copp_idx < 0) ||
  1489. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1490. pr_err("%s: adm open failed copp_idx:%d\n",
  1491. __func__, copp_idx);
  1492. mutex_unlock(&routing_lock);
  1493. return -EINVAL;
  1494. }
  1495. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1496. __func__, fedai_id, session_type, i);
  1497. set_bit(copp_idx,
  1498. &session_copp_map[fedai_id][session_type][i]);
  1499. if (msm_is_resample_needed(
  1500. sample_rate,
  1501. msm_bedais[i].sample_rate))
  1502. adm_copp_mfc_cfg(
  1503. msm_bedais[i].port_id, copp_idx,
  1504. msm_bedais[i].sample_rate);
  1505. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1506. unsigned long copp =
  1507. session_copp_map[fedai_id][session_type][i];
  1508. if (test_bit(j, &copp)) {
  1509. payload.port_id[num_copps] =
  1510. msm_bedais[i].port_id;
  1511. payload.copp_idx[num_copps] = j;
  1512. payload.app_type[num_copps] =
  1513. fe_dai_app_type_cfg
  1514. [fedai_id][session_type]
  1515. [i].app_type;
  1516. payload.acdb_dev_id[num_copps] =
  1517. fe_dai_app_type_cfg
  1518. [fedai_id][session_type]
  1519. [i].acdb_dev_id;
  1520. payload.sample_rate[num_copps] =
  1521. fe_dai_app_type_cfg
  1522. [fedai_id][session_type]
  1523. [i].sample_rate;
  1524. num_copps++;
  1525. }
  1526. }
  1527. if (perf_mode == LEGACY_PCM_MODE)
  1528. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1529. copp_idx, topology, channels);
  1530. }
  1531. }
  1532. if (num_copps) {
  1533. payload.num_copps = num_copps;
  1534. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1535. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1536. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1537. }
  1538. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1539. dspst_id, stream_type);
  1540. mutex_unlock(&routing_lock);
  1541. return ret;
  1542. }
  1543. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1544. int dspst_id, int stream_type,
  1545. struct msm_pcm_routing_evt event_info)
  1546. {
  1547. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1548. stream_type)) {
  1549. pr_err("%s: failed to reg phy stream\n", __func__);
  1550. return -EINVAL;
  1551. }
  1552. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1553. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1554. else
  1555. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1556. return 0;
  1557. }
  1558. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1559. {
  1560. int i, port_type, session_type, path_type, topology;
  1561. struct msm_pcm_routing_fdai_data *fdai;
  1562. if (!is_mm_lsm_fe_id(fedai_id)) {
  1563. /* bad ID assigned in machine driver */
  1564. pr_err("%s: bad MM ID\n", __func__);
  1565. return;
  1566. }
  1567. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1568. port_type = MSM_AFE_PORT_TYPE_RX;
  1569. session_type = SESSION_TYPE_RX;
  1570. path_type = ADM_PATH_PLAYBACK;
  1571. } else {
  1572. port_type = MSM_AFE_PORT_TYPE_TX;
  1573. session_type = SESSION_TYPE_TX;
  1574. path_type = ADM_PATH_LIVE_REC;
  1575. }
  1576. mutex_lock(&routing_lock);
  1577. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1578. if (!is_be_dai_extproc(i) &&
  1579. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1580. (msm_bedais[i].active) &&
  1581. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1582. int idx;
  1583. unsigned long copp =
  1584. session_copp_map[fedai_id][session_type][i];
  1585. fdai = &fe_dai_map[fedai_id][session_type];
  1586. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1587. if (test_bit(idx, &copp))
  1588. break;
  1589. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1590. pr_debug("%s: copp idx is invalid, exiting\n",
  1591. __func__);
  1592. continue;
  1593. }
  1594. topology = adm_get_topology_for_port_copp_idx(
  1595. msm_bedais[i].port_id, idx);
  1596. msm_routing_unload_topology(topology);
  1597. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1598. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1599. __func__, copp, fedai_id, session_type, i);
  1600. clear_bit(idx,
  1601. &session_copp_map[fedai_id][session_type][i]);
  1602. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1603. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1604. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1605. (fdai->passthr_mode == LEGACY_PCM))
  1606. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1607. topology);
  1608. }
  1609. }
  1610. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1611. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1612. mutex_unlock(&routing_lock);
  1613. }
  1614. /* Check if FE/BE route is set */
  1615. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1616. {
  1617. bool rc = false;
  1618. if (!is_mm_lsm_fe_id(fe_id)) {
  1619. /* recheck FE ID in the mixer control defined in this file */
  1620. pr_err("%s: bad MM ID\n", __func__);
  1621. return rc;
  1622. }
  1623. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1624. rc = true;
  1625. return rc;
  1626. }
  1627. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1628. {
  1629. int session_type, path_type, topology;
  1630. u32 channels, sample_rate;
  1631. uint16_t bits_per_sample = 16;
  1632. struct msm_pcm_routing_fdai_data *fdai;
  1633. uint32_t passthr_mode;
  1634. bool is_lsm;
  1635. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1636. if (!is_mm_lsm_fe_id(val)) {
  1637. /* recheck FE ID in the mixer control defined in this file */
  1638. pr_err("%s: bad MM ID\n", __func__);
  1639. return;
  1640. }
  1641. if (!route_check_fe_id_adm_support(val)) {
  1642. /* ignore adm open if not supported for fe_id */
  1643. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1644. return;
  1645. }
  1646. session_type =
  1647. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1648. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1649. fdai = &fe_dai_map[val][session_type];
  1650. passthr_mode = fdai->passthr_mode;
  1651. if (session_type == SESSION_TYPE_RX) {
  1652. if (passthr_mode != LEGACY_PCM)
  1653. path_type = ADM_PATH_COMPRESSED_RX;
  1654. else
  1655. path_type = ADM_PATH_PLAYBACK;
  1656. } else {
  1657. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1658. path_type = ADM_PATH_COMPRESSED_TX;
  1659. else
  1660. path_type = ADM_PATH_LIVE_REC;
  1661. }
  1662. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1663. (val <= MSM_FRONTEND_DAI_LSM8);
  1664. mutex_lock(&routing_lock);
  1665. if (set) {
  1666. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1667. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1668. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1669. voc_start_playback(set, msm_bedais[reg].port_id);
  1670. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1671. if (msm_bedais[reg].active && fdai->strm_id !=
  1672. INVALID_SESSION) {
  1673. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1674. /*
  1675. * check if ADM needs to be configured with different
  1676. * channel mapping than backend
  1677. */
  1678. if (!msm_bedais[reg].adm_override_ch)
  1679. channels = msm_bedais[reg].channel;
  1680. else
  1681. channels = msm_bedais[reg].adm_override_ch;
  1682. if (session_type == SESSION_TYPE_TX &&
  1683. fdai->be_srate &&
  1684. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1685. pr_debug("%s: flush strm %d diff BE rates\n",
  1686. __func__, fdai->strm_id);
  1687. if (fdai->event_info.event_func)
  1688. fdai->event_info.event_func(
  1689. MSM_PCM_RT_EVT_BUF_RECFG,
  1690. fdai->event_info.priv_data);
  1691. fdai->be_srate = 0; /* might not need it */
  1692. }
  1693. bits_per_sample = msm_routing_get_bit_width(
  1694. msm_bedais[reg].format);
  1695. app_type =
  1696. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1697. if (app_type && is_lsm) {
  1698. app_type_idx =
  1699. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1700. sample_rate =
  1701. fe_dai_app_type_cfg[val][session_type][reg]
  1702. .sample_rate;
  1703. bits_per_sample =
  1704. lsm_app_type_cfg[app_type_idx].bit_width;
  1705. } else if (app_type) {
  1706. app_type_idx =
  1707. msm_pcm_routing_get_app_type_idx(app_type);
  1708. sample_rate =
  1709. fe_dai_app_type_cfg[val][session_type][reg]
  1710. .sample_rate;
  1711. bits_per_sample =
  1712. app_type_cfg[app_type_idx].bit_width;
  1713. } else
  1714. sample_rate = msm_bedais[reg].sample_rate;
  1715. topology = msm_routing_get_adm_topology(val,
  1716. session_type,
  1717. reg);
  1718. acdb_dev_id =
  1719. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1720. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1721. sample_rate, channels, topology,
  1722. fdai->perf_mode, bits_per_sample,
  1723. app_type, acdb_dev_id);
  1724. if ((copp_idx < 0) ||
  1725. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1726. pr_err("%s: adm open failed\n", __func__);
  1727. mutex_unlock(&routing_lock);
  1728. return;
  1729. }
  1730. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1731. __func__, val, session_type, reg);
  1732. set_bit(copp_idx,
  1733. &session_copp_map[val][session_type][reg]);
  1734. if (msm_is_resample_needed(
  1735. sample_rate,
  1736. msm_bedais[reg].sample_rate))
  1737. adm_copp_mfc_cfg(
  1738. msm_bedais[reg].port_id, copp_idx,
  1739. msm_bedais[reg].sample_rate);
  1740. if (session_type == SESSION_TYPE_RX &&
  1741. fdai->event_info.event_func)
  1742. fdai->event_info.event_func(
  1743. MSM_PCM_RT_EVT_DEVSWITCH,
  1744. fdai->event_info.priv_data);
  1745. msm_pcm_routing_build_matrix(val, session_type,
  1746. path_type,
  1747. fdai->perf_mode,
  1748. passthr_mode);
  1749. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1750. (passthr_mode == LEGACY_PCM))
  1751. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1752. copp_idx, topology,
  1753. channels);
  1754. }
  1755. } else {
  1756. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1757. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1758. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1759. voc_start_playback(set, msm_bedais[reg].port_id);
  1760. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1761. if (msm_bedais[reg].active && fdai->strm_id !=
  1762. INVALID_SESSION) {
  1763. int idx;
  1764. int port_id;
  1765. unsigned long copp =
  1766. session_copp_map[val][session_type][reg];
  1767. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1768. if (test_bit(idx, &copp))
  1769. break;
  1770. if (idx >= MAX_COPPS_PER_PORT) {
  1771. pr_debug("%s: copp idx is invalid, exiting\n",
  1772. __func__);
  1773. mutex_unlock(&routing_lock);
  1774. return;
  1775. }
  1776. port_id = msm_bedais[reg].port_id;
  1777. topology = adm_get_topology_for_port_copp_idx(port_id,
  1778. idx);
  1779. msm_routing_unload_topology(topology);
  1780. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1781. idx);
  1782. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1783. __func__, copp, val, session_type, reg,
  1784. topology);
  1785. clear_bit(idx,
  1786. &session_copp_map[val][session_type][reg]);
  1787. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1788. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1789. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1790. (passthr_mode == LEGACY_PCM))
  1791. msm_pcm_routing_deinit_pp(
  1792. msm_bedais[reg].port_id,
  1793. topology);
  1794. msm_pcm_routing_build_matrix(val, session_type,
  1795. path_type,
  1796. fdai->perf_mode,
  1797. passthr_mode);
  1798. }
  1799. }
  1800. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1801. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1802. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1803. mutex_unlock(&routing_lock);
  1804. }
  1805. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1806. struct snd_ctl_elem_value *ucontrol)
  1807. {
  1808. struct soc_mixer_control *mc =
  1809. (struct soc_mixer_control *)kcontrol->private_value;
  1810. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1811. ucontrol->value.integer.value[0] = 1;
  1812. else
  1813. ucontrol->value.integer.value[0] = 0;
  1814. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1815. ucontrol->value.integer.value[0]);
  1816. return 0;
  1817. }
  1818. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1819. struct snd_ctl_elem_value *ucontrol)
  1820. {
  1821. struct snd_soc_dapm_widget *widget =
  1822. snd_soc_dapm_kcontrol_widget(kcontrol);
  1823. struct soc_mixer_control *mc =
  1824. (struct soc_mixer_control *)kcontrol->private_value;
  1825. struct snd_soc_dapm_update *update = NULL;
  1826. if (ucontrol->value.integer.value[0] &&
  1827. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1828. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1829. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1830. update);
  1831. } else if (!ucontrol->value.integer.value[0] &&
  1832. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1833. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1834. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1835. update);
  1836. }
  1837. return 1;
  1838. }
  1839. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1840. struct snd_ctl_elem_value *ucontrol)
  1841. {
  1842. struct soc_mixer_control *mc =
  1843. (struct soc_mixer_control *)kcontrol->private_value;
  1844. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1845. ucontrol->value.integer.value[0] = 1;
  1846. else
  1847. ucontrol->value.integer.value[0] = 0;
  1848. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1849. ucontrol->value.integer.value[0]);
  1850. return 0;
  1851. }
  1852. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1853. struct snd_ctl_elem_value *ucontrol)
  1854. {
  1855. struct snd_soc_dapm_widget *widget =
  1856. snd_soc_dapm_kcontrol_widget(kcontrol);
  1857. struct soc_mixer_control *mc =
  1858. (struct soc_mixer_control *)kcontrol->private_value;
  1859. struct snd_soc_dapm_update *update = NULL;
  1860. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1861. ucontrol->value.integer.value[0]);
  1862. if (ucontrol->value.integer.value[0]) {
  1863. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1864. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1865. snd_soc_dapm_mixer_update_power(widget->dapm,
  1866. kcontrol, 1, update);
  1867. } else if (!ucontrol->value.integer.value[0]) {
  1868. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1869. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1870. snd_soc_dapm_mixer_update_power(widget->dapm,
  1871. kcontrol, 0, update);
  1872. }
  1873. return 1;
  1874. }
  1875. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1876. {
  1877. u32 session_id = 0;
  1878. u16 path_type;
  1879. struct media_format_info voc_be_media_format;
  1880. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1881. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1882. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1883. __func__, val, session_id);
  1884. mutex_lock(&routing_lock);
  1885. if (set)
  1886. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1887. else
  1888. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  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. }
  1896. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1897. MSM_AFE_PORT_TYPE_RX)
  1898. path_type = RX_PATH;
  1899. else
  1900. path_type = TX_PATH;
  1901. if (set) {
  1902. if (msm_bedais[reg].active) {
  1903. voc_set_route_flag(session_id, path_type, 1);
  1904. memset(&voc_be_media_format, 0,
  1905. sizeof(struct media_format_info));
  1906. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1907. voc_be_media_format.num_channels =
  1908. msm_bedais[reg].channel;
  1909. voc_be_media_format.sample_rate =
  1910. msm_bedais[reg].sample_rate;
  1911. voc_be_media_format.bits_per_sample =
  1912. msm_bedais[reg].format;
  1913. /* Defaulting this to 1 for voice call usecases */
  1914. voc_be_media_format.channel_mapping[0] = 1;
  1915. voc_set_device_config(session_id, path_type,
  1916. &voc_be_media_format);
  1917. if (voc_get_route_flag(session_id, TX_PATH) &&
  1918. voc_get_route_flag(session_id, RX_PATH))
  1919. voc_enable_device(session_id);
  1920. } else {
  1921. pr_debug("%s BE is not active\n", __func__);
  1922. }
  1923. } else {
  1924. voc_set_route_flag(session_id, path_type, 0);
  1925. voc_disable_device(session_id);
  1926. }
  1927. mutex_unlock(&routing_lock);
  1928. }
  1929. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1930. struct snd_ctl_elem_value *ucontrol)
  1931. {
  1932. struct soc_mixer_control *mc =
  1933. (struct soc_mixer_control *)kcontrol->private_value;
  1934. mutex_lock(&routing_lock);
  1935. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1936. ucontrol->value.integer.value[0] = 1;
  1937. else
  1938. ucontrol->value.integer.value[0] = 0;
  1939. mutex_unlock(&routing_lock);
  1940. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1941. ucontrol->value.integer.value[0]);
  1942. return 0;
  1943. }
  1944. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1945. struct snd_ctl_elem_value *ucontrol)
  1946. {
  1947. struct snd_soc_dapm_widget *widget =
  1948. snd_soc_dapm_kcontrol_widget(kcontrol);
  1949. struct soc_mixer_control *mc =
  1950. (struct soc_mixer_control *)kcontrol->private_value;
  1951. struct snd_soc_dapm_update *update = NULL;
  1952. if (ucontrol->value.integer.value[0]) {
  1953. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1954. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1955. update);
  1956. } else {
  1957. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1958. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1959. update);
  1960. }
  1961. return 1;
  1962. }
  1963. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1964. struct snd_ctl_elem_value *ucontrol)
  1965. {
  1966. struct soc_mixer_control *mc =
  1967. (struct soc_mixer_control *)kcontrol->private_value;
  1968. mutex_lock(&routing_lock);
  1969. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1970. ucontrol->value.integer.value[0] = 1;
  1971. else
  1972. ucontrol->value.integer.value[0] = 0;
  1973. mutex_unlock(&routing_lock);
  1974. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1975. ucontrol->value.integer.value[0]);
  1976. return 0;
  1977. }
  1978. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1979. struct snd_ctl_elem_value *ucontrol)
  1980. {
  1981. struct snd_soc_dapm_widget *widget =
  1982. snd_soc_dapm_kcontrol_widget(kcontrol);
  1983. struct soc_mixer_control *mc =
  1984. (struct soc_mixer_control *)kcontrol->private_value;
  1985. struct snd_soc_dapm_update *update = NULL;
  1986. if (ucontrol->value.integer.value[0]) {
  1987. mutex_lock(&routing_lock);
  1988. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1989. mutex_unlock(&routing_lock);
  1990. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1991. update);
  1992. } else {
  1993. mutex_lock(&routing_lock);
  1994. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1995. mutex_unlock(&routing_lock);
  1996. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1997. update);
  1998. }
  1999. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2000. ucontrol->value.integer.value[0]);
  2001. return 1;
  2002. }
  2003. /*
  2004. * Return the mapping between port ID and backend ID to enable the AFE callback
  2005. * to determine the acdb_dev_id from the port id
  2006. */
  2007. int msm_pcm_get_be_id_from_port_id(int port_id)
  2008. {
  2009. int i;
  2010. int be_id = -EINVAL;
  2011. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2012. if (msm_bedais[i].port_id == port_id) {
  2013. be_id = i;
  2014. break;
  2015. }
  2016. }
  2017. return be_id;
  2018. }
  2019. /*
  2020. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2021. * correct AFE calibration information by comparing the header information.
  2022. */
  2023. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2024. {
  2025. int acdb_id = -EINVAL;
  2026. int i = 0;
  2027. int session;
  2028. int port_type = afe_get_port_type(port_id);
  2029. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2030. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2031. __func__, port_id, be_id, port_type);
  2032. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2033. session = SESSION_TYPE_TX;
  2034. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2035. session = SESSION_TYPE_RX;
  2036. } else {
  2037. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2038. acdb_id = -EINVAL;
  2039. goto exit;
  2040. }
  2041. if (be_id < 0) {
  2042. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2043. goto exit;
  2044. }
  2045. mutex_lock(&routing_lock);
  2046. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2047. MSM_FRONTEND_DAI_MAX);
  2048. if (i < MSM_FRONTEND_DAI_MAX)
  2049. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2050. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2051. __func__, i, session, be_id, acdb_id);
  2052. mutex_unlock(&routing_lock);
  2053. exit:
  2054. return acdb_id;
  2055. }
  2056. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2057. struct snd_ctl_elem_value *ucontrol)
  2058. {
  2059. ucontrol->value.integer.value[0] = fm_switch_enable;
  2060. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2061. ucontrol->value.integer.value[0]);
  2062. return 0;
  2063. }
  2064. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2065. struct snd_ctl_elem_value *ucontrol)
  2066. {
  2067. struct snd_soc_dapm_widget *widget =
  2068. snd_soc_dapm_kcontrol_widget(kcontrol);
  2069. struct snd_soc_dapm_update *update = NULL;
  2070. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2071. ucontrol->value.integer.value[0]);
  2072. if (ucontrol->value.integer.value[0])
  2073. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2074. update);
  2075. else
  2076. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2077. update);
  2078. fm_switch_enable = ucontrol->value.integer.value[0];
  2079. return 1;
  2080. }
  2081. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2082. struct snd_ctl_elem_value *ucontrol)
  2083. {
  2084. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2085. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2086. ucontrol->value.integer.value[0]);
  2087. return 0;
  2088. }
  2089. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2090. struct snd_ctl_elem_value *ucontrol)
  2091. {
  2092. struct snd_soc_dapm_widget *widget =
  2093. snd_soc_dapm_kcontrol_widget(kcontrol);
  2094. struct snd_soc_dapm_update *update = NULL;
  2095. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2096. ucontrol->value.integer.value[0]);
  2097. if (ucontrol->value.integer.value[0])
  2098. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2099. 1, update);
  2100. else
  2101. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2102. 0, update);
  2103. hfp_switch_enable = ucontrol->value.integer.value[0];
  2104. return 1;
  2105. }
  2106. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2107. struct snd_ctl_elem_value *ucontrol)
  2108. {
  2109. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2110. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2111. ucontrol->value.integer.value[0]);
  2112. return 0;
  2113. }
  2114. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2115. struct snd_ctl_elem_value *ucontrol)
  2116. {
  2117. struct snd_soc_dapm_widget *widget =
  2118. snd_soc_dapm_kcontrol_widget(kcontrol);
  2119. struct snd_soc_dapm_update *update = NULL;
  2120. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2121. ucontrol->value.integer.value[0]);
  2122. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2123. if (a2dp_switch_enable)
  2124. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2125. 1, update);
  2126. else
  2127. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2128. 0, update);
  2129. return 1;
  2130. }
  2131. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2132. struct snd_ctl_elem_value *ucontrol)
  2133. {
  2134. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2135. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2136. ucontrol->value.integer.value[0]);
  2137. return 0;
  2138. }
  2139. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2140. struct snd_ctl_elem_value *ucontrol)
  2141. {
  2142. struct snd_soc_dapm_widget *widget =
  2143. snd_soc_dapm_kcontrol_widget(kcontrol);
  2144. struct snd_soc_dapm_update *update = NULL;
  2145. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2146. ucontrol->value.integer.value[0]);
  2147. if (ucontrol->value.integer.value[0])
  2148. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2149. update);
  2150. else
  2151. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2152. update);
  2153. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2154. return 1;
  2155. }
  2156. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2157. struct snd_ctl_elem_value *ucontrol)
  2158. {
  2159. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2160. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2161. ucontrol->value.integer.value[0]);
  2162. return 0;
  2163. }
  2164. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2165. struct snd_ctl_elem_value *ucontrol)
  2166. {
  2167. struct snd_soc_dapm_widget *widget =
  2168. snd_soc_dapm_kcontrol_widget(kcontrol);
  2169. struct snd_soc_dapm_update *update = NULL;
  2170. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2171. ucontrol->value.integer.value[0]);
  2172. if (ucontrol->value.integer.value[0])
  2173. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2174. update);
  2175. else
  2176. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2177. update);
  2178. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2179. return 1;
  2180. }
  2181. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2182. struct snd_ctl_elem_value *ucontrol)
  2183. {
  2184. ucontrol->value.integer.value[0] = usb_switch_enable;
  2185. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2186. ucontrol->value.integer.value[0]);
  2187. return 0;
  2188. }
  2189. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2190. struct snd_ctl_elem_value *ucontrol)
  2191. {
  2192. struct snd_soc_dapm_widget *widget =
  2193. snd_soc_dapm_kcontrol_widget(kcontrol);
  2194. struct snd_soc_dapm_update *update = NULL;
  2195. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2196. ucontrol->value.integer.value[0]);
  2197. if (ucontrol->value.integer.value[0])
  2198. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2199. 1, update);
  2200. else
  2201. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2202. 0, update);
  2203. usb_switch_enable = ucontrol->value.integer.value[0];
  2204. return 1;
  2205. }
  2206. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2207. struct snd_ctl_elem_value *ucontrol)
  2208. {
  2209. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2210. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2211. ucontrol->value.integer.value[0]);
  2212. return 0;
  2213. }
  2214. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2215. struct snd_ctl_elem_value *ucontrol)
  2216. {
  2217. struct snd_soc_dapm_widget *widget =
  2218. snd_soc_dapm_kcontrol_widget(kcontrol);
  2219. struct snd_soc_dapm_update *update = NULL;
  2220. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2221. ucontrol->value.integer.value[0]);
  2222. if (ucontrol->value.integer.value[0])
  2223. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2224. update);
  2225. else
  2226. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2227. update);
  2228. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2229. return 1;
  2230. }
  2231. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2232. struct snd_ctl_elem_value *ucontrol)
  2233. {
  2234. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2235. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2236. ucontrol->value.integer.value[0]);
  2237. return 0;
  2238. }
  2239. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2240. struct snd_ctl_elem_value *ucontrol)
  2241. {
  2242. struct snd_soc_dapm_widget *widget =
  2243. snd_soc_dapm_kcontrol_widget(kcontrol);
  2244. struct snd_soc_dapm_update *update = NULL;
  2245. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2246. ucontrol->value.integer.value[0]);
  2247. if (ucontrol->value.integer.value[0])
  2248. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2249. update);
  2250. else
  2251. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2252. update);
  2253. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2254. return 1;
  2255. }
  2256. static int msm_routing_get_tert_mi2s_switch_mixer(
  2257. struct snd_kcontrol *kcontrol,
  2258. struct snd_ctl_elem_value *ucontrol)
  2259. {
  2260. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2261. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2262. ucontrol->value.integer.value[0]);
  2263. return 0;
  2264. }
  2265. static int msm_routing_put_tert_mi2s_switch_mixer(
  2266. struct snd_kcontrol *kcontrol,
  2267. struct snd_ctl_elem_value *ucontrol)
  2268. {
  2269. struct snd_soc_dapm_widget *widget =
  2270. snd_soc_dapm_kcontrol_widget(kcontrol);
  2271. struct snd_soc_dapm_update *update = NULL;
  2272. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2273. ucontrol->value.integer.value[0]);
  2274. if (ucontrol->value.integer.value[0])
  2275. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2276. update);
  2277. else
  2278. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2279. update);
  2280. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2281. return 1;
  2282. }
  2283. static int msm_routing_get_quat_mi2s_switch_mixer(
  2284. struct snd_kcontrol *kcontrol,
  2285. struct snd_ctl_elem_value *ucontrol)
  2286. {
  2287. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2288. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2289. ucontrol->value.integer.value[0]);
  2290. return 0;
  2291. }
  2292. static int msm_routing_put_quat_mi2s_switch_mixer(
  2293. struct snd_kcontrol *kcontrol,
  2294. struct snd_ctl_elem_value *ucontrol)
  2295. {
  2296. struct snd_soc_dapm_widget *widget =
  2297. snd_soc_dapm_kcontrol_widget(kcontrol);
  2298. struct snd_soc_dapm_update *update = NULL;
  2299. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2300. ucontrol->value.integer.value[0]);
  2301. if (ucontrol->value.integer.value[0])
  2302. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2303. update);
  2304. else
  2305. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2306. update);
  2307. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2308. return 1;
  2309. }
  2310. static int msm_routing_get_quin_mi2s_switch_mixer(
  2311. struct snd_kcontrol *kcontrol,
  2312. struct snd_ctl_elem_value *ucontrol)
  2313. {
  2314. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2315. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2316. ucontrol->value.integer.value[0]);
  2317. return 0;
  2318. }
  2319. static int msm_routing_put_quin_mi2s_switch_mixer(
  2320. struct snd_kcontrol *kcontrol,
  2321. struct snd_ctl_elem_value *ucontrol)
  2322. {
  2323. struct snd_soc_dapm_widget *widget =
  2324. snd_soc_dapm_kcontrol_widget(kcontrol);
  2325. struct snd_soc_dapm_update *update = NULL;
  2326. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2327. ucontrol->value.integer.value[0]);
  2328. if (ucontrol->value.integer.value[0])
  2329. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2330. update);
  2331. else
  2332. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2333. update);
  2334. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2335. return 1;
  2336. }
  2337. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2338. struct snd_ctl_elem_value *ucontrol)
  2339. {
  2340. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2341. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2342. ucontrol->value.integer.value[0]);
  2343. return 0;
  2344. }
  2345. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2346. struct snd_ctl_elem_value *ucontrol)
  2347. {
  2348. struct snd_soc_dapm_widget *widget =
  2349. snd_soc_dapm_kcontrol_widget(kcontrol);
  2350. struct snd_soc_dapm_update *update = NULL;
  2351. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2352. ucontrol->value.integer.value[0]);
  2353. if (ucontrol->value.integer.value[0])
  2354. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2355. update);
  2356. else
  2357. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2358. update);
  2359. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2360. return 1;
  2361. }
  2362. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2363. struct snd_ctl_elem_value *ucontrol)
  2364. {
  2365. ucontrol->value.integer.value[0] = lsm_port_index;
  2366. return 0;
  2367. }
  2368. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2369. struct snd_ctl_elem_value *ucontrol)
  2370. {
  2371. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2372. int mux = ucontrol->value.enumerated.item[0];
  2373. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2374. if (mux >= e->items) {
  2375. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2376. return -EINVAL;
  2377. }
  2378. pr_debug("%s: LSM enable %ld\n", __func__,
  2379. ucontrol->value.integer.value[0]);
  2380. switch (ucontrol->value.integer.value[0]) {
  2381. case 1:
  2382. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2383. break;
  2384. case 2:
  2385. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2386. break;
  2387. case 3:
  2388. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2389. break;
  2390. case 4:
  2391. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2392. break;
  2393. case 5:
  2394. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2395. break;
  2396. case 6:
  2397. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2398. break;
  2399. case 7:
  2400. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2401. break;
  2402. case 8:
  2403. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2404. break;
  2405. case 9:
  2406. lsm_port = ADM_LSM_PORT_ID;
  2407. break;
  2408. case 10:
  2409. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2410. break;
  2411. case 11:
  2412. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2413. break;
  2414. case 12:
  2415. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2416. break;
  2417. case 13:
  2418. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2419. break;
  2420. case 14:
  2421. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2422. break;
  2423. default:
  2424. pr_err("Default lsm port");
  2425. break;
  2426. }
  2427. set_lsm_port(lsm_port);
  2428. lsm_port_index = ucontrol->value.integer.value[0];
  2429. return 0;
  2430. }
  2431. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2432. struct snd_ctl_elem_value *ucontrol)
  2433. {
  2434. int i;
  2435. u16 port_id;
  2436. enum afe_mad_type mad_type;
  2437. pr_debug("%s: enter\n", __func__);
  2438. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2439. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2440. strlen(lsm_port_text[i])))
  2441. break;
  2442. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2443. pr_warn("%s: Invalid id name %s\n", __func__,
  2444. kcontrol->id.name);
  2445. return -EINVAL;
  2446. }
  2447. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2448. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2449. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2450. strlen(lsm_port_text[7])))
  2451. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2452. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2453. strlen(lsm_port_text[8])))
  2454. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2455. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2456. strlen(lsm_port_text[10])))
  2457. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2458. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2459. strlen(lsm_port_text[13])))
  2460. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2461. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2462. strlen(lsm_port_text[14])))
  2463. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2464. mad_type = afe_port_get_mad_type(port_id);
  2465. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2466. mad_type);
  2467. switch (mad_type) {
  2468. case MAD_HW_NONE:
  2469. ucontrol->value.integer.value[0] = MADNONE;
  2470. break;
  2471. case MAD_HW_AUDIO:
  2472. ucontrol->value.integer.value[0] = MADAUDIO;
  2473. break;
  2474. case MAD_HW_BEACON:
  2475. ucontrol->value.integer.value[0] = MADBEACON;
  2476. break;
  2477. case MAD_HW_ULTRASOUND:
  2478. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2479. break;
  2480. case MAD_SW_AUDIO:
  2481. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2482. break;
  2483. default:
  2484. pr_warn("%s: Unknown\n", __func__);
  2485. return -EINVAL;
  2486. }
  2487. return 0;
  2488. }
  2489. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2490. struct snd_ctl_elem_value *ucontrol)
  2491. {
  2492. int i;
  2493. u16 port_id;
  2494. enum afe_mad_type mad_type;
  2495. pr_debug("%s: enter\n", __func__);
  2496. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2497. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2498. strlen(lsm_port_text[i])))
  2499. break;
  2500. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2501. pr_warn("%s: Invalid id name %s\n", __func__,
  2502. kcontrol->id.name);
  2503. return -EINVAL;
  2504. }
  2505. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2506. switch (ucontrol->value.integer.value[0]) {
  2507. case MADNONE:
  2508. mad_type = MAD_HW_NONE;
  2509. break;
  2510. case MADAUDIO:
  2511. mad_type = MAD_HW_AUDIO;
  2512. break;
  2513. case MADBEACON:
  2514. mad_type = MAD_HW_BEACON;
  2515. break;
  2516. case MADULTRASOUND:
  2517. mad_type = MAD_HW_ULTRASOUND;
  2518. break;
  2519. case MADSWAUDIO:
  2520. mad_type = MAD_SW_AUDIO;
  2521. break;
  2522. default:
  2523. pr_warn("%s: Unknown\n", __func__);
  2524. return -EINVAL;
  2525. }
  2526. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2527. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2528. strlen(lsm_port_text[7])))
  2529. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2530. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2531. strlen(lsm_port_text[8])))
  2532. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2533. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2534. strlen(lsm_port_text[10])))
  2535. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2536. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2537. strlen(lsm_port_text[13])))
  2538. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2539. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2540. strlen(lsm_port_text[14])))
  2541. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2542. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2543. mad_type);
  2544. return afe_port_set_mad_type(port_id, mad_type);
  2545. }
  2546. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2547. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2548. adm_override_chs_text);
  2549. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2550. {
  2551. int backend_id;
  2552. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2553. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2554. } else {
  2555. pr_err("%s: unsupported backend id: %s",
  2556. __func__, kcontrol->id.name);
  2557. return -EINVAL;
  2558. }
  2559. return backend_id;
  2560. }
  2561. static int msm_routing_adm_channel_config_get(
  2562. struct snd_kcontrol *kcontrol,
  2563. struct snd_ctl_elem_value *ucontrol)
  2564. {
  2565. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2566. if (backend_id >= 0) {
  2567. mutex_lock(&routing_lock);
  2568. ucontrol->value.integer.value[0] =
  2569. msm_bedais[backend_id].adm_override_ch;
  2570. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2571. ucontrol->value.integer.value[0], backend_id);
  2572. mutex_unlock(&routing_lock);
  2573. }
  2574. return 0;
  2575. }
  2576. static int msm_routing_adm_channel_config_put(
  2577. struct snd_kcontrol *kcontrol,
  2578. struct snd_ctl_elem_value *ucontrol)
  2579. {
  2580. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2581. if (backend_id >= 0) {
  2582. mutex_lock(&routing_lock);
  2583. msm_bedais[backend_id].adm_override_ch =
  2584. ucontrol->value.integer.value[0];
  2585. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2586. __func__, backend_id,
  2587. msm_bedais[backend_id].adm_override_ch);
  2588. mutex_unlock(&routing_lock);
  2589. }
  2590. return 0;
  2591. }
  2592. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2593. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2594. msm_routing_adm_channel_config_get,
  2595. msm_routing_adm_channel_config_put),
  2596. };
  2597. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2598. struct snd_ctl_elem_value *ucontrol)
  2599. {
  2600. mutex_lock(&routing_lock);
  2601. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2602. mutex_unlock(&routing_lock);
  2603. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2604. ucontrol->value.integer.value[0]);
  2605. return 0;
  2606. };
  2607. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2608. struct snd_ctl_elem_value *ucontrol)
  2609. {
  2610. struct aanc_data aanc_info;
  2611. mutex_lock(&routing_lock);
  2612. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2613. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2614. ucontrol->value.integer.value[0]);
  2615. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2616. if (ucontrol->value.integer.value[0] == 0) {
  2617. aanc_info.aanc_active = false;
  2618. aanc_info.aanc_tx_port = 0;
  2619. aanc_info.aanc_rx_port = 0;
  2620. } else {
  2621. aanc_info.aanc_active = true;
  2622. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2623. aanc_info.aanc_tx_port =
  2624. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2625. }
  2626. afe_set_aanc_info(&aanc_info);
  2627. mutex_unlock(&routing_lock);
  2628. return 0;
  2629. };
  2630. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2631. struct snd_ctl_elem_value *ucontrol)
  2632. {
  2633. int idx = 0, shift = 0;
  2634. struct soc_mixer_control *mc =
  2635. (struct soc_mixer_control *)kcontrol->private_value;
  2636. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2637. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2638. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2639. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2640. return -EINVAL;
  2641. }
  2642. if (test_bit(shift,
  2643. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2644. ucontrol->value.integer.value[0] = 1;
  2645. else
  2646. ucontrol->value.integer.value[0] = 0;
  2647. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2648. ucontrol->value.integer.value[0]);
  2649. return 0;
  2650. }
  2651. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2652. struct snd_ctl_elem_value *ucontrol)
  2653. {
  2654. int idx = 0, shift = 0;
  2655. struct soc_mixer_control *mc =
  2656. (struct soc_mixer_control *)kcontrol->private_value;
  2657. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2658. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2659. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2660. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2661. return -EINVAL;
  2662. }
  2663. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2664. __func__, mc->shift, mc->rshift,
  2665. ucontrol->value.integer.value[0], idx, shift);
  2666. if (ucontrol->value.integer.value[0]) {
  2667. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2668. msm_bedais[mc->rshift].port_id);
  2669. set_bit(shift,
  2670. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2671. } else {
  2672. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2673. msm_bedais[mc->rshift].port_id);
  2674. clear_bit(shift,
  2675. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2676. }
  2677. return 1;
  2678. }
  2679. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2680. struct snd_ctl_elem_value *ucontrol)
  2681. {
  2682. u16 fe_id = 0;
  2683. fe_id = ((struct soc_mixer_control *)
  2684. kcontrol->private_value)->shift;
  2685. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2686. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2687. return -EINVAL;
  2688. }
  2689. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2690. return 0;
  2691. }
  2692. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2693. struct snd_ctl_elem_value *ucontrol)
  2694. {
  2695. u16 fe_id = 0;
  2696. fe_id = ((struct soc_mixer_control *)
  2697. kcontrol->private_value)->shift;
  2698. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2699. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2700. return -EINVAL;
  2701. }
  2702. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2703. return 1;
  2704. }
  2705. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2706. struct snd_ctl_elem_value *ucontrol)
  2707. {
  2708. u16 fe_id = 0;
  2709. fe_id = ((struct soc_multi_mixer_control *)
  2710. kcontrol->private_value)->shift;
  2711. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2712. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2713. return -EINVAL;
  2714. }
  2715. ucontrol->value.integer.value[0] =
  2716. channel_mixer[fe_id].output_channel;
  2717. return 0;
  2718. }
  2719. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2720. struct snd_ctl_elem_value *ucontrol)
  2721. {
  2722. u16 fe_id = 0;
  2723. fe_id = ((struct soc_multi_mixer_control *)
  2724. kcontrol->private_value)->shift;
  2725. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2726. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2727. return -EINVAL;
  2728. }
  2729. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2730. fe_id,
  2731. (unsigned int)(ucontrol->value.integer.value[0]));
  2732. channel_mixer[fe_id].output_channel =
  2733. (unsigned int)(ucontrol->value.integer.value[0]);
  2734. return 1;
  2735. }
  2736. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2737. /* If new backend is added, need update this array */
  2738. static const char *const be_name[] = {
  2739. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2740. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2741. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2742. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2743. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2744. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2745. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2746. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2747. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2748. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2749. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2750. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2751. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2752. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2753. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2754. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2755. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2756. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2757. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2758. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2759. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2760. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2761. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2762. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2763. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2764. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2765. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2766. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2767. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2768. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2769. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2770. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2771. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2772. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2773. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2774. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2775. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2776. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2777. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2778. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2779. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2780. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2781. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1",
  2782. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2783. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2784. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2785. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2786. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2787. };
  2788. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2789. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2790. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2791. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2792. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2793. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2794. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2795. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2796. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2797. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2798. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2799. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2800. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2801. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2802. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2803. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2804. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2805. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2806. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2807. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2808. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2809. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2810. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2811. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2812. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2813. unsigned int channels,
  2814. unsigned int items, const char *const names[])
  2815. {
  2816. if (uinfo->value.enumerated.item >= items)
  2817. uinfo->value.enumerated.item = items - 1;
  2818. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2819. sizeof(uinfo->value.enumerated.name),
  2820. "ALSA: too long item name '%s'\n",
  2821. names[uinfo->value.enumerated.item]);
  2822. strlcpy(uinfo->value.enumerated.name,
  2823. names[uinfo->value.enumerated.item],
  2824. sizeof(uinfo->value.enumerated.name));
  2825. return 0;
  2826. }
  2827. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2828. struct snd_ctl_elem_info *uinfo)
  2829. {
  2830. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2831. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2832. uinfo->count = 1;
  2833. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2834. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2835. return 0;
  2836. }
  2837. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2838. struct snd_ctl_elem_value *ucontrol)
  2839. {
  2840. u16 fe_id = 0;
  2841. fe_id = ((struct soc_enum *)
  2842. kcontrol->private_value)->shift_l;
  2843. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2844. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2845. return -EINVAL;
  2846. }
  2847. pr_debug("%s: FE %d %s\n", __func__,
  2848. fe_id,
  2849. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2850. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2851. return 0;
  2852. }
  2853. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2854. struct snd_ctl_elem_value *ucontrol)
  2855. {
  2856. u16 fe_id = 0;
  2857. fe_id = ((struct soc_enum *)
  2858. kcontrol->private_value)->shift_l;
  2859. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2860. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2861. return -EINVAL;
  2862. }
  2863. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2864. pr_debug("%s: %s FE %d\n", __func__,
  2865. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2866. fe_id);
  2867. return 0;
  2868. }
  2869. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2870. struct snd_ctl_elem_info *uinfo)
  2871. {
  2872. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2873. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2874. uinfo->count = 1;
  2875. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2876. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2877. return 0;
  2878. }
  2879. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2880. struct snd_ctl_elem_value *ucontrol)
  2881. {
  2882. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2883. u16 fe_id = 0, in_ch = 0;
  2884. fe_id = e->shift_l;
  2885. in_ch = e->shift_r;
  2886. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2887. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2888. return -EINVAL;
  2889. }
  2890. if (in_ch >= ADM_MAX_CHANNELS) {
  2891. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2892. return -EINVAL;
  2893. }
  2894. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2895. return 1;
  2896. }
  2897. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2898. struct snd_ctl_elem_value *ucontrol)
  2899. {
  2900. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2901. u16 fe_id = 0, in_ch = 0;
  2902. fe_id = e->shift_l;
  2903. in_ch = e->shift_r;
  2904. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2905. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2906. return -EINVAL;
  2907. }
  2908. if (in_ch >= ADM_MAX_CHANNELS) {
  2909. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2910. return -EINVAL;
  2911. }
  2912. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2913. return 1;
  2914. }
  2915. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2916. struct snd_ctl_elem_info *uinfo)
  2917. {
  2918. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2919. uinfo->count = ADM_MAX_CHANNELS;
  2920. uinfo->value.integer.min = 0;
  2921. uinfo->value.integer.max = WEIGHT_0_DB;
  2922. return 0;
  2923. }
  2924. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2925. struct snd_ctl_elem_value *ucontrol)
  2926. {
  2927. u16 fe_id = 0, out_ch = 0;
  2928. int i, weight;
  2929. fe_id = ((struct soc_multi_mixer_control *)
  2930. kcontrol->private_value)->shift;
  2931. out_ch = ((struct soc_multi_mixer_control *)
  2932. kcontrol->private_value)->rshift;
  2933. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2934. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2935. return -EINVAL;
  2936. }
  2937. if (out_ch >= ADM_MAX_CHANNELS) {
  2938. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2939. return -EINVAL;
  2940. }
  2941. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2942. __func__, fe_id,
  2943. ucontrol->value.integer.value[0],
  2944. ucontrol->value.integer.value[1],
  2945. ucontrol->value.integer.value[2],
  2946. ucontrol->value.integer.value[3],
  2947. ucontrol->value.integer.value[4],
  2948. ucontrol->value.integer.value[5],
  2949. ucontrol->value.integer.value[6],
  2950. ucontrol->value.integer.value[7]);
  2951. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2952. weight = ucontrol->value.integer.value[i];
  2953. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2954. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2955. __func__, fe_id, out_ch, i,
  2956. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2957. }
  2958. return 0;
  2959. }
  2960. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2961. struct snd_ctl_elem_value *ucontrol)
  2962. {
  2963. u16 fe_id = 0, out_ch = 0;
  2964. int i;
  2965. fe_id = ((struct soc_multi_mixer_control *)
  2966. kcontrol->private_value)->shift;
  2967. out_ch = ((struct soc_multi_mixer_control *)
  2968. kcontrol->private_value)->rshift;
  2969. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2970. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2971. return -EINVAL;
  2972. }
  2973. if (out_ch >= ADM_MAX_CHANNELS) {
  2974. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2975. return -EINVAL;
  2976. }
  2977. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2978. ucontrol->value.integer.value[i] =
  2979. channel_mixer[fe_id].channel_weight[out_ch][i];
  2980. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2981. __func__, fe_id,
  2982. ucontrol->value.integer.value[0],
  2983. ucontrol->value.integer.value[1],
  2984. ucontrol->value.integer.value[2],
  2985. ucontrol->value.integer.value[3],
  2986. ucontrol->value.integer.value[4],
  2987. ucontrol->value.integer.value[5],
  2988. ucontrol->value.integer.value[6],
  2989. ucontrol->value.integer.value[7]);
  2990. return 0;
  2991. }
  2992. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2993. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2994. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2995. msm_pcm_get_channel_rule_index,
  2996. msm_pcm_put_channel_rule_index),
  2997. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2998. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2999. msm_pcm_get_channel_rule_index,
  3000. msm_pcm_put_channel_rule_index),
  3001. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3002. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3003. msm_pcm_get_channel_rule_index,
  3004. msm_pcm_put_channel_rule_index),
  3005. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3006. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3007. msm_pcm_get_channel_rule_index,
  3008. msm_pcm_put_channel_rule_index),
  3009. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3010. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3011. msm_pcm_get_channel_rule_index,
  3012. msm_pcm_put_channel_rule_index),
  3013. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3014. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3015. msm_pcm_get_channel_rule_index,
  3016. msm_pcm_put_channel_rule_index),
  3017. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3018. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3019. msm_pcm_get_out_chs,
  3020. msm_pcm_put_out_chs),
  3021. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3022. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3023. msm_pcm_get_out_chs,
  3024. msm_pcm_put_out_chs),
  3025. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3026. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3027. msm_pcm_get_out_chs,
  3028. msm_pcm_put_out_chs),
  3029. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3030. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3031. msm_pcm_get_out_chs,
  3032. msm_pcm_put_out_chs),
  3033. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3034. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3035. msm_pcm_get_out_chs,
  3036. msm_pcm_put_out_chs),
  3037. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3038. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3039. msm_pcm_get_out_chs,
  3040. msm_pcm_put_out_chs),
  3041. {
  3042. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3044. .name = "MultiMedia1 Channel Mixer",
  3045. .info = msm_pcm_channel_mixer_info,
  3046. .get = msm_pcm_channel_mixer_get,
  3047. .put = msm_pcm_channel_mixer_put,
  3048. .private_value = (unsigned long)&(mm1_channel_mux)
  3049. },
  3050. {
  3051. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3052. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3053. .name = "MultiMedia2 Channel Mixer",
  3054. .info = msm_pcm_channel_mixer_info,
  3055. .get = msm_pcm_channel_mixer_get,
  3056. .put = msm_pcm_channel_mixer_put,
  3057. .private_value = (unsigned long)&(mm2_channel_mux)
  3058. },
  3059. {
  3060. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3061. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3062. .name = "MultiMedia3 Channel Mixer",
  3063. .info = msm_pcm_channel_mixer_info,
  3064. .get = msm_pcm_channel_mixer_get,
  3065. .put = msm_pcm_channel_mixer_put,
  3066. .private_value = (unsigned long)&(mm3_channel_mux)
  3067. },
  3068. {
  3069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3071. .name = "MultiMedia4 Channel Mixer",
  3072. .info = msm_pcm_channel_mixer_info,
  3073. .get = msm_pcm_channel_mixer_get,
  3074. .put = msm_pcm_channel_mixer_put,
  3075. .private_value = (unsigned long)&(mm4_channel_mux)
  3076. },
  3077. {
  3078. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3079. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3080. .name = "MultiMedia1 Output Channel1",
  3081. .info = msm_pcm_channel_weight_info,
  3082. .get = msm_pcm_channel_weight_get,
  3083. .put = msm_pcm_channel_weight_put,
  3084. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3085. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3086. },
  3087. {
  3088. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3089. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3090. .name = "MultiMedia1 Output Channel2",
  3091. .info = msm_pcm_channel_weight_info,
  3092. .get = msm_pcm_channel_weight_get,
  3093. .put = msm_pcm_channel_weight_put,
  3094. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3095. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3096. },
  3097. {
  3098. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3099. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3100. .name = "MultiMedia1 Output Channel3",
  3101. .info = msm_pcm_channel_weight_info,
  3102. .get = msm_pcm_channel_weight_get,
  3103. .put = msm_pcm_channel_weight_put,
  3104. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3105. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3106. },
  3107. {
  3108. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3109. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3110. .name = "MultiMedia1 Output Channel4",
  3111. .info = msm_pcm_channel_weight_info,
  3112. .get = msm_pcm_channel_weight_get,
  3113. .put = msm_pcm_channel_weight_put,
  3114. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3115. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3116. },
  3117. {
  3118. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3119. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3120. .name = "MultiMedia1 Output Channel5",
  3121. .info = msm_pcm_channel_weight_info,
  3122. .get = msm_pcm_channel_weight_get,
  3123. .put = msm_pcm_channel_weight_put,
  3124. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3125. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3126. },
  3127. {
  3128. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3129. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3130. .name = "MultiMedia1 Output Channel6",
  3131. .info = msm_pcm_channel_weight_info,
  3132. .get = msm_pcm_channel_weight_get,
  3133. .put = msm_pcm_channel_weight_put,
  3134. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3135. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3136. },
  3137. {
  3138. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3139. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3140. .name = "MultiMedia1 Output Channel7",
  3141. .info = msm_pcm_channel_weight_info,
  3142. .get = msm_pcm_channel_weight_get,
  3143. .put = msm_pcm_channel_weight_put,
  3144. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3145. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3146. },
  3147. {
  3148. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3149. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3150. .name = "MultiMedia1 Output Channel8",
  3151. .info = msm_pcm_channel_weight_info,
  3152. .get = msm_pcm_channel_weight_get,
  3153. .put = msm_pcm_channel_weight_put,
  3154. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3155. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3156. },
  3157. {
  3158. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3159. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3160. .name = "MultiMedia2 Output Channel1",
  3161. .info = msm_pcm_channel_weight_info,
  3162. .get = msm_pcm_channel_weight_get,
  3163. .put = msm_pcm_channel_weight_put,
  3164. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3165. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3166. },
  3167. {
  3168. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3169. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3170. .name = "MultiMedia2 Output Channel2",
  3171. .info = msm_pcm_channel_weight_info,
  3172. .get = msm_pcm_channel_weight_get,
  3173. .put = msm_pcm_channel_weight_put,
  3174. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3175. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3176. },
  3177. {
  3178. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3179. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3180. .name = "MultiMedia2 Output Channel3",
  3181. .info = msm_pcm_channel_weight_info,
  3182. .get = msm_pcm_channel_weight_get,
  3183. .put = msm_pcm_channel_weight_put,
  3184. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3185. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3186. },
  3187. {
  3188. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3189. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3190. .name = "MultiMedia3 Output Channel1",
  3191. .info = msm_pcm_channel_weight_info,
  3192. .get = msm_pcm_channel_weight_get,
  3193. .put = msm_pcm_channel_weight_put,
  3194. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3195. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3196. },
  3197. {
  3198. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3199. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3200. .name = "MultiMedia3 Output Channel2",
  3201. .info = msm_pcm_channel_weight_info,
  3202. .get = msm_pcm_channel_weight_get,
  3203. .put = msm_pcm_channel_weight_put,
  3204. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3205. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3206. },
  3207. {
  3208. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3209. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3210. .name = "MultiMedia1 Channel1",
  3211. .info = msm_pcm_channel_input_be_info,
  3212. .get = msm_pcm_channel_input_be_get,
  3213. .put = msm_pcm_channel_input_be_put,
  3214. .private_value = (unsigned long)&(mm1_ch1_enum)
  3215. },
  3216. {
  3217. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3218. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3219. .name = "MultiMedia1 Channel2",
  3220. .info = msm_pcm_channel_input_be_info,
  3221. .get = msm_pcm_channel_input_be_get,
  3222. .put = msm_pcm_channel_input_be_put,
  3223. .private_value = (unsigned long)&(mm1_ch2_enum)
  3224. },
  3225. {
  3226. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3227. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3228. .name = "MultiMedia1 Channel3",
  3229. .info = msm_pcm_channel_input_be_info,
  3230. .get = msm_pcm_channel_input_be_get,
  3231. .put = msm_pcm_channel_input_be_put,
  3232. .private_value = (unsigned long)&(mm1_ch3_enum)
  3233. },
  3234. {
  3235. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3236. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3237. .name = "MultiMedia1 Channel4",
  3238. .info = msm_pcm_channel_input_be_info,
  3239. .get = msm_pcm_channel_input_be_get,
  3240. .put = msm_pcm_channel_input_be_put,
  3241. .private_value = (unsigned long)&(mm1_ch4_enum)
  3242. },
  3243. {
  3244. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3245. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3246. .name = "MultiMedia1 Channel5",
  3247. .info = msm_pcm_channel_input_be_info,
  3248. .get = msm_pcm_channel_input_be_get,
  3249. .put = msm_pcm_channel_input_be_put,
  3250. .private_value = (unsigned long)&(mm1_ch5_enum)
  3251. },
  3252. {
  3253. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3254. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3255. .name = "MultiMedia1 Channel6",
  3256. .info = msm_pcm_channel_input_be_info,
  3257. .get = msm_pcm_channel_input_be_get,
  3258. .put = msm_pcm_channel_input_be_put,
  3259. .private_value = (unsigned long)&(mm1_ch6_enum)
  3260. },
  3261. {
  3262. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3263. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3264. .name = "MultiMedia1 Channel7",
  3265. .info = msm_pcm_channel_input_be_info,
  3266. .get = msm_pcm_channel_input_be_get,
  3267. .put = msm_pcm_channel_input_be_put,
  3268. .private_value = (unsigned long)&(mm1_ch7_enum)
  3269. },
  3270. {
  3271. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3272. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3273. .name = "MultiMedia1 Channel8",
  3274. .info = msm_pcm_channel_input_be_info,
  3275. .get = msm_pcm_channel_input_be_get,
  3276. .put = msm_pcm_channel_input_be_put,
  3277. .private_value = (unsigned long)&(mm1_ch8_enum)
  3278. },
  3279. };
  3280. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3281. struct snd_ctl_elem_value *ucontrol)
  3282. {
  3283. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3284. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3285. ucontrol->value.integer.value[0]);
  3286. return 0;
  3287. }
  3288. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3289. struct snd_ctl_elem_value *ucontrol)
  3290. {
  3291. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3292. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3293. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3294. return 0;
  3295. }
  3296. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3297. "Four", "Five", "Six", "Seven", "Eight"};
  3298. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3299. struct snd_ctl_elem_value *ucontrol)
  3300. {
  3301. switch (msm_ec_ref_bit_format) {
  3302. case SNDRV_PCM_FORMAT_S24_LE:
  3303. ucontrol->value.integer.value[0] = 2;
  3304. break;
  3305. case SNDRV_PCM_FORMAT_S16_LE:
  3306. ucontrol->value.integer.value[0] = 1;
  3307. break;
  3308. default:
  3309. ucontrol->value.integer.value[0] = 0;
  3310. break;
  3311. }
  3312. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3313. __func__, ucontrol->value.integer.value[0]);
  3314. return 0;
  3315. }
  3316. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3317. struct snd_ctl_elem_value *ucontrol)
  3318. {
  3319. u16 bit_width = 0;
  3320. switch (ucontrol->value.integer.value[0]) {
  3321. case 2:
  3322. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3323. break;
  3324. case 1:
  3325. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3326. break;
  3327. default:
  3328. msm_ec_ref_bit_format = 0;
  3329. break;
  3330. }
  3331. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3332. bit_width = 16;
  3333. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3334. bit_width = 24;
  3335. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3336. __func__, msm_ec_ref_bit_format);
  3337. adm_ec_ref_rx_bit_width(bit_width);
  3338. return 0;
  3339. }
  3340. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3341. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3342. struct snd_ctl_elem_value *ucontrol)
  3343. {
  3344. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3345. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3346. __func__, ucontrol->value.integer.value[0]);
  3347. return 0;
  3348. }
  3349. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3350. struct snd_ctl_elem_value *ucontrol)
  3351. {
  3352. switch (ucontrol->value.integer.value[0]) {
  3353. case 0:
  3354. msm_ec_ref_sampling_rate = 0;
  3355. break;
  3356. case 1:
  3357. msm_ec_ref_sampling_rate = 8000;
  3358. break;
  3359. case 2:
  3360. msm_ec_ref_sampling_rate = 16000;
  3361. break;
  3362. case 3:
  3363. msm_ec_ref_sampling_rate = 32000;
  3364. break;
  3365. case 4:
  3366. msm_ec_ref_sampling_rate = 44100;
  3367. break;
  3368. case 5:
  3369. msm_ec_ref_sampling_rate = 48000;
  3370. break;
  3371. case 6:
  3372. msm_ec_ref_sampling_rate = 96000;
  3373. break;
  3374. case 7:
  3375. msm_ec_ref_sampling_rate = 192000;
  3376. break;
  3377. case 8:
  3378. msm_ec_ref_sampling_rate = 384000;
  3379. break;
  3380. default:
  3381. msm_ec_ref_sampling_rate = 48000;
  3382. break;
  3383. }
  3384. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3385. __func__, msm_ec_ref_sampling_rate);
  3386. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3387. return 0;
  3388. }
  3389. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3390. "32000", "44100", "48000", "96000", "192000", "384000"};
  3391. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3392. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3393. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3394. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3395. };
  3396. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3397. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3398. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3399. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3400. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3401. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3402. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3403. };
  3404. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3405. struct snd_ctl_elem_value *ucontrol)
  3406. {
  3407. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3408. mutex_lock(&routing_lock);
  3409. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3410. mutex_unlock(&routing_lock);
  3411. return 0;
  3412. }
  3413. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3414. struct snd_ctl_elem_value *ucontrol)
  3415. {
  3416. int ec_ref_port_id;
  3417. struct snd_soc_dapm_widget *widget =
  3418. snd_soc_dapm_kcontrol_widget(kcontrol);
  3419. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3420. struct snd_soc_dapm_update *update = NULL;
  3421. mutex_lock(&routing_lock);
  3422. switch (ucontrol->value.integer.value[0]) {
  3423. case 0:
  3424. msm_route_ec_ref_rx = 0;
  3425. ec_ref_port_id = AFE_PORT_INVALID;
  3426. break;
  3427. case 1:
  3428. msm_route_ec_ref_rx = 1;
  3429. ec_ref_port_id = SLIMBUS_0_RX;
  3430. break;
  3431. case 2:
  3432. msm_route_ec_ref_rx = 2;
  3433. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3434. break;
  3435. case 3:
  3436. msm_route_ec_ref_rx = 3;
  3437. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3438. break;
  3439. case 4:
  3440. msm_route_ec_ref_rx = 4;
  3441. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3442. break;
  3443. case 5:
  3444. msm_route_ec_ref_rx = 5;
  3445. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3446. break;
  3447. case 6:
  3448. msm_route_ec_ref_rx = 6;
  3449. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3450. break;
  3451. case 7:
  3452. msm_route_ec_ref_rx = 7;
  3453. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3454. break;
  3455. case 9:
  3456. msm_route_ec_ref_rx = 9;
  3457. ec_ref_port_id = SLIMBUS_5_RX;
  3458. break;
  3459. case 10:
  3460. msm_route_ec_ref_rx = 10;
  3461. ec_ref_port_id = SLIMBUS_1_TX;
  3462. break;
  3463. case 11:
  3464. msm_route_ec_ref_rx = 11;
  3465. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3466. break;
  3467. case 12:
  3468. msm_route_ec_ref_rx = 12;
  3469. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3470. break;
  3471. case 13:
  3472. msm_route_ec_ref_rx = 13;
  3473. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3474. break;
  3475. case 14:
  3476. msm_route_ec_ref_rx = 14;
  3477. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3478. break;
  3479. case 15:
  3480. msm_route_ec_ref_rx = 15;
  3481. ec_ref_port_id = SLIMBUS_6_RX;
  3482. break;
  3483. case 16:
  3484. msm_route_ec_ref_rx = 16;
  3485. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3486. break;
  3487. case 17:
  3488. msm_route_ec_ref_rx = 17;
  3489. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3490. break;
  3491. case 18:
  3492. msm_route_ec_ref_rx = 18;
  3493. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3494. break;
  3495. case 19:
  3496. msm_route_ec_ref_rx = 19;
  3497. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3498. break;
  3499. case 20:
  3500. msm_route_ec_ref_rx = 20;
  3501. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3502. break;
  3503. case 21:
  3504. msm_route_ec_ref_rx = 21;
  3505. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3506. break;
  3507. case 22:
  3508. msm_route_ec_ref_rx = 22;
  3509. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3510. break;
  3511. case 23:
  3512. msm_route_ec_ref_rx = 23;
  3513. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3514. break;
  3515. case 24:
  3516. msm_route_ec_ref_rx = 24;
  3517. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3518. break;
  3519. case 25:
  3520. msm_route_ec_ref_rx = 25;
  3521. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3522. break;
  3523. case 26:
  3524. msm_route_ec_ref_rx = 26;
  3525. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3526. break;
  3527. case 27:
  3528. msm_route_ec_ref_rx = 27;
  3529. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3530. break;
  3531. case 28:
  3532. msm_route_ec_ref_rx = 28;
  3533. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3534. break;
  3535. case 29:
  3536. msm_route_ec_ref_rx = 29;
  3537. ec_ref_port_id = SLIMBUS_7_RX;
  3538. break;
  3539. case 30:
  3540. msm_route_ec_ref_rx = 30;
  3541. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3542. break;
  3543. case 31:
  3544. msm_route_ec_ref_rx = 31;
  3545. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3546. break;
  3547. case 32:
  3548. msm_route_ec_ref_rx = 32;
  3549. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3550. break;
  3551. case 33:
  3552. msm_route_ec_ref_rx = 33;
  3553. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3554. break;
  3555. case 34:
  3556. msm_route_ec_ref_rx = 34;
  3557. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3558. break;
  3559. case 35:
  3560. msm_route_ec_ref_rx = 35;
  3561. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  3562. break;
  3563. case 36:
  3564. msm_route_ec_ref_rx = 36;
  3565. ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3566. break;
  3567. default:
  3568. msm_route_ec_ref_rx = 0; /* NONE */
  3569. pr_err("%s EC ref rx %ld not valid\n",
  3570. __func__, ucontrol->value.integer.value[0]);
  3571. ec_ref_port_id = AFE_PORT_INVALID;
  3572. break;
  3573. }
  3574. adm_ec_ref_rx_id(ec_ref_port_id);
  3575. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3576. __func__, msm_route_ec_ref_rx);
  3577. mutex_unlock(&routing_lock);
  3578. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3579. msm_route_ec_ref_rx, e, update);
  3580. return 0;
  3581. }
  3582. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3583. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3584. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3585. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3586. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3587. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3588. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3589. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3590. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3591. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3592. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  3593. };
  3594. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3595. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3596. };
  3597. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3598. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3599. msm_route_ec_ref_rx_enum[0],
  3600. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3601. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3602. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3603. msm_route_ec_ref_rx_enum[0],
  3604. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3605. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3606. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3607. msm_route_ec_ref_rx_enum[0],
  3608. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3609. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3610. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3611. msm_route_ec_ref_rx_enum[0],
  3612. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3613. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3614. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3615. msm_route_ec_ref_rx_enum[0],
  3616. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3617. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3618. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3619. msm_route_ec_ref_rx_enum[0],
  3620. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3621. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3622. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3623. msm_route_ec_ref_rx_enum[0],
  3624. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3625. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3626. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3627. msm_route_ec_ref_rx_enum[0],
  3628. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3629. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3630. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3631. msm_route_ec_ref_rx_enum[0],
  3632. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3633. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3634. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3635. msm_route_ec_ref_rx_enum[0],
  3636. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3637. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3638. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3639. msm_route_ec_ref_rx_enum[0],
  3640. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3641. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3642. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3643. msm_route_ec_ref_rx_enum[0],
  3644. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3645. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3646. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3647. msm_route_ec_ref_rx_enum[0],
  3648. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3649. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3650. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3651. msm_route_ec_ref_rx_enum[0],
  3652. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3653. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3654. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3655. msm_route_ec_ref_rx_enum[0],
  3656. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3657. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3658. struct snd_ctl_elem_value *ucontrol)
  3659. {
  3660. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3661. mutex_lock(&routing_lock);
  3662. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3663. mutex_unlock(&routing_lock);
  3664. return 0;
  3665. }
  3666. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3667. struct snd_ctl_elem_value *ucontrol)
  3668. {
  3669. struct snd_soc_dapm_widget *widget =
  3670. snd_soc_dapm_kcontrol_widget(kcontrol);
  3671. int mux = ucontrol->value.enumerated.item[0];
  3672. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3673. int ret = 1;
  3674. bool state = true;
  3675. uint16_t ext_ec_ref_port_id;
  3676. struct snd_soc_dapm_update *update = NULL;
  3677. if (mux >= e->items) {
  3678. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3679. return -EINVAL;
  3680. }
  3681. mutex_lock(&routing_lock);
  3682. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3683. switch (msm_route_ext_ec_ref) {
  3684. case EXT_EC_REF_PRI_MI2S_TX:
  3685. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3686. break;
  3687. case EXT_EC_REF_SEC_MI2S_TX:
  3688. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3689. break;
  3690. case EXT_EC_REF_TERT_MI2S_TX:
  3691. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3692. break;
  3693. case EXT_EC_REF_QUAT_MI2S_TX:
  3694. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3695. break;
  3696. case EXT_EC_REF_QUIN_MI2S_TX:
  3697. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3698. break;
  3699. case EXT_EC_REF_SLIM_1_TX:
  3700. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3701. break;
  3702. case EXT_EC_REF_SEC_TDM_TX:
  3703. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3704. break;
  3705. case EXT_EC_REF_NONE:
  3706. default:
  3707. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3708. state = false;
  3709. break;
  3710. }
  3711. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3712. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3713. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3714. mutex_unlock(&routing_lock);
  3715. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3716. update);
  3717. } else {
  3718. ret = -EINVAL;
  3719. mutex_unlock(&routing_lock);
  3720. }
  3721. return ret;
  3722. }
  3723. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3724. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3725. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3726. "SLIM_1_TX", "SEC_TDM_TX"};
  3727. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3728. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3729. };
  3730. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3731. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3732. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3733. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3734. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3735. MSM_BACKEND_DAI_PRI_I2S_RX,
  3736. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3737. msm_routing_put_audio_mixer),
  3738. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3739. MSM_BACKEND_DAI_PRI_I2S_RX,
  3740. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3741. msm_routing_put_audio_mixer),
  3742. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3743. MSM_BACKEND_DAI_PRI_I2S_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3747. MSM_BACKEND_DAI_PRI_I2S_RX,
  3748. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3749. msm_routing_put_audio_mixer),
  3750. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3751. MSM_BACKEND_DAI_PRI_I2S_RX,
  3752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3753. msm_routing_put_audio_mixer),
  3754. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3755. MSM_BACKEND_DAI_PRI_I2S_RX,
  3756. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3757. msm_routing_put_audio_mixer),
  3758. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3759. MSM_BACKEND_DAI_PRI_I2S_RX,
  3760. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3761. msm_routing_put_audio_mixer),
  3762. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3763. MSM_BACKEND_DAI_PRI_I2S_RX,
  3764. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3765. msm_routing_put_audio_mixer),
  3766. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3767. MSM_BACKEND_DAI_PRI_I2S_RX,
  3768. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3769. msm_routing_put_audio_mixer),
  3770. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3771. MSM_BACKEND_DAI_PRI_I2S_RX,
  3772. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3773. msm_routing_put_audio_mixer),
  3774. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3775. MSM_BACKEND_DAI_PRI_I2S_RX,
  3776. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3777. msm_routing_put_audio_mixer),
  3778. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3779. MSM_BACKEND_DAI_PRI_I2S_RX,
  3780. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3781. msm_routing_put_audio_mixer),
  3782. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3783. MSM_BACKEND_DAI_PRI_I2S_RX,
  3784. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3785. msm_routing_put_audio_mixer),
  3786. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3787. MSM_BACKEND_DAI_PRI_I2S_RX,
  3788. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3789. msm_routing_put_audio_mixer),
  3790. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3791. MSM_BACKEND_DAI_PRI_I2S_RX,
  3792. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3793. msm_routing_put_audio_mixer),
  3794. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3795. MSM_BACKEND_DAI_PRI_I2S_RX,
  3796. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3797. msm_routing_put_audio_mixer),
  3798. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3799. MSM_BACKEND_DAI_PRI_I2S_RX,
  3800. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3801. msm_routing_put_audio_mixer),
  3802. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3803. MSM_BACKEND_DAI_PRI_I2S_RX,
  3804. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3805. msm_routing_put_audio_mixer),
  3806. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3807. MSM_BACKEND_DAI_PRI_I2S_RX,
  3808. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3809. msm_routing_put_audio_mixer),
  3810. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3811. MSM_BACKEND_DAI_PRI_I2S_RX,
  3812. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3813. msm_routing_put_audio_mixer),
  3814. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3815. MSM_BACKEND_DAI_PRI_I2S_RX,
  3816. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3817. msm_routing_put_audio_mixer),
  3818. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3819. MSM_BACKEND_DAI_PRI_I2S_RX,
  3820. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3821. msm_routing_put_audio_mixer),
  3822. };
  3823. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3824. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3825. MSM_BACKEND_DAI_SEC_I2S_RX,
  3826. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3827. msm_routing_put_audio_mixer),
  3828. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3829. MSM_BACKEND_DAI_SEC_I2S_RX,
  3830. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3831. msm_routing_put_audio_mixer),
  3832. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3833. MSM_BACKEND_DAI_SEC_I2S_RX,
  3834. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3835. msm_routing_put_audio_mixer),
  3836. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3837. MSM_BACKEND_DAI_SEC_I2S_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3841. MSM_BACKEND_DAI_SEC_I2S_RX,
  3842. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3843. msm_routing_put_audio_mixer),
  3844. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3845. MSM_BACKEND_DAI_SEC_I2S_RX,
  3846. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3847. msm_routing_put_audio_mixer),
  3848. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3849. MSM_BACKEND_DAI_SEC_I2S_RX,
  3850. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3851. msm_routing_put_audio_mixer),
  3852. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3853. MSM_BACKEND_DAI_SEC_I2S_RX,
  3854. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3855. msm_routing_put_audio_mixer),
  3856. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3857. MSM_BACKEND_DAI_SEC_I2S_RX,
  3858. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3859. msm_routing_put_audio_mixer),
  3860. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3861. MSM_BACKEND_DAI_SEC_I2S_RX,
  3862. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3863. msm_routing_put_audio_mixer),
  3864. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3865. MSM_BACKEND_DAI_SEC_I2S_RX,
  3866. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3867. msm_routing_put_audio_mixer),
  3868. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3869. MSM_BACKEND_DAI_SEC_I2S_RX,
  3870. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3871. msm_routing_put_audio_mixer),
  3872. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3873. MSM_BACKEND_DAI_SEC_I2S_RX,
  3874. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3875. msm_routing_put_audio_mixer),
  3876. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3877. MSM_BACKEND_DAI_SEC_I2S_RX,
  3878. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3879. msm_routing_put_audio_mixer),
  3880. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3881. MSM_BACKEND_DAI_SEC_I2S_RX,
  3882. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3883. msm_routing_put_audio_mixer),
  3884. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3885. MSM_BACKEND_DAI_SEC_I2S_RX,
  3886. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3887. msm_routing_put_audio_mixer),
  3888. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3889. MSM_BACKEND_DAI_SEC_I2S_RX,
  3890. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3891. msm_routing_put_audio_mixer),
  3892. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3893. MSM_BACKEND_DAI_SEC_I2S_RX,
  3894. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3895. msm_routing_put_audio_mixer),
  3896. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3897. MSM_BACKEND_DAI_SEC_I2S_RX,
  3898. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3899. msm_routing_put_audio_mixer),
  3900. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3901. MSM_BACKEND_DAI_SEC_I2S_RX,
  3902. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3903. msm_routing_put_audio_mixer),
  3904. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3905. MSM_BACKEND_DAI_SEC_I2S_RX,
  3906. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3907. msm_routing_put_audio_mixer),
  3908. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3909. MSM_BACKEND_DAI_SEC_I2S_RX,
  3910. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3911. msm_routing_put_audio_mixer),
  3912. };
  3913. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  3914. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3915. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3916. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3917. msm_routing_put_audio_mixer),
  3918. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3919. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3920. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3921. msm_routing_put_audio_mixer),
  3922. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3923. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3924. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3925. msm_routing_put_audio_mixer),
  3926. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3927. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3928. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3929. msm_routing_put_audio_mixer),
  3930. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3931. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3932. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3933. msm_routing_put_audio_mixer),
  3934. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3935. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3936. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3937. msm_routing_put_audio_mixer),
  3938. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3939. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3940. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3941. msm_routing_put_audio_mixer),
  3942. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3943. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3944. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3945. msm_routing_put_audio_mixer),
  3946. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3947. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3948. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3949. msm_routing_put_audio_mixer),
  3950. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3951. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3952. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3953. msm_routing_put_audio_mixer),
  3954. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3955. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3956. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3957. msm_routing_put_audio_mixer),
  3958. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3959. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3960. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3961. msm_routing_put_audio_mixer),
  3962. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3963. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3964. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3965. msm_routing_put_audio_mixer),
  3966. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3967. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3968. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3969. msm_routing_put_audio_mixer),
  3970. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3971. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3972. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3973. msm_routing_put_audio_mixer),
  3974. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3975. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3976. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3977. msm_routing_put_audio_mixer),
  3978. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3979. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3980. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3981. msm_routing_put_audio_mixer),
  3982. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3983. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3984. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3985. msm_routing_put_audio_mixer),
  3986. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3987. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3988. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3989. msm_routing_put_audio_mixer),
  3990. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3991. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3992. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3993. msm_routing_put_audio_mixer),
  3994. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3995. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3996. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3997. msm_routing_put_audio_mixer),
  3998. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3999. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4000. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4001. msm_routing_put_audio_mixer),
  4002. };
  4003. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  4004. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4005. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4006. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4007. msm_routing_put_audio_mixer),
  4008. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4009. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4010. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4011. msm_routing_put_audio_mixer),
  4012. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4013. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4014. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4015. msm_routing_put_audio_mixer),
  4016. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4017. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4018. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4019. msm_routing_put_audio_mixer),
  4020. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4021. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4022. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4023. msm_routing_put_audio_mixer),
  4024. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4025. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4026. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4027. msm_routing_put_audio_mixer),
  4028. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4029. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4030. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4031. msm_routing_put_audio_mixer),
  4032. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4033. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4034. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4035. msm_routing_put_audio_mixer),
  4036. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4037. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4038. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4039. msm_routing_put_audio_mixer),
  4040. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4041. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4042. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4043. msm_routing_put_audio_mixer),
  4044. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4045. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4046. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4047. msm_routing_put_audio_mixer),
  4048. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4049. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4050. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4051. msm_routing_put_audio_mixer),
  4052. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4053. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4054. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4055. msm_routing_put_audio_mixer),
  4056. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4057. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4058. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4059. msm_routing_put_audio_mixer),
  4060. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4061. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4062. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4063. msm_routing_put_audio_mixer),
  4064. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4065. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4066. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4067. msm_routing_put_audio_mixer),
  4068. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4069. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4070. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4071. msm_routing_put_audio_mixer),
  4072. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4073. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4074. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4075. msm_routing_put_audio_mixer),
  4076. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4077. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4078. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4079. msm_routing_put_audio_mixer),
  4080. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4081. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4082. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4083. msm_routing_put_audio_mixer),
  4084. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4085. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4086. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4087. msm_routing_put_audio_mixer),
  4088. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4089. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4090. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4091. msm_routing_put_audio_mixer),
  4092. };
  4093. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4094. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4095. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4096. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4097. msm_routing_put_audio_mixer),
  4098. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4099. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4103. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4104. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4105. msm_routing_put_audio_mixer),
  4106. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4107. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4108. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4109. msm_routing_put_audio_mixer),
  4110. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4111. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4112. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4113. msm_routing_put_audio_mixer),
  4114. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4115. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4116. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4117. msm_routing_put_audio_mixer),
  4118. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4119. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4120. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4121. msm_routing_put_audio_mixer),
  4122. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4123. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4124. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4125. msm_routing_put_audio_mixer),
  4126. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4127. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4128. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4129. msm_routing_put_audio_mixer),
  4130. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4131. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4132. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4133. msm_routing_put_audio_mixer),
  4134. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4135. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4136. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4137. msm_routing_put_audio_mixer),
  4138. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4139. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4140. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4141. msm_routing_put_audio_mixer),
  4142. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4143. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4144. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4145. msm_routing_put_audio_mixer),
  4146. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4147. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4148. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4149. msm_routing_put_audio_mixer),
  4150. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4151. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4152. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4153. msm_routing_put_audio_mixer),
  4154. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4155. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4156. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4157. msm_routing_put_audio_mixer),
  4158. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4159. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4160. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4161. msm_routing_put_audio_mixer),
  4162. };
  4163. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4164. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4165. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4166. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4167. msm_routing_put_audio_mixer),
  4168. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4169. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4170. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4171. msm_routing_put_audio_mixer),
  4172. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4173. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4174. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4175. msm_routing_put_audio_mixer),
  4176. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4177. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4178. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4179. msm_routing_put_audio_mixer),
  4180. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4181. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4185. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4186. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4187. msm_routing_put_audio_mixer),
  4188. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4189. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4190. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4191. msm_routing_put_audio_mixer),
  4192. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4193. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4194. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4195. msm_routing_put_audio_mixer),
  4196. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4197. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4198. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4199. msm_routing_put_audio_mixer),
  4200. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4201. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4202. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4203. msm_routing_put_audio_mixer),
  4204. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4205. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4206. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4207. msm_routing_put_audio_mixer),
  4208. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4209. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4210. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4211. msm_routing_put_audio_mixer),
  4212. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4213. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4214. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4215. msm_routing_put_audio_mixer),
  4216. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4217. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4218. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4219. msm_routing_put_audio_mixer),
  4220. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4221. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4222. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4223. msm_routing_put_audio_mixer),
  4224. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4225. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4226. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4227. msm_routing_put_audio_mixer),
  4228. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4229. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4230. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4231. msm_routing_put_audio_mixer),
  4232. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4233. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4234. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4235. msm_routing_put_audio_mixer),
  4236. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4237. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4238. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4239. msm_routing_put_audio_mixer),
  4240. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4241. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4242. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4243. msm_routing_put_audio_mixer),
  4244. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4245. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4246. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4247. msm_routing_put_audio_mixer),
  4248. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4249. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4250. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4251. msm_routing_put_audio_mixer),
  4252. };
  4253. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4254. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4255. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4256. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4257. msm_routing_put_audio_mixer),
  4258. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4259. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4260. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4261. msm_routing_put_audio_mixer),
  4262. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4263. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4264. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4265. msm_routing_put_audio_mixer),
  4266. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4267. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4271. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4272. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4273. msm_routing_put_audio_mixer),
  4274. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4275. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4276. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4277. msm_routing_put_audio_mixer),
  4278. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4279. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4280. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4281. msm_routing_put_audio_mixer),
  4282. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4283. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4284. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4285. msm_routing_put_audio_mixer),
  4286. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4287. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4288. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4289. msm_routing_put_audio_mixer),
  4290. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4291. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4292. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4293. msm_routing_put_audio_mixer),
  4294. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4295. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4296. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4297. msm_routing_put_audio_mixer),
  4298. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4299. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4300. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4301. msm_routing_put_audio_mixer),
  4302. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4303. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4304. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4305. msm_routing_put_audio_mixer),
  4306. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4307. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4308. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4309. msm_routing_put_audio_mixer),
  4310. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4311. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4312. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4313. msm_routing_put_audio_mixer),
  4314. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4315. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4316. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4317. msm_routing_put_audio_mixer),
  4318. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4319. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4320. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4321. msm_routing_put_audio_mixer),
  4322. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4323. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4324. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4325. msm_routing_put_audio_mixer),
  4326. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4327. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4328. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4329. msm_routing_put_audio_mixer),
  4330. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4331. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4332. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4333. msm_routing_put_audio_mixer),
  4334. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4335. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4336. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4337. msm_routing_put_audio_mixer),
  4338. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4339. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4340. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4341. msm_routing_put_audio_mixer),
  4342. };
  4343. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4344. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4345. MSM_BACKEND_DAI_MI2S_RX,
  4346. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4347. msm_routing_put_audio_mixer),
  4348. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4349. MSM_BACKEND_DAI_MI2S_RX,
  4350. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4351. msm_routing_put_audio_mixer),
  4352. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4353. MSM_BACKEND_DAI_MI2S_RX,
  4354. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4355. msm_routing_put_audio_mixer),
  4356. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4357. MSM_BACKEND_DAI_MI2S_RX,
  4358. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4359. msm_routing_put_audio_mixer),
  4360. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4361. MSM_BACKEND_DAI_MI2S_RX,
  4362. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4363. msm_routing_put_audio_mixer),
  4364. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4365. MSM_BACKEND_DAI_MI2S_RX,
  4366. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4367. msm_routing_put_audio_mixer),
  4368. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4369. MSM_BACKEND_DAI_MI2S_RX,
  4370. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4371. msm_routing_put_audio_mixer),
  4372. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4373. MSM_BACKEND_DAI_MI2S_RX,
  4374. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4375. msm_routing_put_audio_mixer),
  4376. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4377. MSM_BACKEND_DAI_MI2S_RX,
  4378. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4379. msm_routing_put_audio_mixer),
  4380. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4381. MSM_BACKEND_DAI_MI2S_RX,
  4382. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4383. msm_routing_put_audio_mixer),
  4384. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4385. MSM_BACKEND_DAI_MI2S_RX,
  4386. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4387. msm_routing_put_audio_mixer),
  4388. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4389. MSM_BACKEND_DAI_MI2S_RX,
  4390. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4391. msm_routing_put_audio_mixer),
  4392. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4393. MSM_BACKEND_DAI_MI2S_RX,
  4394. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4395. msm_routing_put_audio_mixer),
  4396. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4397. MSM_BACKEND_DAI_MI2S_RX,
  4398. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4399. msm_routing_put_audio_mixer),
  4400. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4401. MSM_BACKEND_DAI_MI2S_RX,
  4402. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4403. msm_routing_put_audio_mixer),
  4404. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4405. MSM_BACKEND_DAI_MI2S_RX,
  4406. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4407. msm_routing_put_audio_mixer),
  4408. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4409. MSM_BACKEND_DAI_MI2S_RX,
  4410. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4411. msm_routing_put_audio_mixer),
  4412. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4413. MSM_BACKEND_DAI_MI2S_RX,
  4414. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4415. msm_routing_put_audio_mixer),
  4416. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4417. MSM_BACKEND_DAI_MI2S_RX,
  4418. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4419. msm_routing_put_audio_mixer),
  4420. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4421. MSM_BACKEND_DAI_MI2S_RX,
  4422. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4423. msm_routing_put_audio_mixer),
  4424. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4425. MSM_BACKEND_DAI_MI2S_RX,
  4426. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4427. msm_routing_put_audio_mixer),
  4428. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4429. MSM_BACKEND_DAI_MI2S_RX,
  4430. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4431. msm_routing_put_audio_mixer),
  4432. };
  4433. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4434. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4435. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4436. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4437. msm_routing_put_audio_mixer),
  4438. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4439. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4443. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4444. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4445. msm_routing_put_audio_mixer),
  4446. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4447. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4448. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4449. msm_routing_put_audio_mixer),
  4450. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4451. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4452. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4453. msm_routing_put_audio_mixer),
  4454. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4455. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4456. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4457. msm_routing_put_audio_mixer),
  4458. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4459. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4460. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4461. msm_routing_put_audio_mixer),
  4462. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4463. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4464. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4465. msm_routing_put_audio_mixer),
  4466. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4467. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4468. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4469. msm_routing_put_audio_mixer),
  4470. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4471. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4472. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4473. msm_routing_put_audio_mixer),
  4474. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4475. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4476. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4477. msm_routing_put_audio_mixer),
  4478. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4479. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4480. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4481. msm_routing_put_audio_mixer),
  4482. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4483. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4487. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4488. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4489. msm_routing_put_audio_mixer),
  4490. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4491. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4492. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4493. msm_routing_put_audio_mixer),
  4494. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4495. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4499. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4500. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4501. msm_routing_put_audio_mixer),
  4502. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4503. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4504. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4505. msm_routing_put_audio_mixer),
  4506. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4507. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4511. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4512. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4513. msm_routing_put_audio_mixer),
  4514. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4515. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4516. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4517. msm_routing_put_audio_mixer),
  4518. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4519. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. };
  4523. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4524. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4525. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4526. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4527. msm_routing_put_audio_mixer),
  4528. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4529. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4530. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4531. msm_routing_put_audio_mixer),
  4532. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4533. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4534. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4535. msm_routing_put_audio_mixer),
  4536. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4537. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4539. msm_routing_put_audio_mixer),
  4540. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4541. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4542. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4543. msm_routing_put_audio_mixer),
  4544. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4545. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4546. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4547. msm_routing_put_audio_mixer),
  4548. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4549. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4550. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4551. msm_routing_put_audio_mixer),
  4552. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4553. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4554. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4555. msm_routing_put_audio_mixer),
  4556. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4557. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4561. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4562. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4563. msm_routing_put_audio_mixer),
  4564. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4565. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4566. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4567. msm_routing_put_audio_mixer),
  4568. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4569. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4573. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4574. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4575. msm_routing_put_audio_mixer),
  4576. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4577. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4578. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4579. msm_routing_put_audio_mixer),
  4580. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4581. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4585. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4586. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4587. msm_routing_put_audio_mixer),
  4588. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4589. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4593. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4594. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4595. msm_routing_put_audio_mixer),
  4596. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4597. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4598. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4599. msm_routing_put_audio_mixer),
  4600. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4601. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4602. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4603. msm_routing_put_audio_mixer),
  4604. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4605. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4606. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4607. msm_routing_put_audio_mixer),
  4608. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4609. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4610. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4611. msm_routing_put_audio_mixer),
  4612. };
  4613. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4614. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4615. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4616. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4617. msm_routing_put_audio_mixer),
  4618. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4619. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4623. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4624. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4625. msm_routing_put_audio_mixer),
  4626. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4627. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4628. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4629. msm_routing_put_audio_mixer),
  4630. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4631. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4632. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4633. msm_routing_put_audio_mixer),
  4634. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4635. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4636. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4637. msm_routing_put_audio_mixer),
  4638. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4639. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4643. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4644. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4645. msm_routing_put_audio_mixer),
  4646. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4647. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4648. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4649. msm_routing_put_audio_mixer),
  4650. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4651. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4655. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4656. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4657. msm_routing_put_audio_mixer),
  4658. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4659. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4663. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4667. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4668. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4669. msm_routing_put_audio_mixer),
  4670. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4671. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4672. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4673. msm_routing_put_audio_mixer),
  4674. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4675. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4679. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4680. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4681. msm_routing_put_audio_mixer),
  4682. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4683. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4684. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4685. msm_routing_put_audio_mixer),
  4686. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4687. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4691. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4692. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4693. msm_routing_put_audio_mixer),
  4694. };
  4695. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4696. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4697. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4698. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4699. msm_routing_put_audio_mixer),
  4700. };
  4701. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4702. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4703. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4704. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4705. msm_routing_put_audio_mixer),
  4706. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4707. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4708. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4709. msm_routing_put_audio_mixer),
  4710. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4711. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4712. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4713. msm_routing_put_audio_mixer),
  4714. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4715. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4716. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4717. msm_routing_put_audio_mixer),
  4718. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4719. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4720. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4721. msm_routing_put_audio_mixer),
  4722. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4723. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4724. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4725. msm_routing_put_audio_mixer),
  4726. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4727. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4728. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4729. msm_routing_put_audio_mixer),
  4730. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4731. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4732. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4733. msm_routing_put_audio_mixer),
  4734. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4735. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4736. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4737. msm_routing_put_audio_mixer),
  4738. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4739. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4740. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4741. msm_routing_put_audio_mixer),
  4742. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4743. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4744. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4745. msm_routing_put_audio_mixer),
  4746. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4747. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4748. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4749. msm_routing_put_audio_mixer),
  4750. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4751. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4752. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4753. msm_routing_put_audio_mixer),
  4754. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4755. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4756. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4757. msm_routing_put_audio_mixer),
  4758. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4759. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4760. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4761. msm_routing_put_audio_mixer),
  4762. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4763. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4764. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4765. msm_routing_put_audio_mixer),
  4766. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4767. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4768. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4769. msm_routing_put_audio_mixer),
  4770. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4771. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4772. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4773. msm_routing_put_audio_mixer),
  4774. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4775. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4779. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4780. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4781. msm_routing_put_audio_mixer),
  4782. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4783. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4784. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4785. msm_routing_put_audio_mixer),
  4786. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4787. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4788. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4789. msm_routing_put_audio_mixer),
  4790. };
  4791. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4792. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4793. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4794. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4795. msm_routing_put_audio_mixer),
  4796. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4797. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4798. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4799. msm_routing_put_audio_mixer),
  4800. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4801. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4802. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4803. msm_routing_put_audio_mixer),
  4804. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4805. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4806. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4807. msm_routing_put_audio_mixer),
  4808. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4809. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4810. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4811. msm_routing_put_audio_mixer),
  4812. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4813. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4814. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4815. msm_routing_put_audio_mixer),
  4816. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4817. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4818. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4819. msm_routing_put_audio_mixer),
  4820. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4821. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4822. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4823. msm_routing_put_audio_mixer),
  4824. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4825. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4826. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4827. msm_routing_put_audio_mixer),
  4828. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4829. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4830. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4831. msm_routing_put_audio_mixer),
  4832. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4833. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4834. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4835. msm_routing_put_audio_mixer),
  4836. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4837. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4838. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4839. msm_routing_put_audio_mixer),
  4840. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4841. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4842. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4843. msm_routing_put_audio_mixer),
  4844. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4845. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4846. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4847. msm_routing_put_audio_mixer),
  4848. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4849. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4850. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4851. msm_routing_put_audio_mixer),
  4852. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4853. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4854. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4855. msm_routing_put_audio_mixer),
  4856. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4857. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4858. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4859. msm_routing_put_audio_mixer),
  4860. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4861. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4865. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4866. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4867. msm_routing_put_audio_mixer),
  4868. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4869. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4870. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4871. msm_routing_put_audio_mixer),
  4872. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4873. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4874. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4875. msm_routing_put_audio_mixer),
  4876. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4877. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4878. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4879. msm_routing_put_audio_mixer),
  4880. };
  4881. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4882. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4883. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4884. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4885. msm_routing_put_audio_mixer),
  4886. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4887. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4888. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4889. msm_routing_put_audio_mixer),
  4890. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4891. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4892. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4893. msm_routing_put_audio_mixer),
  4894. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4895. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4896. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4897. msm_routing_put_audio_mixer),
  4898. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4899. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4900. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4901. msm_routing_put_audio_mixer),
  4902. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4903. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4904. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4905. msm_routing_put_audio_mixer),
  4906. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4907. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4908. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4909. msm_routing_put_audio_mixer),
  4910. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4911. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4912. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4913. msm_routing_put_audio_mixer),
  4914. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4915. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4916. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4917. msm_routing_put_audio_mixer),
  4918. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4919. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4920. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4921. msm_routing_put_audio_mixer),
  4922. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4923. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4924. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4925. msm_routing_put_audio_mixer),
  4926. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4927. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4928. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4929. msm_routing_put_audio_mixer),
  4930. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4931. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4935. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4939. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4943. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. };
  4947. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4948. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4949. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4951. msm_routing_put_audio_mixer),
  4952. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4953. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4954. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4955. msm_routing_put_audio_mixer),
  4956. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4957. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4958. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4959. msm_routing_put_audio_mixer),
  4960. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4961. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4962. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4963. msm_routing_put_audio_mixer),
  4964. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4965. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4966. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4967. msm_routing_put_audio_mixer),
  4968. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4969. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4971. msm_routing_put_audio_mixer),
  4972. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4973. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4974. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4975. msm_routing_put_audio_mixer),
  4976. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4977. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4978. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4979. msm_routing_put_audio_mixer),
  4980. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4981. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4982. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4983. msm_routing_put_audio_mixer),
  4984. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4985. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4986. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4987. msm_routing_put_audio_mixer),
  4988. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4989. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4990. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4991. msm_routing_put_audio_mixer),
  4992. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4993. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4994. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4995. msm_routing_put_audio_mixer),
  4996. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4997. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4998. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4999. msm_routing_put_audio_mixer),
  5000. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5001. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5002. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5003. msm_routing_put_audio_mixer),
  5004. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5005. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5006. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5007. msm_routing_put_audio_mixer),
  5008. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5009. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5010. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5011. msm_routing_put_audio_mixer),
  5012. };
  5013. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  5014. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5015. MSM_BACKEND_DAI_HDMI_RX,
  5016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5017. msm_routing_put_audio_mixer),
  5018. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5019. MSM_BACKEND_DAI_HDMI_RX,
  5020. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5021. msm_routing_put_audio_mixer),
  5022. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5023. MSM_BACKEND_DAI_HDMI_RX,
  5024. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5025. msm_routing_put_audio_mixer),
  5026. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5027. MSM_BACKEND_DAI_HDMI_RX,
  5028. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5029. msm_routing_put_audio_mixer),
  5030. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5031. MSM_BACKEND_DAI_HDMI_RX,
  5032. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5033. msm_routing_put_audio_mixer),
  5034. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5035. MSM_BACKEND_DAI_HDMI_RX,
  5036. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5037. msm_routing_put_audio_mixer),
  5038. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5039. MSM_BACKEND_DAI_HDMI_RX,
  5040. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5041. msm_routing_put_audio_mixer),
  5042. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5043. MSM_BACKEND_DAI_HDMI_RX,
  5044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5045. msm_routing_put_audio_mixer),
  5046. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5047. MSM_BACKEND_DAI_HDMI_RX,
  5048. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5049. msm_routing_put_audio_mixer),
  5050. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5051. MSM_BACKEND_DAI_HDMI_RX,
  5052. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5053. msm_routing_put_audio_mixer),
  5054. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5055. MSM_BACKEND_DAI_HDMI_RX,
  5056. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5057. msm_routing_put_audio_mixer),
  5058. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5059. MSM_BACKEND_DAI_HDMI_RX,
  5060. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5061. msm_routing_put_audio_mixer),
  5062. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5063. MSM_BACKEND_DAI_HDMI_RX,
  5064. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5065. msm_routing_put_audio_mixer),
  5066. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5067. MSM_BACKEND_DAI_HDMI_RX,
  5068. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5069. msm_routing_put_audio_mixer),
  5070. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5071. MSM_BACKEND_DAI_HDMI_RX,
  5072. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5073. msm_routing_put_audio_mixer),
  5074. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5075. MSM_BACKEND_DAI_HDMI_RX,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5079. MSM_BACKEND_DAI_HDMI_RX,
  5080. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5081. msm_routing_put_audio_mixer),
  5082. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5083. MSM_BACKEND_DAI_HDMI_RX,
  5084. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5085. msm_routing_put_audio_mixer),
  5086. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5087. MSM_BACKEND_DAI_HDMI_RX,
  5088. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5089. msm_routing_put_audio_mixer),
  5090. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5091. MSM_BACKEND_DAI_HDMI_RX,
  5092. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5093. msm_routing_put_audio_mixer),
  5094. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5095. MSM_BACKEND_DAI_HDMI_RX,
  5096. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5097. msm_routing_put_audio_mixer),
  5098. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5099. MSM_BACKEND_DAI_HDMI_RX,
  5100. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5101. msm_routing_put_audio_mixer),
  5102. };
  5103. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5104. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5105. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5106. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5107. msm_routing_put_audio_mixer),
  5108. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5109. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5110. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5111. msm_routing_put_audio_mixer),
  5112. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5113. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5114. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5115. msm_routing_put_audio_mixer),
  5116. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5117. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5118. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5119. msm_routing_put_audio_mixer),
  5120. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5121. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5122. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5123. msm_routing_put_audio_mixer),
  5124. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5125. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5126. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5127. msm_routing_put_audio_mixer),
  5128. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5129. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5130. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5131. msm_routing_put_audio_mixer),
  5132. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5133. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5134. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5135. msm_routing_put_audio_mixer),
  5136. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5137. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5138. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5139. msm_routing_put_audio_mixer),
  5140. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5141. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5142. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5143. msm_routing_put_audio_mixer),
  5144. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5145. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5146. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5147. msm_routing_put_audio_mixer),
  5148. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5149. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5150. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5151. msm_routing_put_audio_mixer),
  5152. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5153. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5154. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5155. msm_routing_put_audio_mixer),
  5156. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5157. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5158. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5159. msm_routing_put_audio_mixer),
  5160. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5161. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5162. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5163. msm_routing_put_audio_mixer),
  5164. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5165. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5166. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5167. msm_routing_put_audio_mixer),
  5168. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5169. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5170. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5171. msm_routing_put_audio_mixer),
  5172. };
  5173. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5174. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5175. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5176. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5177. msm_routing_put_audio_mixer),
  5178. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5179. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5180. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5181. msm_routing_put_audio_mixer),
  5182. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5183. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5184. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5185. msm_routing_put_audio_mixer),
  5186. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5187. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5188. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5189. msm_routing_put_audio_mixer),
  5190. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5191. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5192. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5193. msm_routing_put_audio_mixer),
  5194. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5195. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5196. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5197. msm_routing_put_audio_mixer),
  5198. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5199. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5200. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5201. msm_routing_put_audio_mixer),
  5202. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5203. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5204. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5205. msm_routing_put_audio_mixer),
  5206. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5207. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5208. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5209. msm_routing_put_audio_mixer),
  5210. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5211. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5212. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5213. msm_routing_put_audio_mixer),
  5214. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5215. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5216. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5217. msm_routing_put_audio_mixer),
  5218. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5219. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5220. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5221. msm_routing_put_audio_mixer),
  5222. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5223. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5224. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5225. msm_routing_put_audio_mixer),
  5226. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5227. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5228. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5229. msm_routing_put_audio_mixer),
  5230. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5231. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5232. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5233. msm_routing_put_audio_mixer),
  5234. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5235. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5236. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5237. msm_routing_put_audio_mixer),
  5238. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5239. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5240. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5241. msm_routing_put_audio_mixer),
  5242. };
  5243. /* incall music delivery mixer */
  5244. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5245. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5246. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5247. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5248. msm_routing_put_audio_mixer),
  5249. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5250. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5251. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5252. msm_routing_put_audio_mixer),
  5253. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5254. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5255. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5256. msm_routing_put_audio_mixer),
  5257. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5258. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5259. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5260. msm_routing_put_audio_mixer),
  5261. };
  5262. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5263. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5264. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5265. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5266. msm_routing_put_audio_mixer),
  5267. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5268. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5269. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5270. msm_routing_put_audio_mixer),
  5271. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5272. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5273. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5274. msm_routing_put_audio_mixer),
  5275. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5276. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5277. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5278. msm_routing_put_audio_mixer),
  5279. };
  5280. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5281. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5282. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5283. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5284. msm_routing_put_audio_mixer),
  5285. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5286. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5287. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5288. msm_routing_put_audio_mixer),
  5289. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5290. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5291. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5292. msm_routing_put_audio_mixer),
  5293. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5294. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5296. msm_routing_put_audio_mixer),
  5297. };
  5298. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5299. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5300. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5301. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5302. msm_routing_put_audio_mixer),
  5303. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5304. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5305. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5306. msm_routing_put_audio_mixer),
  5307. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5308. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5312. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5313. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5314. msm_routing_put_audio_mixer),
  5315. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5316. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5317. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5318. msm_routing_put_audio_mixer),
  5319. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5320. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5321. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5322. msm_routing_put_audio_mixer),
  5323. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5324. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5325. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5326. msm_routing_put_audio_mixer),
  5327. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5328. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5332. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5333. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5334. msm_routing_put_audio_mixer),
  5335. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5336. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5338. msm_routing_put_audio_mixer),
  5339. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5340. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5341. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5342. msm_routing_put_audio_mixer),
  5343. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5344. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5345. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5346. msm_routing_put_audio_mixer),
  5347. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5348. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5349. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5350. msm_routing_put_audio_mixer),
  5351. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5352. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5356. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5357. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5358. msm_routing_put_audio_mixer),
  5359. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5360. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5361. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5362. msm_routing_put_audio_mixer),
  5363. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5364. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5365. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5366. msm_routing_put_audio_mixer),
  5367. };
  5368. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5369. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5370. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5371. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5372. msm_routing_put_audio_mixer),
  5373. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5374. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5375. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5376. msm_routing_put_audio_mixer),
  5377. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5378. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5382. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5383. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5384. msm_routing_put_audio_mixer),
  5385. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5386. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5390. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5394. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5398. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5402. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5406. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5410. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5411. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5412. msm_routing_put_audio_mixer),
  5413. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5414. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5418. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5422. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5426. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5427. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5428. msm_routing_put_audio_mixer),
  5429. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5430. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5431. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5432. msm_routing_put_audio_mixer),
  5433. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5434. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. };
  5438. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5439. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5440. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5441. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5442. msm_routing_put_audio_mixer),
  5443. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5444. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5445. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5446. msm_routing_put_audio_mixer),
  5447. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5448. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5450. msm_routing_put_audio_mixer),
  5451. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5452. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5453. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5454. msm_routing_put_audio_mixer),
  5455. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5456. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5457. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5458. msm_routing_put_audio_mixer),
  5459. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5460. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5461. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5462. msm_routing_put_audio_mixer),
  5463. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5464. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5468. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5472. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5476. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5477. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5478. msm_routing_put_audio_mixer),
  5479. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5480. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5484. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5488. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5492. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5496. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5504. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. };
  5508. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5509. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5510. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5511. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5512. msm_routing_put_audio_mixer),
  5513. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5514. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5515. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5516. msm_routing_put_audio_mixer),
  5517. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5538. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5539. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5540. msm_routing_put_audio_mixer),
  5541. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5542. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5546. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5550. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5554. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5558. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5562. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5566. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5570. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5574. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. };
  5578. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5579. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5580. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5581. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5582. msm_routing_put_audio_mixer),
  5583. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5584. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5589. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5590. msm_routing_put_audio_mixer),
  5591. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5593. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5594. msm_routing_put_audio_mixer),
  5595. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5600. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5632. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5636. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5640. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5644. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. };
  5648. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5649. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5651. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5652. msm_routing_put_audio_mixer),
  5653. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5654. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5655. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5656. msm_routing_put_audio_mixer),
  5657. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5666. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5667. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5668. msm_routing_put_audio_mixer),
  5669. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5670. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5671. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5672. msm_routing_put_audio_mixer),
  5673. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5674. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5678. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5682. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5683. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5684. msm_routing_put_audio_mixer),
  5685. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5686. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. };
  5718. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5719. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5720. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5721. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5722. msm_routing_put_audio_mixer),
  5723. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5724. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5725. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5726. msm_routing_put_audio_mixer),
  5727. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5728. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5732. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5733. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5734. msm_routing_put_audio_mixer),
  5735. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5736. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5737. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5738. msm_routing_put_audio_mixer),
  5739. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5740. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5744. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5745. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5746. msm_routing_put_audio_mixer),
  5747. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5748. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5749. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5750. msm_routing_put_audio_mixer),
  5751. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5752. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5756. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5760. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5761. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5762. msm_routing_put_audio_mixer),
  5763. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5764. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. };
  5788. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  5789. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5790. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5791. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5792. msm_routing_put_audio_mixer),
  5793. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5794. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5795. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5796. msm_routing_put_audio_mixer),
  5797. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5798. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5799. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5800. msm_routing_put_audio_mixer),
  5801. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5802. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5806. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5807. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5808. msm_routing_put_audio_mixer),
  5809. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5810. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5811. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5812. msm_routing_put_audio_mixer),
  5813. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5814. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5818. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5822. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5826. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5827. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5828. msm_routing_put_audio_mixer),
  5829. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5830. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5842. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5846. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5850. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5854. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5855. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5856. msm_routing_put_audio_mixer),
  5857. };
  5858. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  5859. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5860. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5861. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5862. msm_routing_put_audio_mixer),
  5863. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5864. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5865. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5866. msm_routing_put_audio_mixer),
  5867. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5868. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5869. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5870. msm_routing_put_audio_mixer),
  5871. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5872. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5873. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5874. msm_routing_put_audio_mixer),
  5875. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5876. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5877. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5878. msm_routing_put_audio_mixer),
  5879. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5880. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5881. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5882. msm_routing_put_audio_mixer),
  5883. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5884. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5885. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5886. msm_routing_put_audio_mixer),
  5887. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5888. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5889. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5890. msm_routing_put_audio_mixer),
  5891. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5892. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5893. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5894. msm_routing_put_audio_mixer),
  5895. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5896. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5904. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5916. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5920. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5924. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. };
  5928. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  5929. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5931. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5932. msm_routing_put_audio_mixer),
  5933. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5934. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5938. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5939. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5940. msm_routing_put_audio_mixer),
  5941. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5942. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5943. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5944. msm_routing_put_audio_mixer),
  5945. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5946. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5947. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5948. msm_routing_put_audio_mixer),
  5949. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5950. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5951. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5952. msm_routing_put_audio_mixer),
  5953. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5954. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5955. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5956. msm_routing_put_audio_mixer),
  5957. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5958. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5959. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5960. msm_routing_put_audio_mixer),
  5961. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5962. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5963. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5964. msm_routing_put_audio_mixer),
  5965. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5966. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5967. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5968. msm_routing_put_audio_mixer),
  5969. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5970. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5974. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5978. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5982. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5986. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5987. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5988. msm_routing_put_audio_mixer),
  5989. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5990. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5994. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. };
  5998. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  5999. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6000. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6001. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6002. msm_routing_put_audio_mixer),
  6003. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6004. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6005. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6006. msm_routing_put_audio_mixer),
  6007. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6008. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6012. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6013. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6014. msm_routing_put_audio_mixer),
  6015. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6016. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6017. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6018. msm_routing_put_audio_mixer),
  6019. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6020. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6021. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6022. msm_routing_put_audio_mixer),
  6023. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6024. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6025. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6026. msm_routing_put_audio_mixer),
  6027. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6028. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6029. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6030. msm_routing_put_audio_mixer),
  6031. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6032. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6033. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6034. msm_routing_put_audio_mixer),
  6035. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6036. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6037. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6038. msm_routing_put_audio_mixer),
  6039. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6040. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6044. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6048. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6049. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6050. msm_routing_put_audio_mixer),
  6051. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6052. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6053. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6054. msm_routing_put_audio_mixer),
  6055. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6056. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6057. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6058. msm_routing_put_audio_mixer),
  6059. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6060. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6061. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6062. msm_routing_put_audio_mixer),
  6063. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6064. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. };
  6068. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6069. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6070. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6074. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6075. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6076. msm_routing_put_audio_mixer),
  6077. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6078. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6079. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6080. msm_routing_put_audio_mixer),
  6081. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6082. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6083. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6084. msm_routing_put_audio_mixer),
  6085. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6086. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6087. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6088. msm_routing_put_audio_mixer),
  6089. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6090. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6091. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6092. msm_routing_put_audio_mixer),
  6093. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6094. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6095. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6096. msm_routing_put_audio_mixer),
  6097. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6098. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6099. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6100. msm_routing_put_audio_mixer),
  6101. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6102. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6106. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6110. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6111. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6112. msm_routing_put_audio_mixer),
  6113. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6114. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6118. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6122. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6123. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6124. msm_routing_put_audio_mixer),
  6125. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6126. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6130. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. };
  6138. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6139. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6140. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6144. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6146. msm_routing_put_audio_mixer),
  6147. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6148. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6152. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6156. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6157. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6158. msm_routing_put_audio_mixer),
  6159. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6160. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6164. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6168. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6169. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6170. msm_routing_put_audio_mixer),
  6171. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6172. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6174. msm_routing_put_audio_mixer),
  6175. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6176. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6177. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6178. msm_routing_put_audio_mixer),
  6179. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6180. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6181. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6182. msm_routing_put_audio_mixer),
  6183. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6184. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6188. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6189. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6190. msm_routing_put_audio_mixer),
  6191. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6192. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6193. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6194. msm_routing_put_audio_mixer),
  6195. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6196. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6200. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6204. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. };
  6208. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6209. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6210. MSM_BACKEND_DAI_USB_RX,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6214. MSM_BACKEND_DAI_USB_RX,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6218. MSM_BACKEND_DAI_USB_RX,
  6219. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6220. msm_routing_put_audio_mixer),
  6221. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6222. MSM_BACKEND_DAI_USB_RX,
  6223. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6224. msm_routing_put_audio_mixer),
  6225. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6226. MSM_BACKEND_DAI_USB_RX,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6230. MSM_BACKEND_DAI_USB_RX,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6234. MSM_BACKEND_DAI_USB_RX,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6238. MSM_BACKEND_DAI_USB_RX,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6242. MSM_BACKEND_DAI_USB_RX,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6246. MSM_BACKEND_DAI_USB_RX,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6250. MSM_BACKEND_DAI_USB_RX,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_USB_RX,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6258. MSM_BACKEND_DAI_USB_RX,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6262. MSM_BACKEND_DAI_USB_RX,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6266. MSM_BACKEND_DAI_USB_RX,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6270. MSM_BACKEND_DAI_USB_RX,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6274. MSM_BACKEND_DAI_USB_RX,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. };
  6278. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6279. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6280. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6284. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6285. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6286. msm_routing_put_audio_mixer),
  6287. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6288. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6290. msm_routing_put_audio_mixer),
  6291. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6292. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6293. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6294. msm_routing_put_audio_mixer),
  6295. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6296. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6300. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6301. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6302. msm_routing_put_audio_mixer),
  6303. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6304. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6308. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6312. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6316. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6320. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6356. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6357. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6358. msm_routing_put_audio_mixer),
  6359. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6360. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6361. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6362. msm_routing_put_audio_mixer),
  6363. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6364. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. };
  6368. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6369. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6370. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6374. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6375. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6376. msm_routing_put_audio_mixer),
  6377. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6378. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. };
  6438. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6439. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6440. MSM_BACKEND_DAI_INT_FM_RX,
  6441. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6442. msm_routing_put_audio_mixer),
  6443. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6444. MSM_BACKEND_DAI_INT_FM_RX,
  6445. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6446. msm_routing_put_audio_mixer),
  6447. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6448. MSM_BACKEND_DAI_INT_FM_RX,
  6449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6450. msm_routing_put_audio_mixer),
  6451. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6452. MSM_BACKEND_DAI_INT_FM_RX,
  6453. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6454. msm_routing_put_audio_mixer),
  6455. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6456. MSM_BACKEND_DAI_INT_FM_RX,
  6457. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6458. msm_routing_put_audio_mixer),
  6459. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6460. MSM_BACKEND_DAI_INT_FM_RX,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6464. MSM_BACKEND_DAI_INT_FM_RX,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_INT_FM_RX,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_INT_FM_RX,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_INT_FM_RX,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_INT_FM_RX,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_INT_FM_RX,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_INT_FM_RX,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_INT_FM_RX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_INT_FM_RX,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_INT_FM_RX,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_INT_FM_RX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_INT_FM_RX,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_INT_FM_RX,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6516. MSM_BACKEND_DAI_INT_FM_RX,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6520. MSM_BACKEND_DAI_INT_FM_RX,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6524. MSM_BACKEND_DAI_INT_FM_RX,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. };
  6528. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6529. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6530. MSM_BACKEND_DAI_AFE_PCM_RX,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6534. MSM_BACKEND_DAI_AFE_PCM_RX,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6538. MSM_BACKEND_DAI_AFE_PCM_RX,
  6539. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6540. msm_routing_put_audio_mixer),
  6541. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6542. MSM_BACKEND_DAI_AFE_PCM_RX,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6546. MSM_BACKEND_DAI_AFE_PCM_RX,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6550. MSM_BACKEND_DAI_AFE_PCM_RX,
  6551. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6552. msm_routing_put_audio_mixer),
  6553. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6554. MSM_BACKEND_DAI_AFE_PCM_RX,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6558. MSM_BACKEND_DAI_AFE_PCM_RX,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6562. MSM_BACKEND_DAI_AFE_PCM_RX,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_AFE_PCM_RX,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_AFE_PCM_RX,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_AFE_PCM_RX,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_AFE_PCM_RX,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6582. MSM_BACKEND_DAI_AFE_PCM_RX,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6586. MSM_BACKEND_DAI_AFE_PCM_RX,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6590. MSM_BACKEND_DAI_AFE_PCM_RX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6594. MSM_BACKEND_DAI_AFE_PCM_RX,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6598. MSM_BACKEND_DAI_AFE_PCM_RX,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6602. MSM_BACKEND_DAI_AFE_PCM_RX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6606. MSM_BACKEND_DAI_AFE_PCM_RX,
  6607. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6608. msm_routing_put_audio_mixer),
  6609. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6610. MSM_BACKEND_DAI_AFE_PCM_RX,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6614. MSM_BACKEND_DAI_AFE_PCM_RX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. };
  6618. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6619. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6620. MSM_BACKEND_DAI_AUXPCM_RX,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6624. MSM_BACKEND_DAI_AUXPCM_RX,
  6625. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6626. msm_routing_put_audio_mixer),
  6627. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_AUXPCM_RX,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6632. MSM_BACKEND_DAI_AUXPCM_RX,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6636. MSM_BACKEND_DAI_AUXPCM_RX,
  6637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6640. MSM_BACKEND_DAI_AUXPCM_RX,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6644. MSM_BACKEND_DAI_AUXPCM_RX,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6648. MSM_BACKEND_DAI_AUXPCM_RX,
  6649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6650. msm_routing_put_audio_mixer),
  6651. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6652. MSM_BACKEND_DAI_AUXPCM_RX,
  6653. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6654. msm_routing_put_audio_mixer),
  6655. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6656. MSM_BACKEND_DAI_AUXPCM_RX,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6660. MSM_BACKEND_DAI_AUXPCM_RX,
  6661. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6662. msm_routing_put_audio_mixer),
  6663. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6664. MSM_BACKEND_DAI_AUXPCM_RX,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6668. MSM_BACKEND_DAI_AUXPCM_RX,
  6669. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6670. msm_routing_put_audio_mixer),
  6671. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6672. MSM_BACKEND_DAI_AUXPCM_RX,
  6673. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6674. msm_routing_put_audio_mixer),
  6675. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6676. MSM_BACKEND_DAI_AUXPCM_RX,
  6677. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6678. msm_routing_put_audio_mixer),
  6679. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6680. MSM_BACKEND_DAI_AUXPCM_RX,
  6681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6682. msm_routing_put_audio_mixer),
  6683. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6684. MSM_BACKEND_DAI_AUXPCM_RX,
  6685. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6686. msm_routing_put_audio_mixer),
  6687. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6688. MSM_BACKEND_DAI_AUXPCM_RX,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6692. MSM_BACKEND_DAI_AUXPCM_RX,
  6693. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6694. msm_routing_put_audio_mixer),
  6695. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6696. MSM_BACKEND_DAI_AUXPCM_RX,
  6697. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6698. msm_routing_put_audio_mixer),
  6699. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6700. MSM_BACKEND_DAI_AUXPCM_RX,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6704. MSM_BACKEND_DAI_AUXPCM_RX,
  6705. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6706. msm_routing_put_audio_mixer),
  6707. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6708. MSM_BACKEND_DAI_AUXPCM_RX,
  6709. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6710. msm_routing_put_audio_mixer),
  6711. };
  6712. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6713. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6722. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6724. msm_routing_put_audio_mixer),
  6725. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6726. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6728. msm_routing_put_audio_mixer),
  6729. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6730. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6734. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6736. msm_routing_put_audio_mixer),
  6737. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6738. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6739. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6740. msm_routing_put_audio_mixer),
  6741. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6742. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6743. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6744. msm_routing_put_audio_mixer),
  6745. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6746. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6747. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6748. msm_routing_put_audio_mixer),
  6749. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6750. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6751. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6752. msm_routing_put_audio_mixer),
  6753. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6754. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6755. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6756. msm_routing_put_audio_mixer),
  6757. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6758. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6762. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6763. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6764. msm_routing_put_audio_mixer),
  6765. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6766. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6770. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6771. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6772. msm_routing_put_audio_mixer),
  6773. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6774. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6775. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6776. msm_routing_put_audio_mixer),
  6777. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6778. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6782. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6783. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6784. msm_routing_put_audio_mixer),
  6785. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6786. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6790. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6794. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6795. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6796. msm_routing_put_audio_mixer),
  6797. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6798. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6802. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. };
  6806. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  6807. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6808. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6809. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6810. msm_routing_put_audio_mixer),
  6811. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6812. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6813. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6814. msm_routing_put_audio_mixer),
  6815. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6816. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6820. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6821. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6822. msm_routing_put_audio_mixer),
  6823. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6824. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6825. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6826. msm_routing_put_audio_mixer),
  6827. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6828. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6832. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6833. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6834. msm_routing_put_audio_mixer),
  6835. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6836. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6837. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6838. msm_routing_put_audio_mixer),
  6839. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6840. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6841. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6842. msm_routing_put_audio_mixer),
  6843. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6844. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6845. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6846. msm_routing_put_audio_mixer),
  6847. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6848. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6849. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6850. msm_routing_put_audio_mixer),
  6851. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6852. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6856. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6857. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6858. msm_routing_put_audio_mixer),
  6859. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6860. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6861. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6862. msm_routing_put_audio_mixer),
  6863. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6872. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. };
  6876. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  6877. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6878. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6879. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6880. msm_routing_put_audio_mixer),
  6881. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6882. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6883. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6884. msm_routing_put_audio_mixer),
  6885. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6886. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6887. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6888. msm_routing_put_audio_mixer),
  6889. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6890. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6891. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6892. msm_routing_put_audio_mixer),
  6893. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6894. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6898. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6902. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6903. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6904. msm_routing_put_audio_mixer),
  6905. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6906. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6910. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6911. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6912. msm_routing_put_audio_mixer),
  6913. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6914. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6918. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6919. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6920. msm_routing_put_audio_mixer),
  6921. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6922. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6923. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6924. msm_routing_put_audio_mixer),
  6925. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6926. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6930. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6931. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6932. msm_routing_put_audio_mixer),
  6933. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6934. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. };
  6946. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6947. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6948. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6949. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6950. msm_routing_put_audio_mixer),
  6951. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6952. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6953. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6954. msm_routing_put_audio_mixer),
  6955. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6956. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6957. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6958. msm_routing_put_audio_mixer),
  6959. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6960. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6961. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6962. msm_routing_put_audio_mixer),
  6963. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6964. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6965. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6966. msm_routing_put_audio_mixer),
  6967. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6968. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6969. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6970. msm_routing_put_audio_mixer),
  6971. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6972. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6973. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6974. msm_routing_put_audio_mixer),
  6975. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6976. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6977. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6978. msm_routing_put_audio_mixer),
  6979. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6980. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6984. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6985. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6986. msm_routing_put_audio_mixer),
  6987. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6988. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6989. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6990. msm_routing_put_audio_mixer),
  6991. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6992. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6996. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6997. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6998. msm_routing_put_audio_mixer),
  6999. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7000. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7001. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7002. msm_routing_put_audio_mixer),
  7003. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7004. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7008. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7012. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. };
  7016. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7017. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7022. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7026. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7030. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7034. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7036. msm_routing_put_audio_mixer),
  7037. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7038. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7039. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7040. msm_routing_put_audio_mixer),
  7041. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7042. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7046. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7047. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7048. msm_routing_put_audio_mixer),
  7049. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7050. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7051. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7052. msm_routing_put_audio_mixer),
  7053. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7054. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7058. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7059. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7060. msm_routing_put_audio_mixer),
  7061. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7062. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7063. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7064. msm_routing_put_audio_mixer),
  7065. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7066. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7067. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7068. msm_routing_put_audio_mixer),
  7069. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7070. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7071. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7072. msm_routing_put_audio_mixer),
  7073. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7074. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7078. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7082. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7083. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7084. msm_routing_put_audio_mixer),
  7085. };
  7086. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7087. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7116. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7120. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7124. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7125. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7126. msm_routing_put_audio_mixer),
  7127. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7128. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7152. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. };
  7156. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7157. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. };
  7226. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7227. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. };
  7296. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7297. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. };
  7362. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7363. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7380. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7384. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. };
  7432. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7433. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7446. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7450. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7452. msm_routing_put_audio_mixer),
  7453. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7454. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. };
  7502. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7516. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7520. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7522. msm_routing_put_audio_mixer),
  7523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7524. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7526. msm_routing_put_audio_mixer),
  7527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. };
  7572. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7586. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7588. msm_routing_put_audio_mixer),
  7589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7590. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7592. msm_routing_put_audio_mixer),
  7593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7594. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7596. msm_routing_put_audio_mixer),
  7597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. };
  7642. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7643. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7660. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7662. msm_routing_put_audio_mixer),
  7663. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7664. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7665. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7666. msm_routing_put_audio_mixer),
  7667. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. };
  7708. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7709. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. };
  7778. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  7779. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. };
  7844. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  7845. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7850. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7851. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7852. msm_routing_put_audio_mixer),
  7853. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. };
  7914. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  7915. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. };
  7984. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7985. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. };
  8054. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8055. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. };
  8124. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8125. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. };
  8198. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8199. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. };
  8264. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8265. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8278. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8279. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8280. msm_routing_put_audio_mixer),
  8281. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8282. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8284. msm_routing_put_audio_mixer),
  8285. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. };
  8338. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8339. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8348. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8349. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8350. msm_routing_put_audio_mixer),
  8351. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8352. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8353. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8354. msm_routing_put_audio_mixer),
  8355. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8356. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8357. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8358. msm_routing_put_audio_mixer),
  8359. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8360. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8361. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8362. msm_routing_put_audio_mixer),
  8363. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. };
  8412. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8413. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8426. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8427. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8428. msm_routing_put_audio_mixer),
  8429. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. };
  8486. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8487. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. };
  8560. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8561. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8586. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8587. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8588. msm_routing_put_audio_mixer),
  8589. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8590. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8591. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8592. msm_routing_put_audio_mixer),
  8593. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8618. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8619. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8620. msm_routing_put_audio_mixer),
  8621. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8622. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8623. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8624. msm_routing_put_audio_mixer),
  8625. };
  8626. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8627. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. };
  8700. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8701. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. };
  8774. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  8775. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. };
  8848. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  8849. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  8850. MSM_BACKEND_DAI_PRI_I2S_TX,
  8851. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8852. msm_routing_put_audio_mixer),
  8853. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_MI2S_TX,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_AUXPCM_TX,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_INT_FM_TX,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_AFE_PCM_TX,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_USB_TX,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. };
  9090. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  9091. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_INT_FM_TX,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_MI2S_TX,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9156. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9157. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9158. msm_routing_put_audio_mixer),
  9159. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_USB_TX,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9256. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9257. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9258. msm_routing_put_audio_mixer),
  9259. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9260. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9261. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9262. msm_routing_put_audio_mixer),
  9263. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9264. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9265. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9266. msm_routing_put_audio_mixer),
  9267. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9268. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9269. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9270. msm_routing_put_audio_mixer),
  9271. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9273. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9274. msm_routing_put_audio_mixer),
  9275. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9277. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9278. msm_routing_put_audio_mixer),
  9279. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9280. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9281. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9282. msm_routing_put_audio_mixer),
  9283. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9284. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9285. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9286. msm_routing_put_audio_mixer),
  9287. };
  9288. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  9289. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_INT_FM_TX,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_MI2S_TX,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_AFE_PCM_TX,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_AUXPCM_TX,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9334. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9335. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9336. msm_routing_put_audio_mixer),
  9337. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9366. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9367. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9368. msm_routing_put_audio_mixer),
  9369. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9370. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9371. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9372. msm_routing_put_audio_mixer),
  9373. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9374. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9375. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9376. msm_routing_put_audio_mixer),
  9377. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9378. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9379. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9380. msm_routing_put_audio_mixer),
  9381. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9382. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9383. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9384. msm_routing_put_audio_mixer),
  9385. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9386. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9387. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9388. msm_routing_put_audio_mixer),
  9389. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9390. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9391. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9392. msm_routing_put_audio_mixer),
  9393. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9394. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9395. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9396. msm_routing_put_audio_mixer),
  9397. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. };
  9482. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9483. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_INT_FM_TX,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_AFE_PCM_TX,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9572. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9573. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9574. msm_routing_put_audio_mixer),
  9575. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9576. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9577. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9578. msm_routing_put_audio_mixer),
  9579. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9580. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9581. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9582. msm_routing_put_audio_mixer),
  9583. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9584. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9585. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9586. msm_routing_put_audio_mixer),
  9587. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9588. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9589. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9590. msm_routing_put_audio_mixer),
  9591. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9592. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9593. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9594. msm_routing_put_audio_mixer),
  9595. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9596. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9598. msm_routing_put_audio_mixer),
  9599. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9600. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9601. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9602. msm_routing_put_audio_mixer),
  9603. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9604. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9605. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9606. msm_routing_put_audio_mixer),
  9607. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9609. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9610. msm_routing_put_audio_mixer),
  9611. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9612. MSM_BACKEND_DAI_USB_TX,
  9613. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9614. msm_routing_put_audio_mixer),
  9615. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9616. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9617. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9618. msm_routing_put_audio_mixer),
  9619. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. };
  9672. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9673. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9678. MSM_BACKEND_DAI_INT_FM_TX,
  9679. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9680. msm_routing_put_audio_mixer),
  9681. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_MI2S_TX,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_AFE_PCM_TX,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_AUXPCM_TX,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9795. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9796. msm_routing_put_audio_mixer),
  9797. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9800. msm_routing_put_audio_mixer),
  9801. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9802. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9803. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9804. msm_routing_put_audio_mixer),
  9805. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9806. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9807. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9808. msm_routing_put_audio_mixer),
  9809. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9810. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9812. msm_routing_put_audio_mixer),
  9813. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9814. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9815. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9816. msm_routing_put_audio_mixer),
  9817. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9819. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9820. msm_routing_put_audio_mixer),
  9821. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9822. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9823. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9824. msm_routing_put_audio_mixer),
  9825. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_USB_TX,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9838. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9840. msm_routing_put_audio_mixer),
  9841. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9842. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9844. msm_routing_put_audio_mixer),
  9845. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9846. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9847. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9848. msm_routing_put_audio_mixer),
  9849. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. };
  9890. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  9891. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_INT_FM_TX,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9909. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9910. msm_routing_put_audio_mixer),
  9911. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9912. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9913. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9914. msm_routing_put_audio_mixer),
  9915. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9917. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9918. msm_routing_put_audio_mixer),
  9919. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9921. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9922. msm_routing_put_audio_mixer),
  9923. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_AUXPCM_TX,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9973. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9974. msm_routing_put_audio_mixer),
  9975. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9977. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9978. msm_routing_put_audio_mixer),
  9979. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9981. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9982. msm_routing_put_audio_mixer),
  9983. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9984. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9985. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9986. msm_routing_put_audio_mixer),
  9987. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9988. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9989. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9990. msm_routing_put_audio_mixer),
  9991. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9992. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9993. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9994. msm_routing_put_audio_mixer),
  9995. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9997. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9998. msm_routing_put_audio_mixer),
  9999. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10000. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10001. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10002. msm_routing_put_audio_mixer),
  10003. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10004. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10005. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10006. msm_routing_put_audio_mixer),
  10007. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10009. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10010. msm_routing_put_audio_mixer),
  10011. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10013. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10014. msm_routing_put_audio_mixer),
  10015. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10017. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10018. msm_routing_put_audio_mixer),
  10019. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10021. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10022. msm_routing_put_audio_mixer),
  10023. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_USB_TX,
  10025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10026. msm_routing_put_audio_mixer),
  10027. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10029. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10030. msm_routing_put_audio_mixer),
  10031. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10032. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10033. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10034. msm_routing_put_audio_mixer),
  10035. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10037. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10038. msm_routing_put_audio_mixer),
  10039. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10041. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10042. msm_routing_put_audio_mixer),
  10043. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10045. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10046. msm_routing_put_audio_mixer),
  10047. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. };
  10084. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  10085. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_INT_FM_TX,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_AFE_PCM_TX,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10167. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10168. msm_routing_put_audio_mixer),
  10169. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10171. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10172. msm_routing_put_audio_mixer),
  10173. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10175. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10179. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10180. msm_routing_put_audio_mixer),
  10181. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10198. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10199. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10200. msm_routing_put_audio_mixer),
  10201. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10202. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10203. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10204. msm_routing_put_audio_mixer),
  10205. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10206. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10207. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10208. msm_routing_put_audio_mixer),
  10209. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10210. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10211. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10212. msm_routing_put_audio_mixer),
  10213. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10214. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10215. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10216. msm_routing_put_audio_mixer),
  10217. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10218. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10219. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10220. msm_routing_put_audio_mixer),
  10221. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_USB_TX,
  10223. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10224. msm_routing_put_audio_mixer),
  10225. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10227. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10228. msm_routing_put_audio_mixer),
  10229. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10231. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10232. msm_routing_put_audio_mixer),
  10233. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10235. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10236. msm_routing_put_audio_mixer),
  10237. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10239. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10240. msm_routing_put_audio_mixer),
  10241. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10243. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10244. msm_routing_put_audio_mixer),
  10245. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. };
  10286. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  10287. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10290. msm_routing_put_audio_mixer),
  10291. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10293. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10294. msm_routing_put_audio_mixer),
  10295. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10297. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10298. msm_routing_put_audio_mixer),
  10299. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10300. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10301. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10302. msm_routing_put_audio_mixer),
  10303. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10305. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10306. msm_routing_put_audio_mixer),
  10307. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10309. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10310. msm_routing_put_audio_mixer),
  10311. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10312. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10313. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10314. msm_routing_put_audio_mixer),
  10315. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_INT_FM_TX,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_AFE_PCM_TX,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_USB_TX,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_MI2S_TX,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_AUXPCM_TX,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10421. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10422. msm_routing_put_audio_mixer),
  10423. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10424. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10426. msm_routing_put_audio_mixer),
  10427. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10428. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10429. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10430. msm_routing_put_audio_mixer),
  10431. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10432. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10433. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10434. msm_routing_put_audio_mixer),
  10435. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10436. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10437. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10438. msm_routing_put_audio_mixer),
  10439. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10440. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10441. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10442. msm_routing_put_audio_mixer),
  10443. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10444. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10445. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10446. msm_routing_put_audio_mixer),
  10447. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10448. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10449. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10450. msm_routing_get_audio_mixer,
  10451. msm_routing_put_audio_mixer),
  10452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10454. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10455. msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10460. msm_routing_get_audio_mixer,
  10461. msm_routing_put_audio_mixer),
  10462. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10463. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10464. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10465. msm_routing_get_audio_mixer,
  10466. msm_routing_put_audio_mixer),
  10467. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10468. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10469. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10470. msm_routing_get_audio_mixer,
  10471. msm_routing_put_audio_mixer),
  10472. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10473. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10474. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10475. msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. };
  10494. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10495. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_INT_FM_TX,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_AFE_PCM_TX,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10542. msm_routing_put_audio_mixer),
  10543. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10572. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10573. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10574. msm_routing_put_audio_mixer),
  10575. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10576. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10577. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10578. msm_routing_put_audio_mixer),
  10579. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10580. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10581. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10582. msm_routing_put_audio_mixer),
  10583. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10584. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10585. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10586. msm_routing_put_audio_mixer),
  10587. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10588. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10589. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10590. msm_routing_put_audio_mixer),
  10591. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10592. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10593. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10594. msm_routing_put_audio_mixer),
  10595. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10596. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10597. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10598. msm_routing_put_audio_mixer),
  10599. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10600. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10601. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10602. msm_routing_put_audio_mixer),
  10603. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10604. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10605. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10606. msm_routing_put_audio_mixer),
  10607. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10608. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10609. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10610. msm_routing_put_audio_mixer),
  10611. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10612. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10613. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10614. msm_routing_put_audio_mixer),
  10615. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10616. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10617. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10618. msm_routing_put_audio_mixer),
  10619. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10621. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10622. msm_routing_put_audio_mixer),
  10623. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. };
  10632. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10633. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_INT_FM_TX,
  10643. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10644. msm_routing_put_audio_mixer),
  10645. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10646. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10647. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10648. msm_routing_put_audio_mixer),
  10649. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10650. MSM_BACKEND_DAI_AFE_PCM_TX,
  10651. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10652. msm_routing_put_audio_mixer),
  10653. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10655. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10656. msm_routing_put_audio_mixer),
  10657. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10659. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10660. msm_routing_put_audio_mixer),
  10661. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10663. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10664. msm_routing_put_audio_mixer),
  10665. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10666. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10667. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10668. msm_routing_put_audio_mixer),
  10669. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10670. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10671. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10672. msm_routing_put_audio_mixer),
  10673. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10675. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10676. msm_routing_put_audio_mixer),
  10677. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10679. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10680. msm_routing_put_audio_mixer),
  10681. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10682. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10683. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10684. msm_routing_put_audio_mixer),
  10685. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10686. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10687. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10688. msm_routing_put_audio_mixer),
  10689. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10690. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10691. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10692. msm_routing_put_audio_mixer),
  10693. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10694. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10695. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10696. msm_routing_put_audio_mixer),
  10697. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10698. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10699. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10700. msm_routing_put_audio_mixer),
  10701. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10702. MSM_BACKEND_DAI_USB_TX,
  10703. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10704. msm_routing_put_audio_mixer),
  10705. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10706. MSM_BACKEND_DAI_MI2S_TX,
  10707. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10708. msm_routing_put_audio_mixer),
  10709. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10710. MSM_BACKEND_DAI_AUXPCM_TX,
  10711. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10712. msm_routing_put_audio_mixer),
  10713. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10760. msm_routing_get_audio_mixer,
  10761. msm_routing_put_audio_mixer),
  10762. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10763. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10764. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10765. msm_routing_get_audio_mixer,
  10766. msm_routing_put_audio_mixer),
  10767. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10768. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10769. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10770. msm_routing_get_audio_mixer,
  10771. msm_routing_put_audio_mixer),
  10772. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10773. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10774. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10775. msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10780. msm_routing_get_audio_mixer,
  10781. msm_routing_put_audio_mixer),
  10782. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10783. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10784. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10785. msm_routing_get_audio_mixer,
  10786. msm_routing_put_audio_mixer),
  10787. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. };
  10804. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  10805. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10807. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10808. msm_routing_put_audio_mixer),
  10809. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10811. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10812. msm_routing_put_audio_mixer),
  10813. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10815. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10816. msm_routing_put_audio_mixer),
  10817. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_INT_FM_TX,
  10819. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10820. msm_routing_put_audio_mixer),
  10821. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10823. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10824. msm_routing_put_audio_mixer),
  10825. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_AFE_PCM_TX,
  10827. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10828. msm_routing_put_audio_mixer),
  10829. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10831. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10832. msm_routing_put_audio_mixer),
  10833. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10835. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10836. msm_routing_put_audio_mixer),
  10837. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10842. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10843. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10844. msm_routing_put_audio_mixer),
  10845. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10846. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10847. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10848. msm_routing_put_audio_mixer),
  10849. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10850. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10851. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10852. msm_routing_put_audio_mixer),
  10853. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10854. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10855. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10856. msm_routing_put_audio_mixer),
  10857. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10858. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10859. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10860. msm_routing_put_audio_mixer),
  10861. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10868. msm_routing_get_audio_mixer,
  10869. msm_routing_put_audio_mixer),
  10870. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10871. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10872. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10873. msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10878. msm_routing_get_audio_mixer,
  10879. msm_routing_put_audio_mixer),
  10880. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10881. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10882. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10883. msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10888. msm_routing_get_audio_mixer,
  10889. msm_routing_put_audio_mixer),
  10890. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10892. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10893. msm_routing_get_audio_mixer,
  10894. msm_routing_put_audio_mixer),
  10895. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10897. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10898. msm_routing_put_audio_mixer),
  10899. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10901. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10902. msm_routing_put_audio_mixer),
  10903. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10905. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10906. msm_routing_put_audio_mixer),
  10907. };
  10908. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  10909. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_INT_FM_TX,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_AFE_PCM_TX,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10976. msm_routing_get_audio_mixer,
  10977. msm_routing_put_audio_mixer),
  10978. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10979. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10980. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10981. msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10986. msm_routing_get_audio_mixer,
  10987. msm_routing_put_audio_mixer),
  10988. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10989. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10990. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10991. msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10996. msm_routing_get_audio_mixer,
  10997. msm_routing_put_audio_mixer),
  10998. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10999. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11000. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11001. msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11006. msm_routing_put_audio_mixer),
  11007. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11009. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11010. msm_routing_put_audio_mixer),
  11011. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. };
  11016. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  11017. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11020. msm_routing_put_audio_mixer),
  11021. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_INT_FM_TX,
  11031. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_AFE_PCM_TX,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11075. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11079. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11080. msm_routing_get_audio_mixer,
  11081. msm_routing_put_audio_mixer),
  11082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11084. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11085. msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11090. msm_routing_get_audio_mixer,
  11091. msm_routing_put_audio_mixer),
  11092. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11093. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11094. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11095. msm_routing_get_audio_mixer,
  11096. msm_routing_put_audio_mixer),
  11097. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11099. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11100. msm_routing_get_audio_mixer,
  11101. msm_routing_put_audio_mixer),
  11102. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11103. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11104. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11105. msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. };
  11120. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  11121. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11122. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11123. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11124. msm_routing_put_audio_mixer),
  11125. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11127. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11128. msm_routing_put_audio_mixer),
  11129. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11131. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11132. msm_routing_put_audio_mixer),
  11133. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11191. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11196. msm_routing_put_audio_mixer),
  11197. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11199. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11200. msm_routing_put_audio_mixer),
  11201. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11203. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11204. msm_routing_put_audio_mixer),
  11205. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11207. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11208. msm_routing_put_audio_mixer),
  11209. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11216. msm_routing_put_audio_mixer),
  11217. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11219. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11220. msm_routing_put_audio_mixer),
  11221. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11223. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11224. msm_routing_put_audio_mixer),
  11225. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11227. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11228. msm_routing_put_audio_mixer),
  11229. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11239. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11240. msm_routing_put_audio_mixer),
  11241. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11243. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11244. msm_routing_put_audio_mixer),
  11245. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11247. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11248. msm_routing_put_audio_mixer),
  11249. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11251. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11252. msm_routing_put_audio_mixer),
  11253. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11255. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11256. msm_routing_put_audio_mixer),
  11257. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11259. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11260. msm_routing_put_audio_mixer),
  11261. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11263. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. };
  11278. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  11279. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_AUXPCM_TX,
  11281. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11282. msm_routing_put_audio_mixer),
  11283. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11289. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11290. msm_routing_put_audio_mixer),
  11291. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11293. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11294. msm_routing_put_audio_mixer),
  11295. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11297. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11302. msm_routing_put_audio_mixer),
  11303. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11305. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11306. msm_routing_put_audio_mixer),
  11307. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11309. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11310. msm_routing_put_audio_mixer),
  11311. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11313. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11314. msm_routing_put_audio_mixer),
  11315. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11317. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11322. msm_routing_put_audio_mixer),
  11323. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11325. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11326. msm_routing_put_audio_mixer),
  11327. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11329. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11330. msm_routing_put_audio_mixer),
  11331. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11333. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11334. msm_routing_put_audio_mixer),
  11335. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11337. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11338. msm_routing_put_audio_mixer),
  11339. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11341. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11342. msm_routing_put_audio_mixer),
  11343. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11345. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11346. msm_routing_put_audio_mixer),
  11347. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11349. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11350. msm_routing_put_audio_mixer),
  11351. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11353. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11354. msm_routing_put_audio_mixer),
  11355. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11357. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11358. msm_routing_put_audio_mixer),
  11359. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11361. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11362. msm_routing_put_audio_mixer),
  11363. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11418. msm_routing_put_audio_mixer),
  11419. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11421. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11422. msm_routing_put_audio_mixer),
  11423. };
  11424. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  11425. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. };
  11474. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  11475. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_INT_FM_TX,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_AFE_PCM_TX,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11538. msm_routing_get_audio_mixer,
  11539. msm_routing_put_audio_mixer),
  11540. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11541. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11542. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11543. msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11548. msm_routing_get_audio_mixer,
  11549. msm_routing_put_audio_mixer),
  11550. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11551. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11552. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11553. msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11558. msm_routing_get_audio_mixer,
  11559. msm_routing_put_audio_mixer),
  11560. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11561. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11562. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11563. msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. };
  11578. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  11579. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_INT_FM_TX,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11597. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11598. msm_routing_put_audio_mixer),
  11599. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_AFE_PCM_TX,
  11601. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11602. msm_routing_put_audio_mixer),
  11603. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11605. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11606. msm_routing_put_audio_mixer),
  11607. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11609. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11610. msm_routing_put_audio_mixer),
  11611. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11617. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11618. msm_routing_put_audio_mixer),
  11619. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11621. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11622. msm_routing_put_audio_mixer),
  11623. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11625. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11626. msm_routing_put_audio_mixer),
  11627. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11629. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11630. msm_routing_put_audio_mixer),
  11631. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11633. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11634. msm_routing_put_audio_mixer),
  11635. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11637. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11638. msm_routing_put_audio_mixer),
  11639. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11641. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11642. msm_routing_get_audio_mixer,
  11643. msm_routing_put_audio_mixer),
  11644. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11645. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11646. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11647. msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11652. msm_routing_get_audio_mixer,
  11653. msm_routing_put_audio_mixer),
  11654. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11655. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11656. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11657. msm_routing_get_audio_mixer,
  11658. msm_routing_put_audio_mixer),
  11659. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11660. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11661. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11662. msm_routing_get_audio_mixer,
  11663. msm_routing_put_audio_mixer),
  11664. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11665. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11666. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11667. msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. };
  11682. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  11683. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_PRI_I2S_RX,
  11685. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11686. msm_routing_put_voice_mixer),
  11687. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_PRI_I2S_RX,
  11689. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11690. msm_routing_put_voice_mixer),
  11691. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_PRI_I2S_RX,
  11693. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11694. msm_routing_put_voice_mixer),
  11695. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11696. MSM_BACKEND_DAI_PRI_I2S_RX,
  11697. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11698. msm_routing_put_voice_mixer),
  11699. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_PRI_I2S_RX,
  11701. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11702. msm_routing_put_voice_mixer),
  11703. };
  11704. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  11705. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_SEC_I2S_RX,
  11707. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11708. msm_routing_put_voice_mixer),
  11709. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_SEC_I2S_RX,
  11711. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11712. msm_routing_put_voice_mixer),
  11713. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_SEC_I2S_RX,
  11715. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11716. msm_routing_put_voice_mixer),
  11717. };
  11718. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  11719. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11721. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11722. msm_routing_put_voice_mixer),
  11723. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11725. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11726. msm_routing_put_voice_mixer),
  11727. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11729. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11730. msm_routing_put_voice_mixer),
  11731. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11733. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11734. msm_routing_put_voice_mixer),
  11735. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11737. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11738. msm_routing_put_voice_mixer),
  11739. };
  11740. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  11741. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11743. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11744. msm_routing_put_voice_mixer),
  11745. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11747. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11748. msm_routing_put_voice_mixer),
  11749. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11751. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11752. msm_routing_put_voice_mixer),
  11753. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11755. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11756. msm_routing_put_voice_mixer),
  11757. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11759. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11760. msm_routing_put_voice_mixer),
  11761. };
  11762. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  11763. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11765. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11766. msm_routing_put_voice_mixer),
  11767. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11769. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11770. msm_routing_put_voice_mixer),
  11771. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11773. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11774. msm_routing_put_voice_mixer),
  11775. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11777. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11778. msm_routing_put_voice_mixer),
  11779. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11781. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11782. msm_routing_put_voice_mixer),
  11783. };
  11784. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  11785. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_USB_RX,
  11787. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11788. msm_routing_put_voice_mixer),
  11789. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_USB_RX,
  11791. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11792. msm_routing_put_voice_mixer),
  11793. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_USB_RX,
  11795. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11796. msm_routing_put_voice_mixer),
  11797. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_USB_RX,
  11799. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11800. msm_routing_put_voice_mixer),
  11801. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_USB_RX,
  11803. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11804. msm_routing_put_voice_mixer),
  11805. };
  11806. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  11807. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11809. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11810. msm_routing_put_voice_mixer),
  11811. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11813. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11814. msm_routing_put_voice_mixer),
  11815. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11817. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11818. msm_routing_put_voice_mixer),
  11819. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11821. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11822. msm_routing_put_voice_mixer),
  11823. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11825. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11826. msm_routing_put_voice_mixer),
  11827. };
  11828. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  11829. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11831. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11832. msm_routing_put_voice_mixer),
  11833. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11835. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11836. msm_routing_put_voice_mixer),
  11837. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11839. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11840. msm_routing_put_voice_mixer),
  11841. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11843. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11844. msm_routing_put_voice_mixer),
  11845. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11847. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11848. msm_routing_put_voice_mixer),
  11849. };
  11850. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  11851. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11853. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11854. msm_routing_put_voice_mixer),
  11855. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11857. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11858. msm_routing_put_voice_mixer),
  11859. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11861. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11862. msm_routing_put_voice_mixer),
  11863. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11865. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11866. msm_routing_put_voice_mixer),
  11867. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11869. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11870. msm_routing_put_voice_mixer),
  11871. };
  11872. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  11873. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_MI2S_RX,
  11875. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11876. msm_routing_put_voice_mixer),
  11877. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_MI2S_RX,
  11879. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11880. msm_routing_put_voice_mixer),
  11881. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_MI2S_RX,
  11883. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11884. msm_routing_put_voice_mixer),
  11885. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_MI2S_RX,
  11887. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11888. msm_routing_put_voice_mixer),
  11889. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11890. MSM_BACKEND_DAI_MI2S_RX,
  11891. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11892. msm_routing_put_voice_mixer),
  11893. };
  11894. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  11895. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11897. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11898. msm_routing_put_voice_mixer),
  11899. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11901. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11902. msm_routing_put_voice_mixer),
  11903. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11905. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11906. msm_routing_put_voice_mixer),
  11907. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11909. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11910. msm_routing_put_voice_mixer),
  11911. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11913. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11914. msm_routing_put_voice_mixer),
  11915. };
  11916. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  11917. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11919. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11920. msm_routing_put_voice_mixer),
  11921. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11923. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11924. msm_routing_put_voice_mixer),
  11925. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11927. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11928. msm_routing_put_voice_mixer),
  11929. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11931. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11932. msm_routing_put_voice_mixer),
  11933. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11935. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11936. msm_routing_put_voice_mixer),
  11937. };
  11938. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  11939. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11941. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11942. msm_routing_put_voice_mixer),
  11943. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11945. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11946. msm_routing_put_voice_mixer),
  11947. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11949. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11950. msm_routing_put_voice_mixer),
  11951. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11953. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11954. msm_routing_put_voice_mixer),
  11955. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11957. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11958. msm_routing_put_voice_mixer),
  11959. };
  11960. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  11961. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11963. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11964. msm_routing_put_voice_mixer),
  11965. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11967. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11968. msm_routing_put_voice_mixer),
  11969. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11971. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11972. msm_routing_put_voice_mixer),
  11973. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11975. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11976. msm_routing_put_voice_mixer),
  11977. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11979. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11980. msm_routing_put_voice_mixer),
  11981. };
  11982. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  11983. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11985. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11986. msm_routing_put_voice_mixer),
  11987. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11989. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11990. msm_routing_put_voice_mixer),
  11991. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11993. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11994. msm_routing_put_voice_mixer),
  11995. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11997. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11998. msm_routing_put_voice_mixer),
  11999. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12001. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12002. msm_routing_put_voice_mixer),
  12003. };
  12004. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  12005. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12007. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12008. msm_routing_put_voice_mixer),
  12009. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12011. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12012. msm_routing_put_voice_mixer),
  12013. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12015. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12016. msm_routing_put_voice_mixer),
  12017. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12019. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12020. msm_routing_put_voice_mixer),
  12021. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12023. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12024. msm_routing_put_voice_mixer),
  12025. };
  12026. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  12027. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_AFE_PCM_RX,
  12029. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12030. msm_routing_put_voice_mixer),
  12031. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_AFE_PCM_RX,
  12033. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12034. msm_routing_put_voice_mixer),
  12035. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_AFE_PCM_RX,
  12037. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12038. msm_routing_put_voice_mixer),
  12039. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_AFE_PCM_RX,
  12041. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12042. msm_routing_put_voice_mixer),
  12043. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_AFE_PCM_RX,
  12045. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12046. msm_routing_put_voice_mixer),
  12047. };
  12048. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  12049. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_AUXPCM_RX,
  12051. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12052. msm_routing_put_voice_mixer),
  12053. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_AUXPCM_RX,
  12055. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12056. msm_routing_put_voice_mixer),
  12057. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_AUXPCM_RX,
  12059. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12060. msm_routing_put_voice_mixer),
  12061. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_AUXPCM_RX,
  12063. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12064. msm_routing_put_voice_mixer),
  12065. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_AUXPCM_RX,
  12067. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12068. msm_routing_put_voice_mixer),
  12069. };
  12070. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  12071. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12073. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12074. msm_routing_put_voice_mixer),
  12075. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12077. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12078. msm_routing_put_voice_mixer),
  12079. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12080. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12081. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12082. msm_routing_put_voice_mixer),
  12083. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12085. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12086. msm_routing_put_voice_mixer),
  12087. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12089. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12090. msm_routing_put_voice_mixer),
  12091. };
  12092. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  12093. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12095. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12096. msm_routing_put_voice_mixer),
  12097. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12099. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12100. msm_routing_put_voice_mixer),
  12101. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12103. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12104. msm_routing_put_voice_mixer),
  12105. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12107. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12108. msm_routing_put_voice_mixer),
  12109. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12111. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12112. msm_routing_put_voice_mixer),
  12113. };
  12114. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  12115. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12117. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12118. msm_routing_put_voice_mixer),
  12119. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12121. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12122. msm_routing_put_voice_mixer),
  12123. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12125. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12126. msm_routing_put_voice_mixer),
  12127. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12129. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12130. msm_routing_put_voice_mixer),
  12131. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12133. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12134. msm_routing_put_voice_mixer),
  12135. };
  12136. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  12137. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12139. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12140. msm_routing_put_voice_mixer),
  12141. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12143. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12144. msm_routing_put_voice_mixer),
  12145. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12147. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12148. msm_routing_put_voice_mixer),
  12149. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12151. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12152. msm_routing_put_voice_mixer),
  12153. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12155. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12156. msm_routing_put_voice_mixer),
  12157. };
  12158. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  12159. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12160. MSM_BACKEND_DAI_HDMI_RX,
  12161. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12162. msm_routing_put_voice_mixer),
  12163. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_HDMI_RX,
  12165. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12166. msm_routing_put_voice_mixer),
  12167. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_HDMI_RX,
  12169. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12170. msm_routing_put_voice_mixer),
  12171. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12172. MSM_BACKEND_DAI_HDMI_RX,
  12173. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12174. msm_routing_put_voice_mixer),
  12175. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_HDMI_RX,
  12177. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12178. msm_routing_put_voice_mixer),
  12179. };
  12180. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  12181. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12183. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12184. msm_routing_put_voice_mixer),
  12185. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12186. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12187. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12188. msm_routing_put_voice_mixer),
  12189. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12191. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12192. msm_routing_put_voice_mixer),
  12193. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12195. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12196. msm_routing_put_voice_mixer),
  12197. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12199. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12200. msm_routing_put_voice_mixer),
  12201. };
  12202. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  12203. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12205. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12206. msm_routing_put_voice_mixer),
  12207. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12209. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12210. msm_routing_put_voice_mixer),
  12211. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12213. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12214. msm_routing_put_voice_mixer),
  12215. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12217. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12218. msm_routing_put_voice_mixer),
  12219. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12221. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12222. msm_routing_put_voice_mixer),
  12223. };
  12224. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  12225. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12227. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12228. msm_routing_put_voice_mixer),
  12229. };
  12230. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  12231. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12233. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12234. msm_routing_put_voice_mixer),
  12235. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12237. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12238. msm_routing_put_voice_mixer),
  12239. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12241. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12242. msm_routing_put_voice_mixer),
  12243. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12245. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12246. msm_routing_put_voice_mixer),
  12247. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12249. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12250. msm_routing_put_voice_mixer),
  12251. };
  12252. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  12253. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12255. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12256. msm_routing_put_voice_mixer),
  12257. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12259. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12260. msm_routing_put_voice_mixer),
  12261. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12263. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12264. msm_routing_put_voice_mixer),
  12265. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12267. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12268. msm_routing_put_voice_mixer),
  12269. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12271. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12272. msm_routing_put_voice_mixer),
  12273. };
  12274. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  12275. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12277. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12278. msm_routing_put_voice_mixer),
  12279. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12281. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12282. msm_routing_put_voice_mixer),
  12283. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12285. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12286. msm_routing_put_voice_mixer),
  12287. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12288. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12289. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12290. msm_routing_put_voice_mixer),
  12291. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12293. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12294. msm_routing_put_voice_mixer),
  12295. };
  12296. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  12297. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12299. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12300. msm_routing_put_voice_mixer),
  12301. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12303. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12304. msm_routing_put_voice_mixer),
  12305. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12307. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12308. msm_routing_put_voice_mixer),
  12309. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12311. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12312. msm_routing_put_voice_mixer),
  12313. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12315. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12316. msm_routing_put_voice_mixer),
  12317. };
  12318. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  12319. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12321. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12322. msm_routing_put_voice_mixer),
  12323. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12325. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12326. msm_routing_put_voice_mixer),
  12327. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12329. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12330. msm_routing_put_voice_mixer),
  12331. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12333. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12334. msm_routing_put_voice_mixer),
  12335. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12337. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12338. msm_routing_put_voice_mixer),
  12339. };
  12340. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  12341. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12343. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12344. msm_routing_put_voice_mixer),
  12345. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12347. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12348. msm_routing_put_voice_mixer),
  12349. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12351. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12352. msm_routing_put_voice_mixer),
  12353. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12355. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12356. msm_routing_put_voice_mixer),
  12357. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12359. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12360. msm_routing_put_voice_mixer),
  12361. };
  12362. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  12363. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12365. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12366. msm_routing_put_voice_mixer),
  12367. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12369. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12370. msm_routing_put_voice_mixer),
  12371. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12373. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12374. msm_routing_put_voice_mixer),
  12375. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12377. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12378. msm_routing_put_voice_mixer),
  12379. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12381. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12382. msm_routing_put_voice_mixer),
  12383. };
  12384. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  12385. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12386. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12387. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12388. msm_routing_put_voice_mixer),
  12389. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12390. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12391. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12392. msm_routing_put_voice_mixer),
  12393. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12394. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12395. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12396. msm_routing_put_voice_mixer),
  12397. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12398. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12399. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12400. msm_routing_put_voice_mixer),
  12401. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12402. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12403. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12404. msm_routing_put_voice_mixer),
  12405. };
  12406. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  12407. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12409. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12410. msm_routing_put_voice_mixer),
  12411. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12413. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12414. msm_routing_put_voice_mixer),
  12415. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12417. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12418. msm_routing_put_voice_mixer),
  12419. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12421. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12422. msm_routing_put_voice_mixer),
  12423. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12425. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12426. msm_routing_put_voice_mixer),
  12427. };
  12428. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  12429. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12431. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12432. msm_routing_put_voice_mixer),
  12433. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12435. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12436. msm_routing_put_voice_mixer),
  12437. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12439. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12440. msm_routing_put_voice_mixer),
  12441. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12443. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12444. msm_routing_put_voice_mixer),
  12445. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12447. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12448. msm_routing_put_voice_mixer),
  12449. };
  12450. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  12451. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_EXTPROC_RX,
  12453. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12454. msm_routing_put_voice_mixer),
  12455. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_EXTPROC_RX,
  12457. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12458. msm_routing_put_voice_mixer),
  12459. };
  12460. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  12461. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12463. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12464. msm_routing_put_voice_mixer),
  12465. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12467. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12468. msm_routing_put_voice_mixer),
  12469. };
  12470. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  12471. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12473. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12474. msm_routing_put_voice_mixer),
  12475. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12477. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12478. msm_routing_put_voice_mixer),
  12479. };
  12480. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  12481. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_PRI_I2S_TX,
  12483. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12484. msm_routing_put_voice_mixer),
  12485. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_MI2S_TX,
  12487. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12488. msm_routing_put_voice_mixer),
  12489. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12491. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12492. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  12493. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12494. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12495. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12497. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12498. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12499. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12500. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12501. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12503. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12504. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12505. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12506. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12507. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12509. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12510. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12511. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12512. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12513. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12515. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12516. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  12517. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12518. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12519. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12521. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12522. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  12523. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12524. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12525. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12527. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12528. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  12529. MSM_BACKEND_DAI_USB_TX,
  12530. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12531. msm_routing_put_voice_mixer),
  12532. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  12533. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12534. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12535. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12537. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12538. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12539. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12540. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12541. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12543. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12544. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12545. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12546. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12547. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  12548. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  12549. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12550. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  12551. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  12552. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12553. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  12555. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12556. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  12557. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  12558. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12559. };
  12560. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  12561. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_PRI_I2S_TX,
  12563. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12564. msm_routing_put_voice_mixer),
  12565. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_MI2S_TX,
  12567. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12568. msm_routing_put_voice_mixer),
  12569. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12571. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12572. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  12573. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12574. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12575. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12577. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12578. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12579. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12580. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12581. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12583. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12584. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12585. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12586. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12587. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12589. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12590. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12592. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12593. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  12594. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12595. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12596. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  12597. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12598. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12599. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12601. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12602. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12604. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12605. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12607. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12608. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  12609. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12610. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12611. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12613. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12614. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12615. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12616. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12617. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12619. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12620. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12621. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12622. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12623. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  12625. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12626. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  12628. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12629. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  12630. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  12631. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12632. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  12633. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  12634. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12635. };
  12636. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  12637. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  12638. MSM_BACKEND_DAI_PRI_I2S_TX,
  12639. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12640. msm_routing_put_voice_mixer),
  12641. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_MI2S_TX,
  12643. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12644. msm_routing_put_voice_mixer),
  12645. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12647. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12648. msm_routing_put_voice_mixer),
  12649. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  12650. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12651. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12652. msm_routing_put_voice_mixer),
  12653. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  12654. MSM_BACKEND_DAI_AFE_PCM_TX,
  12655. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12656. msm_routing_put_voice_mixer),
  12657. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12658. MSM_BACKEND_DAI_AUXPCM_TX,
  12659. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12660. msm_routing_put_voice_mixer),
  12661. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12663. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12664. msm_routing_put_voice_mixer),
  12665. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12667. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12668. msm_routing_put_voice_mixer),
  12669. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12671. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12672. msm_routing_put_voice_mixer),
  12673. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12675. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12676. msm_routing_put_voice_mixer),
  12677. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12679. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12680. msm_routing_put_voice_mixer),
  12681. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12683. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12684. msm_routing_put_voice_mixer),
  12685. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12687. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12688. msm_routing_put_voice_mixer),
  12689. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12691. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12692. msm_routing_put_voice_mixer),
  12693. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12695. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12696. msm_routing_put_voice_mixer),
  12697. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_USB_TX,
  12699. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12700. msm_routing_put_voice_mixer),
  12701. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12703. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12704. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12705. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12706. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12707. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12709. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12710. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12711. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12712. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12713. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  12715. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12716. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  12717. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  12718. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12719. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  12721. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12722. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  12723. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  12724. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12725. };
  12726. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  12727. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_EXTPROC_TX,
  12729. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12730. msm_routing_put_voice_stub_mixer),
  12731. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12733. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12734. msm_routing_put_voice_stub_mixer),
  12735. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12737. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12738. msm_routing_put_voice_stub_mixer),
  12739. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12741. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12742. msm_routing_put_voice_stub_mixer),
  12743. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_MI2S_TX,
  12745. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12746. msm_routing_put_voice_stub_mixer),
  12747. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12749. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12750. msm_routing_put_voice_stub_mixer),
  12751. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12752. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12753. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12754. msm_routing_put_voice_stub_mixer),
  12755. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12757. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12758. msm_routing_put_voice_stub_mixer),
  12759. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12761. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12762. msm_routing_put_voice_stub_mixer),
  12763. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_AUXPCM_TX,
  12765. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12766. msm_routing_put_voice_stub_mixer),
  12767. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12769. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12770. msm_routing_put_voice_stub_mixer),
  12771. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12773. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12774. msm_routing_put_voice_stub_mixer),
  12775. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12777. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12778. msm_routing_put_voice_stub_mixer),
  12779. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12781. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12782. msm_routing_put_voice_stub_mixer),
  12783. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12785. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12786. msm_routing_put_voice_stub_mixer),
  12787. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12788. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12789. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12790. msm_routing_put_voice_stub_mixer),
  12791. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_AFE_PCM_TX,
  12793. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12794. msm_routing_put_voice_stub_mixer),
  12795. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12797. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12798. msm_routing_put_voice_stub_mixer),
  12799. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12801. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12802. msm_routing_put_voice_stub_mixer),
  12803. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12804. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12805. 1, 0, msm_routing_get_voice_stub_mixer,
  12806. msm_routing_put_voice_stub_mixer),
  12807. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12809. 1, 0, msm_routing_get_voice_stub_mixer,
  12810. msm_routing_put_voice_stub_mixer),
  12811. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12812. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12813. 1, 0, msm_routing_get_voice_stub_mixer,
  12814. msm_routing_put_voice_stub_mixer),
  12815. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12817. 1, 0, msm_routing_get_voice_stub_mixer,
  12818. msm_routing_put_voice_stub_mixer),
  12819. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  12821. 1, 0, msm_routing_get_voice_stub_mixer,
  12822. msm_routing_put_voice_stub_mixer),
  12823. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12824. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  12825. 1, 0, msm_routing_get_voice_stub_mixer,
  12826. msm_routing_put_voice_stub_mixer),
  12827. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  12829. 1, 0, msm_routing_get_voice_stub_mixer,
  12830. msm_routing_put_voice_stub_mixer),
  12831. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  12833. 1, 0, msm_routing_get_voice_stub_mixer,
  12834. msm_routing_put_voice_stub_mixer),
  12835. };
  12836. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  12837. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_EXTPROC_TX,
  12839. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12840. msm_routing_put_voice_stub_mixer),
  12841. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12843. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12844. msm_routing_put_voice_stub_mixer),
  12845. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12847. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12848. msm_routing_put_voice_stub_mixer),
  12849. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_AUXPCM_TX,
  12851. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12852. msm_routing_put_voice_stub_mixer),
  12853. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12855. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12856. msm_routing_put_voice_stub_mixer),
  12857. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12859. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12860. msm_routing_put_voice_stub_mixer),
  12861. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12863. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12864. msm_routing_put_voice_stub_mixer),
  12865. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12867. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12868. msm_routing_put_voice_stub_mixer),
  12869. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12871. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12872. msm_routing_put_voice_stub_mixer),
  12873. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12875. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12876. msm_routing_put_voice_stub_mixer),
  12877. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_AFE_PCM_TX,
  12879. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12880. msm_routing_put_voice_stub_mixer),
  12881. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12883. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12884. msm_routing_put_voice_stub_mixer),
  12885. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12887. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12888. msm_routing_put_voice_stub_mixer),
  12889. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12891. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12892. msm_routing_put_voice_stub_mixer),
  12893. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12895. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12896. msm_routing_put_voice_stub_mixer),
  12897. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12899. 1, 0, msm_routing_get_voice_stub_mixer,
  12900. msm_routing_put_voice_stub_mixer),
  12901. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12903. 1, 0, msm_routing_get_voice_stub_mixer,
  12904. msm_routing_put_voice_stub_mixer),
  12905. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12907. 1, 0, msm_routing_get_voice_stub_mixer,
  12908. msm_routing_put_voice_stub_mixer),
  12909. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12911. 1, 0, msm_routing_get_voice_stub_mixer,
  12912. msm_routing_put_voice_stub_mixer),
  12913. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  12915. 1, 0, msm_routing_get_voice_stub_mixer,
  12916. msm_routing_put_voice_stub_mixer),
  12917. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  12919. 1, 0, msm_routing_get_voice_stub_mixer,
  12920. msm_routing_put_voice_stub_mixer),
  12921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  12923. 1, 0, msm_routing_get_voice_stub_mixer,
  12924. msm_routing_put_voice_stub_mixer),
  12925. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  12927. 1, 0, msm_routing_get_voice_stub_mixer,
  12928. msm_routing_put_voice_stub_mixer),
  12929. };
  12930. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  12931. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_EXTPROC_TX,
  12933. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12934. msm_routing_put_voice_stub_mixer),
  12935. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12936. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12937. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12938. msm_routing_put_voice_stub_mixer),
  12939. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12941. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12942. msm_routing_put_voice_stub_mixer),
  12943. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_AUXPCM_TX,
  12945. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12946. msm_routing_put_voice_stub_mixer),
  12947. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12949. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12950. msm_routing_put_voice_stub_mixer),
  12951. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12953. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12954. msm_routing_put_voice_stub_mixer),
  12955. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12957. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12958. msm_routing_put_voice_stub_mixer),
  12959. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12961. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12962. msm_routing_put_voice_stub_mixer),
  12963. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12965. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12966. msm_routing_put_voice_stub_mixer),
  12967. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12969. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12970. msm_routing_put_voice_stub_mixer),
  12971. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_AFE_PCM_TX,
  12973. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12974. msm_routing_put_voice_stub_mixer),
  12975. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12977. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12978. msm_routing_put_voice_stub_mixer),
  12979. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12981. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12982. msm_routing_put_voice_stub_mixer),
  12983. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12985. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12986. msm_routing_put_voice_stub_mixer),
  12987. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12989. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12990. msm_routing_put_voice_stub_mixer),
  12991. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12993. 1, 0, msm_routing_get_voice_stub_mixer,
  12994. msm_routing_put_voice_stub_mixer),
  12995. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12997. 1, 0, msm_routing_get_voice_stub_mixer,
  12998. msm_routing_put_voice_stub_mixer),
  12999. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  13001. 1, 0, msm_routing_get_voice_stub_mixer,
  13002. msm_routing_put_voice_stub_mixer),
  13003. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  13005. 1, 0, msm_routing_get_voice_stub_mixer,
  13006. msm_routing_put_voice_stub_mixer),
  13007. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  13009. 1, 0, msm_routing_get_voice_stub_mixer,
  13010. msm_routing_put_voice_stub_mixer),
  13011. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  13013. 1, 0, msm_routing_get_voice_stub_mixer,
  13014. msm_routing_put_voice_stub_mixer),
  13015. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  13017. 1, 0, msm_routing_get_voice_stub_mixer,
  13018. msm_routing_put_voice_stub_mixer),
  13019. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  13021. 1, 0, msm_routing_get_voice_stub_mixer,
  13022. msm_routing_put_voice_stub_mixer),
  13023. };
  13024. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  13025. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_PRI_I2S_TX,
  13027. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13028. msm_routing_put_voice_mixer),
  13029. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13031. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13032. msm_routing_put_voice_mixer),
  13033. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13035. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  13036. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13037. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_AFE_PCM_TX,
  13039. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13040. msm_routing_put_voice_mixer),
  13041. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13042. MSM_BACKEND_DAI_AUXPCM_TX,
  13043. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13044. msm_routing_put_voice_mixer),
  13045. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13046. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13047. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13048. msm_routing_put_voice_mixer),
  13049. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13051. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13052. msm_routing_put_voice_mixer),
  13053. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13055. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13056. msm_routing_put_voice_mixer),
  13057. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13058. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13059. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13060. msm_routing_put_voice_mixer),
  13061. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_MI2S_TX,
  13063. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13064. msm_routing_put_voice_mixer),
  13065. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13066. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13067. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13068. msm_routing_put_voice_mixer),
  13069. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13070. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13071. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13072. msm_routing_put_voice_mixer),
  13073. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13074. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13075. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13076. msm_routing_put_voice_mixer),
  13077. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  13078. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13079. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13080. msm_routing_put_voice_mixer),
  13081. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13083. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13084. msm_routing_put_voice_mixer),
  13085. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_USB_TX,
  13087. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13088. msm_routing_put_voice_mixer),
  13089. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13091. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13092. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13093. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13094. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13095. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13096. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13097. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13098. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13099. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13100. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13101. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  13103. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13104. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  13105. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  13106. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13107. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  13108. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  13109. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13110. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  13111. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  13112. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13113. };
  13114. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  13115. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13117. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13118. msm_routing_put_port_mixer),
  13119. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13121. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13122. msm_routing_put_port_mixer),
  13123. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13125. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13126. msm_routing_put_port_mixer),
  13127. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13129. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13130. msm_routing_put_port_mixer),
  13131. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13133. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13134. msm_routing_put_port_mixer),
  13135. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13137. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13138. msm_routing_put_port_mixer),
  13139. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13140. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13141. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13142. msm_routing_put_port_mixer),
  13143. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13144. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13145. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13146. msm_routing_put_port_mixer),
  13147. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13148. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13149. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13150. msm_routing_put_port_mixer),
  13151. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13153. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13154. msm_routing_put_port_mixer),
  13155. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13157. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13158. msm_routing_put_port_mixer),
  13159. };
  13160. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  13161. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13163. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13164. msm_routing_put_port_mixer),
  13165. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13167. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13168. msm_routing_put_port_mixer),
  13169. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13171. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13172. msm_routing_put_port_mixer),
  13173. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13175. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13176. msm_routing_put_port_mixer),
  13177. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13179. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13180. msm_routing_put_port_mixer),
  13181. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13183. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13184. msm_routing_put_port_mixer),
  13185. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13187. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13188. msm_routing_put_port_mixer),
  13189. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13191. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13192. msm_routing_put_port_mixer),
  13193. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13195. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13196. msm_routing_put_port_mixer),
  13197. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13199. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13200. msm_routing_put_port_mixer),
  13201. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13203. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13204. msm_routing_put_port_mixer),
  13205. };
  13206. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  13207. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13209. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  13210. msm_routing_put_port_mixer),
  13211. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13212. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13213. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13214. msm_routing_put_port_mixer),
  13215. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13216. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13217. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13218. msm_routing_put_port_mixer),
  13219. };
  13220. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  13221. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13223. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13224. msm_routing_put_port_mixer),
  13225. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13227. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13228. msm_routing_put_port_mixer),
  13229. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13231. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13232. msm_routing_put_port_mixer),
  13233. };
  13234. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  13235. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13236. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13237. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13238. msm_routing_put_port_mixer),
  13239. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13240. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13241. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13242. msm_routing_put_port_mixer),
  13243. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13245. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13246. msm_routing_put_port_mixer),
  13247. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13249. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13250. msm_routing_put_port_mixer),
  13251. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13253. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13254. msm_routing_put_port_mixer),
  13255. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13257. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13258. msm_routing_put_port_mixer),
  13259. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13261. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13262. msm_routing_put_port_mixer),
  13263. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13265. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13266. msm_routing_put_port_mixer),
  13267. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13269. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13270. msm_routing_put_port_mixer),
  13271. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13273. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13274. msm_routing_put_port_mixer),
  13275. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13277. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13278. msm_routing_put_port_mixer),
  13279. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13281. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13282. msm_routing_put_port_mixer),
  13283. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13285. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13286. msm_routing_put_port_mixer),
  13287. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13289. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13290. msm_routing_put_port_mixer),
  13291. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13293. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13294. msm_routing_put_port_mixer),
  13295. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13297. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13298. msm_routing_put_port_mixer),
  13299. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13301. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13302. msm_routing_put_port_mixer),
  13303. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13305. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13306. msm_routing_put_port_mixer),
  13307. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13309. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13310. msm_routing_put_port_mixer),
  13311. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13313. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13314. msm_routing_put_port_mixer),
  13315. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13317. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13318. msm_routing_put_port_mixer),
  13319. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13321. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13322. msm_routing_put_port_mixer),
  13323. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13325. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13326. msm_routing_put_port_mixer),
  13327. };
  13328. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  13329. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_AUXPCM_RX,
  13331. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13332. msm_routing_put_port_mixer),
  13333. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_AUXPCM_RX,
  13335. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13336. msm_routing_put_port_mixer),
  13337. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_AUXPCM_RX,
  13339. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13340. msm_routing_put_port_mixer),
  13341. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_AUXPCM_RX,
  13343. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13344. msm_routing_put_port_mixer),
  13345. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_AUXPCM_RX,
  13347. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  13348. msm_routing_put_port_mixer),
  13349. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_AUXPCM_RX,
  13351. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13352. msm_routing_put_port_mixer),
  13353. };
  13354. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  13355. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13357. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13358. msm_routing_put_port_mixer),
  13359. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13361. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13362. msm_routing_put_port_mixer),
  13363. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13365. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13366. msm_routing_put_port_mixer),
  13367. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13369. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13370. msm_routing_put_port_mixer),
  13371. };
  13372. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  13373. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13374. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13375. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13376. msm_routing_put_port_mixer),
  13377. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13378. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13379. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13380. msm_routing_put_port_mixer),
  13381. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13382. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13383. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13384. msm_routing_put_port_mixer),
  13385. };
  13386. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  13387. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13389. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13390. msm_routing_put_port_mixer),
  13391. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13393. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13394. msm_routing_put_port_mixer),
  13395. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13397. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13398. msm_routing_put_port_mixer),
  13399. };
  13400. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  13401. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13403. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13404. msm_routing_put_port_mixer),
  13405. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13406. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13407. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13408. msm_routing_put_port_mixer),
  13409. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13411. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13412. msm_routing_put_port_mixer),
  13413. };
  13414. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  13415. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13417. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13418. msm_routing_put_port_mixer),
  13419. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13420. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13421. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  13422. msm_routing_put_port_mixer),
  13423. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13425. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13426. msm_routing_put_port_mixer),
  13427. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13429. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13430. msm_routing_put_port_mixer),
  13431. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13433. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13434. msm_routing_put_port_mixer),
  13435. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13437. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13438. msm_routing_put_port_mixer),
  13439. };
  13440. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  13441. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  13442. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13443. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  13444. msm_routing_put_port_mixer),
  13445. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13446. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13447. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13448. msm_routing_put_port_mixer),
  13449. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13451. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  13452. msm_routing_put_port_mixer),
  13453. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13455. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  13456. msm_routing_put_port_mixer),
  13457. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13459. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  13460. msm_routing_put_port_mixer),
  13461. };
  13462. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  13463. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13465. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13466. msm_routing_put_port_mixer),
  13467. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13469. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13470. msm_routing_put_port_mixer),
  13471. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13473. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13474. msm_routing_put_port_mixer),
  13475. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13477. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13478. msm_routing_put_port_mixer),
  13479. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13481. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13482. msm_routing_put_port_mixer),
  13483. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13485. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13486. msm_routing_put_port_mixer),
  13487. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13489. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13490. msm_routing_put_port_mixer),
  13491. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13493. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13494. msm_routing_put_port_mixer),
  13495. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13497. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13498. msm_routing_put_port_mixer),
  13499. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13501. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13502. msm_routing_put_port_mixer),
  13503. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13505. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13506. msm_routing_put_port_mixer),
  13507. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13509. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13510. msm_routing_put_port_mixer),
  13511. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13513. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13514. msm_routing_put_port_mixer),
  13515. };
  13516. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  13517. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13518. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13519. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13520. msm_routing_put_port_mixer),
  13521. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13522. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13523. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13524. msm_routing_put_port_mixer),
  13525. };
  13526. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  13527. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_AFE_PCM_RX,
  13529. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13530. msm_routing_put_port_mixer),
  13531. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_AFE_PCM_RX,
  13533. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13534. msm_routing_put_port_mixer),
  13535. };
  13536. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  13537. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_HDMI_RX,
  13539. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13540. msm_routing_put_port_mixer),
  13541. };
  13542. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  13543. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13545. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13546. msm_routing_put_port_mixer),
  13547. };
  13548. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  13549. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13550. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13551. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13552. msm_routing_put_port_mixer),
  13553. };
  13554. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  13555. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_SEC_I2S_RX,
  13557. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13558. msm_routing_put_port_mixer),
  13559. };
  13560. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  13561. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13562. MSM_BACKEND_DAI_MI2S_RX,
  13563. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13564. msm_routing_put_port_mixer),
  13565. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13566. MSM_BACKEND_DAI_MI2S_RX,
  13567. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13568. msm_routing_put_port_mixer),
  13569. };
  13570. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  13571. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13573. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13574. msm_routing_put_port_mixer),
  13575. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13577. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13578. msm_routing_put_port_mixer),
  13579. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13581. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13582. msm_routing_put_port_mixer),
  13583. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13585. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13586. msm_routing_put_port_mixer),
  13587. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13589. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13590. msm_routing_put_port_mixer),
  13591. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13593. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13594. msm_routing_put_port_mixer),
  13595. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13597. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13598. msm_routing_put_port_mixer),
  13599. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13601. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13602. msm_routing_put_port_mixer),
  13603. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13605. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13606. msm_routing_put_port_mixer),
  13607. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13609. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13610. msm_routing_put_port_mixer),
  13611. };
  13612. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  13613. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13614. MSM_BACKEND_DAI_USB_RX,
  13615. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  13616. msm_routing_put_port_mixer),
  13617. };
  13618. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  13619. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13621. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13622. msm_routing_put_port_mixer),
  13623. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13624. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13625. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13626. msm_routing_put_port_mixer),
  13627. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13628. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13629. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13630. msm_routing_put_port_mixer),
  13631. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13633. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13634. msm_routing_put_port_mixer),
  13635. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13637. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13638. msm_routing_put_port_mixer),
  13639. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13640. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13641. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13642. msm_routing_put_port_mixer),
  13643. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13644. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13645. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13646. msm_routing_put_port_mixer),
  13647. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13648. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13649. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13650. msm_routing_put_port_mixer),
  13651. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13653. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13654. msm_routing_put_port_mixer),
  13655. };
  13656. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  13657. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13659. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13660. msm_routing_put_port_mixer),
  13661. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13663. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13664. msm_routing_put_port_mixer),
  13665. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13667. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13668. msm_routing_put_port_mixer),
  13669. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13671. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13672. msm_routing_put_port_mixer),
  13673. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13675. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13676. msm_routing_put_port_mixer),
  13677. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13679. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13680. msm_routing_put_port_mixer),
  13681. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13683. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13684. msm_routing_put_port_mixer),
  13685. };
  13686. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  13687. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13689. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13690. msm_routing_get_port_mixer,
  13691. msm_routing_put_port_mixer),
  13692. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13693. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13694. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13695. msm_routing_get_port_mixer,
  13696. msm_routing_put_port_mixer),
  13697. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13699. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13700. msm_routing_get_port_mixer,
  13701. msm_routing_put_port_mixer),
  13702. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13703. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13704. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13705. msm_routing_get_port_mixer,
  13706. msm_routing_put_port_mixer),
  13707. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13709. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13710. msm_routing_get_port_mixer,
  13711. msm_routing_put_port_mixer),
  13712. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13713. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13714. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13715. msm_routing_get_port_mixer,
  13716. msm_routing_put_port_mixer),
  13717. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13718. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13719. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13720. msm_routing_get_port_mixer,
  13721. msm_routing_put_port_mixer),
  13722. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13723. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13724. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13725. msm_routing_get_port_mixer,
  13726. msm_routing_put_port_mixer),
  13727. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13729. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13730. msm_routing_get_port_mixer,
  13731. msm_routing_put_port_mixer),
  13732. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13734. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13735. msm_routing_get_port_mixer,
  13736. msm_routing_put_port_mixer),
  13737. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13739. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13740. msm_routing_get_port_mixer,
  13741. msm_routing_put_port_mixer),
  13742. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13744. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13745. msm_routing_get_port_mixer,
  13746. msm_routing_put_port_mixer),
  13747. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13748. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13749. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13750. msm_routing_get_port_mixer,
  13751. msm_routing_put_port_mixer),
  13752. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13753. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13754. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13755. msm_routing_get_port_mixer,
  13756. msm_routing_put_port_mixer),
  13757. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13759. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13760. msm_routing_get_port_mixer,
  13761. msm_routing_put_port_mixer),
  13762. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13763. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13764. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13765. msm_routing_get_port_mixer,
  13766. msm_routing_put_port_mixer),
  13767. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13769. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13770. msm_routing_get_port_mixer,
  13771. msm_routing_put_port_mixer),
  13772. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13773. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13774. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13775. msm_routing_get_port_mixer,
  13776. msm_routing_put_port_mixer),
  13777. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13779. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13780. msm_routing_get_port_mixer,
  13781. msm_routing_put_port_mixer),
  13782. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13783. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13784. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13785. msm_routing_get_port_mixer,
  13786. msm_routing_put_port_mixer),
  13787. };
  13788. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  13789. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13791. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13792. msm_routing_get_port_mixer,
  13793. msm_routing_put_port_mixer),
  13794. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13795. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13796. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13797. msm_routing_get_port_mixer,
  13798. msm_routing_put_port_mixer),
  13799. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13801. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13802. msm_routing_get_port_mixer,
  13803. msm_routing_put_port_mixer),
  13804. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13806. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13807. msm_routing_get_port_mixer,
  13808. msm_routing_put_port_mixer),
  13809. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13811. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13812. msm_routing_get_port_mixer,
  13813. msm_routing_put_port_mixer),
  13814. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13815. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13816. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13817. msm_routing_get_port_mixer,
  13818. msm_routing_put_port_mixer),
  13819. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13821. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13822. msm_routing_get_port_mixer,
  13823. msm_routing_put_port_mixer),
  13824. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13826. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13827. msm_routing_get_port_mixer,
  13828. msm_routing_put_port_mixer),
  13829. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13830. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13831. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13832. msm_routing_get_port_mixer,
  13833. msm_routing_put_port_mixer),
  13834. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13835. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13836. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13837. msm_routing_get_port_mixer,
  13838. msm_routing_put_port_mixer),
  13839. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13841. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13842. msm_routing_get_port_mixer,
  13843. msm_routing_put_port_mixer),
  13844. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13845. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13846. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13847. msm_routing_get_port_mixer,
  13848. msm_routing_put_port_mixer),
  13849. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13850. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13851. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13852. msm_routing_get_port_mixer,
  13853. msm_routing_put_port_mixer),
  13854. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13855. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13856. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13857. msm_routing_get_port_mixer,
  13858. msm_routing_put_port_mixer),
  13859. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13861. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13862. msm_routing_get_port_mixer,
  13863. msm_routing_put_port_mixer),
  13864. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13865. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13866. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13867. msm_routing_get_port_mixer,
  13868. msm_routing_put_port_mixer),
  13869. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13870. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13871. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13872. msm_routing_get_port_mixer,
  13873. msm_routing_put_port_mixer),
  13874. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13875. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13876. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13877. msm_routing_get_port_mixer,
  13878. msm_routing_put_port_mixer),
  13879. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13881. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13882. msm_routing_get_port_mixer,
  13883. msm_routing_put_port_mixer),
  13884. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13885. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13886. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13887. msm_routing_get_port_mixer,
  13888. msm_routing_put_port_mixer),
  13889. };
  13890. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  13891. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13893. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13894. msm_routing_get_port_mixer,
  13895. msm_routing_put_port_mixer),
  13896. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13897. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13898. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13899. msm_routing_get_port_mixer,
  13900. msm_routing_put_port_mixer),
  13901. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13903. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13904. msm_routing_get_port_mixer,
  13905. msm_routing_put_port_mixer),
  13906. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13907. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13908. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13909. msm_routing_get_port_mixer,
  13910. msm_routing_put_port_mixer),
  13911. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13913. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13914. msm_routing_get_port_mixer,
  13915. msm_routing_put_port_mixer),
  13916. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13917. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13918. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13919. msm_routing_get_port_mixer,
  13920. msm_routing_put_port_mixer),
  13921. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13922. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13923. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13924. msm_routing_get_port_mixer,
  13925. msm_routing_put_port_mixer),
  13926. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13927. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13928. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13929. msm_routing_get_port_mixer,
  13930. msm_routing_put_port_mixer),
  13931. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13933. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13934. msm_routing_get_port_mixer,
  13935. msm_routing_put_port_mixer),
  13936. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13937. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13938. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13939. msm_routing_get_port_mixer,
  13940. msm_routing_put_port_mixer),
  13941. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13942. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13943. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13944. msm_routing_get_port_mixer,
  13945. msm_routing_put_port_mixer),
  13946. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13948. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13949. msm_routing_get_port_mixer,
  13950. msm_routing_put_port_mixer),
  13951. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13953. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13954. msm_routing_get_port_mixer,
  13955. msm_routing_put_port_mixer),
  13956. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13957. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13958. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13959. msm_routing_get_port_mixer,
  13960. msm_routing_put_port_mixer),
  13961. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13963. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13964. msm_routing_get_port_mixer,
  13965. msm_routing_put_port_mixer),
  13966. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13967. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13968. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13969. msm_routing_get_port_mixer,
  13970. msm_routing_put_port_mixer),
  13971. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13973. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13974. msm_routing_get_port_mixer,
  13975. msm_routing_put_port_mixer),
  13976. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13977. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13978. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13979. msm_routing_get_port_mixer,
  13980. msm_routing_put_port_mixer),
  13981. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13982. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13983. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13984. msm_routing_get_port_mixer,
  13985. msm_routing_put_port_mixer),
  13986. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13987. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13988. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13989. msm_routing_get_port_mixer,
  13990. msm_routing_put_port_mixer),
  13991. };
  13992. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  13993. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13995. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13996. msm_routing_get_port_mixer,
  13997. msm_routing_put_port_mixer),
  13998. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14000. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14001. msm_routing_get_port_mixer,
  14002. msm_routing_put_port_mixer),
  14003. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14004. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14005. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14006. msm_routing_get_port_mixer,
  14007. msm_routing_put_port_mixer),
  14008. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14009. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14010. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14011. msm_routing_get_port_mixer,
  14012. msm_routing_put_port_mixer),
  14013. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14015. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14016. msm_routing_get_port_mixer,
  14017. msm_routing_put_port_mixer),
  14018. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14019. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14020. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14021. msm_routing_get_port_mixer,
  14022. msm_routing_put_port_mixer),
  14023. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14024. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14025. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14026. msm_routing_get_port_mixer,
  14027. msm_routing_put_port_mixer),
  14028. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14029. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14030. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14031. msm_routing_get_port_mixer,
  14032. msm_routing_put_port_mixer),
  14033. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14035. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  14036. msm_routing_get_port_mixer,
  14037. msm_routing_put_port_mixer),
  14038. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14039. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14040. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  14041. msm_routing_get_port_mixer,
  14042. msm_routing_put_port_mixer),
  14043. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14044. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14045. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  14046. msm_routing_get_port_mixer,
  14047. msm_routing_put_port_mixer),
  14048. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14049. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14050. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  14051. msm_routing_get_port_mixer,
  14052. msm_routing_put_port_mixer),
  14053. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14055. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14056. msm_routing_get_port_mixer,
  14057. msm_routing_put_port_mixer),
  14058. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14059. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14060. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14061. msm_routing_get_port_mixer,
  14062. msm_routing_put_port_mixer),
  14063. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14064. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14065. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14066. msm_routing_get_port_mixer,
  14067. msm_routing_put_port_mixer),
  14068. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14069. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14070. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14071. msm_routing_get_port_mixer,
  14072. msm_routing_put_port_mixer),
  14073. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14074. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14075. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14076. msm_routing_get_port_mixer,
  14077. msm_routing_put_port_mixer),
  14078. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14079. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14080. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14081. msm_routing_get_port_mixer,
  14082. msm_routing_put_port_mixer),
  14083. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14084. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14085. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14086. msm_routing_get_port_mixer,
  14087. msm_routing_put_port_mixer),
  14088. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14089. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14090. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14091. msm_routing_get_port_mixer,
  14092. msm_routing_put_port_mixer),
  14093. };
  14094. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  14095. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14097. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14098. msm_routing_get_port_mixer,
  14099. msm_routing_put_port_mixer),
  14100. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14101. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14102. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14103. msm_routing_get_port_mixer,
  14104. msm_routing_put_port_mixer),
  14105. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14107. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14108. msm_routing_get_port_mixer,
  14109. msm_routing_put_port_mixer),
  14110. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14111. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14112. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14113. msm_routing_get_port_mixer,
  14114. msm_routing_put_port_mixer),
  14115. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14116. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14117. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14118. msm_routing_get_port_mixer,
  14119. msm_routing_put_port_mixer),
  14120. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14121. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14122. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14123. msm_routing_get_port_mixer,
  14124. msm_routing_put_port_mixer),
  14125. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14126. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14127. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14128. msm_routing_get_port_mixer,
  14129. msm_routing_put_port_mixer),
  14130. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14131. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14132. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14133. msm_routing_get_port_mixer,
  14134. msm_routing_put_port_mixer),
  14135. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14137. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14138. msm_routing_get_port_mixer,
  14139. msm_routing_put_port_mixer),
  14140. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14141. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14142. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14143. msm_routing_get_port_mixer,
  14144. msm_routing_put_port_mixer),
  14145. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14147. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14148. msm_routing_get_port_mixer,
  14149. msm_routing_put_port_mixer),
  14150. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14151. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14152. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14153. msm_routing_get_port_mixer,
  14154. msm_routing_put_port_mixer),
  14155. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14156. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14157. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14158. msm_routing_get_port_mixer,
  14159. msm_routing_put_port_mixer),
  14160. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14161. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14162. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14163. msm_routing_get_port_mixer,
  14164. msm_routing_put_port_mixer),
  14165. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14166. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14167. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14168. msm_routing_get_port_mixer,
  14169. msm_routing_put_port_mixer),
  14170. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14171. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14172. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14173. msm_routing_get_port_mixer,
  14174. msm_routing_put_port_mixer),
  14175. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14177. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14178. msm_routing_get_port_mixer,
  14179. msm_routing_put_port_mixer),
  14180. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14181. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14182. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14183. msm_routing_get_port_mixer,
  14184. msm_routing_put_port_mixer),
  14185. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14186. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14187. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14188. msm_routing_get_port_mixer,
  14189. msm_routing_put_port_mixer),
  14190. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14191. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14192. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14193. msm_routing_get_port_mixer,
  14194. msm_routing_put_port_mixer),
  14195. };
  14196. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  14197. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14199. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14200. msm_routing_get_port_mixer,
  14201. msm_routing_put_port_mixer),
  14202. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14203. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14204. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14205. msm_routing_get_port_mixer,
  14206. msm_routing_put_port_mixer),
  14207. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14208. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14209. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14210. msm_routing_get_port_mixer,
  14211. msm_routing_put_port_mixer),
  14212. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14213. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14214. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14215. msm_routing_get_port_mixer,
  14216. msm_routing_put_port_mixer),
  14217. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14219. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14220. msm_routing_get_port_mixer,
  14221. msm_routing_put_port_mixer),
  14222. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14223. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14224. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14225. msm_routing_get_port_mixer,
  14226. msm_routing_put_port_mixer),
  14227. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14228. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14229. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14230. msm_routing_get_port_mixer,
  14231. msm_routing_put_port_mixer),
  14232. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14233. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14234. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14235. msm_routing_get_port_mixer,
  14236. msm_routing_put_port_mixer),
  14237. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14239. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14240. msm_routing_get_port_mixer,
  14241. msm_routing_put_port_mixer),
  14242. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14243. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14244. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14245. msm_routing_get_port_mixer,
  14246. msm_routing_put_port_mixer),
  14247. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14248. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14249. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14250. msm_routing_get_port_mixer,
  14251. msm_routing_put_port_mixer),
  14252. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14253. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14254. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14255. msm_routing_get_port_mixer,
  14256. msm_routing_put_port_mixer),
  14257. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14259. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14260. msm_routing_get_port_mixer,
  14261. msm_routing_put_port_mixer),
  14262. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14263. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14264. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14265. msm_routing_get_port_mixer,
  14266. msm_routing_put_port_mixer),
  14267. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14268. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14269. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14270. msm_routing_get_port_mixer,
  14271. msm_routing_put_port_mixer),
  14272. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14273. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14274. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14275. msm_routing_get_port_mixer,
  14276. msm_routing_put_port_mixer),
  14277. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14278. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14279. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14280. msm_routing_get_port_mixer,
  14281. msm_routing_put_port_mixer),
  14282. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14283. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14284. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14285. msm_routing_get_port_mixer,
  14286. msm_routing_put_port_mixer),
  14287. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14289. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14290. msm_routing_get_port_mixer,
  14291. msm_routing_put_port_mixer),
  14292. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14293. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14294. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14295. msm_routing_get_port_mixer,
  14296. msm_routing_put_port_mixer),
  14297. };
  14298. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  14299. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14300. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14301. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14302. msm_routing_get_port_mixer,
  14303. msm_routing_put_port_mixer),
  14304. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14305. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14306. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14307. msm_routing_get_port_mixer,
  14308. msm_routing_put_port_mixer),
  14309. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14311. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14312. msm_routing_get_port_mixer,
  14313. msm_routing_put_port_mixer),
  14314. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14315. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14316. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14317. msm_routing_get_port_mixer,
  14318. msm_routing_put_port_mixer),
  14319. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14320. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14321. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14322. msm_routing_get_port_mixer,
  14323. msm_routing_put_port_mixer),
  14324. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14325. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14326. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14327. msm_routing_get_port_mixer,
  14328. msm_routing_put_port_mixer),
  14329. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14330. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14331. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14332. msm_routing_get_port_mixer,
  14333. msm_routing_put_port_mixer),
  14334. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14335. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14336. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14337. msm_routing_get_port_mixer,
  14338. msm_routing_put_port_mixer),
  14339. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14340. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14341. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14342. msm_routing_get_port_mixer,
  14343. msm_routing_put_port_mixer),
  14344. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14345. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14346. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14347. msm_routing_get_port_mixer,
  14348. msm_routing_put_port_mixer),
  14349. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14351. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14352. msm_routing_get_port_mixer,
  14353. msm_routing_put_port_mixer),
  14354. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14355. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14356. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14357. msm_routing_get_port_mixer,
  14358. msm_routing_put_port_mixer),
  14359. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14360. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14361. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14362. msm_routing_get_port_mixer,
  14363. msm_routing_put_port_mixer),
  14364. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14365. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14366. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14367. msm_routing_get_port_mixer,
  14368. msm_routing_put_port_mixer),
  14369. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14370. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14371. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14372. msm_routing_get_port_mixer,
  14373. msm_routing_put_port_mixer),
  14374. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14375. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14376. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14377. msm_routing_get_port_mixer,
  14378. msm_routing_put_port_mixer),
  14379. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14381. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14382. msm_routing_get_port_mixer,
  14383. msm_routing_put_port_mixer),
  14384. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14385. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14386. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14387. msm_routing_get_port_mixer,
  14388. msm_routing_put_port_mixer),
  14389. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14391. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14392. msm_routing_get_port_mixer,
  14393. msm_routing_put_port_mixer),
  14394. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14395. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14396. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14397. msm_routing_get_port_mixer,
  14398. msm_routing_put_port_mixer),
  14399. };
  14400. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  14401. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14403. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14404. msm_routing_get_port_mixer,
  14405. msm_routing_put_port_mixer),
  14406. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14407. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14408. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14409. msm_routing_get_port_mixer,
  14410. msm_routing_put_port_mixer),
  14411. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14413. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14414. msm_routing_get_port_mixer,
  14415. msm_routing_put_port_mixer),
  14416. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14417. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14418. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14419. msm_routing_get_port_mixer,
  14420. msm_routing_put_port_mixer),
  14421. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14422. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14423. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14424. msm_routing_get_port_mixer,
  14425. msm_routing_put_port_mixer),
  14426. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14427. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14428. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14429. msm_routing_get_port_mixer,
  14430. msm_routing_put_port_mixer),
  14431. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14432. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14433. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14434. msm_routing_get_port_mixer,
  14435. msm_routing_put_port_mixer),
  14436. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14437. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14438. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14439. msm_routing_get_port_mixer,
  14440. msm_routing_put_port_mixer),
  14441. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14443. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14444. msm_routing_get_port_mixer,
  14445. msm_routing_put_port_mixer),
  14446. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14447. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14448. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14449. msm_routing_get_port_mixer,
  14450. msm_routing_put_port_mixer),
  14451. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14452. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14453. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14454. msm_routing_get_port_mixer,
  14455. msm_routing_put_port_mixer),
  14456. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14457. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14458. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14459. msm_routing_get_port_mixer,
  14460. msm_routing_put_port_mixer),
  14461. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14463. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14464. msm_routing_get_port_mixer,
  14465. msm_routing_put_port_mixer),
  14466. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14467. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14468. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14469. msm_routing_get_port_mixer,
  14470. msm_routing_put_port_mixer),
  14471. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14472. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14473. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14474. msm_routing_get_port_mixer,
  14475. msm_routing_put_port_mixer),
  14476. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14477. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14478. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14479. msm_routing_get_port_mixer,
  14480. msm_routing_put_port_mixer),
  14481. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14483. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14484. msm_routing_get_port_mixer,
  14485. msm_routing_put_port_mixer),
  14486. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14487. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14488. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14489. msm_routing_get_port_mixer,
  14490. msm_routing_put_port_mixer),
  14491. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14492. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14493. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14494. msm_routing_get_port_mixer,
  14495. msm_routing_put_port_mixer),
  14496. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14497. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14498. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14499. msm_routing_get_port_mixer,
  14500. msm_routing_put_port_mixer),
  14501. };
  14502. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  14503. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  14504. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  14505. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  14506. msm_routing_get_port_mixer,
  14507. msm_routing_put_port_mixer),
  14508. };
  14509. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  14510. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14511. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14512. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14513. msm_routing_get_port_mixer,
  14514. msm_routing_put_port_mixer),
  14515. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14516. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14517. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14518. msm_routing_get_port_mixer,
  14519. msm_routing_put_port_mixer),
  14520. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14521. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14522. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14523. msm_routing_get_port_mixer,
  14524. msm_routing_put_port_mixer),
  14525. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14526. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14527. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14528. msm_routing_get_port_mixer,
  14529. msm_routing_put_port_mixer),
  14530. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14531. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14532. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14533. msm_routing_get_port_mixer,
  14534. msm_routing_put_port_mixer),
  14535. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14536. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14537. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14538. msm_routing_get_port_mixer,
  14539. msm_routing_put_port_mixer),
  14540. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14541. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14542. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14543. msm_routing_get_port_mixer,
  14544. msm_routing_put_port_mixer),
  14545. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14546. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14547. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14548. msm_routing_get_port_mixer,
  14549. msm_routing_put_port_mixer),
  14550. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14551. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14552. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14553. msm_routing_get_port_mixer,
  14554. msm_routing_put_port_mixer),
  14555. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14556. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14557. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14558. msm_routing_get_port_mixer,
  14559. msm_routing_put_port_mixer),
  14560. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14561. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14562. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14563. msm_routing_get_port_mixer,
  14564. msm_routing_put_port_mixer),
  14565. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14566. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14567. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14568. msm_routing_get_port_mixer,
  14569. msm_routing_put_port_mixer),
  14570. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14571. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14572. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14573. msm_routing_get_port_mixer,
  14574. msm_routing_put_port_mixer),
  14575. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14576. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14577. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14578. msm_routing_get_port_mixer,
  14579. msm_routing_put_port_mixer),
  14580. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14581. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14582. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14583. msm_routing_get_port_mixer,
  14584. msm_routing_put_port_mixer),
  14585. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14586. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14587. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14588. msm_routing_get_port_mixer,
  14589. msm_routing_put_port_mixer),
  14590. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14591. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14592. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14593. msm_routing_get_port_mixer,
  14594. msm_routing_put_port_mixer),
  14595. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14596. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14597. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14598. msm_routing_get_port_mixer,
  14599. msm_routing_put_port_mixer),
  14600. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14601. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14602. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14603. msm_routing_get_port_mixer,
  14604. msm_routing_put_port_mixer),
  14605. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14606. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14607. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14608. msm_routing_get_port_mixer,
  14609. msm_routing_put_port_mixer),
  14610. };
  14611. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  14612. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14613. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14614. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14615. msm_routing_get_port_mixer,
  14616. msm_routing_put_port_mixer),
  14617. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14619. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14620. msm_routing_get_port_mixer,
  14621. msm_routing_put_port_mixer),
  14622. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14623. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14624. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14625. msm_routing_get_port_mixer,
  14626. msm_routing_put_port_mixer),
  14627. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14628. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14629. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14630. msm_routing_get_port_mixer,
  14631. msm_routing_put_port_mixer),
  14632. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14633. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14634. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14635. msm_routing_get_port_mixer,
  14636. msm_routing_put_port_mixer),
  14637. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14638. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14639. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14640. msm_routing_get_port_mixer,
  14641. msm_routing_put_port_mixer),
  14642. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14643. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14644. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14645. msm_routing_get_port_mixer,
  14646. msm_routing_put_port_mixer),
  14647. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14648. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14649. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14650. msm_routing_get_port_mixer,
  14651. msm_routing_put_port_mixer),
  14652. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14653. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14654. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14655. msm_routing_get_port_mixer,
  14656. msm_routing_put_port_mixer),
  14657. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14658. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14659. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14660. msm_routing_get_port_mixer,
  14661. msm_routing_put_port_mixer),
  14662. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14663. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14664. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14665. msm_routing_get_port_mixer,
  14666. msm_routing_put_port_mixer),
  14667. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14668. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14669. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14670. msm_routing_get_port_mixer,
  14671. msm_routing_put_port_mixer),
  14672. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14673. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14674. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14675. msm_routing_get_port_mixer,
  14676. msm_routing_put_port_mixer),
  14677. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14678. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14679. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14680. msm_routing_get_port_mixer,
  14681. msm_routing_put_port_mixer),
  14682. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14683. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14684. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14685. msm_routing_get_port_mixer,
  14686. msm_routing_put_port_mixer),
  14687. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14688. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14689. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14690. msm_routing_get_port_mixer,
  14691. msm_routing_put_port_mixer),
  14692. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14693. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14694. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14695. msm_routing_get_port_mixer,
  14696. msm_routing_put_port_mixer),
  14697. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14698. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14699. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14700. msm_routing_get_port_mixer,
  14701. msm_routing_put_port_mixer),
  14702. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14703. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14704. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14705. msm_routing_get_port_mixer,
  14706. msm_routing_put_port_mixer),
  14707. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14708. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14709. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14710. msm_routing_get_port_mixer,
  14711. msm_routing_put_port_mixer),
  14712. };
  14713. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  14714. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14715. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14716. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14717. msm_routing_get_port_mixer,
  14718. msm_routing_put_port_mixer),
  14719. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14720. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14721. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14722. msm_routing_get_port_mixer,
  14723. msm_routing_put_port_mixer),
  14724. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14725. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14726. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14727. msm_routing_get_port_mixer,
  14728. msm_routing_put_port_mixer),
  14729. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14731. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14732. msm_routing_get_port_mixer,
  14733. msm_routing_put_port_mixer),
  14734. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14735. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14736. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14737. msm_routing_get_port_mixer,
  14738. msm_routing_put_port_mixer),
  14739. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14740. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14741. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14742. msm_routing_get_port_mixer,
  14743. msm_routing_put_port_mixer),
  14744. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14745. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14746. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14747. msm_routing_get_port_mixer,
  14748. msm_routing_put_port_mixer),
  14749. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14750. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14751. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14752. msm_routing_get_port_mixer,
  14753. msm_routing_put_port_mixer),
  14754. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14755. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14756. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14757. msm_routing_get_port_mixer,
  14758. msm_routing_put_port_mixer),
  14759. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14760. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14761. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14762. msm_routing_get_port_mixer,
  14763. msm_routing_put_port_mixer),
  14764. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14765. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14766. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14767. msm_routing_get_port_mixer,
  14768. msm_routing_put_port_mixer),
  14769. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14770. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14771. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14772. msm_routing_get_port_mixer,
  14773. msm_routing_put_port_mixer),
  14774. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14775. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14776. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14777. msm_routing_get_port_mixer,
  14778. msm_routing_put_port_mixer),
  14779. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14780. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14781. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14782. msm_routing_get_port_mixer,
  14783. msm_routing_put_port_mixer),
  14784. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14785. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14786. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14787. msm_routing_get_port_mixer,
  14788. msm_routing_put_port_mixer),
  14789. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14790. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14791. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14792. msm_routing_get_port_mixer,
  14793. msm_routing_put_port_mixer),
  14794. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14795. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14796. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14797. msm_routing_get_port_mixer,
  14798. msm_routing_put_port_mixer),
  14799. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14800. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14801. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14802. msm_routing_get_port_mixer,
  14803. msm_routing_put_port_mixer),
  14804. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14805. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14806. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14807. msm_routing_get_port_mixer,
  14808. msm_routing_put_port_mixer),
  14809. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14811. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14812. msm_routing_get_port_mixer,
  14813. msm_routing_put_port_mixer),
  14814. };
  14815. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  14816. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14817. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14818. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14819. msm_routing_get_port_mixer,
  14820. msm_routing_put_port_mixer),
  14821. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14822. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14823. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14824. msm_routing_get_port_mixer,
  14825. msm_routing_put_port_mixer),
  14826. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14827. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14828. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14829. msm_routing_get_port_mixer,
  14830. msm_routing_put_port_mixer),
  14831. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14833. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14834. msm_routing_get_port_mixer,
  14835. msm_routing_put_port_mixer),
  14836. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14837. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14838. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14839. msm_routing_get_port_mixer,
  14840. msm_routing_put_port_mixer),
  14841. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14842. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14843. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14844. msm_routing_get_port_mixer,
  14845. msm_routing_put_port_mixer),
  14846. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14847. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14848. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14849. msm_routing_get_port_mixer,
  14850. msm_routing_put_port_mixer),
  14851. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14852. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14853. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14854. msm_routing_get_port_mixer,
  14855. msm_routing_put_port_mixer),
  14856. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14857. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14858. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14859. msm_routing_get_port_mixer,
  14860. msm_routing_put_port_mixer),
  14861. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14863. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14864. msm_routing_get_port_mixer,
  14865. msm_routing_put_port_mixer),
  14866. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14867. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14868. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14869. msm_routing_get_port_mixer,
  14870. msm_routing_put_port_mixer),
  14871. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14872. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14873. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14874. msm_routing_get_port_mixer,
  14875. msm_routing_put_port_mixer),
  14876. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14877. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14878. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14879. msm_routing_get_port_mixer,
  14880. msm_routing_put_port_mixer),
  14881. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14883. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14884. msm_routing_get_port_mixer,
  14885. msm_routing_put_port_mixer),
  14886. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14887. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14888. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14889. msm_routing_get_port_mixer,
  14890. msm_routing_put_port_mixer),
  14891. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14892. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14893. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14894. msm_routing_get_port_mixer,
  14895. msm_routing_put_port_mixer),
  14896. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14897. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14898. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14899. msm_routing_get_port_mixer,
  14900. msm_routing_put_port_mixer),
  14901. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14902. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14903. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14904. msm_routing_get_port_mixer,
  14905. msm_routing_put_port_mixer),
  14906. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14907. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14908. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14909. msm_routing_get_port_mixer,
  14910. msm_routing_put_port_mixer),
  14911. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14913. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14914. msm_routing_get_port_mixer,
  14915. msm_routing_put_port_mixer),
  14916. };
  14917. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  14918. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14919. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14920. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14921. msm_routing_get_port_mixer,
  14922. msm_routing_put_port_mixer),
  14923. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14924. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14925. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14926. msm_routing_get_port_mixer,
  14927. msm_routing_put_port_mixer),
  14928. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14929. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14930. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14931. msm_routing_get_port_mixer,
  14932. msm_routing_put_port_mixer),
  14933. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14934. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14935. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14936. msm_routing_get_port_mixer,
  14937. msm_routing_put_port_mixer),
  14938. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14939. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14940. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14941. msm_routing_get_port_mixer,
  14942. msm_routing_put_port_mixer),
  14943. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14945. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14946. msm_routing_get_port_mixer,
  14947. msm_routing_put_port_mixer),
  14948. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14949. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14950. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14951. msm_routing_get_port_mixer,
  14952. msm_routing_put_port_mixer),
  14953. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14954. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14955. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14956. msm_routing_get_port_mixer,
  14957. msm_routing_put_port_mixer),
  14958. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14959. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14960. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14961. msm_routing_get_port_mixer,
  14962. msm_routing_put_port_mixer),
  14963. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14964. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14965. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14966. msm_routing_get_port_mixer,
  14967. msm_routing_put_port_mixer),
  14968. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14969. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14970. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14971. msm_routing_get_port_mixer,
  14972. msm_routing_put_port_mixer),
  14973. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14974. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14975. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14976. msm_routing_get_port_mixer,
  14977. msm_routing_put_port_mixer),
  14978. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14979. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14980. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14981. msm_routing_get_port_mixer,
  14982. msm_routing_put_port_mixer),
  14983. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14984. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14985. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14986. msm_routing_get_port_mixer,
  14987. msm_routing_put_port_mixer),
  14988. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14989. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14990. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14991. msm_routing_get_port_mixer,
  14992. msm_routing_put_port_mixer),
  14993. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14994. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14995. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14996. msm_routing_get_port_mixer,
  14997. msm_routing_put_port_mixer),
  14998. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14999. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15000. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15001. msm_routing_get_port_mixer,
  15002. msm_routing_put_port_mixer),
  15003. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15005. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15006. msm_routing_get_port_mixer,
  15007. msm_routing_put_port_mixer),
  15008. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15009. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15010. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15011. msm_routing_get_port_mixer,
  15012. msm_routing_put_port_mixer),
  15013. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15014. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15015. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15016. msm_routing_get_port_mixer,
  15017. msm_routing_put_port_mixer),
  15018. };
  15019. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  15020. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15021. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15022. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15023. msm_routing_get_port_mixer,
  15024. msm_routing_put_port_mixer),
  15025. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15027. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15028. msm_routing_get_port_mixer,
  15029. msm_routing_put_port_mixer),
  15030. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15031. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15032. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15033. msm_routing_get_port_mixer,
  15034. msm_routing_put_port_mixer),
  15035. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15037. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15038. msm_routing_get_port_mixer,
  15039. msm_routing_put_port_mixer),
  15040. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15041. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15042. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15043. msm_routing_get_port_mixer,
  15044. msm_routing_put_port_mixer),
  15045. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15046. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15047. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15048. msm_routing_get_port_mixer,
  15049. msm_routing_put_port_mixer),
  15050. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15051. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15052. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15053. msm_routing_get_port_mixer,
  15054. msm_routing_put_port_mixer),
  15055. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15056. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15057. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15058. msm_routing_get_port_mixer,
  15059. msm_routing_put_port_mixer),
  15060. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15061. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15062. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15063. msm_routing_get_port_mixer,
  15064. msm_routing_put_port_mixer),
  15065. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15066. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15067. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15068. msm_routing_get_port_mixer,
  15069. msm_routing_put_port_mixer),
  15070. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15071. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15072. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15073. msm_routing_get_port_mixer,
  15074. msm_routing_put_port_mixer),
  15075. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15076. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15077. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15078. msm_routing_get_port_mixer,
  15079. msm_routing_put_port_mixer),
  15080. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15081. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15082. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15083. msm_routing_get_port_mixer,
  15084. msm_routing_put_port_mixer),
  15085. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15086. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15087. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15088. msm_routing_get_port_mixer,
  15089. msm_routing_put_port_mixer),
  15090. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15091. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15092. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15093. msm_routing_get_port_mixer,
  15094. msm_routing_put_port_mixer),
  15095. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15096. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15097. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15098. msm_routing_get_port_mixer,
  15099. msm_routing_put_port_mixer),
  15100. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15101. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15102. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15103. msm_routing_get_port_mixer,
  15104. msm_routing_put_port_mixer),
  15105. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15106. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15107. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15108. msm_routing_get_port_mixer,
  15109. msm_routing_put_port_mixer),
  15110. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15111. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15112. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15113. msm_routing_get_port_mixer,
  15114. msm_routing_put_port_mixer),
  15115. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15117. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15118. msm_routing_get_port_mixer,
  15119. msm_routing_put_port_mixer),
  15120. };
  15121. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  15122. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15123. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15124. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15125. msm_routing_get_port_mixer,
  15126. msm_routing_put_port_mixer),
  15127. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15129. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15130. msm_routing_get_port_mixer,
  15131. msm_routing_put_port_mixer),
  15132. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15133. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15134. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15135. msm_routing_get_port_mixer,
  15136. msm_routing_put_port_mixer),
  15137. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15138. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15139. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15140. msm_routing_get_port_mixer,
  15141. msm_routing_put_port_mixer),
  15142. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15143. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15144. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15145. msm_routing_get_port_mixer,
  15146. msm_routing_put_port_mixer),
  15147. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15148. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15149. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15150. msm_routing_get_port_mixer,
  15151. msm_routing_put_port_mixer),
  15152. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15153. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15154. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15155. msm_routing_get_port_mixer,
  15156. msm_routing_put_port_mixer),
  15157. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15158. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15159. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15160. msm_routing_get_port_mixer,
  15161. msm_routing_put_port_mixer),
  15162. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15163. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15164. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15165. msm_routing_get_port_mixer,
  15166. msm_routing_put_port_mixer),
  15167. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15168. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15169. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15170. msm_routing_get_port_mixer,
  15171. msm_routing_put_port_mixer),
  15172. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15173. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15174. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15175. msm_routing_get_port_mixer,
  15176. msm_routing_put_port_mixer),
  15177. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15178. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15179. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15180. msm_routing_get_port_mixer,
  15181. msm_routing_put_port_mixer),
  15182. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15183. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15184. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15185. msm_routing_get_port_mixer,
  15186. msm_routing_put_port_mixer),
  15187. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15188. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15189. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15190. msm_routing_get_port_mixer,
  15191. msm_routing_put_port_mixer),
  15192. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15193. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15194. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15195. msm_routing_get_port_mixer,
  15196. msm_routing_put_port_mixer),
  15197. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15198. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15199. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15200. msm_routing_get_port_mixer,
  15201. msm_routing_put_port_mixer),
  15202. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15203. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15204. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15205. msm_routing_get_port_mixer,
  15206. msm_routing_put_port_mixer),
  15207. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15208. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15209. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15210. msm_routing_get_port_mixer,
  15211. msm_routing_put_port_mixer),
  15212. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15213. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15214. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15215. msm_routing_get_port_mixer,
  15216. msm_routing_put_port_mixer),
  15217. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15218. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15219. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15220. msm_routing_get_port_mixer,
  15221. msm_routing_put_port_mixer),
  15222. };
  15223. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  15224. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15225. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15226. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15227. msm_routing_get_port_mixer,
  15228. msm_routing_put_port_mixer),
  15229. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15230. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15231. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15232. msm_routing_get_port_mixer,
  15233. msm_routing_put_port_mixer),
  15234. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15235. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15236. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15237. msm_routing_get_port_mixer,
  15238. msm_routing_put_port_mixer),
  15239. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15240. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15241. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15242. msm_routing_get_port_mixer,
  15243. msm_routing_put_port_mixer),
  15244. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15246. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15247. msm_routing_get_port_mixer,
  15248. msm_routing_put_port_mixer),
  15249. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15250. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15251. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15252. msm_routing_get_port_mixer,
  15253. msm_routing_put_port_mixer),
  15254. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15255. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15256. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15257. msm_routing_get_port_mixer,
  15258. msm_routing_put_port_mixer),
  15259. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15260. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15261. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15262. msm_routing_get_port_mixer,
  15263. msm_routing_put_port_mixer),
  15264. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15265. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15266. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15267. msm_routing_get_port_mixer,
  15268. msm_routing_put_port_mixer),
  15269. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15270. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15271. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15272. msm_routing_get_port_mixer,
  15273. msm_routing_put_port_mixer),
  15274. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15275. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15276. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15277. msm_routing_get_port_mixer,
  15278. msm_routing_put_port_mixer),
  15279. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15280. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15281. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15282. msm_routing_get_port_mixer,
  15283. msm_routing_put_port_mixer),
  15284. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15285. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15286. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15287. msm_routing_get_port_mixer,
  15288. msm_routing_put_port_mixer),
  15289. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15290. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15291. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15292. msm_routing_get_port_mixer,
  15293. msm_routing_put_port_mixer),
  15294. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15295. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15296. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15297. msm_routing_get_port_mixer,
  15298. msm_routing_put_port_mixer),
  15299. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15300. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15301. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15302. msm_routing_get_port_mixer,
  15303. msm_routing_put_port_mixer),
  15304. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15305. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15306. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15307. msm_routing_get_port_mixer,
  15308. msm_routing_put_port_mixer),
  15309. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15310. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15311. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15312. msm_routing_get_port_mixer,
  15313. msm_routing_put_port_mixer),
  15314. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15315. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15316. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15317. msm_routing_get_port_mixer,
  15318. msm_routing_put_port_mixer),
  15319. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15320. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15321. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15322. msm_routing_get_port_mixer,
  15323. msm_routing_put_port_mixer),
  15324. };
  15325. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  15326. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15327. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15328. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15329. msm_routing_get_port_mixer,
  15330. msm_routing_put_port_mixer),
  15331. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15332. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15333. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15334. msm_routing_get_port_mixer,
  15335. msm_routing_put_port_mixer),
  15336. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15337. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15338. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15339. msm_routing_get_port_mixer,
  15340. msm_routing_put_port_mixer),
  15341. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15342. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15343. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15344. msm_routing_get_port_mixer,
  15345. msm_routing_put_port_mixer),
  15346. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15347. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15348. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15349. msm_routing_get_port_mixer,
  15350. msm_routing_put_port_mixer),
  15351. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15353. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15354. msm_routing_get_port_mixer,
  15355. msm_routing_put_port_mixer),
  15356. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15357. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15358. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15359. msm_routing_get_port_mixer,
  15360. msm_routing_put_port_mixer),
  15361. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15362. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15363. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15364. msm_routing_get_port_mixer,
  15365. msm_routing_put_port_mixer),
  15366. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15367. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15368. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15369. msm_routing_get_port_mixer,
  15370. msm_routing_put_port_mixer),
  15371. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15372. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15373. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15374. msm_routing_get_port_mixer,
  15375. msm_routing_put_port_mixer),
  15376. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15378. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15379. msm_routing_get_port_mixer,
  15380. msm_routing_put_port_mixer),
  15381. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15382. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15383. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15384. msm_routing_get_port_mixer,
  15385. msm_routing_put_port_mixer),
  15386. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15387. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15388. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15389. msm_routing_get_port_mixer,
  15390. msm_routing_put_port_mixer),
  15391. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15392. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15393. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15394. msm_routing_get_port_mixer,
  15395. msm_routing_put_port_mixer),
  15396. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15397. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15398. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15399. msm_routing_get_port_mixer,
  15400. msm_routing_put_port_mixer),
  15401. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15402. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15403. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15404. msm_routing_get_port_mixer,
  15405. msm_routing_put_port_mixer),
  15406. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15408. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15409. msm_routing_get_port_mixer,
  15410. msm_routing_put_port_mixer),
  15411. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15412. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15413. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15414. msm_routing_get_port_mixer,
  15415. msm_routing_put_port_mixer),
  15416. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15417. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15418. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15419. msm_routing_get_port_mixer,
  15420. msm_routing_put_port_mixer),
  15421. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15422. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15423. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15424. msm_routing_get_port_mixer,
  15425. msm_routing_put_port_mixer),
  15426. };
  15427. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  15428. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15430. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15431. msm_routing_get_port_mixer,
  15432. msm_routing_put_port_mixer),
  15433. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15434. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15435. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15436. msm_routing_get_port_mixer,
  15437. msm_routing_put_port_mixer),
  15438. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15439. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15440. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15441. msm_routing_get_port_mixer,
  15442. msm_routing_put_port_mixer),
  15443. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15444. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15445. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15446. msm_routing_get_port_mixer,
  15447. msm_routing_put_port_mixer),
  15448. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15450. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15451. msm_routing_get_port_mixer,
  15452. msm_routing_put_port_mixer),
  15453. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15454. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15455. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15456. msm_routing_get_port_mixer,
  15457. msm_routing_put_port_mixer),
  15458. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15459. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15460. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15461. msm_routing_get_port_mixer,
  15462. msm_routing_put_port_mixer),
  15463. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15464. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15465. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15466. msm_routing_get_port_mixer,
  15467. msm_routing_put_port_mixer),
  15468. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15469. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15470. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15471. msm_routing_get_port_mixer,
  15472. msm_routing_put_port_mixer),
  15473. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15474. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15475. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15476. msm_routing_get_port_mixer,
  15477. msm_routing_put_port_mixer),
  15478. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15479. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15480. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15481. msm_routing_get_port_mixer,
  15482. msm_routing_put_port_mixer),
  15483. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15484. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15485. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15486. msm_routing_get_port_mixer,
  15487. msm_routing_put_port_mixer),
  15488. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15489. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15490. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15491. msm_routing_get_port_mixer,
  15492. msm_routing_put_port_mixer),
  15493. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15494. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15495. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15496. msm_routing_get_port_mixer,
  15497. msm_routing_put_port_mixer),
  15498. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15499. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15500. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15501. msm_routing_get_port_mixer,
  15502. msm_routing_put_port_mixer),
  15503. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15504. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15505. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15506. msm_routing_get_port_mixer,
  15507. msm_routing_put_port_mixer),
  15508. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15509. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15510. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15511. msm_routing_get_port_mixer,
  15512. msm_routing_put_port_mixer),
  15513. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15514. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15515. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15516. msm_routing_get_port_mixer,
  15517. msm_routing_put_port_mixer),
  15518. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15520. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15521. msm_routing_get_port_mixer,
  15522. msm_routing_put_port_mixer),
  15523. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15524. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15525. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15526. msm_routing_get_port_mixer,
  15527. msm_routing_put_port_mixer),
  15528. };
  15529. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  15530. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15531. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15532. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15533. msm_routing_get_port_mixer,
  15534. msm_routing_put_port_mixer),
  15535. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15536. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15537. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15538. msm_routing_get_port_mixer,
  15539. msm_routing_put_port_mixer),
  15540. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15542. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15543. msm_routing_get_port_mixer,
  15544. msm_routing_put_port_mixer),
  15545. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15546. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15547. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15548. msm_routing_get_port_mixer,
  15549. msm_routing_put_port_mixer),
  15550. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15551. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15552. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15553. msm_routing_get_port_mixer,
  15554. msm_routing_put_port_mixer),
  15555. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15556. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15557. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15558. msm_routing_get_port_mixer,
  15559. msm_routing_put_port_mixer),
  15560. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15561. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15562. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15563. msm_routing_get_port_mixer,
  15564. msm_routing_put_port_mixer),
  15565. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15566. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15567. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15568. msm_routing_get_port_mixer,
  15569. msm_routing_put_port_mixer),
  15570. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15571. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15572. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15573. msm_routing_get_port_mixer,
  15574. msm_routing_put_port_mixer),
  15575. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15576. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15577. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15578. msm_routing_get_port_mixer,
  15579. msm_routing_put_port_mixer),
  15580. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15581. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15582. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15583. msm_routing_get_port_mixer,
  15584. msm_routing_put_port_mixer),
  15585. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15586. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15587. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15588. msm_routing_get_port_mixer,
  15589. msm_routing_put_port_mixer),
  15590. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15591. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15592. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15593. msm_routing_get_port_mixer,
  15594. msm_routing_put_port_mixer),
  15595. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15596. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15597. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15598. msm_routing_get_port_mixer,
  15599. msm_routing_put_port_mixer),
  15600. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15601. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15602. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15603. msm_routing_get_port_mixer,
  15604. msm_routing_put_port_mixer),
  15605. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15606. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15607. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15608. msm_routing_get_port_mixer,
  15609. msm_routing_put_port_mixer),
  15610. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15611. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15612. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15613. msm_routing_get_port_mixer,
  15614. msm_routing_put_port_mixer),
  15615. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15616. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15617. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15618. msm_routing_get_port_mixer,
  15619. msm_routing_put_port_mixer),
  15620. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15622. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15623. msm_routing_get_port_mixer,
  15624. msm_routing_put_port_mixer),
  15625. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15626. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15627. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15628. msm_routing_get_port_mixer,
  15629. msm_routing_put_port_mixer),
  15630. };
  15631. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  15632. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15634. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15635. msm_routing_get_port_mixer,
  15636. msm_routing_put_port_mixer),
  15637. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15639. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15640. msm_routing_get_port_mixer,
  15641. msm_routing_put_port_mixer),
  15642. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15643. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15644. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15645. msm_routing_get_port_mixer,
  15646. msm_routing_put_port_mixer),
  15647. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15648. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15649. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15650. msm_routing_get_port_mixer,
  15651. msm_routing_put_port_mixer),
  15652. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15653. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15654. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15655. msm_routing_get_port_mixer,
  15656. msm_routing_put_port_mixer),
  15657. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15658. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15659. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15660. msm_routing_get_port_mixer,
  15661. msm_routing_put_port_mixer),
  15662. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15663. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15664. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15665. msm_routing_get_port_mixer,
  15666. msm_routing_put_port_mixer),
  15667. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15669. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15670. msm_routing_get_port_mixer,
  15671. msm_routing_put_port_mixer),
  15672. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15673. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15674. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15675. msm_routing_get_port_mixer,
  15676. msm_routing_put_port_mixer),
  15677. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15678. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15679. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15680. msm_routing_get_port_mixer,
  15681. msm_routing_put_port_mixer),
  15682. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15683. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15684. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15685. msm_routing_get_port_mixer,
  15686. msm_routing_put_port_mixer),
  15687. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15688. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15689. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15690. msm_routing_get_port_mixer,
  15691. msm_routing_put_port_mixer),
  15692. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15693. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15694. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15695. msm_routing_get_port_mixer,
  15696. msm_routing_put_port_mixer),
  15697. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15698. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15699. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15700. msm_routing_get_port_mixer,
  15701. msm_routing_put_port_mixer),
  15702. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15703. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15704. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15705. msm_routing_get_port_mixer,
  15706. msm_routing_put_port_mixer),
  15707. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15708. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15709. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15710. msm_routing_get_port_mixer,
  15711. msm_routing_put_port_mixer),
  15712. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15713. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15714. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15715. msm_routing_get_port_mixer,
  15716. msm_routing_put_port_mixer),
  15717. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15718. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15719. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15720. msm_routing_get_port_mixer,
  15721. msm_routing_put_port_mixer),
  15722. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15723. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15724. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15725. msm_routing_get_port_mixer,
  15726. msm_routing_put_port_mixer),
  15727. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15728. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15729. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15730. msm_routing_get_port_mixer,
  15731. msm_routing_put_port_mixer),
  15732. };
  15733. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  15734. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15735. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15736. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15737. msm_routing_put_port_mixer),
  15738. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15740. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15741. msm_routing_put_port_mixer),
  15742. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15743. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15744. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15745. msm_routing_put_port_mixer),
  15746. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15748. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15749. msm_routing_put_port_mixer),
  15750. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15752. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15753. msm_routing_put_port_mixer),
  15754. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15755. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15756. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15757. msm_routing_put_port_mixer),
  15758. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15759. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15760. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15761. msm_routing_put_port_mixer),
  15762. };
  15763. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  15764. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15765. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15766. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15767. msm_routing_put_port_mixer),
  15768. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15770. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15771. msm_routing_put_port_mixer),
  15772. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15773. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15774. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15775. msm_routing_put_port_mixer),
  15776. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15777. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15778. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15779. msm_routing_put_port_mixer),
  15780. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15782. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15783. msm_routing_put_port_mixer),
  15784. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15785. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15786. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15787. msm_routing_put_port_mixer),
  15788. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15789. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15790. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15791. msm_routing_put_port_mixer),
  15792. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15793. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15794. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15795. msm_routing_put_port_mixer),
  15796. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15797. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15798. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15799. msm_routing_put_port_mixer),
  15800. };
  15801. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  15802. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15803. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15804. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15805. msm_routing_put_listen_mixer),
  15806. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15807. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15808. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15809. msm_routing_put_listen_mixer),
  15810. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15811. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15812. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15813. msm_routing_put_listen_mixer),
  15814. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15815. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15816. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15817. msm_routing_put_listen_mixer),
  15818. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15819. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15820. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15821. msm_routing_put_listen_mixer),
  15822. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15823. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15824. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15825. msm_routing_put_listen_mixer),
  15826. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15827. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15828. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15829. msm_routing_put_listen_mixer),
  15830. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15831. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15832. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15833. msm_routing_put_listen_mixer),
  15834. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15835. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15836. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15837. msm_routing_put_listen_mixer),
  15838. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15839. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15840. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15841. msm_routing_put_listen_mixer),
  15842. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15843. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15844. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15845. msm_routing_put_listen_mixer),
  15846. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15847. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15848. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15849. msm_routing_put_listen_mixer),
  15850. };
  15851. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  15852. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15853. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15854. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15855. msm_routing_put_listen_mixer),
  15856. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  15857. SND_SOC_NOPM,
  15858. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15859. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15860. msm_routing_put_listen_mixer),
  15861. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15862. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15863. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15864. msm_routing_put_listen_mixer),
  15865. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15866. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15867. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15868. msm_routing_put_listen_mixer),
  15869. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15870. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15871. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15872. msm_routing_put_listen_mixer),
  15873. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15874. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15875. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15876. msm_routing_put_listen_mixer),
  15877. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15878. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15879. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15880. msm_routing_put_listen_mixer),
  15881. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15882. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15883. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15884. msm_routing_put_listen_mixer),
  15885. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15886. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15887. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15888. msm_routing_put_listen_mixer),
  15889. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15890. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15891. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15892. msm_routing_put_listen_mixer),
  15893. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15894. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15895. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15896. msm_routing_put_listen_mixer),
  15897. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15898. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15899. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15900. msm_routing_put_listen_mixer),
  15901. };
  15902. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  15903. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15904. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15905. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15906. msm_routing_put_listen_mixer),
  15907. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15908. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15909. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15910. msm_routing_put_listen_mixer),
  15911. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15912. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15913. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15914. msm_routing_put_listen_mixer),
  15915. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15916. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15917. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15918. msm_routing_put_listen_mixer),
  15919. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15920. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15921. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15922. msm_routing_put_listen_mixer),
  15923. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15924. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15925. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15926. msm_routing_put_listen_mixer),
  15927. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15928. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15929. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15930. msm_routing_put_listen_mixer),
  15931. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15932. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15933. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15934. msm_routing_put_listen_mixer),
  15935. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15936. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15937. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15938. msm_routing_put_listen_mixer),
  15939. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15940. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15941. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15942. msm_routing_put_listen_mixer),
  15943. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15944. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15945. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15946. msm_routing_put_listen_mixer),
  15947. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15948. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15949. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15950. msm_routing_put_listen_mixer),
  15951. };
  15952. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  15953. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15954. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15955. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15956. msm_routing_put_listen_mixer),
  15957. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15958. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15959. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15960. msm_routing_put_listen_mixer),
  15961. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15962. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15963. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15964. msm_routing_put_listen_mixer),
  15965. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15966. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15967. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15968. msm_routing_put_listen_mixer),
  15969. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15970. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15971. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15972. msm_routing_put_listen_mixer),
  15973. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15974. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15975. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15976. msm_routing_put_listen_mixer),
  15977. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15978. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15979. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15980. msm_routing_put_listen_mixer),
  15981. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15982. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15983. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15984. msm_routing_put_listen_mixer),
  15985. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15986. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15987. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15988. msm_routing_put_listen_mixer),
  15989. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15990. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15991. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15992. msm_routing_put_listen_mixer),
  15993. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15994. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15995. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15996. msm_routing_put_listen_mixer),
  15997. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15998. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15999. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16000. msm_routing_put_listen_mixer),
  16001. };
  16002. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  16003. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16004. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16005. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16006. msm_routing_put_listen_mixer),
  16007. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16008. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16009. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16010. msm_routing_put_listen_mixer),
  16011. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16012. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16013. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16014. msm_routing_put_listen_mixer),
  16015. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16016. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16017. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16018. msm_routing_put_listen_mixer),
  16019. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16020. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16021. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16022. msm_routing_put_listen_mixer),
  16023. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16024. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16025. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16026. msm_routing_put_listen_mixer),
  16027. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16028. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16029. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16030. msm_routing_put_listen_mixer),
  16031. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16032. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16033. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16034. msm_routing_put_listen_mixer),
  16035. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16036. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16037. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16038. msm_routing_put_listen_mixer),
  16039. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16040. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16041. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16042. msm_routing_put_listen_mixer),
  16043. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16044. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16045. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16046. msm_routing_put_listen_mixer),
  16047. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16048. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16049. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16050. msm_routing_put_listen_mixer),
  16051. };
  16052. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  16053. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16054. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16055. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16056. msm_routing_put_listen_mixer),
  16057. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16058. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16059. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16060. msm_routing_put_listen_mixer),
  16061. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16062. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16063. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16064. msm_routing_put_listen_mixer),
  16065. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16066. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16067. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16068. msm_routing_put_listen_mixer),
  16069. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16070. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16071. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16072. msm_routing_put_listen_mixer),
  16073. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16074. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16075. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16076. msm_routing_put_listen_mixer),
  16077. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16078. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16079. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16080. msm_routing_put_listen_mixer),
  16081. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16082. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16083. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16084. msm_routing_put_listen_mixer),
  16085. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16086. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16087. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16088. msm_routing_put_listen_mixer),
  16089. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16090. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16091. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16092. msm_routing_put_listen_mixer),
  16093. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16094. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16095. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16096. msm_routing_put_listen_mixer),
  16097. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16098. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16099. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16100. msm_routing_put_listen_mixer),
  16101. };
  16102. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  16103. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16104. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16105. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16106. msm_routing_put_listen_mixer),
  16107. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16108. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16109. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16110. msm_routing_put_listen_mixer),
  16111. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16112. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16113. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16114. msm_routing_put_listen_mixer),
  16115. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16116. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16117. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16118. msm_routing_put_listen_mixer),
  16119. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16120. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16121. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16122. msm_routing_put_listen_mixer),
  16123. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16124. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16125. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16126. msm_routing_put_listen_mixer),
  16127. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16128. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16129. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16130. msm_routing_put_listen_mixer),
  16131. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16132. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16133. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16134. msm_routing_put_listen_mixer),
  16135. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16136. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16137. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16138. msm_routing_put_listen_mixer),
  16139. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16140. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16141. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16142. msm_routing_put_listen_mixer),
  16143. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16144. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16145. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16146. msm_routing_put_listen_mixer),
  16147. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16148. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16149. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16150. msm_routing_put_listen_mixer),
  16151. };
  16152. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  16153. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16154. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16155. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16156. msm_routing_put_listen_mixer),
  16157. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16158. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16159. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16160. msm_routing_put_listen_mixer),
  16161. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16162. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16163. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16164. msm_routing_put_listen_mixer),
  16165. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16166. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16167. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16168. msm_routing_put_listen_mixer),
  16169. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16170. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16171. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16172. msm_routing_put_listen_mixer),
  16173. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16174. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16175. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16176. msm_routing_put_listen_mixer),
  16177. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16178. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16179. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16180. msm_routing_put_listen_mixer),
  16181. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16182. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16183. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16184. msm_routing_put_listen_mixer),
  16185. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16186. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16187. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16188. msm_routing_put_listen_mixer),
  16189. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16190. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16191. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16192. msm_routing_put_listen_mixer),
  16193. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16194. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16195. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16196. msm_routing_put_listen_mixer),
  16197. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16198. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16199. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16200. msm_routing_put_listen_mixer),
  16201. };
  16202. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  16203. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16204. 0, 1, 0, msm_routing_get_switch_mixer,
  16205. msm_routing_put_switch_mixer);
  16206. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  16207. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16208. 0, 1, 0, msm_routing_get_switch_mixer,
  16209. msm_routing_put_switch_mixer);
  16210. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  16211. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16212. 0, 1, 0, msm_routing_get_switch_mixer,
  16213. msm_routing_put_switch_mixer);
  16214. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  16215. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16216. 0, 1, 0, msm_routing_get_switch_mixer,
  16217. msm_routing_put_switch_mixer);
  16218. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  16219. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16220. 0, 1, 0, msm_routing_get_switch_mixer,
  16221. msm_routing_put_switch_mixer);
  16222. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  16223. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16224. 0, 1, 0, msm_routing_get_switch_mixer,
  16225. msm_routing_put_switch_mixer);
  16226. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  16227. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16228. 0, 1, 0, msm_routing_get_switch_mixer,
  16229. msm_routing_put_switch_mixer);
  16230. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  16231. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16232. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  16233. msm_routing_put_fm_pcmrx_switch_mixer);
  16234. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  16235. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16236. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  16237. msm_routing_put_int0_mi2s_switch_mixer);
  16238. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  16239. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16240. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  16241. msm_routing_put_int4_mi2s_switch_mixer);
  16242. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  16243. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16244. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  16245. msm_routing_put_pri_mi2s_switch_mixer);
  16246. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  16247. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16248. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  16249. msm_routing_put_sec_mi2s_switch_mixer);
  16250. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  16251. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16252. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  16253. msm_routing_put_tert_mi2s_switch_mixer);
  16254. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  16255. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16256. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  16257. msm_routing_put_quat_mi2s_switch_mixer);
  16258. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  16259. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16260. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  16261. msm_routing_put_quin_mi2s_switch_mixer);
  16262. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  16263. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16264. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16265. msm_routing_put_hfp_switch_mixer);
  16266. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  16267. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16268. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16269. msm_routing_put_hfp_switch_mixer);
  16270. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  16271. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16272. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16273. msm_routing_put_hfp_switch_mixer);
  16274. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  16275. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16276. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16277. msm_routing_put_hfp_switch_mixer);
  16278. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  16279. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16280. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  16281. msm_routing_put_usb_switch_mixer);
  16282. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  16283. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16284. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  16285. msm_routing_a2dp_switch_mixer_put);
  16286. static const struct soc_enum lsm_port_enum =
  16287. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  16288. static const char * const lsm_func_text[] = {
  16289. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  16290. };
  16291. static const struct soc_enum lsm_func_enum =
  16292. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  16293. static const struct snd_kcontrol_new lsm_controls[] = {
  16294. /* kcontrol of lsm_function */
  16295. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16296. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16297. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16298. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16299. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16300. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16301. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16302. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16303. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16304. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16305. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16306. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16307. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16308. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16309. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16310. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16311. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16312. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16313. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16314. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16315. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16316. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16317. /* kcontrol of lsm_port */
  16318. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  16319. msm_routing_lsm_port_get,
  16320. msm_routing_lsm_port_put),
  16321. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  16322. msm_routing_lsm_port_get,
  16323. msm_routing_lsm_port_put),
  16324. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  16325. msm_routing_lsm_port_get,
  16326. msm_routing_lsm_port_put),
  16327. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  16328. msm_routing_lsm_port_get,
  16329. msm_routing_lsm_port_put),
  16330. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  16331. msm_routing_lsm_port_get,
  16332. msm_routing_lsm_port_put),
  16333. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  16334. msm_routing_lsm_port_get,
  16335. msm_routing_lsm_port_put),
  16336. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  16337. msm_routing_lsm_port_get,
  16338. msm_routing_lsm_port_put),
  16339. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  16340. msm_routing_lsm_port_get,
  16341. msm_routing_lsm_port_put),
  16342. };
  16343. static const char * const aanc_slim_0_rx_text[] = {
  16344. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  16345. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  16346. };
  16347. static const struct soc_enum aanc_slim_0_rx_enum =
  16348. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  16349. aanc_slim_0_rx_text);
  16350. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  16351. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  16352. msm_routing_slim_0_rx_aanc_mux_get,
  16353. msm_routing_slim_0_rx_aanc_mux_put)
  16354. };
  16355. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  16356. struct snd_ctl_elem_value *ucontrol)
  16357. {
  16358. ucontrol->value.integer.value[0] = aanc_level;
  16359. return 0;
  16360. }
  16361. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  16362. struct snd_ctl_elem_value *ucontrol)
  16363. {
  16364. int ret = 0;
  16365. mutex_lock(&routing_lock);
  16366. aanc_level = ucontrol->value.integer.value[0];
  16367. pr_debug("%s: value: %ld\n",
  16368. __func__, ucontrol->value.integer.value[0]);
  16369. ret = afe_set_aanc_noise_level(aanc_level);
  16370. mutex_unlock(&routing_lock);
  16371. return ret;
  16372. }
  16373. static const struct snd_kcontrol_new aanc_noise_level[] = {
  16374. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  16375. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  16376. };
  16377. static int msm_routing_get_stereo_to_custom_stereo_control(
  16378. struct snd_kcontrol *kcontrol,
  16379. struct snd_ctl_elem_value *ucontrol)
  16380. {
  16381. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  16382. return 0;
  16383. }
  16384. static int msm_routing_put_stereo_to_custom_stereo_control(
  16385. struct snd_kcontrol *kcontrol,
  16386. struct snd_ctl_elem_value *ucontrol)
  16387. {
  16388. int flag = 0, i = 0, rc = 0, idx = 0;
  16389. int be_index = 0, port_id, topo_id;
  16390. unsigned int session_id = 0;
  16391. uint16_t op_FL_ip_FL_weight = 0;
  16392. uint16_t op_FL_ip_FR_weight = 0;
  16393. uint16_t op_FR_ip_FL_weight = 0;
  16394. uint16_t op_FR_ip_FR_weight = 0;
  16395. flag = ucontrol->value.integer.value[0];
  16396. pr_debug("%s E flag %d\n", __func__, flag);
  16397. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  16398. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  16399. __func__, is_custom_stereo_on, flag);
  16400. return 0;
  16401. }
  16402. is_custom_stereo_on = flag ? true : false;
  16403. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  16404. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  16405. port_id = msm_bedais[be_index].port_id;
  16406. if (!msm_bedais[be_index].active)
  16407. continue;
  16408. if ((port_id != SLIMBUS_0_RX) &&
  16409. (port_id != RT_PROXY_PORT_001_RX) &&
  16410. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  16411. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  16412. continue;
  16413. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  16414. MSM_FRONTEND_DAI_MM_SIZE) {
  16415. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  16416. LEGACY_PCM_MODE)
  16417. goto skip_send_custom_stereo;
  16418. session_id =
  16419. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  16420. if (is_custom_stereo_on) {
  16421. op_FL_ip_FL_weight =
  16422. Q14_GAIN_ZERO_POINT_FIVE;
  16423. op_FL_ip_FR_weight =
  16424. Q14_GAIN_ZERO_POINT_FIVE;
  16425. op_FR_ip_FL_weight =
  16426. Q14_GAIN_ZERO_POINT_FIVE;
  16427. op_FR_ip_FR_weight =
  16428. Q14_GAIN_ZERO_POINT_FIVE;
  16429. } else {
  16430. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  16431. op_FL_ip_FR_weight = 0;
  16432. op_FR_ip_FL_weight = 0;
  16433. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  16434. }
  16435. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16436. unsigned long copp =
  16437. session_copp_map[i]
  16438. [SESSION_TYPE_RX][be_index];
  16439. if (!test_bit(idx, &copp))
  16440. goto skip_send_custom_stereo;
  16441. topo_id = adm_get_topology_for_port_copp_idx(
  16442. msm_bedais[be_index].port_id, idx);
  16443. if (topo_id < 0)
  16444. pr_debug("%s:Err:custom stereo topo %d",
  16445. __func__, topo_id);
  16446. pr_debug("idx %d\n", idx);
  16447. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  16448. rc = msm_ds2_dap_set_custom_stereo_onoff
  16449. (msm_bedais[be_index].port_id,
  16450. idx, is_custom_stereo_on);
  16451. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  16452. rc = dolby_dap_set_custom_stereo_onoff(
  16453. msm_bedais[be_index].port_id,
  16454. idx, is_custom_stereo_on);
  16455. else
  16456. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  16457. (msm_bedais[be_index].port_id,
  16458. idx, session_id,
  16459. op_FL_ip_FL_weight,
  16460. op_FL_ip_FR_weight,
  16461. op_FR_ip_FL_weight,
  16462. op_FR_ip_FR_weight);
  16463. if (rc < 0)
  16464. skip_send_custom_stereo:
  16465. pr_err("%s: err setting custom stereo\n",
  16466. __func__);
  16467. }
  16468. }
  16469. }
  16470. return 0;
  16471. }
  16472. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  16473. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  16474. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  16475. msm_routing_put_stereo_to_custom_stereo_control),
  16476. };
  16477. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16478. struct snd_ctl_elem_value *ucontrol)
  16479. {
  16480. return 0;
  16481. }
  16482. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16483. struct snd_ctl_elem_value *ucontrol)
  16484. {
  16485. int i = 0, j;
  16486. int num_app_types = ucontrol->value.integer.value[i++];
  16487. pr_debug("%s\n", __func__);
  16488. memset(app_type_cfg, 0, MAX_APP_TYPES*
  16489. sizeof(struct msm_pcm_routing_app_type_data));
  16490. if (num_app_types > MAX_APP_TYPES) {
  16491. pr_err("%s: number of app types exceed the max supported\n",
  16492. __func__);
  16493. return -EINVAL;
  16494. }
  16495. for (j = 0; j < num_app_types; j++) {
  16496. app_type_cfg[j].app_type =
  16497. ucontrol->value.integer.value[i++];
  16498. app_type_cfg[j].sample_rate =
  16499. ucontrol->value.integer.value[i++];
  16500. app_type_cfg[j].bit_width =
  16501. ucontrol->value.integer.value[i++];
  16502. }
  16503. return 0;
  16504. }
  16505. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  16506. struct snd_ctl_elem_value *ucontrol)
  16507. {
  16508. int j, fe_id, be_id, port_type;
  16509. int ret = 0;
  16510. unsigned long copp;
  16511. struct msm_pcm_routing_bdai_data *bedai;
  16512. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16513. SESSION_TYPE_RX;
  16514. int app_type = ucontrol->value.integer.value[1];
  16515. int gain = (ucontrol->value.integer.value[2] +
  16516. ucontrol->value.integer.value[3])/2;
  16517. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16518. MSM_AFE_PORT_TYPE_TX;
  16519. mutex_lock(&routing_lock);
  16520. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16521. if (is_be_dai_extproc(be_id))
  16522. continue;
  16523. bedai = &msm_bedais[be_id];
  16524. if (afe_get_port_type(bedai->port_id) != port_type)
  16525. continue;
  16526. if (!bedai->active)
  16527. continue;
  16528. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16529. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16530. continue;
  16531. if (app_type !=
  16532. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16533. continue;
  16534. copp = session_copp_map[fe_id][dir][be_id];
  16535. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  16536. if (!test_bit(j, &copp))
  16537. continue;
  16538. ret |= adm_set_volume(bedai->port_id, j, gain);
  16539. }
  16540. }
  16541. }
  16542. mutex_unlock(&routing_lock);
  16543. return ret ? -EINVAL : 0;
  16544. }
  16545. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  16546. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  16547. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  16548. msm_routing_put_app_type_cfg_control),
  16549. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  16550. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  16551. };
  16552. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  16553. struct snd_ctl_elem_value *ucontrol)
  16554. {
  16555. int copp_idx, fe_id, be_id, port_type;
  16556. int ret = 0;
  16557. unsigned long copp;
  16558. struct msm_pcm_routing_bdai_data *bedai;
  16559. u8 *packed_params = NULL;
  16560. struct param_hdr_v3 param_hdr;
  16561. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  16562. sizeof(uint32_t));
  16563. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16564. SESSION_TYPE_RX;
  16565. int app_type = ucontrol->value.integer.value[1];
  16566. int module_id = ucontrol->value.integer.value[2];
  16567. int instance_id = ucontrol->value.integer.value[3];
  16568. int param_id = ucontrol->value.integer.value[4];
  16569. int param_value = ucontrol->value.integer.value[5];
  16570. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16571. MSM_AFE_PORT_TYPE_TX;
  16572. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  16573. __func__, app_type, module_id,
  16574. instance_id, param_id, param_value);
  16575. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  16576. if (!packed_params)
  16577. return -ENOMEM;
  16578. memset(&param_hdr, 0, sizeof(param_hdr));
  16579. param_hdr.module_id = module_id;
  16580. param_hdr.instance_id = instance_id;
  16581. param_hdr.param_id = param_id;
  16582. param_hdr.param_size = sizeof(uint32_t);
  16583. packed_param_size = 0;
  16584. mutex_lock(&routing_lock);
  16585. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16586. if (is_be_dai_extproc(be_id))
  16587. continue;
  16588. bedai = &msm_bedais[be_id];
  16589. if (afe_get_port_type(bedai->port_id) != port_type)
  16590. continue;
  16591. if (!bedai->active)
  16592. continue;
  16593. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16594. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16595. continue;
  16596. if (app_type !=
  16597. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16598. continue;
  16599. copp = session_copp_map[fe_id][dir][be_id];
  16600. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  16601. copp_idx++) {
  16602. if (!test_bit(copp_idx, &copp))
  16603. continue;
  16604. ret = q6common_pack_pp_params(packed_params,
  16605. &param_hdr,
  16606. (u8 *) &param_value,
  16607. &packed_param_size);
  16608. if (ret) {
  16609. pr_err("%s: Failed to pack params, error %d\n",
  16610. __func__, ret);
  16611. goto done;
  16612. }
  16613. ret = adm_set_pp_params(bedai->port_id,
  16614. copp_idx, NULL,
  16615. packed_params,
  16616. packed_param_size);
  16617. if (ret) {
  16618. pr_err("%s: Setting param failed with err=%d\n",
  16619. __func__, ret);
  16620. ret = -EINVAL;
  16621. goto done;
  16622. }
  16623. }
  16624. }
  16625. }
  16626. done:
  16627. mutex_unlock(&routing_lock);
  16628. kfree(packed_params);
  16629. return ret;
  16630. }
  16631. static const struct snd_kcontrol_new module_cfg_controls[] = {
  16632. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  16633. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  16634. };
  16635. static int msm_routing_get_lsm_app_type_cfg_control(
  16636. struct snd_kcontrol *kcontrol,
  16637. struct snd_ctl_elem_value *ucontrol)
  16638. {
  16639. int shift = ((struct soc_multi_mixer_control *)
  16640. kcontrol->private_value)->shift;
  16641. int i = 0, j = 0;
  16642. ucontrol->value.integer.value[i] = num_app_cfg_types;
  16643. for (j = 0; j < num_app_cfg_types; ++j) {
  16644. ucontrol->value.integer.value[++i] =
  16645. lsm_app_type_cfg[j].app_type;
  16646. ucontrol->value.integer.value[++i] =
  16647. lsm_app_type_cfg[j].sample_rate;
  16648. ucontrol->value.integer.value[++i] =
  16649. lsm_app_type_cfg[j].bit_width;
  16650. if (shift == 1)
  16651. ucontrol->value.integer.value[++i] =
  16652. lsm_app_type_cfg[j].num_out_channels;
  16653. }
  16654. return 0;
  16655. }
  16656. static int msm_routing_put_lsm_app_type_cfg_control(
  16657. struct snd_kcontrol *kcontrol,
  16658. struct snd_ctl_elem_value *ucontrol)
  16659. {
  16660. int shift = ((struct soc_multi_mixer_control *)
  16661. kcontrol->private_value)->shift;
  16662. int i = 0, j;
  16663. num_app_cfg_types = ucontrol->value.integer.value[i++];
  16664. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  16665. sizeof(struct msm_pcm_routing_app_type_data));
  16666. if (num_app_cfg_types > MAX_APP_TYPES) {
  16667. pr_err("%s: number of app types exceed the max supported\n",
  16668. __func__);
  16669. return -EINVAL;
  16670. }
  16671. for (j = 0; j < num_app_cfg_types; j++) {
  16672. lsm_app_type_cfg[j].app_type =
  16673. ucontrol->value.integer.value[i++];
  16674. lsm_app_type_cfg[j].sample_rate =
  16675. ucontrol->value.integer.value[i++];
  16676. lsm_app_type_cfg[j].bit_width =
  16677. ucontrol->value.integer.value[i++];
  16678. /* Shift of 1 indicates this is V2 mixer control */
  16679. if (shift == 1)
  16680. lsm_app_type_cfg[j].num_out_channels =
  16681. ucontrol->value.integer.value[i++];
  16682. }
  16683. return 0;
  16684. }
  16685. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  16686. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  16687. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16688. msm_routing_put_lsm_app_type_cfg_control),
  16689. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  16690. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16691. msm_routing_put_lsm_app_type_cfg_control),
  16692. };
  16693. static int msm_routing_get_use_ds1_or_ds2_control(
  16694. struct snd_kcontrol *kcontrol,
  16695. struct snd_ctl_elem_value *ucontrol)
  16696. {
  16697. ucontrol->value.integer.value[0] = is_ds2_on;
  16698. return 0;
  16699. }
  16700. static int msm_routing_put_use_ds1_or_ds2_control(
  16701. struct snd_kcontrol *kcontrol,
  16702. struct snd_ctl_elem_value *ucontrol)
  16703. {
  16704. is_ds2_on = ucontrol->value.integer.value[0];
  16705. return 0;
  16706. }
  16707. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  16708. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  16709. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  16710. msm_routing_put_use_ds1_or_ds2_control),
  16711. };
  16712. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  16713. struct snd_ctl_elem_value *ucontrol) {
  16714. int rc = 0;
  16715. int be_idx = 0;
  16716. char *param_value;
  16717. int *update_param_value;
  16718. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  16719. struct param_hdr_v3 param_hdr;
  16720. param_value = kzalloc(param_size, GFP_KERNEL);
  16721. if (!param_value)
  16722. return -ENOMEM;
  16723. memset(&param_hdr, 0, sizeof(param_hdr));
  16724. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  16725. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  16726. break;
  16727. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  16728. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  16729. param_hdr.instance_id = INSTANCE_ID_0;
  16730. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  16731. param_hdr.param_size = param_size;
  16732. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  16733. NULL, &param_hdr, (u8 *) param_value);
  16734. if (rc) {
  16735. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  16736. kfree(param_value);
  16737. return -EINVAL;
  16738. }
  16739. update_param_value = (int *)param_value;
  16740. ucontrol->value.integer.value[0] = update_param_value[0];
  16741. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  16742. __func__, update_param_value[0]);
  16743. }
  16744. kfree(param_value);
  16745. return 0;
  16746. }
  16747. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  16748. struct snd_ctl_elem_value *ucontrol)
  16749. {
  16750. voc_session_id = ucontrol->value.integer.value[0];
  16751. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  16752. return 0;
  16753. }
  16754. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  16755. struct snd_ctl_elem_value *ucontrol)
  16756. {
  16757. ucontrol->value.integer.value[0] = voc_session_id;
  16758. return 0;
  16759. }
  16760. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  16761. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  16762. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  16763. msm_voc_session_id_put),
  16764. };
  16765. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  16766. struct snd_ctl_elem_info *uinfo)
  16767. {
  16768. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16769. uinfo->count = sizeof(struct sound_focus_param);
  16770. return 0;
  16771. }
  16772. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  16773. struct snd_ctl_elem_value *ucontrol)
  16774. {
  16775. int ret = 0;
  16776. struct sound_focus_param soundFocusData;
  16777. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16778. sizeof(struct sound_focus_param));
  16779. ret = voc_set_sound_focus(soundFocusData);
  16780. if (ret) {
  16781. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16782. __func__, ret);
  16783. ret = -EINVAL;
  16784. }
  16785. return ret;
  16786. }
  16787. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  16788. struct snd_ctl_elem_value *ucontrol)
  16789. {
  16790. int ret = 0;
  16791. struct sound_focus_param soundFocusData;
  16792. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  16793. ret = voc_get_sound_focus(&soundFocusData);
  16794. if (ret) {
  16795. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  16796. __func__, ret);
  16797. ret = -EINVAL;
  16798. goto done;
  16799. }
  16800. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16801. sizeof(struct sound_focus_param));
  16802. done:
  16803. return ret;
  16804. }
  16805. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  16806. struct snd_ctl_elem_info *uinfo)
  16807. {
  16808. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16809. uinfo->count = sizeof(struct source_tracking_param);
  16810. return 0;
  16811. }
  16812. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  16813. struct snd_ctl_elem_value *ucontrol)
  16814. {
  16815. int ret = 0;
  16816. struct source_tracking_param sourceTrackingData;
  16817. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  16818. ret = voc_get_source_tracking(&sourceTrackingData);
  16819. if (ret) {
  16820. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  16821. __func__, ret);
  16822. ret = -EINVAL;
  16823. goto done;
  16824. }
  16825. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16826. sizeof(struct source_tracking_param));
  16827. done:
  16828. return ret;
  16829. }
  16830. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  16831. int *copp_idx)
  16832. {
  16833. int i, idx, be_idx;
  16834. int ret = 0;
  16835. unsigned long copp;
  16836. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  16837. ret = q6audio_validate_port(port_id);
  16838. if (ret < 0) {
  16839. pr_err("%s: port validation failed id 0x%x ret %d\n",
  16840. __func__, port_id, ret);
  16841. ret = -EINVAL;
  16842. goto done;
  16843. }
  16844. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16845. if (msm_bedais[be_idx].port_id == port_id)
  16846. break;
  16847. }
  16848. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16849. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  16850. ret = -EINVAL;
  16851. goto done;
  16852. }
  16853. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  16854. MSM_FRONTEND_DAI_MM_SIZE) {
  16855. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16856. copp = session_copp_map[i]
  16857. [session_type][be_idx];
  16858. if (test_bit(idx, &copp))
  16859. break;
  16860. }
  16861. if (idx >= MAX_COPPS_PER_PORT)
  16862. continue;
  16863. else
  16864. break;
  16865. }
  16866. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  16867. pr_debug("%s: Invalid FE, exiting\n", __func__);
  16868. ret = -EINVAL;
  16869. goto done;
  16870. }
  16871. *copp_idx = idx;
  16872. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  16873. done:
  16874. return ret;
  16875. }
  16876. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  16877. const char *prefix, int *port_id)
  16878. {
  16879. int ret = 0;
  16880. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  16881. /*
  16882. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  16883. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  16884. * and compare the string with the backend name to derive the port id.
  16885. */
  16886. if (!strcmp(kcontrol->id.name + strlen(prefix),
  16887. "SLIMBUS_0")) {
  16888. *port_id = SLIMBUS_0_TX;
  16889. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16890. "TERT_MI2S")) {
  16891. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  16892. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16893. "INT3_MI2S")) {
  16894. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  16895. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16896. "VA_CDC_DMA_TX_0")) {
  16897. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  16898. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16899. "TX_CDC_DMA_TX_3")) {
  16900. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  16901. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16902. "QUIN_TDM_TX_0")) {
  16903. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  16904. } else {
  16905. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  16906. __func__, kcontrol->id.name);
  16907. ret = -EINVAL;
  16908. goto done;
  16909. }
  16910. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  16911. __func__, kcontrol->id.name, *port_id);
  16912. done:
  16913. return ret;
  16914. }
  16915. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  16916. struct snd_ctl_elem_value *ucontrol)
  16917. {
  16918. int ret = 0;
  16919. struct sound_focus_param soundFocusData;
  16920. int port_id, copp_idx;
  16921. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16922. "Sound Focus Audio Tx ", &port_id);
  16923. if (ret != 0) {
  16924. pr_err("%s: Error in deriving port id, err=%d\n",
  16925. __func__, ret);
  16926. ret = -EINVAL;
  16927. goto done;
  16928. }
  16929. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16930. &copp_idx);
  16931. if (ret) {
  16932. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16933. __func__, port_id);
  16934. ret = -EINVAL;
  16935. goto done;
  16936. }
  16937. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16938. sizeof(struct sound_focus_param));
  16939. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  16940. if (ret) {
  16941. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16942. __func__, ret);
  16943. ret = -EINVAL;
  16944. goto done;
  16945. }
  16946. done:
  16947. return ret;
  16948. }
  16949. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  16950. struct snd_ctl_elem_value *ucontrol)
  16951. {
  16952. int ret = 0;
  16953. struct sound_focus_param soundFocusData;
  16954. int port_id, copp_idx;
  16955. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16956. "Sound Focus Audio Tx ", &port_id);
  16957. if (ret) {
  16958. pr_err("%s: Error in deriving port id, err=%d\n",
  16959. __func__, ret);
  16960. ret = -EINVAL;
  16961. goto done;
  16962. }
  16963. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16964. &copp_idx);
  16965. if (ret) {
  16966. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  16967. __func__, port_id);
  16968. ret = -EINVAL;
  16969. goto done;
  16970. }
  16971. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  16972. if (ret) {
  16973. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16974. __func__, ret);
  16975. ret = -EINVAL;
  16976. goto done;
  16977. }
  16978. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16979. sizeof(struct sound_focus_param));
  16980. done:
  16981. return ret;
  16982. }
  16983. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  16984. struct snd_ctl_elem_value *ucontrol)
  16985. {
  16986. int ret = 0;
  16987. struct source_tracking_param sourceTrackingData;
  16988. int port_id, copp_idx;
  16989. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16990. "Source Tracking Audio Tx ", &port_id);
  16991. if (ret) {
  16992. pr_err("%s: Error in deriving port id, err=%d\n",
  16993. __func__, ret);
  16994. ret = -EINVAL;
  16995. goto done;
  16996. }
  16997. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16998. &copp_idx);
  16999. if (ret) {
  17000. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  17001. __func__, port_id);
  17002. ret = -EINVAL;
  17003. goto done;
  17004. }
  17005. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  17006. if (ret) {
  17007. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  17008. __func__, ret);
  17009. ret = -EINVAL;
  17010. goto done;
  17011. }
  17012. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  17013. sizeof(struct source_tracking_param));
  17014. done:
  17015. return ret;
  17016. }
  17017. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  17018. {
  17019. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17020. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17021. .name = "Sound Focus Voice Tx SLIMBUS_0",
  17022. .info = msm_sound_focus_info,
  17023. .get = msm_voice_sound_focus_get,
  17024. .put = msm_voice_sound_focus_put,
  17025. },
  17026. {
  17027. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17028. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17029. .name = "Source Tracking Voice Tx SLIMBUS_0",
  17030. .info = msm_source_tracking_info,
  17031. .get = msm_voice_source_tracking_get,
  17032. },
  17033. {
  17034. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17035. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17036. .name = "Sound Focus Audio Tx SLIMBUS_0",
  17037. .info = msm_sound_focus_info,
  17038. .get = msm_audio_sound_focus_get,
  17039. .put = msm_audio_sound_focus_put,
  17040. },
  17041. {
  17042. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17043. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17044. .name = "Source Tracking Audio Tx SLIMBUS_0",
  17045. .info = msm_source_tracking_info,
  17046. .get = msm_audio_source_tracking_get,
  17047. },
  17048. {
  17049. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17050. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17051. .name = "Sound Focus Voice Tx TERT_MI2S",
  17052. .info = msm_sound_focus_info,
  17053. .get = msm_voice_sound_focus_get,
  17054. .put = msm_voice_sound_focus_put,
  17055. },
  17056. {
  17057. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17058. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17059. .name = "Source Tracking Voice Tx TERT_MI2S",
  17060. .info = msm_source_tracking_info,
  17061. .get = msm_voice_source_tracking_get,
  17062. },
  17063. {
  17064. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17065. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17066. .name = "Sound Focus Audio Tx TERT_MI2S",
  17067. .info = msm_sound_focus_info,
  17068. .get = msm_audio_sound_focus_get,
  17069. .put = msm_audio_sound_focus_put,
  17070. },
  17071. {
  17072. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17073. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17074. .name = "Source Tracking Audio Tx TERT_MI2S",
  17075. .info = msm_source_tracking_info,
  17076. .get = msm_audio_source_tracking_get,
  17077. },
  17078. {
  17079. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17080. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17081. .name = "Sound Focus Voice Tx INT3_MI2S",
  17082. .info = msm_sound_focus_info,
  17083. .get = msm_voice_sound_focus_get,
  17084. .put = msm_voice_sound_focus_put,
  17085. },
  17086. {
  17087. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17088. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17089. .name = "Source Tracking Voice Tx INT3_MI2S",
  17090. .info = msm_source_tracking_info,
  17091. .get = msm_voice_source_tracking_get,
  17092. },
  17093. {
  17094. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17095. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17096. .name = "Sound Focus Audio Tx INT3_MI2S",
  17097. .info = msm_sound_focus_info,
  17098. .get = msm_audio_sound_focus_get,
  17099. .put = msm_audio_sound_focus_put,
  17100. },
  17101. {
  17102. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17103. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17104. .name = "Source Tracking Audio Tx INT3_MI2S",
  17105. .info = msm_source_tracking_info,
  17106. .get = msm_audio_source_tracking_get,
  17107. },
  17108. {
  17109. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17110. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17111. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  17112. .info = msm_sound_focus_info,
  17113. .get = msm_voice_sound_focus_get,
  17114. .put = msm_voice_sound_focus_put,
  17115. },
  17116. {
  17117. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17118. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17119. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  17120. .info = msm_source_tracking_info,
  17121. .get = msm_voice_source_tracking_get,
  17122. },
  17123. {
  17124. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17125. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17126. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  17127. .info = msm_sound_focus_info,
  17128. .get = msm_audio_sound_focus_get,
  17129. .put = msm_audio_sound_focus_put,
  17130. },
  17131. {
  17132. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17133. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17134. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  17135. .info = msm_source_tracking_info,
  17136. .get = msm_audio_source_tracking_get,
  17137. },
  17138. {
  17139. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17140. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17141. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  17142. .info = msm_sound_focus_info,
  17143. .get = msm_voice_sound_focus_get,
  17144. .put = msm_voice_sound_focus_put,
  17145. },
  17146. {
  17147. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17148. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17149. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  17150. .info = msm_source_tracking_info,
  17151. .get = msm_voice_source_tracking_get,
  17152. },
  17153. {
  17154. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17155. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17156. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  17157. .info = msm_sound_focus_info,
  17158. .get = msm_audio_sound_focus_get,
  17159. .put = msm_audio_sound_focus_put,
  17160. },
  17161. {
  17162. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17163. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17164. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  17165. .info = msm_source_tracking_info,
  17166. .get = msm_audio_source_tracking_get,
  17167. },
  17168. {
  17169. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17170. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17171. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  17172. .info = msm_sound_focus_info,
  17173. .get = msm_voice_sound_focus_get,
  17174. .put = msm_voice_sound_focus_put,
  17175. },
  17176. {
  17177. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17178. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17179. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  17180. .info = msm_source_tracking_info,
  17181. .get = msm_voice_source_tracking_get,
  17182. },
  17183. {
  17184. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17185. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17186. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  17187. .info = msm_sound_focus_info,
  17188. .get = msm_audio_sound_focus_get,
  17189. .put = msm_audio_sound_focus_put,
  17190. },
  17191. {
  17192. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17193. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17194. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  17195. .info = msm_source_tracking_info,
  17196. .get = msm_audio_source_tracking_get,
  17197. },
  17198. };
  17199. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  17200. struct snd_ctl_elem_value *ucontrol)
  17201. {
  17202. int ret = 0;
  17203. int item;
  17204. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17205. pr_debug("%s item is %d\n", __func__,
  17206. ucontrol->value.enumerated.item[0]);
  17207. mutex_lock(&routing_lock);
  17208. item = ucontrol->value.enumerated.item[0];
  17209. if (item < e->items) {
  17210. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17211. __func__, e->shift_l, e->values[item]);
  17212. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17213. e->values[item] < MSM_BACKEND_DAI_MAX)
  17214. /* Enable feedback TX path */
  17215. ret = afe_spk_prot_feed_back_cfg(
  17216. msm_bedais[e->values[item]].port_id,
  17217. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  17218. else {
  17219. pr_debug("%s values are out of range item %d\n",
  17220. __func__, e->values[item]);
  17221. /* Disable feedback TX path */
  17222. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17223. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  17224. else
  17225. ret = -EINVAL;
  17226. }
  17227. } else {
  17228. pr_err("%s item value is out of range item\n", __func__);
  17229. ret = -EINVAL;
  17230. }
  17231. mutex_unlock(&routing_lock);
  17232. return ret;
  17233. }
  17234. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  17235. struct snd_ctl_elem_value *ucontrol)
  17236. {
  17237. int ret = 0;
  17238. int item;
  17239. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17240. pr_debug("%s item is %d\n", __func__,
  17241. ucontrol->value.enumerated.item[0]);
  17242. mutex_lock(&routing_lock);
  17243. item = ucontrol->value.enumerated.item[0];
  17244. if (item < e->items) {
  17245. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17246. __func__, e->shift_l, e->values[item]);
  17247. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17248. e->values[item] < MSM_BACKEND_DAI_MAX)
  17249. /* Enable feedback TX path */
  17250. ret = afe_spk_prot_feed_back_cfg(
  17251. msm_bedais[e->values[item]].port_id,
  17252. msm_bedais[e->shift_l].port_id,
  17253. 1, 1, 1);
  17254. else {
  17255. pr_debug("%s values are out of range item %d\n",
  17256. __func__, e->values[item]);
  17257. /* Disable feedback TX path */
  17258. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17259. ret = afe_spk_prot_feed_back_cfg(0,
  17260. 0, 0, 0, 0);
  17261. else
  17262. ret = -EINVAL;
  17263. }
  17264. } else {
  17265. pr_err("%s item value is out of range item\n", __func__);
  17266. ret = -EINVAL;
  17267. }
  17268. mutex_unlock(&routing_lock);
  17269. return ret;
  17270. }
  17271. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  17272. struct snd_ctl_elem_value *ucontrol)
  17273. {
  17274. pr_debug("%s\n", __func__);
  17275. return 0;
  17276. }
  17277. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  17278. struct snd_ctl_elem_value *ucontrol)
  17279. {
  17280. pr_debug("%s\n", __func__);
  17281. ucontrol->value.enumerated.item[0] = 0;
  17282. return 0;
  17283. }
  17284. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  17285. "ZERO", "SLIM4_TX"
  17286. };
  17287. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  17288. "ZERO", "SLIM4_TX"
  17289. };
  17290. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  17291. "ZERO", "WSA_CDC_DMA_TX_0"
  17292. };
  17293. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  17294. "ZERO", "WSA_CDC_DMA_TX_0"
  17295. };
  17296. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  17297. "ZERO", "SENARY_TX"
  17298. };
  17299. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  17300. "ZERO", "INT5_MI2S_TX"
  17301. };
  17302. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  17303. "ZERO", "INT5_MI2S_TX"
  17304. };
  17305. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  17306. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17307. };
  17308. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  17309. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17310. };
  17311. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  17312. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17313. };
  17314. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  17315. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17316. };
  17317. static const int const mi2s_rx_vi_fb_tx_value[] = {
  17318. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  17319. };
  17320. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  17321. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17322. };
  17323. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  17324. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17325. };
  17326. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  17327. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17328. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  17329. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  17330. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  17331. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17332. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  17333. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  17334. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  17335. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17336. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  17337. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  17338. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  17339. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17340. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  17341. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  17342. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  17343. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  17344. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  17345. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  17346. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  17347. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17348. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  17349. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  17350. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  17351. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  17352. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17353. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  17354. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  17355. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  17356. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  17357. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  17358. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17359. spkr_prot_put_vi_lch_port);
  17360. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  17361. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  17362. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17363. spkr_prot_put_vi_rch_port);
  17364. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  17365. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  17366. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17367. spkr_prot_put_vi_lch_port);
  17368. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  17369. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  17370. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17371. spkr_prot_put_vi_rch_port);
  17372. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  17373. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  17374. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  17375. spkr_prot_put_vi_lch_port);
  17376. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  17377. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  17378. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  17379. spkr_prot_put_vi_lch_port);
  17380. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  17381. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  17382. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  17383. spkr_prot_put_vi_rch_port);
  17384. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  17385. /* Frontend AIF */
  17386. /* Widget name equals to Front-End DAI name<Need confirmation>,
  17387. * Stream name must contains substring of front-end dai name
  17388. */
  17389. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  17390. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  17391. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  17392. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  17393. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  17394. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  17395. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  17396. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  17397. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  17398. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  17399. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  17400. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  17401. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  17402. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  17403. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  17404. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  17405. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  17406. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  17407. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  17408. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  17409. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  17410. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  17411. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  17412. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  17413. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  17414. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  17415. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  17416. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  17417. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  17418. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  17419. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  17420. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  17421. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  17422. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  17423. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  17424. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  17425. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  17426. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  17427. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  17428. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  17429. "VoiceMMode1 Playback", 0, 0, 0, 0),
  17430. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  17431. "VoiceMMode1 Capture", 0, 0, 0, 0),
  17432. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  17433. "VoiceMMode2 Playback", 0, 0, 0, 0),
  17434. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  17435. "VoiceMMode2 Capture", 0, 0, 0, 0),
  17436. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  17437. 0, 0, 0, 0),
  17438. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  17439. 0, 0, 0, 0),
  17440. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  17441. 0, 0, 0, 0),
  17442. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  17443. 0, 0, 0, 0),
  17444. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  17445. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  17446. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  17447. 0, 0, 0, 0),
  17448. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  17449. 0, 0, 0, 0),
  17450. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  17451. 0, 0, 0, 0),
  17452. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  17453. 0, 0, 0, 0),
  17454. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  17455. 0, 0, 0, 0),
  17456. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  17457. 0, 0, 0, 0),
  17458. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  17459. 0, 0, 0, 0),
  17460. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  17461. 0, 0, 0, 0),
  17462. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  17463. 0, 0, 0, 0),
  17464. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  17465. 0, 0, 0, 0),
  17466. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  17467. 0, 0, 0, 0),
  17468. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  17469. 0, 0, 0, 0),
  17470. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  17471. 0, 0, 0, 0),
  17472. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  17473. 0, 0, 0, 0),
  17474. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  17475. 0, 0, 0, 0),
  17476. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  17477. 0, 0, 0, 0),
  17478. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  17479. 0, 0, 0, 0),
  17480. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  17481. 0, 0, 0, 0),
  17482. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  17483. 0, 0, 0, 0),
  17484. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  17485. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  17486. 0, 0, 0, 0),
  17487. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  17488. "INT0 MI2S_RX Hostless Playback",
  17489. 0, 0, 0, 0),
  17490. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  17491. "INT4 MI2S_RX Hostless Playback",
  17492. 0, 0, 0, 0),
  17493. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  17494. "Primary MI2S_RX Hostless Playback",
  17495. 0, 0, 0, 0),
  17496. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  17497. "Secondary MI2S_RX Hostless Playback",
  17498. 0, 0, 0, 0),
  17499. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  17500. "Tertiary MI2S_RX Hostless Playback",
  17501. 0, 0, 0, 0),
  17502. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  17503. "Quaternary MI2S_RX Hostless Playback",
  17504. 0, 0, 0, 0),
  17505. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  17506. "Quinary MI2S_RX Hostless Playback",
  17507. 0, 0, 0, 0),
  17508. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  17509. 0, 0, 0, 0),
  17510. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  17511. 0, 0, 0, 0),
  17512. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  17513. 0, 0, 0, 0),
  17514. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  17515. 0, 0, 0, 0),
  17516. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  17517. 0, 0, 0, 0),
  17518. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  17519. "INT3 MI2S_TX Hostless Capture",
  17520. 0, 0, 0, 0),
  17521. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  17522. "Tertiary MI2S_TX Hostless Capture",
  17523. 0, 0, 0, 0),
  17524. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  17525. "Secondary MI2S_TX Hostless Capture",
  17526. 0, 0, 0, 0),
  17527. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  17528. "Primary MI2S_TX Hostless Capture",
  17529. 0, 0, 0, 0),
  17530. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  17531. 0, 0, 0, 0),
  17532. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  17533. 0, 0, 0, 0),
  17534. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  17535. "Quaternary MI2S_TX Hostless Capture",
  17536. 0, 0, 0, 0),
  17537. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  17538. "Quinary MI2S_TX Hostless Capture",
  17539. 0, 0, 0, 0),
  17540. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  17541. "Primary TDM0 Hostless Playback",
  17542. 0, 0, 0, 0),
  17543. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  17544. "Primary TDM0 Hostless Capture",
  17545. 0, 0, 0, 0),
  17546. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  17547. "Primary TDM1 Hostless Playback",
  17548. 0, 0, 0, 0),
  17549. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  17550. "Primary TDM1 Hostless Capture",
  17551. 0, 0, 0, 0),
  17552. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  17553. "Primary TDM2 Hostless Playback",
  17554. 0, 0, 0, 0),
  17555. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  17556. "Primary TDM2 Hostless Capture",
  17557. 0, 0, 0, 0),
  17558. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  17559. "Primary TDM3 Hostless Playback",
  17560. 0, 0, 0, 0),
  17561. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  17562. "Primary TDM3 Hostless Capture",
  17563. 0, 0, 0, 0),
  17564. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  17565. "Primary TDM4 Hostless Playback",
  17566. 0, 0, 0, 0),
  17567. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  17568. "Primary TDM4 Hostless Capture",
  17569. 0, 0, 0, 0),
  17570. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  17571. "Primary TDM5 Hostless Playback",
  17572. 0, 0, 0, 0),
  17573. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  17574. "Primary TDM5 Hostless Capture",
  17575. 0, 0, 0, 0),
  17576. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  17577. "Primary TDM6 Hostless Playback",
  17578. 0, 0, 0, 0),
  17579. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  17580. "Primary TDM6 Hostless Capture",
  17581. 0, 0, 0, 0),
  17582. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  17583. "Primary TDM7 Hostless Playback",
  17584. 0, 0, 0, 0),
  17585. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  17586. "Primary TDM7 Hostless Capture",
  17587. 0, 0, 0, 0),
  17588. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  17589. "Secondary TDM0 Hostless Playback",
  17590. 0, 0, 0, 0),
  17591. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  17592. "Secondary TDM0 Hostless Capture",
  17593. 0, 0, 0, 0),
  17594. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  17595. "Secondary TDM1 Hostless Playback",
  17596. 0, 0, 0, 0),
  17597. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  17598. "Secondary TDM1 Hostless Capture",
  17599. 0, 0, 0, 0),
  17600. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  17601. "Secondary TDM2 Hostless Playback",
  17602. 0, 0, 0, 0),
  17603. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  17604. "Secondary TDM2 Hostless Capture",
  17605. 0, 0, 0, 0),
  17606. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  17607. "Secondary TDM3 Hostless Playback",
  17608. 0, 0, 0, 0),
  17609. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  17610. "Secondary TDM3 Hostless Capture",
  17611. 0, 0, 0, 0),
  17612. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  17613. "Secondary TDM4 Hostless Playback",
  17614. 0, 0, 0, 0),
  17615. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  17616. "Secondary TDM4 Hostless Capture",
  17617. 0, 0, 0, 0),
  17618. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  17619. "Secondary TDM5 Hostless Playback",
  17620. 0, 0, 0, 0),
  17621. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  17622. "Secondary TDM5 Hostless Capture",
  17623. 0, 0, 0, 0),
  17624. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  17625. "Secondary TDM6 Hostless Playback",
  17626. 0, 0, 0, 0),
  17627. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  17628. "Secondary TDM6 Hostless Capture",
  17629. 0, 0, 0, 0),
  17630. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  17631. "Secondary TDM7 Hostless Playback",
  17632. 0, 0, 0, 0),
  17633. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  17634. "Secondary TDM7 Hostless Capture",
  17635. 0, 0, 0, 0),
  17636. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  17637. "Tertiary TDM0 Hostless Playback",
  17638. 0, 0, 0, 0),
  17639. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  17640. "Tertiary TDM0 Hostless Capture",
  17641. 0, 0, 0, 0),
  17642. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  17643. "Tertiary TDM1 Hostless Playback",
  17644. 0, 0, 0, 0),
  17645. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  17646. "Tertiary TDM1 Hostless Capture",
  17647. 0, 0, 0, 0),
  17648. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  17649. "Tertiary TDM2 Hostless Playback",
  17650. 0, 0, 0, 0),
  17651. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  17652. "Tertiary TDM2 Hostless Capture",
  17653. 0, 0, 0, 0),
  17654. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  17655. "Tertiary TDM3 Hostless Playback",
  17656. 0, 0, 0, 0),
  17657. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  17658. "Tertiary TDM3 Hostless Capture",
  17659. 0, 0, 0, 0),
  17660. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  17661. "Tertiary TDM4 Hostless Playback",
  17662. 0, 0, 0, 0),
  17663. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  17664. "Tertiary TDM4 Hostless Capture",
  17665. 0, 0, 0, 0),
  17666. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  17667. "Tertiary TDM5 Hostless Playback",
  17668. 0, 0, 0, 0),
  17669. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  17670. "Tertiary TDM5 Hostless Capture",
  17671. 0, 0, 0, 0),
  17672. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  17673. "Tertiary TDM6 Hostless Playback",
  17674. 0, 0, 0, 0),
  17675. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  17676. "Tertiary TDM6 Hostless Capture",
  17677. 0, 0, 0, 0),
  17678. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  17679. "Tertiary TDM7 Hostless Playback",
  17680. 0, 0, 0, 0),
  17681. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  17682. "Tertiary TDM7 Hostless Capture",
  17683. 0, 0, 0, 0),
  17684. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  17685. "Quaternary TDM0 Hostless Playback",
  17686. 0, 0, 0, 0),
  17687. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  17688. "Quaternary TDM0 Hostless Capture",
  17689. 0, 0, 0, 0),
  17690. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  17691. "Quaternary TDM1 Hostless Playback",
  17692. 0, 0, 0, 0),
  17693. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  17694. "Quaternary TDM1 Hostless Capture",
  17695. 0, 0, 0, 0),
  17696. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  17697. "Quaternary TDM2 Hostless Playback",
  17698. 0, 0, 0, 0),
  17699. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  17700. "Quaternary TDM2 Hostless Capture",
  17701. 0, 0, 0, 0),
  17702. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  17703. "Quaternary TDM3 Hostless Playback",
  17704. 0, 0, 0, 0),
  17705. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  17706. "Quaternary TDM3 Hostless Capture",
  17707. 0, 0, 0, 0),
  17708. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  17709. "Quaternary TDM4 Hostless Playback",
  17710. 0, 0, 0, 0),
  17711. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  17712. "Quaternary TDM4 Hostless Capture",
  17713. 0, 0, 0, 0),
  17714. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  17715. "Quaternary TDM5 Hostless Playback",
  17716. 0, 0, 0, 0),
  17717. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  17718. "Quaternary TDM5 Hostless Capture",
  17719. 0, 0, 0, 0),
  17720. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  17721. "Quaternary TDM6 Hostless Playback",
  17722. 0, 0, 0, 0),
  17723. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  17724. "Quaternary TDM6 Hostless Capture",
  17725. 0, 0, 0, 0),
  17726. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  17727. "Quaternary TDM7 Hostless Playback",
  17728. 0, 0, 0, 0),
  17729. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  17730. "Quaternary TDM7 Hostless Capture",
  17731. 0, 0, 0, 0),
  17732. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  17733. "Quinary TDM0 Hostless Playback",
  17734. 0, 0, 0, 0),
  17735. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  17736. "Quinary TDM0 Hostless Capture",
  17737. 0, 0, 0, 0),
  17738. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  17739. "Quinary TDM1 Hostless Playback",
  17740. 0, 0, 0, 0),
  17741. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  17742. "Quinary TDM1 Hostless Capture",
  17743. 0, 0, 0, 0),
  17744. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  17745. "Quinary TDM2 Hostless Playback",
  17746. 0, 0, 0, 0),
  17747. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  17748. "Quinary TDM2 Hostless Capture",
  17749. 0, 0, 0, 0),
  17750. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  17751. "Quinary TDM3 Hostless Playback",
  17752. 0, 0, 0, 0),
  17753. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  17754. "Quinary TDM3 Hostless Capture",
  17755. 0, 0, 0, 0),
  17756. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  17757. "Quinary TDM4 Hostless Playback",
  17758. 0, 0, 0, 0),
  17759. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  17760. "Quinary TDM4 Hostless Capture",
  17761. 0, 0, 0, 0),
  17762. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  17763. "Quinary TDM5 Hostless Playback",
  17764. 0, 0, 0, 0),
  17765. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  17766. "Quinary TDM5 Hostless Capture",
  17767. 0, 0, 0, 0),
  17768. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  17769. "Quinary TDM6 Hostless Playback",
  17770. 0, 0, 0, 0),
  17771. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  17772. "Quinary TDM6 Hostless Capture",
  17773. 0, 0, 0, 0),
  17774. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  17775. "Quinary TDM7 Hostless Playback",
  17776. 0, 0, 0, 0),
  17777. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  17778. "Quinary TDM7 Hostless Capture",
  17779. 0, 0, 0, 0),
  17780. /* LSM */
  17781. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  17782. 0, 0, 0, 0),
  17783. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  17784. 0, 0, 0, 0),
  17785. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  17786. 0, 0, 0, 0),
  17787. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  17788. 0, 0, 0, 0),
  17789. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  17790. 0, 0, 0, 0),
  17791. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  17792. 0, 0, 0, 0),
  17793. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  17794. 0, 0, 0, 0),
  17795. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  17796. 0, 0, 0, 0),
  17797. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  17798. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  17799. /* Backend AIF */
  17800. /* Stream name equals to backend dai link stream name */
  17801. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  17802. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  17803. 0, 0, 0, 0),
  17804. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  17805. 0, 0, 0, 0),
  17806. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  17807. 0, 0, 0, 0),
  17808. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  17809. 0, 0, 0, 0),
  17810. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  17811. 0, 0, 0, 0),
  17812. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  17813. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  17814. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  17815. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  17816. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  17817. 0, 0, 0, 0),
  17818. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  17819. 0, 0, 0, 0),
  17820. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  17821. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  17822. 0, 0, 0, 0),
  17823. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  17824. 0, 0, 0, 0),
  17825. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  17826. 0, 0, 0, 0),
  17827. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  17828. "Secondary MI2S Playback SD1",
  17829. 0, 0, 0, 0),
  17830. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  17831. 0, 0, 0, 0),
  17832. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  17833. 0, 0, 0, 0),
  17834. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  17835. 0, 0, 0, 0),
  17836. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  17837. 0, 0, 0, 0),
  17838. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  17839. 0, 0, 0, 0),
  17840. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  17841. 0, 0, 0, 0),
  17842. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  17843. 0, 0, 0, 0),
  17844. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  17845. 0, 0, 0, 0),
  17846. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  17847. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  17848. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  17849. 0, 0, 0, 0),
  17850. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  17851. 0, 0, 0, 0),
  17852. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  17853. 0, 0, 0, 0),
  17854. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  17855. 0, 0, 0, 0),
  17856. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  17857. 0, 0, 0, 0),
  17858. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  17859. 0, 0, 0, 0),
  17860. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  17861. 0, 0, 0, 0),
  17862. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  17863. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  17864. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  17865. 0, 0, 0, 0),
  17866. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  17867. 0, 0, 0, 0),
  17868. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  17869. 0, 0, 0, 0),
  17870. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  17871. 0, 0, 0, 0),
  17872. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  17873. 0, 0, 0, 0),
  17874. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  17875. 0, 0, 0, 0),
  17876. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  17877. 0, 0, 0, 0),
  17878. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  17879. 0, 0, 0, 0),
  17880. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  17881. 0, 0, 0, 0),
  17882. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  17883. 0, 0, 0, 0),
  17884. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  17885. 0, 0, 0, 0),
  17886. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  17887. 0, 0, 0, 0),
  17888. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  17889. 0, 0, 0, 0),
  17890. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  17891. 0, 0, 0, 0),
  17892. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  17893. 0, 0, 0, 0),
  17894. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  17895. 0, 0, 0, 0),
  17896. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  17897. 0, 0, 0, 0),
  17898. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  17899. 0, 0, 0, 0),
  17900. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  17901. 0, 0, 0, 0),
  17902. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  17903. 0, 0, 0, 0),
  17904. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  17905. 0, 0, 0, 0),
  17906. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  17907. 0, 0, 0, 0),
  17908. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  17909. 0, 0, 0, 0),
  17910. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  17911. 0, 0, 0, 0),
  17912. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  17913. 0, 0, 0, 0),
  17914. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  17915. 0, 0, 0, 0),
  17916. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  17917. 0, 0, 0, 0),
  17918. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  17919. 0, 0, 0, 0),
  17920. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  17921. 0, 0, 0, 0),
  17922. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  17923. 0, 0, 0, 0),
  17924. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  17925. 0, 0, 0, 0),
  17926. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  17927. 0, 0, 0, 0),
  17928. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  17929. 0, 0, 0, 0),
  17930. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  17931. 0, 0, 0, 0),
  17932. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  17933. 0, 0, 0, 0),
  17934. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  17935. 0, 0, 0, 0),
  17936. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  17937. 0, 0, 0, 0),
  17938. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  17939. 0, 0, 0, 0),
  17940. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  17941. 0, 0, 0, 0),
  17942. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  17943. 0, 0, 0, 0),
  17944. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  17945. 0, 0, 0, 0),
  17946. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  17947. 0, 0, 0, 0),
  17948. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  17949. 0, 0, 0, 0),
  17950. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  17951. 0, 0, 0, 0),
  17952. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  17953. 0, 0, 0, 0),
  17954. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  17955. 0, 0, 0, 0),
  17956. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  17957. 0, 0, 0, 0),
  17958. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  17959. 0, 0, 0, 0),
  17960. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  17961. 0, 0, 0, 0),
  17962. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  17963. 0, 0, 0, 0),
  17964. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  17965. 0, 0, 0, 0),
  17966. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  17967. 0, 0, 0, 0),
  17968. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  17969. 0, 0, 0, 0),
  17970. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  17971. 0, 0, 0, 0),
  17972. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  17973. 0, 0, 0, 0),
  17974. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  17975. 0, 0, 0, 0),
  17976. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  17977. 0, 0, 0, 0),
  17978. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  17979. 0, 0, 0, 0),
  17980. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  17981. 0, 0, 0, 0),
  17982. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  17983. 0, 0, 0, 0),
  17984. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  17985. 0, 0, 0, 0),
  17986. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  17987. 0, 0, 0, 0),
  17988. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  17989. 0, 0, 0, 0),
  17990. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  17991. 0, 0, 0, 0),
  17992. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  17993. 0, 0, 0, 0),
  17994. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  17995. 0, 0, 0, 0),
  17996. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  17997. 0, 0, 0, 0),
  17998. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  17999. 0, 0, 0, 0),
  18000. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  18001. 0, 0, 0, 0),
  18002. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  18003. 0, 0, 0, 0),
  18004. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  18005. 0, 0, 0, 0),
  18006. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  18007. 0, 0, 0, 0),
  18008. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  18009. 0, 0, 0, 0),
  18010. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  18011. 0, 0, 0, 0),
  18012. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  18013. 0, 0, 0, 0),
  18014. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  18015. 0, 0, 0, 0),
  18016. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  18017. 0, 0, 0, 0),
  18018. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  18019. 0, 0, 0, 0),
  18020. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  18021. 0, 0, 0, 0),
  18022. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  18023. 0, 0, 0, 0),
  18024. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  18025. 0, 0, 0, 0),
  18026. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  18027. 0, 0, 0, 0),
  18028. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  18029. 0, 0, 0, 0),
  18030. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  18031. 0, 0, 0, 0),
  18032. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  18033. 0, 0, 0, 0),
  18034. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  18035. 0, 0, 0, 0),
  18036. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  18037. 0, 0, 0, 0),
  18038. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  18039. 0, 0, 0, 0),
  18040. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  18041. 0, 0, 0, 0),
  18042. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  18043. 0, 0, 0, 0),
  18044. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  18045. 0, 0, 0, 0),
  18046. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  18047. 0, 0, 0, 0),
  18048. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  18049. 0, 0, 0, 0),
  18050. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  18051. 0, 0, 0, 0),
  18052. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  18053. 0, 0, 0, 0),
  18054. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  18055. 0, 0, 0, 0),
  18056. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  18057. 0, 0, 0, 0),
  18058. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  18059. 0, 0, 0, 0),
  18060. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  18061. 0, 0, 0, 0),
  18062. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  18063. 0, 0, 0, 0),
  18064. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  18065. 0, 0, 0, 0),
  18066. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  18067. 0, 0, 0, 0),
  18068. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  18069. 0, 0, 0, 0),
  18070. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  18071. 0, 0, 0, 0),
  18072. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  18073. 0, 0, 0, 0),
  18074. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  18075. 0, 0, 0, 0),
  18076. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  18077. 0, 0, 0, 0),
  18078. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  18079. 0, 0, 0, 0),
  18080. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  18081. 0, 0, 0, 0),
  18082. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  18083. 0, 0, 0, 0),
  18084. /* incall */
  18085. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  18086. 0, 0, 0, 0),
  18087. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  18088. 0, 0, 0, 0),
  18089. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  18090. 0, 0, 0, 0),
  18091. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  18092. 0, 0, 0, 0),
  18093. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  18094. 0, 0, 0, 0),
  18095. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  18096. 0, 0, 0, 0),
  18097. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  18098. 0, 0, 0, 0),
  18099. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  18100. 0, 0, 0, 0),
  18101. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  18102. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  18103. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  18104. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  18105. 0, 0, 0, 0),
  18106. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  18107. 0, 0, 0, 0),
  18108. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  18109. 0, 0, 0, 0),
  18110. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  18111. 0, 0, 0, 0),
  18112. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  18113. 0, 0, 0, 0),
  18114. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  18115. 0, 0, 0, 0),
  18116. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  18117. 0, 0, 0, 0),
  18118. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  18119. 0, 0, 0, 0),
  18120. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  18121. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  18122. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  18123. 0, 0, 0, 0),
  18124. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  18125. 0, 0, 0, 0),
  18126. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  18127. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  18128. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  18129. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  18130. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  18131. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  18132. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  18133. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  18134. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  18135. /* In- call recording */
  18136. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  18137. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  18138. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  18139. 0, 0, 0, 0),
  18140. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  18141. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  18142. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  18143. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  18144. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  18145. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  18146. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  18147. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  18148. /* Switch Definitions */
  18149. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  18150. &slim_fm_switch_mixer_controls),
  18151. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  18152. &slim1_fm_switch_mixer_controls),
  18153. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  18154. &slim3_fm_switch_mixer_controls),
  18155. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  18156. &slim4_fm_switch_mixer_controls),
  18157. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  18158. &slim6_fm_switch_mixer_controls),
  18159. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18160. &pcm_rx_switch_mixer_controls),
  18161. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18162. &int0_mi2s_rx_switch_mixer_controls),
  18163. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18164. &int4_mi2s_rx_switch_mixer_controls),
  18165. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18166. &pri_mi2s_rx_switch_mixer_controls),
  18167. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18168. &sec_mi2s_rx_switch_mixer_controls),
  18169. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18170. &tert_mi2s_rx_switch_mixer_controls),
  18171. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18172. &quat_mi2s_rx_switch_mixer_controls),
  18173. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18174. &quin_mi2s_rx_switch_mixer_controls),
  18175. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18176. &hfp_pri_aux_switch_mixer_controls),
  18177. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18178. &hfp_aux_switch_mixer_controls),
  18179. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  18180. &hfp_int_switch_mixer_controls),
  18181. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18182. &hfp_slim7_switch_mixer_controls),
  18183. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  18184. &usb_switch_mixer_controls),
  18185. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18186. &a2dp_slim7_switch_mixer_controls),
  18187. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18188. &cdc_dma_wsa_switch_mixer_controls),
  18189. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18190. &cdc_dma_rx_switch_mixer_controls),
  18191. /* Mixer definitions */
  18192. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18193. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  18194. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18195. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  18196. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18197. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  18198. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18199. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  18200. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18201. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  18202. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18203. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  18204. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18205. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  18206. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  18207. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  18208. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  18209. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  18210. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  18211. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  18212. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18213. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  18214. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18215. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  18216. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18217. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  18218. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18219. quaternary_mi2s_rx_mixer_controls,
  18220. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  18221. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18222. tertiary_mi2s_rx_mixer_controls,
  18223. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  18224. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18225. secondary_mi2s_rx_mixer_controls,
  18226. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  18227. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18228. secondary_mi2s_rx2_mixer_controls,
  18229. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  18230. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18231. primary_mi2s_rx_mixer_controls,
  18232. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  18233. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18234. int0_mi2s_rx_mixer_controls,
  18235. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  18236. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18237. int4_mi2s_rx_mixer_controls,
  18238. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  18239. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18240. quinary_mi2s_rx_mixer_controls,
  18241. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  18242. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18243. pri_tdm_rx_0_mixer_controls,
  18244. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  18245. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18246. pri_tdm_rx_1_mixer_controls,
  18247. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  18248. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18249. pri_tdm_rx_2_mixer_controls,
  18250. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  18251. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18252. pri_tdm_rx_3_mixer_controls,
  18253. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  18254. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18255. pri_tdm_tx_0_mixer_controls,
  18256. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  18257. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18258. sec_tdm_rx_0_mixer_controls,
  18259. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  18260. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18261. sec_tdm_rx_1_mixer_controls,
  18262. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  18263. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18264. sec_tdm_rx_2_mixer_controls,
  18265. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  18266. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18267. sec_tdm_rx_3_mixer_controls,
  18268. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  18269. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18270. sec_tdm_tx_0_mixer_controls,
  18271. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  18272. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18273. tert_tdm_rx_0_mixer_controls,
  18274. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  18275. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18276. tert_tdm_tx_0_mixer_controls,
  18277. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  18278. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18279. tert_tdm_rx_1_mixer_controls,
  18280. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  18281. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18282. tert_tdm_rx_2_mixer_controls,
  18283. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  18284. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18285. tert_tdm_rx_3_mixer_controls,
  18286. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  18287. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18288. tert_tdm_rx_4_mixer_controls,
  18289. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  18290. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18291. quat_tdm_rx_0_mixer_controls,
  18292. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  18293. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18294. quat_tdm_tx_0_mixer_controls,
  18295. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  18296. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18297. quat_tdm_rx_1_mixer_controls,
  18298. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  18299. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18300. quat_tdm_rx_2_mixer_controls,
  18301. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  18302. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18303. quat_tdm_rx_3_mixer_controls,
  18304. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  18305. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18306. quin_tdm_rx_0_mixer_controls,
  18307. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  18308. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18309. quin_tdm_tx_0_mixer_controls,
  18310. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  18311. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18312. quin_tdm_rx_1_mixer_controls,
  18313. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  18314. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18315. quin_tdm_rx_2_mixer_controls,
  18316. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  18317. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18318. quin_tdm_rx_3_mixer_controls,
  18319. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  18320. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18321. wsa_cdc_dma_rx_0_mixer_controls,
  18322. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  18323. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18324. wsa_cdc_dma_rx_1_mixer_controls,
  18325. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  18326. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18327. rx_cdc_dma_rx_0_mixer_controls,
  18328. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  18329. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18330. rx_cdc_dma_rx_1_mixer_controls,
  18331. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  18332. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18333. rx_cdc_dma_rx_2_mixer_controls,
  18334. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  18335. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18336. rx_cdc_dma_rx_3_mixer_controls,
  18337. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  18338. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18339. rx_cdc_dma_rx_4_mixer_controls,
  18340. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  18341. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18342. rx_cdc_dma_rx_5_mixer_controls,
  18343. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  18344. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18345. rx_cdc_dma_rx_6_mixer_controls,
  18346. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  18347. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18348. rx_cdc_dma_rx_7_mixer_controls,
  18349. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  18350. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  18351. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  18352. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  18353. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  18354. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  18355. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  18356. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  18357. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  18358. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  18359. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  18360. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  18361. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  18362. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  18363. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  18364. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  18365. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  18366. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  18367. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  18368. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  18369. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  18370. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  18371. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  18372. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  18373. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  18374. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  18375. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  18376. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  18377. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  18378. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  18379. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  18380. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  18381. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  18382. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  18383. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  18384. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  18385. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  18386. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18387. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  18388. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18389. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  18390. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18391. tert_auxpcm_rx_mixer_controls,
  18392. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  18393. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18394. quat_auxpcm_rx_mixer_controls,
  18395. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  18396. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18397. quin_auxpcm_rx_mixer_controls,
  18398. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  18399. /* incall */
  18400. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  18401. incall_music_delivery_mixer_controls,
  18402. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  18403. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18404. incall_music2_delivery_mixer_controls,
  18405. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  18406. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18407. slimbus_4_rx_mixer_controls,
  18408. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  18409. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18410. slimbus_6_rx_mixer_controls,
  18411. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  18412. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18413. usb_audio_rx_mixer_controls,
  18414. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  18415. /* Voice Mixer */
  18416. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  18417. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  18418. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  18419. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  18420. SND_SOC_NOPM, 0, 0,
  18421. sec_i2s_rx_voice_mixer_controls,
  18422. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  18423. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  18424. SND_SOC_NOPM, 0, 0,
  18425. sec_mi2s_rx_voice_mixer_controls,
  18426. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  18427. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  18428. SND_SOC_NOPM, 0, 0,
  18429. slimbus_rx_voice_mixer_controls,
  18430. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  18431. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  18432. SND_SOC_NOPM, 0, 0,
  18433. bt_sco_rx_voice_mixer_controls,
  18434. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  18435. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  18436. SND_SOC_NOPM, 0, 0,
  18437. afe_pcm_rx_voice_mixer_controls,
  18438. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  18439. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  18440. SND_SOC_NOPM, 0, 0,
  18441. aux_pcm_rx_voice_mixer_controls,
  18442. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  18443. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  18444. SND_SOC_NOPM, 0, 0,
  18445. sec_aux_pcm_rx_voice_mixer_controls,
  18446. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  18447. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  18448. SND_SOC_NOPM, 0, 0,
  18449. tert_aux_pcm_rx_voice_mixer_controls,
  18450. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  18451. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  18452. SND_SOC_NOPM, 0, 0,
  18453. quat_aux_pcm_rx_voice_mixer_controls,
  18454. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  18455. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  18456. SND_SOC_NOPM, 0, 0,
  18457. quin_aux_pcm_rx_voice_mixer_controls,
  18458. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  18459. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  18460. SND_SOC_NOPM, 0, 0,
  18461. hdmi_rx_voice_mixer_controls,
  18462. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  18463. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  18464. SND_SOC_NOPM, 0, 0,
  18465. mi2s_rx_voice_mixer_controls,
  18466. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  18467. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  18468. SND_SOC_NOPM, 0, 0,
  18469. pri_mi2s_rx_voice_mixer_controls,
  18470. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  18471. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  18472. SND_SOC_NOPM, 0, 0,
  18473. int0_mi2s_rx_voice_mixer_controls,
  18474. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  18475. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  18476. SND_SOC_NOPM, 0, 0,
  18477. int4_mi2s_rx_voice_mixer_controls,
  18478. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  18479. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  18480. SND_SOC_NOPM, 0, 0,
  18481. tert_mi2s_rx_voice_mixer_controls,
  18482. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  18483. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  18484. SND_SOC_NOPM, 0, 0,
  18485. quat_mi2s_rx_voice_mixer_controls,
  18486. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  18487. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  18488. SND_SOC_NOPM, 0, 0,
  18489. quin_mi2s_rx_voice_mixer_controls,
  18490. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  18491. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  18492. SND_SOC_NOPM, 0, 0,
  18493. quat_tdm_rx_2_voice_mixer_controls,
  18494. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  18495. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  18496. SND_SOC_NOPM, 0, 0,
  18497. wsa_cdc_dma_rx_0_voice_mixer_controls,
  18498. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  18499. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  18500. SND_SOC_NOPM, 0, 0,
  18501. rx_cdc_dma_rx_0_voice_mixer_controls,
  18502. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  18503. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  18504. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  18505. ARRAY_SIZE(tx_voip_mixer_controls)),
  18506. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  18507. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  18508. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  18509. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  18510. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  18511. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  18512. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18513. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  18514. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18515. int_bt_a2dp_rx_mixer_controls,
  18516. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  18517. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18518. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  18519. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18520. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  18521. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18522. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  18523. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18524. tx_voice2_stub_mixer_controls,
  18525. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  18526. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18527. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  18528. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  18529. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  18530. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  18531. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  18532. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18533. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  18534. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  18535. SND_SOC_NOPM, 0, 0,
  18536. slimbus_6_rx_voice_mixer_controls,
  18537. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  18538. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18539. slimbus_7_rx_voice_mixer_controls,
  18540. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  18541. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18542. slimbus_8_rx_voice_mixer_controls,
  18543. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  18544. /* port mixer */
  18545. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  18546. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  18547. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  18548. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  18549. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  18550. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  18551. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  18552. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  18553. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  18554. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  18555. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  18556. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  18557. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  18558. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  18559. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  18560. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  18561. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  18562. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  18563. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18564. sbus_1_rx_port_mixer_controls,
  18565. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  18566. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18567. bt_sco_rx_port_mixer_controls,
  18568. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  18569. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  18570. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  18571. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  18572. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  18573. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  18574. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  18575. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  18576. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  18577. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  18578. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  18579. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  18580. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  18581. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  18582. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  18583. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  18584. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  18585. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  18586. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  18587. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  18588. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  18589. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  18590. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18591. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  18592. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18593. primary_mi2s_rx_port_mixer_controls,
  18594. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  18595. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18596. sec_mi2s_rx_port_mixer_controls,
  18597. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  18598. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18599. tert_mi2s_rx_port_mixer_controls,
  18600. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  18601. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18602. quat_mi2s_rx_port_mixer_controls,
  18603. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  18604. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18605. quin_mi2s_rx_port_mixer_controls,
  18606. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  18607. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18608. pri_tdm_rx_0_port_mixer_controls,
  18609. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  18610. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18611. pri_tdm_rx_1_port_mixer_controls,
  18612. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  18613. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18614. pri_tdm_rx_2_port_mixer_controls,
  18615. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  18616. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18617. pri_tdm_rx_3_port_mixer_controls,
  18618. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  18619. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18620. sec_tdm_rx_0_port_mixer_controls,
  18621. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  18622. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18623. sec_tdm_rx_1_port_mixer_controls,
  18624. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  18625. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18626. sec_tdm_rx_2_port_mixer_controls,
  18627. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  18628. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18629. sec_tdm_rx_3_port_mixer_controls,
  18630. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  18631. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  18632. sec_tdm_rx_7_port_mixer_controls,
  18633. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  18634. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18635. tert_tdm_rx_0_port_mixer_controls,
  18636. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  18637. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18638. tert_tdm_rx_1_port_mixer_controls,
  18639. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  18640. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18641. tert_tdm_rx_2_port_mixer_controls,
  18642. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  18643. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18644. tert_tdm_rx_3_port_mixer_controls,
  18645. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  18646. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18647. quat_tdm_rx_0_port_mixer_controls,
  18648. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  18649. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18650. quat_tdm_rx_1_port_mixer_controls,
  18651. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  18652. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18653. quat_tdm_rx_2_port_mixer_controls,
  18654. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  18655. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18656. quat_tdm_rx_3_port_mixer_controls,
  18657. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  18658. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18659. quin_tdm_rx_0_port_mixer_controls,
  18660. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  18661. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18662. quin_tdm_rx_1_port_mixer_controls,
  18663. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  18664. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18665. quin_tdm_rx_2_port_mixer_controls,
  18666. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  18667. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18668. quin_tdm_rx_3_port_mixer_controls,
  18669. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  18670. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18671. int0_mi2s_rx_port_mixer_controls,
  18672. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  18673. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18674. int4_mi2s_rx_port_mixer_controls,
  18675. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  18676. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18677. wsa_cdc_dma_rx_0_port_mixer_controls,
  18678. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  18679. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18680. rx_cdc_dma_rx_0_port_mixer_controls,
  18681. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  18682. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  18683. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  18684. ARRAY_SIZE(tx_qchat_mixer_controls)),
  18685. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  18686. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  18687. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  18688. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  18689. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  18690. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  18691. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  18692. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  18693. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  18694. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  18695. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  18696. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  18697. /* lsm mixer definitions */
  18698. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  18699. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  18700. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  18701. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  18702. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  18703. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  18704. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  18705. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  18706. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  18707. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  18708. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  18709. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  18710. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  18711. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  18712. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  18713. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  18714. /* Virtual Pins to force backends ON atm */
  18715. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  18716. SND_SOC_DAPM_INPUT("BE_IN"),
  18717. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18718. &slim0_rx_vi_fb_lch_mux),
  18719. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18720. &slim0_rx_vi_fb_rch_mux),
  18721. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18722. &wsa_rx_0_vi_fb_lch_mux),
  18723. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18724. &wsa_rx_0_vi_fb_rch_mux),
  18725. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  18726. &mi2s_rx_vi_fb_mux),
  18727. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18728. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  18729. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18730. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  18731. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  18732. &voc_ext_ec_mux),
  18733. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  18734. &ext_ec_ref_mux_ul1),
  18735. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  18736. &ext_ec_ref_mux_ul2),
  18737. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  18738. &ext_ec_ref_mux_ul3),
  18739. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  18740. &ext_ec_ref_mux_ul4),
  18741. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  18742. &ext_ec_ref_mux_ul5),
  18743. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  18744. &ext_ec_ref_mux_ul6),
  18745. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  18746. &ext_ec_ref_mux_ul8),
  18747. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  18748. &ext_ec_ref_mux_ul9),
  18749. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  18750. &ext_ec_ref_mux_ul10),
  18751. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  18752. &ext_ec_ref_mux_ul16),
  18753. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  18754. &ext_ec_ref_mux_ul17),
  18755. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  18756. &ext_ec_ref_mux_ul18),
  18757. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  18758. &ext_ec_ref_mux_ul19),
  18759. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  18760. &ext_ec_ref_mux_ul28),
  18761. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  18762. &ext_ec_ref_mux_ul29),
  18763. };
  18764. static const struct snd_soc_dapm_route intercon[] = {
  18765. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18766. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18767. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18768. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18769. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18770. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18771. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18772. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18773. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18774. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18775. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18776. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18777. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18778. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18779. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18780. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18781. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18782. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  18783. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18784. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18785. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18786. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18787. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18788. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18789. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18790. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18791. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18792. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18793. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18794. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18795. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18796. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18797. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18798. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18799. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18800. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  18801. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18802. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18803. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18804. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18805. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18806. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18807. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18808. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18809. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18810. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18811. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18812. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18813. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18814. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18815. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18816. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18817. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18818. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  18819. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18820. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18821. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18822. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18823. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18824. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18825. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18826. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18827. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18828. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18829. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18830. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18831. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18832. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18833. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18834. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18835. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18836. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  18837. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18838. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18839. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18840. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18841. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18842. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18843. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18844. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18845. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18846. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18847. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18848. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18849. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18850. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18851. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18852. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18853. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18854. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  18855. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18856. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18857. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18858. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18859. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18860. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18861. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18862. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18863. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18864. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18865. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18866. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18867. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18868. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18869. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18870. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18871. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18872. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  18873. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18874. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18875. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18876. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18877. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18878. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18879. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18880. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18881. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18882. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18883. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18884. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18885. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18886. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18887. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18888. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18889. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18890. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  18891. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18892. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18893. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18894. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18895. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18896. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18897. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18898. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18899. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18900. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18901. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18902. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18903. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18904. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18905. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18906. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18907. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18908. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  18909. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18910. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18911. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18912. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18913. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18914. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18915. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18916. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18917. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18918. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18919. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18920. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18921. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18922. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18923. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18924. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18925. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18926. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  18927. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18928. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18929. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18930. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18931. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18932. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18933. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18934. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18935. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18936. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18937. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18938. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18939. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18940. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18941. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18942. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18943. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18944. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  18945. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18946. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18947. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18948. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18949. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18950. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18951. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18952. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18953. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18954. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18955. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18956. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18957. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18958. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18959. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18960. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18961. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18962. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  18963. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18964. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18965. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18966. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18967. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18968. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18969. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18970. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18971. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18972. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18973. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18974. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18975. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18976. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18977. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18978. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18979. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18980. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  18981. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18982. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18983. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18984. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18985. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18986. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18987. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18988. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18989. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18990. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18991. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18992. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18993. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18994. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18995. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18996. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18997. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18998. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  18999. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19000. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19001. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19002. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19003. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19004. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19005. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19006. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19007. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19008. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19009. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19010. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19011. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19012. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19013. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19014. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19015. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19016. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  19017. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19018. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19019. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19020. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19021. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19022. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19023. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19024. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19025. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19026. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19027. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19028. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19029. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19030. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19031. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19032. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19033. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19034. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  19035. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  19036. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  19037. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  19038. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  19039. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  19040. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  19041. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  19042. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  19043. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  19044. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  19045. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  19046. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  19047. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  19048. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  19049. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  19050. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  19051. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  19052. {"HDMI", NULL, "HDMI Mixer"},
  19053. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  19054. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  19055. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  19056. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  19057. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  19058. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  19059. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  19060. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  19061. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  19062. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  19063. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  19064. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  19065. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  19066. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  19067. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  19068. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  19069. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  19070. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  19071. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  19072. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  19073. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  19074. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  19075. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  19076. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  19077. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  19078. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  19079. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  19080. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  19081. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  19082. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  19083. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  19084. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  19085. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  19086. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  19087. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  19088. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  19089. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19090. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19091. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19092. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19093. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19094. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19095. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19096. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19097. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19098. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19099. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19100. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19101. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19102. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19103. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19104. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19105. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19106. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  19107. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19108. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19109. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19110. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19111. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19112. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19113. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19114. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19115. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19116. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19117. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19118. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19119. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19120. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19121. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19122. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19123. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19124. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  19125. /* incall */
  19126. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  19127. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  19128. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  19129. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  19130. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  19131. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19132. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19133. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19134. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19135. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  19136. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19137. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19138. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19139. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19140. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  19141. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19142. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19143. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19144. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19145. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19146. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19147. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19148. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19149. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19150. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19151. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19152. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19153. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19154. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19155. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19156. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19157. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19158. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  19159. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19160. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19161. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19162. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19163. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19164. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19165. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19166. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19167. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19168. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19169. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19170. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19171. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19172. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19173. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19174. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19175. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19176. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  19177. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19178. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19179. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19180. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19181. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19182. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19183. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19184. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19185. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19186. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19187. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19188. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19189. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19190. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19191. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19192. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19193. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19194. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  19195. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19196. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19197. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19198. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19199. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19200. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19201. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19202. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19203. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19204. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19205. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19206. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19207. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19208. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19209. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19210. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19211. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19212. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  19213. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19214. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19215. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19216. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19217. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19218. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19219. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  19220. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19221. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19222. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19223. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19224. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19225. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19226. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19227. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19228. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19229. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19230. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19231. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19232. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19233. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19234. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19235. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19236. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19237. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19238. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19239. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19240. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19241. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19242. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19243. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19244. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19245. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19246. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19247. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19248. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19249. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19250. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19251. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19252. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19253. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19254. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19255. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19256. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19257. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19258. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19259. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19260. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19261. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19262. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19263. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19264. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19265. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19266. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19267. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19268. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19269. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19270. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19271. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19272. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19273. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19274. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19275. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19276. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19277. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19278. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19279. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19280. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19281. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19282. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  19283. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19284. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19285. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19286. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19287. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19288. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19289. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19290. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19291. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19292. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19293. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19294. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19295. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19296. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19297. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19298. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19299. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  19300. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19301. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19302. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19303. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19304. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19305. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19306. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19307. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19308. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19309. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19310. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19311. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19312. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19313. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19314. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19315. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  19316. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19317. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19318. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19319. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19320. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19321. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19322. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19323. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19324. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19325. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19326. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19327. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19328. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19329. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19330. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19331. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  19332. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19333. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  19334. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19335. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19336. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19337. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19338. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19339. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19340. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19341. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19342. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19343. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19344. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19345. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19346. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19347. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19348. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19349. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19350. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19351. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19352. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  19353. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19354. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19355. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19356. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19357. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19358. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19359. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19360. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19361. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19362. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19363. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19364. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19365. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19366. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19367. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19368. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  19369. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19370. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19371. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19372. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19373. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19374. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19375. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19376. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19377. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19378. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19379. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19380. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19381. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19382. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19383. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19384. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  19385. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19386. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19387. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19388. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19389. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19390. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19391. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19392. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19393. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19394. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19395. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19396. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19397. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19398. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19399. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19400. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19401. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19402. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  19403. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19404. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19405. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19406. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19407. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19408. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19409. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19410. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19411. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19412. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19413. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19414. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19415. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19416. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19417. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19418. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19419. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19420. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  19421. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19422. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19423. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19424. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19425. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19426. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19427. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19428. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19429. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19430. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19431. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19432. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19433. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19434. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19435. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19436. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19437. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19438. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  19439. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19440. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19441. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19442. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19443. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19444. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19445. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19446. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19447. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19448. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19449. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19450. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19451. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19452. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19453. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19454. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19455. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19456. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  19457. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19458. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19459. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19460. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19461. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19462. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19463. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19464. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19465. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19466. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19467. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19468. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19469. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19470. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19471. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19472. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19473. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19474. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  19475. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19476. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19477. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19478. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19479. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19480. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19481. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19482. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19483. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19484. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19485. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19486. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19487. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19488. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19489. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19490. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19491. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  19492. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19493. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19494. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19495. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19496. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19497. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19498. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19499. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19500. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19501. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19502. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19503. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19504. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19505. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19506. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19507. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19508. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19509. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  19510. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19511. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19512. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19513. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19514. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19515. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19516. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19517. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19518. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19519. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19520. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19521. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19522. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19523. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19524. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19525. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19526. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19527. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  19528. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19529. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19530. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19531. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19532. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19533. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19534. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19535. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19536. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19537. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19538. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19539. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19540. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19541. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19542. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19543. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19544. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19545. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  19546. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19547. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19548. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19549. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19550. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19551. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19552. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19553. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19554. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19555. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19556. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19557. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19558. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19559. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19560. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19561. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19562. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19563. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  19564. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19565. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19566. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19567. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19568. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19569. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19570. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19571. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19572. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19573. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19574. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19575. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19576. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19577. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19578. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19579. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19580. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  19581. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19582. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19583. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19584. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19585. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19586. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19587. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19588. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19589. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19590. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19591. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19592. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19593. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19594. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19595. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19596. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19597. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19598. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  19599. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19600. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19601. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19602. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19603. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19604. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19605. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19606. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19607. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19608. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19609. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19610. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19611. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19612. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19613. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19614. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19615. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  19616. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19617. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19618. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19619. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19620. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19621. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19622. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19623. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19624. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19625. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19626. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19627. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19628. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19629. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19630. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19631. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19632. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19633. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  19634. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19635. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19636. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19637. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19638. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19639. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19640. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19641. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19642. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19643. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19644. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19645. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19646. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19647. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19648. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19649. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19650. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19651. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  19652. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19653. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19654. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19655. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19656. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19657. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19658. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19659. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19660. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19661. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19662. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19663. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19664. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19665. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19666. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19667. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19668. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19669. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  19670. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19671. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19672. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19673. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19674. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19675. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19676. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19677. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19678. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19679. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19680. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19681. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19682. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19683. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19684. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19685. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19686. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19687. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  19688. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19689. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19690. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19691. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19692. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19693. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19694. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19695. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19696. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19697. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19698. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19699. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19700. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19701. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19702. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19703. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19704. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19705. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19706. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  19707. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19708. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19709. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19710. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19711. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19712. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19713. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19714. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19715. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19716. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19717. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19718. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19719. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19720. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19721. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19722. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19723. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  19724. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19725. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19726. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19727. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19728. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19729. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19730. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19731. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19732. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19733. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19734. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19735. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19736. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19737. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19738. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19739. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19740. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19741. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19742. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  19743. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19744. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19745. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19746. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19747. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19748. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19749. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19750. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19751. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19752. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19753. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19754. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19755. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19756. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19757. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19758. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19759. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19760. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19761. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  19762. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19763. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19764. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19765. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19766. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19767. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19768. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19769. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19770. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19771. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19772. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19773. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19774. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19775. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19776. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19777. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19778. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19779. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19780. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  19781. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19782. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19783. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19784. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19785. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19786. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19787. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19788. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19789. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19790. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19791. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19792. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19793. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19794. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19795. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19796. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19797. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19798. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19799. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  19800. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19801. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19802. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19803. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19804. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19805. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19806. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19807. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19808. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19809. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19810. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19811. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19812. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19813. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19814. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19815. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19816. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  19817. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19818. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19819. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19820. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19821. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19822. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19823. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19824. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19825. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19826. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19827. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19828. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19829. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19830. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19831. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19832. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19833. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19834. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19835. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  19836. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19837. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19838. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19839. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19840. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19841. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19842. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19843. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19844. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19845. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19846. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19847. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19848. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19849. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19850. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19851. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19852. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19853. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19854. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  19855. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19856. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19857. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19858. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19859. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19860. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19861. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19862. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19863. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19864. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19865. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19866. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19867. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19868. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19869. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19870. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19871. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19872. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19873. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  19874. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  19875. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  19876. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  19877. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  19878. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  19879. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  19880. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  19881. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19882. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19883. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19884. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19885. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19886. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19887. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19888. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19889. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19890. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19891. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19892. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19893. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19894. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19895. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19896. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19897. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19898. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19899. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19900. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19901. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19902. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19903. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  19904. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19905. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19906. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19907. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  19908. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19909. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19910. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19911. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19912. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  19913. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19914. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19915. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19916. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19917. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19918. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19919. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19920. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19921. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19922. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19923. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19924. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19925. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19926. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19927. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19928. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19929. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19930. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19931. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19932. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19933. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19934. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19935. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19936. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19937. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19938. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19939. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19940. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19941. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19942. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19943. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19944. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19945. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19946. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19947. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19948. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19949. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19950. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19951. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19952. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19953. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19954. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19955. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19956. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19957. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19958. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19959. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19960. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19961. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19962. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19963. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  19964. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19965. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19966. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19967. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19968. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19969. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19970. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19971. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19972. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19973. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19974. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19975. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19976. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19977. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19978. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19979. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19980. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19981. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19982. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19983. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19984. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19985. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19986. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19987. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19988. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19989. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19990. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19991. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19992. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19993. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19994. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19995. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19996. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19997. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  19998. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19999. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20000. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20001. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20002. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20003. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20004. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20005. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20006. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20007. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20008. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20009. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20010. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20011. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20012. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20013. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20014. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20015. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20016. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20017. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20018. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20019. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20020. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20021. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20022. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20023. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20024. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20025. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20026. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20027. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20028. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20029. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20030. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20031. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20032. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20033. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20034. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20035. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20036. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20037. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20038. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20039. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20040. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20041. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20042. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20043. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20044. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20045. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20046. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20047. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20048. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20049. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20050. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20051. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20052. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20053. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20054. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20055. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20056. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20057. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20058. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20059. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20060. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20061. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20062. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20063. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20064. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20065. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20066. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20067. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20068. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20069. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20070. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20071. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20072. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20073. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20074. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20075. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20076. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20077. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20078. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20079. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20080. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20081. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20082. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20083. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20084. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20085. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20086. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20087. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20088. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20089. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20090. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20091. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20092. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20093. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20094. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20095. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20096. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20097. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20098. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20099. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20100. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20101. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20102. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20103. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20104. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20105. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20106. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20107. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20108. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20109. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20110. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20111. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20112. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20113. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20114. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20115. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20116. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20117. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20118. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20119. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20120. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20121. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20122. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20123. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20124. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20125. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20126. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20127. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20128. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20129. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20130. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20131. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20132. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20133. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20134. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20135. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20136. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20137. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20138. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20139. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20140. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20141. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20142. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20143. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20144. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20145. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20146. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20147. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20148. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20149. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20150. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20151. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20152. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20153. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20154. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20155. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20156. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20157. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20158. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20159. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20160. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20161. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20162. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20163. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20164. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20165. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20166. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20167. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20168. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20169. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20170. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20171. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20172. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20173. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20174. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20175. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20176. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20177. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20178. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20179. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20180. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20181. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20182. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20183. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20184. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20185. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20186. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20187. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20188. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20189. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20190. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20191. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20192. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20193. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20194. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20195. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20196. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20197. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20198. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20199. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20200. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20201. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20202. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20203. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20204. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20205. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20206. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20207. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20208. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20209. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20210. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20211. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20212. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20213. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20214. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20215. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20216. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20217. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20218. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20219. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20220. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20221. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20222. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20223. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20224. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20225. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20226. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20227. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20228. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20229. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20230. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20231. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20232. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20233. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20234. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20235. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20236. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20237. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20238. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20239. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20240. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20241. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20242. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20243. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20244. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20245. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20246. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20247. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20248. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20249. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20250. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20251. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20252. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20253. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20254. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20255. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20256. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20257. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20258. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20259. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20260. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20261. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20262. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20263. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20264. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20265. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20266. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20267. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20268. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20269. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20270. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20271. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20272. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20273. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20274. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20275. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20276. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20277. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20278. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20279. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20280. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20281. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20282. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20283. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20284. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20285. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20286. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20287. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20288. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20289. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20290. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20291. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20292. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20293. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20294. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20295. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20296. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20297. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20298. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20299. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20300. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20301. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20302. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  20303. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20304. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  20305. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20306. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20307. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20308. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20309. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20310. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20311. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20312. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20313. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20314. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20315. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20316. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20317. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20318. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20319. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20320. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20321. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20322. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20323. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20324. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20325. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20326. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20327. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20328. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20329. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20330. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20331. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20332. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20333. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20334. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20335. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20336. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20337. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20338. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20339. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20340. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20341. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20342. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20343. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20344. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20345. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20346. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20347. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20348. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20349. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20350. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20351. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20352. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20353. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20354. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20355. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20356. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20357. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20358. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20359. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20360. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20361. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20362. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20363. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20364. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20365. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20366. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20367. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20368. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20369. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20370. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20371. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20372. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20373. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20374. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20375. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20376. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20377. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20378. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20379. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20380. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20381. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20382. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20383. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20384. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20385. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20386. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20387. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20388. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20389. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20390. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20391. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20392. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20393. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20394. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20395. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20396. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20397. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20398. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20399. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20400. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20401. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20402. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20403. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  20404. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20405. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20406. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20407. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20408. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20409. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20410. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20411. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20412. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20413. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20414. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20415. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20416. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20417. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20418. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20419. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20420. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20421. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  20422. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20423. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20424. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20425. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20426. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20427. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20428. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20429. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20430. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20431. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20432. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20433. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20434. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20435. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20436. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20437. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20438. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  20439. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20440. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20441. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20442. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20443. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20444. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20445. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20446. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20447. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20448. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20449. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20450. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20451. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20452. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20453. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20454. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20455. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  20456. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20457. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20458. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20459. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20460. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20461. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20462. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20463. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20464. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20465. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20466. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20467. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20468. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20469. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20470. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20471. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20472. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20473. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20474. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20475. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20476. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20477. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20478. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20479. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20480. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20481. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20482. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20483. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20484. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20485. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20486. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20487. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20488. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20489. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20490. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20491. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  20492. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20493. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  20494. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  20495. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  20496. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  20497. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  20498. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  20499. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  20500. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  20501. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  20502. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  20503. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  20504. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  20505. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  20506. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  20507. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  20508. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  20509. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  20510. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20511. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20512. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20513. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20514. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20515. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20516. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20517. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20518. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20519. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20520. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20521. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20522. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20523. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20524. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20525. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20526. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20527. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  20528. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20529. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20530. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20531. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20532. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20533. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20534. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20535. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20536. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20537. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20538. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20539. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20540. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20541. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20542. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20543. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20544. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20545. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  20546. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20547. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20548. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20549. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20550. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20551. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20552. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20553. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20554. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20555. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20556. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20557. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20558. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20559. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20560. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20561. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20562. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  20563. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20564. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20565. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20566. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20567. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20568. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20569. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20570. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20571. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20572. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20573. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20574. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20575. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20576. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20577. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20578. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20579. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  20580. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20581. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20582. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20583. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20584. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20585. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20586. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20587. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20588. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20589. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20590. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20591. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20592. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20593. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20594. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20595. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20596. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  20597. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20598. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20599. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20600. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20601. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20602. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  20603. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20604. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20605. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20606. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  20607. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20608. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20609. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20610. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20611. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20612. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  20613. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20614. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20615. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20616. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20617. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20618. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  20619. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20620. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20621. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20622. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20623. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20624. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  20625. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20626. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20627. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20628. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20629. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20630. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  20631. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20632. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20633. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20634. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20635. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20636. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  20637. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  20638. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20639. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20640. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20641. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20642. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  20643. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20644. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20645. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20646. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20647. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20648. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  20649. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20650. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20651. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20652. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20653. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20654. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  20655. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20656. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20657. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20658. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20659. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20660. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  20661. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20662. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20663. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20664. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20665. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20666. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  20667. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20668. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20669. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20670. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20671. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20672. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  20673. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20674. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20675. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20676. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20677. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20678. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  20679. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20680. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20681. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20682. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20683. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20684. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  20685. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20686. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20687. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20688. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20689. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20690. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  20691. {"HDMI", NULL, "HDMI_DL_HL"},
  20692. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20693. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20694. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20695. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20696. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20697. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  20698. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20699. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20700. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20701. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20702. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20703. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  20704. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20705. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20706. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20707. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20708. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20709. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  20710. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20711. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20712. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20713. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20714. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20715. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  20716. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20717. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20718. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20719. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20720. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20721. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  20722. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20723. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20724. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20725. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20726. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  20727. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20728. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20729. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20730. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20731. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  20732. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20733. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  20734. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20735. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20736. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  20737. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20738. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20739. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  20740. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20741. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20742. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20743. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20744. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20745. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20746. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  20747. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  20748. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  20749. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  20750. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20751. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20752. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20753. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20754. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20755. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20756. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20757. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20758. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20759. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20760. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  20761. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20762. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20763. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20764. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20765. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20766. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20767. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20768. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20769. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20770. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20771. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20772. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20773. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20774. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20775. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20776. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20777. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20778. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20779. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20780. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20781. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20782. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20783. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20784. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20785. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20786. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20787. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20788. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20789. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20790. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20791. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20792. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20793. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20794. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20795. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20796. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20797. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20798. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20799. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20800. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  20801. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20802. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20803. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20804. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20805. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20806. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20807. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20808. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20809. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20810. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20811. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20812. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20813. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20814. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20815. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20816. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20817. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20818. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20819. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20820. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20821. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20822. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20823. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20824. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20825. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20826. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20827. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20828. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20829. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20830. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20831. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20832. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20833. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20834. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20835. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  20836. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  20837. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  20838. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  20839. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  20840. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  20841. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  20842. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  20843. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  20844. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  20845. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  20846. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  20847. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  20848. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  20849. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  20850. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  20851. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  20852. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  20853. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  20854. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  20855. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  20856. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  20857. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  20858. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  20859. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  20860. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  20861. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  20862. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  20863. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  20864. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  20865. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  20866. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  20867. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  20868. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  20869. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  20870. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  20871. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  20872. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  20873. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  20874. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  20875. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  20876. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  20877. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  20878. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  20879. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  20880. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  20881. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  20882. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  20883. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  20884. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  20885. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  20886. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  20887. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  20888. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  20889. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  20890. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  20891. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  20892. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  20893. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  20894. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  20895. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  20896. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  20897. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  20898. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  20899. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  20900. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  20901. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  20902. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  20903. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  20904. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  20905. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  20906. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  20907. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  20908. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  20909. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  20910. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  20911. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  20912. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  20913. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  20914. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  20915. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  20916. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  20917. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  20918. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  20919. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  20920. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  20921. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  20922. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  20923. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  20924. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  20925. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  20926. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  20927. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  20928. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20929. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  20930. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  20931. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20932. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  20933. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  20934. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20935. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20936. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20937. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20938. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20939. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20940. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20941. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20942. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20943. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20944. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20945. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20946. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  20947. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20948. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20949. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20950. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20951. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20952. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20953. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20954. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20955. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20956. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20957. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20958. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20959. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  20960. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20961. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20962. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20963. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20964. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20965. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20966. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20967. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20968. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20969. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20970. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20971. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20972. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  20973. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20974. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20975. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20976. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20977. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20978. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20979. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20980. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20981. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20982. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20983. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20984. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20985. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  20986. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20987. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20988. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20989. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20990. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20991. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20992. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20993. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20994. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20995. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20996. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20997. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20998. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  20999. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21000. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21001. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21002. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21003. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21004. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21005. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21006. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21007. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21008. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21009. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  21010. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21011. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21012. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21013. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21014. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21015. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21016. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21017. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21018. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21019. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21020. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  21021. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21022. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21023. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21024. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21025. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21026. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21027. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21028. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21029. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21030. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21031. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  21032. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  21033. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  21034. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  21035. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  21036. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  21037. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  21038. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  21039. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  21040. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  21041. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  21042. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  21043. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  21044. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  21045. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  21046. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  21047. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  21048. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  21049. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  21050. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  21051. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  21052. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  21053. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  21054. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  21055. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  21056. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  21057. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  21058. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  21059. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  21060. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  21061. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  21062. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  21063. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  21064. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  21065. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  21066. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  21067. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  21068. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  21069. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  21070. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  21071. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  21072. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  21073. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  21074. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  21075. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  21076. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  21077. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  21078. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  21079. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  21080. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  21081. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  21082. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  21083. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  21084. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  21085. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  21086. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  21087. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  21088. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  21089. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  21090. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  21091. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  21092. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  21093. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  21094. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  21095. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  21096. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  21097. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  21098. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  21099. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  21100. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  21101. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  21102. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  21103. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  21104. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  21105. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  21106. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  21107. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  21108. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  21109. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  21110. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  21111. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  21112. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  21113. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  21114. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  21115. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  21116. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  21117. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  21118. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  21119. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  21120. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  21121. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  21122. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  21123. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  21124. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  21125. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  21126. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  21127. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  21128. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  21129. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  21130. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  21131. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  21132. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  21133. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  21134. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  21135. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  21136. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  21137. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  21138. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21139. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21140. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21141. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21142. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21143. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21144. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21145. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21146. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21147. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21148. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21149. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21150. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21151. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21152. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21153. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21154. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21155. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21156. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21157. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21158. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  21159. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21160. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21161. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21162. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21163. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21164. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21165. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21166. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21167. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21168. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21169. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21170. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21171. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21172. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21173. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21174. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21175. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21176. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21177. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21178. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21179. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  21180. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21181. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21182. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21183. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21184. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21185. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21186. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21187. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21188. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21189. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21190. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21191. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21192. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21193. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21194. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21195. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21196. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21197. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21198. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21199. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21200. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  21201. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21202. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21203. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21204. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21205. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21206. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21207. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21208. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21209. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21210. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21211. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21212. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21213. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21214. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21215. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21216. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21217. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21218. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21219. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21220. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21221. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  21222. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21223. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21224. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21225. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21226. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21227. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21228. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21229. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21230. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21231. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21232. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21233. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21234. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21235. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21236. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21237. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21238. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21239. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21240. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21241. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21242. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  21243. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21244. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21245. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21246. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21247. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21248. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21249. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21250. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21251. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21252. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21253. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21254. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21255. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21256. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21257. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21258. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21259. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21260. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21261. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21262. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21263. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  21264. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21265. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21266. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21267. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21268. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21269. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21270. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21271. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21272. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21273. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21274. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21275. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21276. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21277. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21278. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21279. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21280. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21281. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21282. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21283. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21284. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  21285. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21286. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21287. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21288. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21289. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21290. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21291. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21292. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21293. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21294. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21295. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21296. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21297. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21298. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21299. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21300. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21301. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21302. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21303. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21304. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21305. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  21306. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  21307. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  21308. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21309. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21310. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21311. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21312. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21313. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21314. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21315. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21316. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21317. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21318. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21319. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21320. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21321. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21322. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21323. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21324. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21325. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21326. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21327. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21328. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  21329. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21330. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21331. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21332. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21333. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21334. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21335. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21336. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21337. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21338. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21339. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21340. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21341. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21342. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21343. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21344. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21345. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21346. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21347. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21348. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21349. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  21350. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21351. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21352. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21353. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21354. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21355. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21356. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21357. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21358. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21359. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21360. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21361. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21362. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21363. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21364. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21365. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21366. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21367. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21368. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21369. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21370. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  21371. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21372. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21373. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21374. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21375. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21376. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21377. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21378. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21379. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21380. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21381. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21382. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21383. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21384. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21385. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21386. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21387. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21388. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21389. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21390. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21391. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  21392. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21393. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21394. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21395. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21396. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21397. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21398. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21399. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21400. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21401. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21402. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21403. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21404. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21405. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21406. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21407. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21408. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21409. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21410. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21411. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21412. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  21413. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21414. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21415. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21416. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21417. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21418. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21419. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21420. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21421. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21422. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21423. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21424. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21425. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21426. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21427. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21428. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21429. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21430. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21431. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21432. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21433. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  21434. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21435. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21436. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21437. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21438. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21439. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21440. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21441. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21442. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21443. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21444. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21445. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21446. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21447. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21448. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21449. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21450. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21451. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21452. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21453. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21454. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  21455. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21456. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21457. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21458. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21459. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21460. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21461. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21462. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21463. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21464. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21465. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21466. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21467. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21468. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21469. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21470. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21471. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21472. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21473. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21474. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21475. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  21476. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21477. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21478. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21479. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21480. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21481. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21482. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21483. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21484. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21485. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21486. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21487. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21488. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21489. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21490. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21491. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21492. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21493. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21494. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21495. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21496. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  21497. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21498. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21499. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21500. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21501. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21502. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21503. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21504. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21505. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21506. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21507. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21508. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21509. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21510. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21511. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21512. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21513. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21514. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21515. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21516. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21517. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  21518. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21519. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21520. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21521. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21522. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21523. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21524. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21525. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21526. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21527. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21528. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21529. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21530. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21531. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21532. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21533. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21534. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21535. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21536. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21537. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21538. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  21539. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21540. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21541. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21542. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21543. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21544. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21545. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21546. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21547. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21548. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21549. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21550. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21551. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21552. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21553. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21554. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21555. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21556. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21557. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21558. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21559. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  21560. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21561. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21562. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21563. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21564. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21565. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21566. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21567. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21568. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21569. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21570. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21571. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  21572. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21573. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21574. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21575. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21576. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21577. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21578. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21579. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21580. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21581. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21582. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21583. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  21584. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21585. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21586. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21587. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21588. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21589. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21590. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21591. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21592. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21593. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21594. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21595. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21596. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21597. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21598. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21599. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21600. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21601. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21602. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21603. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21604. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21605. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21606. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21607. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  21608. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21609. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21610. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  21611. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21612. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  21613. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  21614. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  21615. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  21616. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21617. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21618. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21619. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21620. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21621. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21622. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  21623. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21624. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21625. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21626. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21627. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  21628. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21629. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21630. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21631. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  21632. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21633. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21634. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21635. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  21636. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21637. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21638. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21639. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  21640. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21641. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21642. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21643. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21644. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21645. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21646. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21647. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21648. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21649. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  21650. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21651. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21652. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21653. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21654. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21655. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21656. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21657. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21658. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21659. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  21660. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21661. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21662. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21663. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21664. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21665. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21666. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21667. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21668. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21669. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21670. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21671. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  21672. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21673. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21674. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21675. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21676. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21677. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21678. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21679. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21680. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21681. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21682. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21683. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  21684. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21685. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21686. {"STUB_RX", NULL, "STUB_RX Mixer"},
  21687. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21688. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21689. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  21690. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21691. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21692. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  21693. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21694. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21695. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21696. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21697. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21698. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  21699. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21700. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21701. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21702. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21703. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21704. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  21705. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21706. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21707. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21708. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  21709. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21710. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21711. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  21712. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  21713. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21714. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  21715. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  21716. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  21717. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  21718. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21719. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21720. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21721. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21722. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21723. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21724. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21725. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21726. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21727. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21728. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21729. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21730. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21731. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  21732. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21733. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  21734. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21735. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  21736. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  21737. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  21738. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21739. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  21740. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21741. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21742. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  21743. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21744. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21745. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21746. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21747. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21748. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21749. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21750. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21751. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21752. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21753. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  21754. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21755. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21756. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21757. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21758. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21759. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21760. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21761. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21762. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21763. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  21764. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21765. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21766. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21767. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21768. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21769. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21770. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21771. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  21772. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21773. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21774. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21775. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21776. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21777. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21778. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21779. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21780. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21781. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  21782. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21783. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21784. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21785. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21786. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21787. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21788. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21789. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  21790. /* Backend Enablement */
  21791. {"BE_OUT", NULL, "PRI_I2S_RX"},
  21792. {"BE_OUT", NULL, "SEC_I2S_RX"},
  21793. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  21794. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  21795. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  21796. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21797. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  21798. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  21799. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  21800. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  21801. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  21802. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  21803. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  21804. {"BE_OUT", NULL, "HDMI"},
  21805. {"BE_OUT", NULL, "DISPLAY_PORT"},
  21806. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  21807. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  21808. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  21809. {"BE_OUT", NULL, "MI2S_RX"},
  21810. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  21811. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  21812. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  21813. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  21814. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  21815. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  21816. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  21817. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  21818. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  21819. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  21820. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  21821. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21822. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  21823. {"BE_OUT", NULL, "INT_FM_RX"},
  21824. {"BE_OUT", NULL, "PCM_RX"},
  21825. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21826. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21827. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  21828. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  21829. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  21830. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  21831. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21832. {"BE_OUT", NULL, "INT_FM_RX"},
  21833. {"BE_OUT", NULL, "PCM_RX"},
  21834. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21835. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  21836. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  21837. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  21838. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  21839. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  21840. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  21841. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  21842. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  21843. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  21844. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  21845. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  21846. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  21847. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  21848. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  21849. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  21850. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  21851. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  21852. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  21853. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  21854. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  21855. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  21856. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  21857. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  21858. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  21859. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  21860. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  21861. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  21862. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  21863. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  21864. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  21865. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  21866. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  21867. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  21868. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  21869. {"PRI_I2S_TX", NULL, "BE_IN"},
  21870. {"MI2S_TX", NULL, "BE_IN"},
  21871. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  21872. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  21873. {"PRI_MI2S_TX", NULL, "BE_IN"},
  21874. {"TERT_MI2S_TX", NULL, "BE_IN"},
  21875. {"INT0_MI2S_TX", NULL, "BE_IN"},
  21876. {"INT2_MI2S_TX", NULL, "BE_IN"},
  21877. {"INT3_MI2S_TX", NULL, "BE_IN"},
  21878. {"INT4_MI2S_TX", NULL, "BE_IN"},
  21879. {"INT5_MI2S_TX", NULL, "BE_IN"},
  21880. {"SEC_MI2S_TX", NULL, "BE_IN"},
  21881. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  21882. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  21883. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  21884. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  21885. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  21886. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  21887. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  21888. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  21889. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  21890. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  21891. {"USB_AUDIO_TX", NULL, "BE_IN" },
  21892. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  21893. {"INT_FM_TX", NULL, "BE_IN"},
  21894. {"PCM_TX", NULL, "BE_IN"},
  21895. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21896. {"BE_OUT", NULL, "STUB_RX"},
  21897. {"STUB_TX", NULL, "BE_IN"},
  21898. {"STUB_1_TX", NULL, "BE_IN"},
  21899. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21900. {"AUX_PCM_TX", NULL, "BE_IN"},
  21901. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  21902. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  21903. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  21904. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  21905. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  21906. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  21907. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21908. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21909. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21910. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21911. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  21912. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21913. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21914. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  21915. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  21916. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  21917. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  21918. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  21919. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  21920. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  21921. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  21922. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  21923. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  21924. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  21925. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  21926. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  21927. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  21928. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  21929. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  21930. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  21931. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  21932. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  21933. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  21934. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  21935. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  21936. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  21937. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  21938. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  21939. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  21940. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  21941. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  21942. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  21943. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21944. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21945. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  21946. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21947. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21948. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  21949. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  21950. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  21951. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  21952. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  21953. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  21954. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  21955. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  21956. };
  21957. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  21958. struct snd_pcm_hw_params *params)
  21959. {
  21960. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21961. unsigned int be_id = rtd->dai_link->id;
  21962. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21963. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21964. return -EINVAL;
  21965. }
  21966. mutex_lock(&routing_lock);
  21967. msm_bedais[be_id].sample_rate = params_rate(params);
  21968. msm_bedais[be_id].channel = params_channels(params);
  21969. msm_bedais[be_id].format = params_format(params);
  21970. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  21971. __func__, msm_bedais[be_id].sample_rate,
  21972. msm_bedais[be_id].format, be_id);
  21973. mutex_unlock(&routing_lock);
  21974. return 0;
  21975. }
  21976. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  21977. {
  21978. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21979. unsigned int be_id = rtd->dai_link->id;
  21980. int i, session_type, path_type, topology;
  21981. struct msm_pcm_routing_bdai_data *bedai;
  21982. struct msm_pcm_routing_fdai_data *fdai;
  21983. pr_debug("%s: substream->pcm->id:%s\n",
  21984. __func__, substream->pcm->id);
  21985. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21986. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21987. return -EINVAL;
  21988. }
  21989. bedai = &msm_bedais[be_id];
  21990. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  21991. 0 : 1);
  21992. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21993. path_type = ADM_PATH_PLAYBACK;
  21994. else
  21995. path_type = ADM_PATH_LIVE_REC;
  21996. mutex_lock(&routing_lock);
  21997. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21998. if (!is_mm_lsm_fe_id(i))
  21999. continue;
  22000. fdai = &fe_dai_map[i][session_type];
  22001. if (fdai->strm_id != INVALID_SESSION) {
  22002. int idx;
  22003. int port_id;
  22004. unsigned long copp =
  22005. session_copp_map[i][session_type][be_id];
  22006. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  22007. if (test_bit(idx, &copp))
  22008. break;
  22009. if (idx >= MAX_COPPS_PER_PORT) {
  22010. pr_debug("%s: copp idx is invalid, exiting\n",
  22011. __func__);
  22012. continue;
  22013. }
  22014. fdai->be_srate = bedai->sample_rate;
  22015. port_id = bedai->port_id;
  22016. topology = adm_get_topology_for_port_copp_idx(port_id,
  22017. idx);
  22018. msm_routing_unload_topology(topology);
  22019. adm_close(bedai->port_id, fdai->perf_mode, idx);
  22020. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  22021. __func__, copp, i, session_type, be_id,
  22022. topology);
  22023. clear_bit(idx,
  22024. &session_copp_map[i][session_type][be_id]);
  22025. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22026. (fdai->passthr_mode == LEGACY_PCM))
  22027. msm_pcm_routing_deinit_pp(bedai->port_id,
  22028. topology);
  22029. }
  22030. }
  22031. bedai->active = 0;
  22032. bedai->sample_rate = 0;
  22033. bedai->channel = 0;
  22034. mutex_unlock(&routing_lock);
  22035. return 0;
  22036. }
  22037. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  22038. {
  22039. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  22040. unsigned int be_id = rtd->dai_link->id;
  22041. int i, path_type, topology;
  22042. int session_type = INVALID_SESSION;
  22043. struct msm_pcm_routing_bdai_data *bedai;
  22044. u32 channels, sample_rate;
  22045. uint16_t bits_per_sample = 16, voc_path_type;
  22046. struct msm_pcm_routing_fdai_data *fdai;
  22047. u32 session_id;
  22048. struct media_format_info voc_be_media_format;
  22049. bool is_lsm;
  22050. pr_debug("%s: substream->pcm->id:%s\n",
  22051. __func__, substream->pcm->id);
  22052. if (be_id >= MSM_BACKEND_DAI_MAX) {
  22053. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  22054. return -EINVAL;
  22055. }
  22056. bedai = &msm_bedais[be_id];
  22057. mutex_lock(&routing_lock);
  22058. if (bedai->active == 1)
  22059. goto done; /* Ignore prepare if back-end already active */
  22060. /* AFE port is not active at this point. However, still
  22061. * go ahead setting active flag under the notion that
  22062. * QDSP6 is able to handle ADM starting before AFE port
  22063. * is started.
  22064. */
  22065. bedai->active = 1;
  22066. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22067. if (!(is_mm_lsm_fe_id(i) &&
  22068. route_check_fe_id_adm_support(i)))
  22069. continue;
  22070. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  22071. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22072. fdai = &fe_dai_map[i][session_type];
  22073. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  22074. if (fdai->passthr_mode != LEGACY_PCM)
  22075. path_type = ADM_PATH_COMPRESSED_RX;
  22076. else
  22077. path_type = ADM_PATH_PLAYBACK;
  22078. } else {
  22079. if ((fdai->passthr_mode != LEGACY_PCM) &&
  22080. (fdai->passthr_mode != LISTEN))
  22081. path_type = ADM_PATH_COMPRESSED_TX;
  22082. else
  22083. path_type = ADM_PATH_LIVE_REC;
  22084. }
  22085. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  22086. (i <= MSM_FRONTEND_DAI_LSM8);
  22087. if (fdai->strm_id != INVALID_SESSION) {
  22088. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  22089. if (session_type == SESSION_TYPE_TX &&
  22090. fdai->be_srate &&
  22091. (fdai->be_srate != bedai->sample_rate)) {
  22092. pr_debug("%s: flush strm %d diff BE rates\n",
  22093. __func__,
  22094. fdai->strm_id);
  22095. if (fdai->event_info.event_func)
  22096. fdai->event_info.event_func(
  22097. MSM_PCM_RT_EVT_BUF_RECFG,
  22098. fdai->event_info.priv_data);
  22099. fdai->be_srate = 0; /* might not need it */
  22100. }
  22101. bits_per_sample = msm_routing_get_bit_width(
  22102. bedai->format);
  22103. app_type =
  22104. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  22105. if (app_type && is_lsm) {
  22106. app_type_idx =
  22107. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  22108. sample_rate =
  22109. fe_dai_app_type_cfg[i][session_type][be_id]
  22110. .sample_rate;
  22111. bits_per_sample =
  22112. lsm_app_type_cfg[app_type_idx].bit_width;
  22113. } else if (app_type) {
  22114. app_type_idx =
  22115. msm_pcm_routing_get_app_type_idx(app_type);
  22116. sample_rate =
  22117. fe_dai_app_type_cfg[i][session_type]
  22118. [be_id].sample_rate;
  22119. bits_per_sample =
  22120. app_type_cfg[app_type_idx].bit_width;
  22121. } else
  22122. sample_rate = bedai->sample_rate;
  22123. /*
  22124. * check if ADM needs to be configured with different
  22125. * channel mapping than backend
  22126. */
  22127. if (!bedai->adm_override_ch)
  22128. channels = bedai->channel;
  22129. else
  22130. channels = bedai->adm_override_ch;
  22131. acdb_dev_id =
  22132. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  22133. topology = msm_routing_get_adm_topology(i, session_type,
  22134. be_id);
  22135. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  22136. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  22137. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  22138. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  22139. copp_idx = adm_open(bedai->port_id, path_type,
  22140. sample_rate, channels, topology,
  22141. fdai->perf_mode, bits_per_sample,
  22142. app_type, acdb_dev_id);
  22143. if ((copp_idx < 0) ||
  22144. (copp_idx >= MAX_COPPS_PER_PORT)) {
  22145. pr_err("%s: adm open failed\n", __func__);
  22146. mutex_unlock(&routing_lock);
  22147. return -EINVAL;
  22148. }
  22149. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  22150. __func__, i, session_type, be_id);
  22151. set_bit(copp_idx,
  22152. &session_copp_map[i][session_type][be_id]);
  22153. if (msm_is_resample_needed(
  22154. sample_rate,
  22155. bedai->sample_rate))
  22156. adm_copp_mfc_cfg(
  22157. bedai->port_id, copp_idx,
  22158. bedai->sample_rate);
  22159. msm_pcm_routing_build_matrix(i, session_type, path_type,
  22160. fdai->perf_mode, fdai->passthr_mode);
  22161. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22162. (fdai->passthr_mode == LEGACY_PCM))
  22163. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  22164. topology, channels);
  22165. }
  22166. }
  22167. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22168. session_id = msm_pcm_routing_get_voc_sessionid(i);
  22169. if (session_id) {
  22170. pr_debug("%s voice session_id: 0x%x\n", __func__,
  22171. session_id);
  22172. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  22173. voc_path_type = RX_PATH;
  22174. else
  22175. voc_path_type = TX_PATH;
  22176. voc_set_route_flag(session_id, voc_path_type, 1);
  22177. memset(&voc_be_media_format, 0,
  22178. sizeof(struct media_format_info));
  22179. voc_be_media_format.port_id = bedai->port_id;
  22180. voc_be_media_format.num_channels = bedai->channel;
  22181. voc_be_media_format.sample_rate = bedai->sample_rate;
  22182. voc_be_media_format.bits_per_sample = bedai->format;
  22183. /* Defaulting this to 1 for voice call usecases */
  22184. voc_be_media_format.channel_mapping[0] = 1;
  22185. voc_set_device_config(session_id, voc_path_type,
  22186. &voc_be_media_format);
  22187. if (voc_get_route_flag(session_id, RX_PATH) &&
  22188. voc_get_route_flag(session_id, TX_PATH))
  22189. voc_enable_device(session_id);
  22190. }
  22191. }
  22192. /* Check if backend is an external ec ref port and set as needed */
  22193. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  22194. memset(&voc_be_media_format, 0,
  22195. sizeof(struct media_format_info));
  22196. /* Get format info for ec ref port from msm_bedais[] */
  22197. voc_be_media_format.port_id = bedai->port_id;
  22198. voc_be_media_format.num_channels = bedai->channel;
  22199. voc_be_media_format.bits_per_sample = bedai->format;
  22200. voc_be_media_format.sample_rate = bedai->sample_rate;
  22201. /* Defaulting this to 1 for voice call usecases */
  22202. voc_be_media_format.channel_mapping[0] = 1;
  22203. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  22204. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  22205. __func__, voc_be_media_format.port_id,
  22206. voc_be_media_format.num_channels,
  22207. voc_be_media_format.bits_per_sample,
  22208. voc_be_media_format.sample_rate);
  22209. }
  22210. done:
  22211. mutex_unlock(&routing_lock);
  22212. return 0;
  22213. }
  22214. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  22215. int fe_id)
  22216. {
  22217. int index, topo_id, be_idx;
  22218. unsigned long pp_config = 0;
  22219. bool mute_on;
  22220. int latency, session_type;
  22221. bool compr_passthr_mode = true;
  22222. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  22223. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  22224. pr_err("%s: Device pp params on invalid port %d\n",
  22225. __func__, port_id);
  22226. return -EINVAL;
  22227. }
  22228. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22229. if (port_id == msm_bedais[be_idx].port_id)
  22230. break;
  22231. }
  22232. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22233. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22234. return -EINVAL;
  22235. }
  22236. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22237. if (msm_bedais_pp_params[index].port_id == port_id)
  22238. break;
  22239. }
  22240. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22241. pr_err("%s: Invalid backend pp params index %d\n",
  22242. __func__, index);
  22243. return -EINVAL;
  22244. }
  22245. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  22246. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  22247. pr_err("%s: Invalid passthrough topology 0x%x\n",
  22248. __func__, topo_id);
  22249. return -EINVAL;
  22250. }
  22251. session_type =
  22252. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22253. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22254. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  22255. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  22256. compr_passthr_mode = false;
  22257. pp_config = msm_bedais_pp_params[index].pp_params_config;
  22258. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  22259. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22260. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  22261. mute_on = msm_bedais_pp_params[index].mute_on;
  22262. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22263. adm_send_compressed_device_mute(port_id,
  22264. copp_idx,
  22265. mute_on);
  22266. }
  22267. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  22268. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22269. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  22270. &pp_config);
  22271. latency = msm_bedais_pp_params[index].latency;
  22272. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22273. adm_send_compressed_device_latency(port_id,
  22274. copp_idx,
  22275. latency);
  22276. }
  22277. return 0;
  22278. }
  22279. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  22280. {
  22281. uint32_t topology = NULL_COPP_TOPOLOGY;
  22282. void *cal_info = NULL;
  22283. uint32_t size = 0;
  22284. /* Retrieve cal_info size from cal data*/
  22285. size = data_size - sizeof(struct audio_cal_type_basic);
  22286. cal_info = kzalloc(size, GFP_KERNEL);
  22287. if (!cal_info)
  22288. goto done;
  22289. memcpy(cal_info,
  22290. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  22291. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  22292. kfree(cal_info);
  22293. cal_info = NULL;
  22294. done:
  22295. pr_debug("%s: Using topology %d\n", __func__, topology);
  22296. return topology;
  22297. }
  22298. static void msm_routing_load_topology(size_t data_size, void *data)
  22299. {
  22300. uint32_t topology_id;
  22301. int ret = -EINVAL;
  22302. topology_id = msm_routing_get_topology(data_size, data);
  22303. if (topology_id != NULL_COPP_TOPOLOGY)
  22304. ret = q6core_load_unload_topo_modules(topology_id,
  22305. CORE_LOAD_TOPOLOGY);
  22306. if (ret < 0)
  22307. pr_debug("%s %d load topology failed\n",
  22308. __func__, topology_id);
  22309. }
  22310. static void msm_routing_unload_topology(uint32_t topology_id)
  22311. {
  22312. int ret = -EINVAL;
  22313. if (topology_id != NULL_COPP_TOPOLOGY)
  22314. ret = q6core_load_unload_topo_modules(topology_id,
  22315. CORE_UNLOAD_TOPOLOGY);
  22316. if (ret < 0)
  22317. pr_debug("%s %d unload topology failed\n",
  22318. __func__, topology_id);
  22319. }
  22320. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22321. struct snd_ctl_elem_value *ucontrol)
  22322. {
  22323. int pp_id = ucontrol->value.integer.value[0];
  22324. int port_id = 0;
  22325. int index, be_idx, i, topo_id, idx;
  22326. bool mute;
  22327. int latency, session_type;
  22328. bool compr_passthr_mode = true;
  22329. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  22330. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22331. port_id = msm_bedais[be_idx].port_id;
  22332. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  22333. break;
  22334. }
  22335. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22336. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22337. return -EINVAL;
  22338. }
  22339. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22340. if (msm_bedais_pp_params[index].port_id == port_id)
  22341. break;
  22342. }
  22343. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22344. pr_err("%s: Invalid pp params backend index %d\n",
  22345. __func__, index);
  22346. return -EINVAL;
  22347. }
  22348. session_type =
  22349. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22350. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22351. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22352. MSM_FRONTEND_DAI_MM_SIZE) {
  22353. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  22354. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  22355. compr_passthr_mode = false;
  22356. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22357. unsigned long copp =
  22358. session_copp_map[i]
  22359. [SESSION_TYPE_RX][be_idx];
  22360. if (!test_bit(idx, &copp))
  22361. continue;
  22362. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  22363. idx);
  22364. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  22365. continue;
  22366. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  22367. __func__, port_id, copp, msm_bedais[be_idx].active,
  22368. fe_dai_map[i][session_type].passthr_mode);
  22369. switch (pp_id) {
  22370. case ADM_PP_PARAM_MUTE_ID:
  22371. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22372. mute = ucontrol->value.integer.value[1] ? true : false;
  22373. msm_bedais_pp_params[index].mute_on = mute;
  22374. set_bit(ADM_PP_PARAM_MUTE_BIT,
  22375. &msm_bedais_pp_params[index].pp_params_config);
  22376. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22377. adm_send_compressed_device_mute(port_id,
  22378. idx, mute);
  22379. break;
  22380. case ADM_PP_PARAM_LATENCY_ID:
  22381. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22382. msm_bedais_pp_params[index].latency =
  22383. ucontrol->value.integer.value[1];
  22384. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  22385. &msm_bedais_pp_params[index].pp_params_config);
  22386. latency = msm_bedais_pp_params[index].latency =
  22387. ucontrol->value.integer.value[1];
  22388. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22389. adm_send_compressed_device_latency(port_id,
  22390. idx, latency);
  22391. break;
  22392. default:
  22393. pr_info("%s, device pp param %d not supported\n",
  22394. __func__, pp_id);
  22395. break;
  22396. }
  22397. }
  22398. }
  22399. return 0;
  22400. }
  22401. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22402. struct snd_ctl_elem_value *ucontrol)
  22403. {
  22404. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  22405. return 0;
  22406. }
  22407. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  22408. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  22409. 0, 3, msm_routing_get_device_pp_params_mixer,
  22410. msm_routing_put_device_pp_params_mixer),
  22411. };
  22412. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  22413. struct snd_ctl_elem_value *ucontrol)
  22414. {
  22415. ucontrol->value.integer.value[0] =
  22416. core_get_license_status(ASM_MEDIA_FMT_APTX);
  22417. pr_debug("%s: status %ld\n", __func__,
  22418. ucontrol->value.integer.value[0]);
  22419. return 0;
  22420. }
  22421. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  22422. struct snd_ctl_elem_value *ucontrol)
  22423. {
  22424. int32_t status = 0;
  22425. status = core_set_license(ucontrol->value.integer.value[0],
  22426. APTX_CLASSIC_DEC_LICENSE_ID);
  22427. pr_debug("%s: status %d\n", __func__, status);
  22428. return status;
  22429. }
  22430. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  22431. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  22432. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  22433. msm_aptx_dec_license_control_put),
  22434. };
  22435. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  22436. struct snd_ctl_elem_info *uinfo)
  22437. {
  22438. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22439. uinfo->count = sizeof(be_dai_name_table);
  22440. return 0;
  22441. }
  22442. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  22443. unsigned int __user *bytes,
  22444. unsigned int size)
  22445. {
  22446. int i;
  22447. int ret = 0;
  22448. if (size < sizeof(be_dai_name_table)) {
  22449. pr_err("%s: invalid size %d requested, returning\n",
  22450. __func__, size);
  22451. ret = -EINVAL;
  22452. goto done;
  22453. }
  22454. /*
  22455. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  22456. * needed when adding new backends
  22457. */
  22458. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22459. be_dai_name_table[i].be_id = i;
  22460. strlcpy(be_dai_name_table[i].be_name,
  22461. msm_bedais[i].name,
  22462. LPASS_BE_NAME_MAX_LENGTH);
  22463. }
  22464. ret = copy_to_user(bytes, &be_dai_name_table,
  22465. sizeof(be_dai_name_table));
  22466. if (ret) {
  22467. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  22468. ret = -EFAULT;
  22469. }
  22470. done:
  22471. return ret;
  22472. }
  22473. static const struct snd_kcontrol_new
  22474. msm_routing_be_dai_name_table_mixer_controls[] = {
  22475. {
  22476. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  22477. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  22478. .info = msm_routing_be_dai_name_table_info,
  22479. .name = "Backend DAI Name Table",
  22480. .tlv.c = snd_soc_bytes_tlv_callback,
  22481. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  22482. .max = sizeof(be_dai_name_table),
  22483. .get = msm_routing_be_dai_name_table_tlv_get,
  22484. }
  22485. },
  22486. };
  22487. static int msm_routing_stereo_channel_reverse_control_get(
  22488. struct snd_kcontrol *kcontrol,
  22489. struct snd_ctl_elem_value *ucontrol)
  22490. {
  22491. ucontrol->value.integer.value[0] = swap_ch;
  22492. pr_debug("%s: Swap channel value: %ld\n", __func__,
  22493. ucontrol->value.integer.value[0]);
  22494. return 0;
  22495. }
  22496. static int msm_routing_stereo_channel_reverse_control_put(
  22497. struct snd_kcontrol *kcontrol,
  22498. struct snd_ctl_elem_value *ucontrol)
  22499. {
  22500. int i, idx, be_index, port_id;
  22501. int ret = 0;
  22502. unsigned long copp;
  22503. pr_debug("%s Swap channel value:%ld\n", __func__,
  22504. ucontrol->value.integer.value[0]);
  22505. swap_ch = ucontrol->value.integer.value[0];
  22506. mutex_lock(&routing_lock);
  22507. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  22508. port_id = msm_bedais[be_index].port_id;
  22509. if (!msm_bedais[be_index].active)
  22510. continue;
  22511. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  22512. MSM_FRONTEND_DAI_MM_SIZE) {
  22513. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  22514. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22515. if (!test_bit(idx, &copp))
  22516. continue;
  22517. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  22518. __func__, port_id, idx);
  22519. ret = adm_swap_speaker_channels(
  22520. port_id, idx,
  22521. msm_bedais[be_index].sample_rate,
  22522. swap_ch);
  22523. if (ret) {
  22524. pr_err("%s:Swap_channel failed, err=%d\n",
  22525. __func__, ret);
  22526. goto done;
  22527. }
  22528. }
  22529. }
  22530. }
  22531. done:
  22532. mutex_unlock(&routing_lock);
  22533. return ret;
  22534. }
  22535. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  22536. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  22537. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  22538. msm_routing_stereo_channel_reverse_control_put),
  22539. };
  22540. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  22541. struct snd_ctl_elem_info *uinfo)
  22542. {
  22543. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  22544. uinfo->count = 1;
  22545. return 0;
  22546. }
  22547. static int msm_routing_instance_id_support_put(
  22548. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22549. {
  22550. bool supported = ucontrol->value.integer.value[0] ? true : false;
  22551. q6common_update_instance_id_support(supported);
  22552. return 0;
  22553. }
  22554. static int msm_routing_instance_id_support_get(
  22555. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22556. {
  22557. bool supported = false;
  22558. supported = q6common_is_instance_id_supported();
  22559. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  22560. return 0;
  22561. }
  22562. static const struct snd_kcontrol_new
  22563. msm_routing_feature_support_mixer_controls[] = {
  22564. {
  22565. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  22566. SNDRV_CTL_ELEM_ACCESS_WRITE,
  22567. .info = msm_routing_instance_id_support_info,
  22568. .name = "Instance ID Support",
  22569. .put = msm_routing_instance_id_support_put,
  22570. .get = msm_routing_instance_id_support_get,
  22571. },
  22572. };
  22573. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  22574. .hw_params = msm_pcm_routing_hw_params,
  22575. .close = msm_pcm_routing_close,
  22576. .prepare = msm_pcm_routing_prepare,
  22577. };
  22578. /* Not used but frame seems to require it */
  22579. static int msm_routing_probe(struct snd_soc_component *component)
  22580. {
  22581. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  22582. ARRAY_SIZE(msm_qdsp6_widgets));
  22583. snd_soc_dapm_add_routes(&component->dapm, intercon,
  22584. ARRAY_SIZE(intercon));
  22585. snd_soc_dapm_new_widgets(component->dapm.card);
  22586. snd_soc_add_component_controls(component, lsm_controls,
  22587. ARRAY_SIZE(lsm_controls));
  22588. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  22589. ARRAY_SIZE(aanc_slim_0_rx_mux));
  22590. snd_soc_add_component_controls(component, aanc_noise_level,
  22591. ARRAY_SIZE(aanc_noise_level));
  22592. snd_soc_add_component_controls(component, msm_voc_session_controls,
  22593. ARRAY_SIZE(msm_voc_session_controls));
  22594. snd_soc_add_component_controls(component, app_type_cfg_controls,
  22595. ARRAY_SIZE(app_type_cfg_controls));
  22596. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  22597. ARRAY_SIZE(lsm_app_type_cfg_controls));
  22598. snd_soc_add_component_controls(component, module_cfg_controls,
  22599. ARRAY_SIZE(module_cfg_controls));
  22600. snd_soc_add_component_controls(component,
  22601. stereo_to_custom_stereo_controls,
  22602. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  22603. snd_soc_add_component_controls(component, ec_ref_param_controls,
  22604. ARRAY_SIZE(ec_ref_param_controls));
  22605. snd_soc_add_component_controls(component, channel_mixer_controls,
  22606. ARRAY_SIZE(channel_mixer_controls));
  22607. msm_qti_pp_add_controls(component);
  22608. msm_dts_srs_tm_add_controls(component);
  22609. msm_dolby_dap_add_controls(component);
  22610. snd_soc_add_component_controls(component,
  22611. use_ds1_or_ds2_controls,
  22612. ARRAY_SIZE(use_ds1_or_ds2_controls));
  22613. snd_soc_add_component_controls(component,
  22614. device_pp_params_mixer_controls,
  22615. ARRAY_SIZE(device_pp_params_mixer_controls));
  22616. snd_soc_add_component_controls(component,
  22617. msm_routing_be_dai_name_table_mixer_controls,
  22618. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  22619. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  22620. ARRAY_SIZE(msm_source_tracking_controls));
  22621. snd_soc_add_component_controls(component, adm_channel_config_controls,
  22622. ARRAY_SIZE(adm_channel_config_controls));
  22623. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  22624. ARRAY_SIZE(aptx_dec_license_controls));
  22625. snd_soc_add_component_controls(component,
  22626. stereo_channel_reverse_control,
  22627. ARRAY_SIZE(stereo_channel_reverse_control));
  22628. snd_soc_add_component_controls(
  22629. component, msm_routing_feature_support_mixer_controls,
  22630. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  22631. return 0;
  22632. }
  22633. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  22634. {
  22635. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  22636. }
  22637. void msm_routing_pcm_free(struct snd_pcm *pcm)
  22638. {
  22639. msm_pcm_routing_hwdep_free(pcm);
  22640. }
  22641. static struct snd_soc_component_driver msm_soc_routing_component = {
  22642. .name = DRV_NAME,
  22643. .ops = &msm_routing_pcm_ops,
  22644. .probe = msm_routing_probe,
  22645. .pcm_new = msm_routing_pcm_new,
  22646. .pcm_free = msm_routing_pcm_free,
  22647. };
  22648. static int msm_routing_pcm_probe(struct platform_device *pdev)
  22649. {
  22650. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  22651. return snd_soc_register_component(&pdev->dev,
  22652. &msm_soc_routing_component,
  22653. NULL, 0);
  22654. }
  22655. static int msm_routing_pcm_remove(struct platform_device *pdev)
  22656. {
  22657. snd_soc_unregister_component(&pdev->dev);
  22658. return 0;
  22659. }
  22660. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  22661. {.compatible = "qcom,msm-pcm-routing"},
  22662. {}
  22663. };
  22664. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  22665. static struct platform_driver msm_routing_pcm_driver = {
  22666. .driver = {
  22667. .name = "msm-pcm-routing",
  22668. .owner = THIS_MODULE,
  22669. .of_match_table = msm_pcm_routing_dt_match,
  22670. },
  22671. .probe = msm_routing_pcm_probe,
  22672. .remove = msm_routing_pcm_remove,
  22673. };
  22674. int msm_routing_check_backend_enabled(int fedai_id)
  22675. {
  22676. int i;
  22677. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  22678. /* bad ID assigned in machine driver */
  22679. pr_err("%s: bad MM ID\n", __func__);
  22680. return 0;
  22681. }
  22682. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22683. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  22684. return msm_bedais[i].active;
  22685. }
  22686. return 0;
  22687. }
  22688. static int get_cal_type_index(int32_t cal_type)
  22689. {
  22690. int ret = -EINVAL;
  22691. switch (cal_type) {
  22692. case ADM_TOPOLOGY_CAL_TYPE:
  22693. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  22694. break;
  22695. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  22696. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  22697. break;
  22698. default:
  22699. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  22700. }
  22701. return ret;
  22702. }
  22703. static int msm_routing_set_cal(int32_t cal_type,
  22704. size_t data_size, void *data)
  22705. {
  22706. int ret = 0;
  22707. int cal_index;
  22708. pr_debug("%s\n", __func__);
  22709. cal_index = get_cal_type_index(cal_type);
  22710. if (cal_index < 0) {
  22711. pr_err("%s: Could not get cal index %d\n",
  22712. __func__, cal_index);
  22713. ret = -EINVAL;
  22714. goto done;
  22715. }
  22716. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  22717. if (ret < 0) {
  22718. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  22719. __func__, ret, cal_type);
  22720. ret = -EINVAL;
  22721. goto done;
  22722. }
  22723. /* Pre-load if it is ADM topology */
  22724. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  22725. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  22726. msm_routing_load_topology(data_size, data);
  22727. }
  22728. done:
  22729. return ret;
  22730. }
  22731. static void msm_routing_delete_cal_data(void)
  22732. {
  22733. pr_debug("%s\n", __func__);
  22734. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  22735. }
  22736. static int msm_routing_init_cal_data(void)
  22737. {
  22738. int ret = 0;
  22739. struct cal_type_info cal_type_info[] = {
  22740. {{ADM_TOPOLOGY_CAL_TYPE,
  22741. {NULL, NULL, NULL,
  22742. msm_routing_set_cal, NULL, NULL} },
  22743. {NULL, NULL, cal_utils_match_buf_num} },
  22744. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  22745. {NULL, NULL, NULL,
  22746. msm_routing_set_cal, NULL, NULL} },
  22747. {NULL, NULL, cal_utils_match_buf_num} },
  22748. };
  22749. pr_debug("%s\n", __func__);
  22750. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  22751. &cal_type_info[0]);
  22752. if (ret < 0) {
  22753. pr_err("%s: could not create cal type!\n",
  22754. __func__);
  22755. ret = -EINVAL;
  22756. goto err;
  22757. }
  22758. return ret;
  22759. err:
  22760. msm_routing_delete_cal_data();
  22761. return ret;
  22762. }
  22763. int __init msm_soc_routing_platform_init(void)
  22764. {
  22765. mutex_init(&routing_lock);
  22766. if (msm_routing_init_cal_data())
  22767. pr_err("%s: could not init cal data!\n", __func__);
  22768. afe_set_routing_callback(
  22769. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  22770. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22771. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  22772. return platform_driver_register(&msm_routing_pcm_driver);
  22773. }
  22774. void msm_soc_routing_platform_exit(void)
  22775. {
  22776. msm_routing_delete_cal_data();
  22777. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22778. mutex_destroy(&routing_lock);
  22779. platform_driver_unregister(&msm_routing_pcm_driver);
  22780. }
  22781. MODULE_DESCRIPTION("MSM routing platform driver");
  22782. MODULE_LICENSE("GPL v2");