msm-pcm-routing-v2.c 943 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. static int aanc_level;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* input BE for each FE */
  84. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  85. enum {
  86. MADNONE,
  87. MADAUDIO,
  88. MADBEACON,
  89. MADULTRASOUND,
  90. MADSWAUDIO,
  91. };
  92. #define ADM_LSM_PORT_INDEX 9
  93. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  94. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  95. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  96. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  97. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  98. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  99. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  100. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  101. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  102. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  103. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  104. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  105. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  106. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  107. #define LSM_FUNCTION_TEXT "LSM Function"
  108. static const char * const lsm_port_text[] = {
  109. "None",
  110. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  111. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  112. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  113. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  114. TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  115. };
  116. struct msm_pcm_route_bdai_pp_params {
  117. u16 port_id; /* AFE port ID */
  118. unsigned long pp_params_config;
  119. bool mute_on;
  120. int latency;
  121. };
  122. static struct msm_pcm_route_bdai_pp_params
  123. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  124. {HDMI_RX, 0, 0, 0},
  125. {DISPLAY_PORT_RX, 0, 0, 0},
  126. };
  127. /*
  128. * The be_dai_name_table is passed to HAL so that it can specify the
  129. * BE ID for the BE it wants to enable based on the name. Thus there
  130. * is a matching table and structure in HAL that need to be updated
  131. * if any changes to these are made.
  132. */
  133. struct msm_pcm_route_bdai_name {
  134. unsigned int be_id;
  135. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  136. };
  137. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  138. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  139. int fe_id);
  140. static void msm_routing_load_topology(size_t data_size, void *data);
  141. static void msm_routing_unload_topology(uint32_t topology_id);
  142. static int msm_routing_get_bit_width(unsigned int format)
  143. {
  144. int bit_width;
  145. switch (format) {
  146. case SNDRV_PCM_FORMAT_S32_LE:
  147. bit_width = 32;
  148. break;
  149. case SNDRV_PCM_FORMAT_S24_LE:
  150. case SNDRV_PCM_FORMAT_S24_3LE:
  151. bit_width = 24;
  152. break;
  153. case SNDRV_PCM_FORMAT_S16_LE:
  154. default:
  155. bit_width = 16;
  156. }
  157. return bit_width;
  158. }
  159. static bool msm_is_resample_needed(int input_sr, int output_sr)
  160. {
  161. bool rc = false;
  162. if (input_sr != output_sr)
  163. rc = true;
  164. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  165. (rc ? "oh yes" : "not really"),
  166. input_sr, output_sr);
  167. return rc;
  168. }
  169. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  170. int channels)
  171. {
  172. int rc = 0;
  173. switch (topology) {
  174. case SRS_TRUMEDIA_TOPOLOGY_ID:
  175. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  176. msm_dts_srs_tm_init(port_id, copp_idx);
  177. break;
  178. case DS2_ADM_COPP_TOPOLOGY_ID:
  179. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  180. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  181. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  182. is_custom_stereo_on);
  183. if (rc < 0)
  184. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  185. __func__, topology, port_id,
  186. is_custom_stereo_on, rc);
  187. break;
  188. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  189. if (is_ds2_on) {
  190. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  191. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  192. is_custom_stereo_on);
  193. if (rc < 0)
  194. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  195. __func__, topology, port_id, rc);
  196. } else {
  197. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  198. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  199. is_custom_stereo_on);
  200. if (rc < 0)
  201. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  202. __func__, topology, port_id, rc);
  203. }
  204. break;
  205. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  206. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  207. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  208. if (rc < 0)
  209. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  210. __func__, topology, port_id, copp_idx, rc);
  211. break;
  212. default:
  213. /* custom topology specific feature param handlers */
  214. break;
  215. }
  216. }
  217. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  218. {
  219. switch (topology) {
  220. case SRS_TRUMEDIA_TOPOLOGY_ID:
  221. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  222. msm_dts_srs_tm_deinit(port_id);
  223. break;
  224. case DS2_ADM_COPP_TOPOLOGY_ID:
  225. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  226. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  227. msm_ds2_dap_deinit(port_id);
  228. break;
  229. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  230. if (is_ds2_on) {
  231. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  232. msm_ds2_dap_deinit(port_id);
  233. } else {
  234. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  235. msm_dolby_dap_deinit(port_id);
  236. }
  237. break;
  238. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  239. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  240. msm_qti_pp_asphere_deinit(port_id);
  241. break;
  242. default:
  243. /* custom topology specific feature deinit handlers */
  244. break;
  245. }
  246. }
  247. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  248. int path_type, int perf_mode)
  249. {
  250. int itr = 0, rc = 0;
  251. if ((path_type == ADM_PATH_PLAYBACK) &&
  252. (perf_mode == LEGACY_PCM_MODE) &&
  253. is_custom_stereo_on) {
  254. for (itr = 0; itr < payload.num_copps; itr++) {
  255. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  256. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  257. continue;
  258. }
  259. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  260. payload.port_id[itr],
  261. payload.copp_idx[itr],
  262. payload.session_id,
  263. Q14_GAIN_ZERO_POINT_FIVE,
  264. Q14_GAIN_ZERO_POINT_FIVE,
  265. Q14_GAIN_ZERO_POINT_FIVE,
  266. Q14_GAIN_ZERO_POINT_FIVE);
  267. if (rc < 0)
  268. pr_err("%s: err setting custom stereo\n",
  269. __func__);
  270. }
  271. }
  272. }
  273. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  274. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  275. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  276. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  277. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  278. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  279. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  280. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  281. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  282. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  283. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  284. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  285. LPASS_BE_AFE_PCM_RX},
  286. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  287. LPASS_BE_AFE_PCM_TX},
  288. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  289. LPASS_BE_AUXPCM_RX},
  290. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  291. LPASS_BE_AUXPCM_TX},
  292. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_VOICE_PLAYBACK_TX},
  294. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  295. LPASS_BE_VOICE2_PLAYBACK_TX},
  296. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  297. LPASS_BE_INCALL_RECORD_RX},
  298. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  299. LPASS_BE_INCALL_RECORD_TX},
  300. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  301. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  302. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  303. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  304. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  305. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  306. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  307. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  308. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  309. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  310. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  311. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  312. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  313. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  314. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  315. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  316. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  317. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  318. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  319. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  320. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  321. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  322. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  323. LPASS_BE_QUAT_MI2S_RX},
  324. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  325. LPASS_BE_QUAT_MI2S_TX},
  326. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  327. LPASS_BE_SEC_MI2S_RX},
  328. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  329. LPASS_BE_SEC_MI2S_TX},
  330. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_PRI_MI2S_RX},
  332. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_PRI_MI2S_TX},
  334. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_TERT_MI2S_RX},
  336. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_TERT_MI2S_TX},
  338. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_AUDIO_I2S_RX},
  340. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_SEC_AUXPCM_RX},
  342. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_SEC_AUXPCM_TX},
  344. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_PRI_SPDIF_RX},
  346. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_SEC_MI2S_RX_SD1},
  348. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_QUIN_MI2S_RX},
  350. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_QUIN_MI2S_TX},
  352. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_SENARY_MI2S_TX},
  354. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_PRI_TDM_RX_0},
  356. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_PRI_TDM_TX_0},
  358. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_PRI_TDM_RX_1},
  360. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_PRI_TDM_TX_1},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_2},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_2},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_3},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_3},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_4},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_4},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_5},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_5},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_RX_6},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_PRI_TDM_TX_6},
  382. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_PRI_TDM_RX_7},
  384. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_PRI_TDM_TX_7},
  386. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_SEC_TDM_RX_0},
  388. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_SEC_TDM_TX_0},
  390. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_SEC_TDM_RX_1},
  392. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_SEC_TDM_TX_1},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_2},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_2},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_3},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_3},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_4},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_4},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_5},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_5},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_RX_6},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_SEC_TDM_TX_6},
  414. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_SEC_TDM_RX_7},
  416. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_SEC_TDM_TX_7},
  418. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_TERT_TDM_RX_0},
  420. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_TERT_TDM_TX_0},
  422. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_TERT_TDM_RX_1},
  424. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_TERT_TDM_TX_1},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_2},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_2},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_3},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_3},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_4},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_4},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_5},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_5},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_RX_6},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_TERT_TDM_TX_6},
  446. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_TERT_TDM_RX_7},
  448. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_TERT_TDM_TX_7},
  450. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_QUAT_TDM_RX_0},
  452. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_QUAT_TDM_TX_0},
  454. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_QUAT_TDM_RX_1},
  456. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_QUAT_TDM_TX_1},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_2},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_2},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_3},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_3},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_4},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_4},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_5},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_5},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_RX_6},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUAT_TDM_TX_6},
  478. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUAT_TDM_RX_7},
  480. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUAT_TDM_TX_7},
  482. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUIN_TDM_RX_0},
  484. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUIN_TDM_TX_0},
  486. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUIN_TDM_RX_1},
  488. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUIN_TDM_TX_1},
  490. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_2},
  492. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_2},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_3},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_3},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_4},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_4},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_5},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_5},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_RX_6},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_QUIN_TDM_TX_6},
  510. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_QUIN_TDM_RX_7},
  512. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_QUIN_TDM_TX_7},
  514. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_INT_BT_A2DP_RX},
  516. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_USB_AUDIO_RX},
  518. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_USB_AUDIO_TX},
  520. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_DISPLAY_PORT},
  522. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_DISPLAY_PORT1},
  524. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_TERT_AUXPCM_RX},
  526. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_TERT_AUXPCM_TX},
  528. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_QUAT_AUXPCM_RX},
  530. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_QUAT_AUXPCM_TX},
  532. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_QUIN_AUXPCM_RX},
  534. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_QUIN_AUXPCM_TX},
  536. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_INT0_MI2S_RX},
  538. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_INT0_MI2S_TX},
  540. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_INT1_MI2S_RX},
  542. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_INT1_MI2S_TX},
  544. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_INT2_MI2S_RX},
  546. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_INT2_MI2S_TX},
  548. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_INT3_MI2S_RX},
  550. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_INT3_MI2S_TX},
  552. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_INT4_MI2S_RX},
  554. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_INT4_MI2S_TX},
  556. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_INT5_MI2S_RX},
  558. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_INT5_MI2S_TX},
  560. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_INT6_MI2S_RX},
  562. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_INT6_MI2S_TX},
  564. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_SEN_AUXPCM_RX},
  566. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_SEN_AUXPCM_TX},
  568. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_SENARY_MI2S_RX},
  570. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_WSA_CDC_DMA_RX_0},
  572. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_WSA_CDC_DMA_TX_0},
  574. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_WSA_CDC_DMA_RX_1},
  576. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_WSA_CDC_DMA_TX_1},
  578. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_WSA_CDC_DMA_TX_2},
  580. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_VA_CDC_DMA_TX_0},
  582. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_VA_CDC_DMA_TX_1},
  584. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_RX_CDC_DMA_RX_0},
  586. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_TX_CDC_DMA_TX_0},
  588. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_RX_CDC_DMA_RX_1},
  590. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_TX_CDC_DMA_TX_1},
  592. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_RX_CDC_DMA_RX_2},
  594. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_TX_CDC_DMA_TX_2},
  596. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_RX_CDC_DMA_RX_3},
  598. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_TX_CDC_DMA_TX_3},
  600. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_RX_CDC_DMA_RX_4},
  602. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_TX_CDC_DMA_TX_4},
  604. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_RX_CDC_DMA_RX_5},
  606. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_TX_CDC_DMA_TX_5},
  608. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_RX_CDC_DMA_RX_6},
  610. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_RX_CDC_DMA_RX_7},
  612. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_PRI_SPDIF_TX},
  614. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_SEC_SPDIF_RX},
  616. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_SEC_SPDIF_TX},
  618. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  619. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  620. };
  621. /* Track ASM playback & capture sessions of DAI
  622. * Track LSM listen sessions
  623. */
  624. static struct msm_pcm_routing_fdai_data
  625. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  626. /* MULTIMEDIA1 */
  627. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  628. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  629. /* MULTIMEDIA2 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  632. /* MULTIMEDIA3 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  635. /* MULTIMEDIA4 */
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  638. /* MULTIMEDIA5 */
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  641. /* MULTIMEDIA6 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  644. /* MULTIMEDIA7*/
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  647. /* MULTIMEDIA8 */
  648. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  649. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  650. /* MULTIMEDIA9 */
  651. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  652. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  653. /* MULTIMEDIA10 */
  654. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  655. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  656. /* MULTIMEDIA11 */
  657. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  658. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  659. /* MULTIMEDIA12 */
  660. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  661. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  662. /* MULTIMEDIA13 */
  663. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  664. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  665. /* MULTIMEDIA14 */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  668. /* MULTIMEDIA15 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  671. /* MULTIMEDIA16 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  674. /* MULTIMEDIA17 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  677. /* MULTIMEDIA18 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  680. /* MULTIMEDIA19 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  683. /* MULTIMEDIA20 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  686. /* MULTIMEDIA21 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  689. /* MULTIMEDIA26 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  692. /* MULTIMEDIA27 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  695. /* MULTIMEDIA28 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  698. /* MULTIMEDIA29 */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  701. /* VOIP */
  702. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  703. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  704. /* AFE_RX */
  705. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  706. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  707. /* AFE_TX */
  708. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  709. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  710. /* VOICE_STUB */
  711. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  712. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  713. /* DTMF_RX */
  714. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  715. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  716. /* QCHAT */
  717. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  718. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  719. /* VOLTE_STUB */
  720. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  721. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  722. /* LSM1 */
  723. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  724. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  725. /* LSM2 */
  726. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  727. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  728. /* LSM3 */
  729. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  730. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  731. /* LSM4 */
  732. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  733. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  734. /* LSM5 */
  735. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  736. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  737. /* LSM6 */
  738. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  739. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  740. /* LSM7 */
  741. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  742. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  743. /* LSM8 */
  744. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  745. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  746. /* VOICE2_STUB */
  747. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  748. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  749. /* VOICEMMODE1 */
  750. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  751. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  752. /* VOICEMMODE2 */
  753. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  754. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  755. };
  756. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  757. [MSM_BACKEND_DAI_MAX];
  758. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  759. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  760. static struct msm_pcm_stream_app_type_cfg
  761. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  762. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  763. /* The caller of this should aqcuire routing lock */
  764. void msm_pcm_routing_get_bedai_info(int be_idx,
  765. struct msm_pcm_routing_bdai_data *be_dai)
  766. {
  767. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  768. memcpy(be_dai, &msm_bedais[be_idx],
  769. sizeof(struct msm_pcm_routing_bdai_data));
  770. }
  771. /* The caller of this should aqcuire routing lock */
  772. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  773. struct msm_pcm_routing_fdai_data *fe_dai)
  774. {
  775. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  776. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  777. sizeof(struct msm_pcm_routing_fdai_data));
  778. }
  779. void msm_pcm_routing_acquire_lock(void)
  780. {
  781. mutex_lock(&routing_lock);
  782. }
  783. void msm_pcm_routing_release_lock(void)
  784. {
  785. mutex_unlock(&routing_lock);
  786. }
  787. static int msm_pcm_routing_get_app_type_idx(int app_type)
  788. {
  789. int idx;
  790. pr_debug("%s: app_type: %d\n", __func__, app_type);
  791. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  792. if (app_type_cfg[idx].app_type == app_type)
  793. return idx;
  794. }
  795. pr_info("%s: App type not available, fallback to default\n", __func__);
  796. return 0;
  797. }
  798. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  799. {
  800. int idx;
  801. pr_debug("%s: app_type: %d\n", __func__, app_type);
  802. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  803. if (lsm_app_type_cfg[idx].app_type == app_type)
  804. return idx;
  805. }
  806. pr_debug("%s: App type not available, fallback to default\n", __func__);
  807. return 0;
  808. }
  809. static bool is_mm_lsm_fe_id(int fe_id)
  810. {
  811. bool rc = true;
  812. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  813. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  814. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  815. rc = false;
  816. }
  817. return rc;
  818. }
  819. /*
  820. * msm_pcm_routing_send_chmix_cfg:
  821. * send the channel mixer command to mix the input channels
  822. * into output channels.
  823. *
  824. * @fe_id: front end id
  825. * @ip_channel_cnt: input channel count
  826. * @op_channel_cnt: output channel count
  827. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  828. * @session_type: indicates session is of type TX or RX
  829. * @stream_type: indicates either Audio or Listen stream type
  830. */
  831. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  832. int op_channel_cnt, int *ch_wght_coeff,
  833. int session_type, int stream_type)
  834. {
  835. int rc = 0, idx = 0;
  836. int be_index = 0, port_id;
  837. unsigned int session_id = 0;
  838. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  839. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  840. stream_type);
  841. if (!is_mm_lsm_fe_id(fe_id)) {
  842. /* bad ID assigned in machine driver */
  843. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  844. return -EINVAL;
  845. }
  846. if (ch_wght_coeff == NULL) {
  847. pr_err("%s: Null channel weightage coefficients passed\n",
  848. __func__);
  849. return -EINVAL;
  850. }
  851. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  852. port_id = msm_bedais[be_index].port_id;
  853. if (!msm_bedais[be_index].active ||
  854. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  855. continue;
  856. session_id = fe_dai_map[fe_id][session_type].strm_id;
  857. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  858. unsigned long copp =
  859. session_copp_map[fe_id][session_type][be_index];
  860. if (!test_bit(idx, &copp))
  861. continue;
  862. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  863. session_id, ip_channel_cnt,
  864. op_channel_cnt, ch_wght_coeff,
  865. session_type, stream_type);
  866. if (rc < 0)
  867. pr_err("%s: err setting channel mix config\n",
  868. __func__);
  869. }
  870. }
  871. return 0;
  872. }
  873. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  874. int msm_pcm_routing_reg_stream_app_type_cfg(
  875. int fedai_id, int session_type, int be_id,
  876. struct msm_pcm_stream_app_type_cfg *cfg_data)
  877. {
  878. int ret = 0;
  879. if (cfg_data == NULL) {
  880. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  881. ret = -EINVAL;
  882. goto done;
  883. }
  884. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  885. __func__, fedai_id, session_type, be_id,
  886. cfg_data->app_type, cfg_data->acdb_dev_id,
  887. cfg_data->sample_rate);
  888. if (!is_mm_lsm_fe_id(fedai_id)) {
  889. pr_err("%s: Invalid machine driver ID %d\n",
  890. __func__, fedai_id);
  891. ret = -EINVAL;
  892. goto done;
  893. }
  894. if (session_type != SESSION_TYPE_RX &&
  895. session_type != SESSION_TYPE_TX) {
  896. pr_err("%s: Invalid session type %d\n",
  897. __func__, session_type);
  898. ret = -EINVAL;
  899. goto done;
  900. }
  901. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  902. pr_err("%s: Received out of bounds be_id %d\n",
  903. __func__, be_id);
  904. ret = -EINVAL;
  905. goto done;
  906. }
  907. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  908. /*
  909. * Store the BE ID of the configuration information set as the latest so
  910. * the get mixer control knows what to return.
  911. */
  912. last_be_id_configured[fedai_id][session_type] = be_id;
  913. done:
  914. return ret;
  915. }
  916. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  917. /**
  918. * msm_pcm_routing_get_stream_app_type_cfg
  919. *
  920. * Receives fedai_id, session_type, be_id, and populates app_type,
  921. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  922. * -EINVAL and does not alter passed values.
  923. *
  924. * fedai_id - Passed value, front end ID for which app type config is wanted
  925. * session_type - Passed value, session type for which app type config
  926. * is wanted
  927. * be_id - Returned value, back end device id the app type config data is for
  928. * cfg_data - Returned value, configuration data used by app type config
  929. */
  930. int msm_pcm_routing_get_stream_app_type_cfg(
  931. int fedai_id, int session_type, int *bedai_id,
  932. struct msm_pcm_stream_app_type_cfg *cfg_data)
  933. {
  934. int be_id;
  935. int ret = 0;
  936. if (bedai_id == NULL) {
  937. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  938. ret = -EINVAL;
  939. goto done;
  940. } else if (cfg_data == NULL) {
  941. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  942. ret = -EINVAL;
  943. goto done;
  944. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  945. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  946. ret = -EINVAL;
  947. goto done;
  948. } else if (session_type != SESSION_TYPE_RX &&
  949. session_type != SESSION_TYPE_TX) {
  950. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  951. ret = -EINVAL;
  952. goto done;
  953. }
  954. be_id = last_be_id_configured[fedai_id][session_type];
  955. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  956. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  957. ret = -EINVAL;
  958. goto done;
  959. }
  960. *bedai_id = be_id;
  961. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  962. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  963. __func__, fedai_id, session_type, *bedai_id,
  964. cfg_data->app_type, cfg_data->acdb_dev_id,
  965. cfg_data->sample_rate);
  966. done:
  967. return ret;
  968. }
  969. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  970. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  971. int cal_index)
  972. {
  973. struct list_head *ptr, *next;
  974. struct cal_block_data *cal_block = NULL;
  975. pr_debug("%s\n", __func__);
  976. list_for_each_safe(ptr, next,
  977. &cal_data[cal_index]->cal_blocks) {
  978. cal_block = list_entry(ptr,
  979. struct cal_block_data, list);
  980. if (cal_utils_is_cal_stale(cal_block))
  981. continue;
  982. if (((struct audio_cal_info_adm_top *)cal_block
  983. ->cal_info)->path == path) {
  984. return cal_block;
  985. }
  986. }
  987. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  988. return NULL;
  989. }
  990. static struct cal_block_data *msm_routing_find_topology(int path,
  991. int app_type,
  992. int acdb_id,
  993. int cal_index)
  994. {
  995. struct list_head *ptr, *next;
  996. struct cal_block_data *cal_block = NULL;
  997. struct audio_cal_info_adm_top *cal_info;
  998. pr_debug("%s\n", __func__);
  999. list_for_each_safe(ptr, next,
  1000. &cal_data[cal_index]->cal_blocks) {
  1001. cal_block = list_entry(ptr,
  1002. struct cal_block_data, list);
  1003. if (cal_utils_is_cal_stale(cal_block))
  1004. continue;
  1005. cal_info = (struct audio_cal_info_adm_top *)
  1006. cal_block->cal_info;
  1007. if ((cal_info->path == path) &&
  1008. (cal_info->app_type == app_type) &&
  1009. (cal_info->acdb_id == acdb_id)) {
  1010. return cal_block;
  1011. }
  1012. }
  1013. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  1014. __func__, path, app_type, acdb_id);
  1015. return msm_routing_find_topology_by_path(path, cal_index);
  1016. }
  1017. /*
  1018. * Retrieving cal_block will mark cal_block as stale.
  1019. * Hence it cannot be reused or resent unless the flag
  1020. * is reset.
  1021. */
  1022. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1023. int be_id)
  1024. {
  1025. int topology = NULL_COPP_TOPOLOGY;
  1026. struct cal_block_data *cal_block = NULL;
  1027. int app_type = 0, acdb_dev_id = 0;
  1028. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1029. __func__, fedai_id, session_type, be_id);
  1030. if (cal_data == NULL)
  1031. goto done;
  1032. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1033. acdb_dev_id =
  1034. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1035. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1036. cal_block = msm_routing_find_topology(session_type, app_type,
  1037. acdb_dev_id,
  1038. ADM_TOPOLOGY_CAL_TYPE_IDX);
  1039. if (cal_block != NULL) {
  1040. topology = ((struct audio_cal_info_adm_top *)
  1041. cal_block->cal_info)->topology;
  1042. cal_utils_mark_cal_used(cal_block);
  1043. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1044. } else {
  1045. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1046. pr_debug("%s: Check for LSM topology\n", __func__);
  1047. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1048. cal_block = msm_routing_find_topology(session_type, app_type,
  1049. acdb_dev_id,
  1050. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1051. if (cal_block != NULL) {
  1052. topology = ((struct audio_cal_info_adm_top *)
  1053. cal_block->cal_info)->topology;
  1054. cal_utils_mark_cal_used(cal_block);
  1055. }
  1056. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1057. }
  1058. done:
  1059. pr_debug("%s: Using topology %d\n", __func__, topology);
  1060. return topology;
  1061. }
  1062. static uint8_t is_be_dai_extproc(int be_dai)
  1063. {
  1064. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1065. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1066. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1067. return 1;
  1068. else
  1069. return 0;
  1070. }
  1071. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1072. int path_type, int perf_mode,
  1073. uint32_t passthr_mode)
  1074. {
  1075. int i, port_type, j, num_copps = 0;
  1076. struct route_payload payload;
  1077. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1078. path_type == ADM_PATH_COMPRESSED_RX) ?
  1079. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1080. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1081. if (!is_be_dai_extproc(i) &&
  1082. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1083. (msm_bedais[i].active) &&
  1084. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1085. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1086. unsigned long copp =
  1087. session_copp_map[fedai_id][sess_type][i];
  1088. if (test_bit(j, &copp)) {
  1089. payload.port_id[num_copps] =
  1090. msm_bedais[i].port_id;
  1091. payload.copp_idx[num_copps] = j;
  1092. payload.app_type[num_copps] =
  1093. fe_dai_app_type_cfg
  1094. [fedai_id][sess_type][i]
  1095. .app_type;
  1096. payload.acdb_dev_id[num_copps] =
  1097. fe_dai_app_type_cfg
  1098. [fedai_id][sess_type][i]
  1099. .acdb_dev_id;
  1100. payload.sample_rate[num_copps] =
  1101. fe_dai_app_type_cfg
  1102. [fedai_id][sess_type][i]
  1103. .sample_rate;
  1104. num_copps++;
  1105. }
  1106. }
  1107. }
  1108. }
  1109. if (num_copps) {
  1110. payload.num_copps = num_copps;
  1111. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1112. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1113. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1114. }
  1115. }
  1116. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1117. int stream_type)
  1118. {
  1119. int i, session_type, path_type, port_type;
  1120. u32 mode = 0;
  1121. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1122. /* bad ID assigned in machine driver */
  1123. pr_err("%s: bad MM ID\n", __func__);
  1124. return;
  1125. }
  1126. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1127. session_type = SESSION_TYPE_RX;
  1128. path_type = ADM_PATH_PLAYBACK;
  1129. port_type = MSM_AFE_PORT_TYPE_RX;
  1130. } else {
  1131. session_type = SESSION_TYPE_TX;
  1132. path_type = ADM_PATH_LIVE_REC;
  1133. port_type = MSM_AFE_PORT_TYPE_TX;
  1134. }
  1135. mutex_lock(&routing_lock);
  1136. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1137. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1138. if (!is_be_dai_extproc(i) &&
  1139. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1140. (msm_bedais[i].active) &&
  1141. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1142. mode = afe_get_port_type(msm_bedais[i].port_id);
  1143. adm_connect_afe_port(mode, dspst_id,
  1144. msm_bedais[i].port_id);
  1145. break;
  1146. }
  1147. }
  1148. mutex_unlock(&routing_lock);
  1149. }
  1150. static bool route_check_fe_id_adm_support(int fe_id)
  1151. {
  1152. bool rc = true;
  1153. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1154. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1155. /* fe id is listen while port is set to afe */
  1156. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1157. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1158. __func__, fe_id, lsm_port_index);
  1159. rc = false;
  1160. }
  1161. }
  1162. return rc;
  1163. }
  1164. /*
  1165. * msm_pcm_routing_get_pp_ch_cnt:
  1166. * Read the processed channel count
  1167. *
  1168. * @fe_id: Front end ID
  1169. * @session_type: Inidicates RX or TX session type
  1170. */
  1171. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1172. {
  1173. struct msm_pcm_stream_app_type_cfg cfg_data;
  1174. int be_id = 0, app_type_idx = 0, app_type = 0;
  1175. int ret = -EINVAL;
  1176. memset(&cfg_data, 0, sizeof(cfg_data));
  1177. if (!is_mm_lsm_fe_id(fe_id)) {
  1178. pr_err("%s: bad MM ID\n", __func__);
  1179. return -EINVAL;
  1180. }
  1181. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1182. &be_id, &cfg_data);
  1183. if (ret) {
  1184. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1185. return ret;
  1186. }
  1187. app_type = cfg_data.app_type;
  1188. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1189. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1190. }
  1191. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1192. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1193. int dspst_id, int stream_type,
  1194. uint32_t passthr_mode)
  1195. {
  1196. int i, j, session_type, path_type, port_type, topology;
  1197. int num_copps = 0;
  1198. struct route_payload payload;
  1199. u32 channels, sample_rate;
  1200. u16 bit_width = 16;
  1201. bool is_lsm;
  1202. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1203. __func__, fe_id, perf_mode, dspst_id,
  1204. stream_type, passthr_mode);
  1205. if (!is_mm_lsm_fe_id(fe_id)) {
  1206. /* bad ID assigned in machine driver */
  1207. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1208. return -EINVAL;
  1209. }
  1210. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1211. session_type = SESSION_TYPE_RX;
  1212. if (passthr_mode != LEGACY_PCM)
  1213. path_type = ADM_PATH_COMPRESSED_RX;
  1214. else
  1215. path_type = ADM_PATH_PLAYBACK;
  1216. port_type = MSM_AFE_PORT_TYPE_RX;
  1217. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1218. session_type = SESSION_TYPE_TX;
  1219. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1220. path_type = ADM_PATH_COMPRESSED_TX;
  1221. else
  1222. path_type = ADM_PATH_LIVE_REC;
  1223. port_type = MSM_AFE_PORT_TYPE_TX;
  1224. } else {
  1225. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1226. return -EINVAL;
  1227. }
  1228. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1229. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1230. mutex_lock(&routing_lock);
  1231. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1232. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1233. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1234. if (!route_check_fe_id_adm_support(fe_id)) {
  1235. /* ignore adm open if not supported for fe_id */
  1236. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1237. mutex_unlock(&routing_lock);
  1238. return 0;
  1239. }
  1240. payload.num_copps = 0; /* only RX needs to use payload */
  1241. /* re-enable EQ if active */
  1242. msm_qti_pp_send_eq_values(fe_id);
  1243. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1244. if (!is_be_dai_extproc(i) &&
  1245. (afe_get_port_type(msm_bedais[i].port_id) ==
  1246. port_type) &&
  1247. (msm_bedais[i].active) &&
  1248. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1249. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1250. /*
  1251. * check if ADM needs to be configured with different
  1252. * channel mapping than backend
  1253. */
  1254. if (!msm_bedais[i].adm_override_ch)
  1255. channels = msm_bedais[i].channel;
  1256. else
  1257. channels = msm_bedais[i].adm_override_ch;
  1258. bit_width = msm_routing_get_bit_width(
  1259. msm_bedais[i].format);
  1260. app_type =
  1261. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1262. if (app_type && is_lsm) {
  1263. app_type_idx =
  1264. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1265. sample_rate =
  1266. fe_dai_app_type_cfg[fe_id][session_type][i]
  1267. .sample_rate;
  1268. bit_width =
  1269. lsm_app_type_cfg[app_type_idx].bit_width;
  1270. } else if (app_type) {
  1271. app_type_idx =
  1272. msm_pcm_routing_get_app_type_idx(
  1273. app_type);
  1274. sample_rate =
  1275. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1276. bit_width =
  1277. app_type_cfg[app_type_idx].bit_width;
  1278. } else {
  1279. sample_rate = msm_bedais[i].sample_rate;
  1280. }
  1281. acdb_dev_id =
  1282. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1283. topology = msm_routing_get_adm_topology(fe_id,
  1284. session_type,
  1285. i);
  1286. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1287. || (passthr_mode ==
  1288. COMPRESSED_PASSTHROUGH_GEN)
  1289. || (passthr_mode ==
  1290. COMPRESSED_PASSTHROUGH_IEC61937))
  1291. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1292. pr_debug("%s: Before adm open topology %d\n", __func__,
  1293. topology);
  1294. copp_idx =
  1295. adm_open(msm_bedais[i].port_id,
  1296. path_type, sample_rate, channels,
  1297. topology, perf_mode, bit_width,
  1298. app_type, acdb_dev_id);
  1299. if ((copp_idx < 0) ||
  1300. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1301. pr_err("%s:adm open failed coppid:%d\n",
  1302. __func__, copp_idx);
  1303. mutex_unlock(&routing_lock);
  1304. return -EINVAL;
  1305. }
  1306. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1307. __func__, fe_id, session_type, i);
  1308. set_bit(copp_idx,
  1309. &session_copp_map[fe_id][session_type][i]);
  1310. if (msm_is_resample_needed(
  1311. sample_rate,
  1312. msm_bedais[i].sample_rate))
  1313. adm_copp_mfc_cfg(
  1314. msm_bedais[i].port_id, copp_idx,
  1315. msm_bedais[i].sample_rate);
  1316. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1317. unsigned long copp =
  1318. session_copp_map[fe_id][session_type][i];
  1319. if (test_bit(j, &copp)) {
  1320. payload.port_id[num_copps] =
  1321. msm_bedais[i].port_id;
  1322. payload.copp_idx[num_copps] = j;
  1323. payload.app_type[num_copps] =
  1324. fe_dai_app_type_cfg
  1325. [fe_id][session_type][i]
  1326. .app_type;
  1327. payload.acdb_dev_id[num_copps] =
  1328. fe_dai_app_type_cfg
  1329. [fe_id][session_type][i]
  1330. .acdb_dev_id;
  1331. payload.sample_rate[num_copps] =
  1332. fe_dai_app_type_cfg
  1333. [fe_id][session_type][i]
  1334. .sample_rate;
  1335. num_copps++;
  1336. }
  1337. }
  1338. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1339. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1340. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1341. msm_routing_send_device_pp_params(
  1342. msm_bedais[i].port_id,
  1343. copp_idx, fe_id);
  1344. }
  1345. }
  1346. if (num_copps) {
  1347. payload.num_copps = num_copps;
  1348. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1349. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1350. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1351. }
  1352. mutex_unlock(&routing_lock);
  1353. return 0;
  1354. }
  1355. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1356. {
  1357. u32 session_id;
  1358. switch (val) {
  1359. case MSM_FRONTEND_DAI_QCHAT:
  1360. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1361. break;
  1362. case MSM_FRONTEND_DAI_VOIP:
  1363. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1364. break;
  1365. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1366. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1367. break;
  1368. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1369. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1370. break;
  1371. default:
  1372. session_id = 0;
  1373. }
  1374. pr_debug("%s session_id 0x%x", __func__, session_id);
  1375. return session_id;
  1376. }
  1377. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1378. int dspst_id, int stream_type)
  1379. {
  1380. int copp_idx = 0;
  1381. int sess_type = 0;
  1382. int i = 0, j = 0, be_id;
  1383. int ret = 0;
  1384. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1385. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1386. return 0;
  1387. }
  1388. if (!(channel_mixer[fe_id].enable)) {
  1389. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1390. __func__, fe_id);
  1391. return 0;
  1392. }
  1393. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1394. sess_type = SESSION_TYPE_RX;
  1395. else
  1396. sess_type = SESSION_TYPE_TX;
  1397. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1398. ++i) {
  1399. be_id = channel_input[fe_id][i] - 1;
  1400. channel_mixer[fe_id].input_channels[i] =
  1401. msm_bedais[be_id].channel;
  1402. if ((msm_bedais[be_id].active) &&
  1403. test_bit(fe_id,
  1404. &msm_bedais[be_id].fe_sessions[0])) {
  1405. unsigned long copp =
  1406. session_copp_map[fe_id][sess_type][be_id];
  1407. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1408. if (test_bit(j, &copp)) {
  1409. copp_idx = j;
  1410. break;
  1411. }
  1412. }
  1413. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1414. __func__,
  1415. fe_id, be_id, msm_bedais[be_id].channel,
  1416. copp_idx);
  1417. ret = adm_programable_channel_mixer(
  1418. msm_bedais[be_id].port_id,
  1419. copp_idx, dspst_id, sess_type,
  1420. channel_mixer + fe_id, i);
  1421. }
  1422. }
  1423. return ret;
  1424. }
  1425. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1426. int dspst_id, int stream_type)
  1427. {
  1428. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1429. struct route_payload payload;
  1430. u32 channels, sample_rate;
  1431. uint16_t bits_per_sample = 16;
  1432. uint32_t passthr_mode = LEGACY_PCM;
  1433. int ret = 0;
  1434. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1435. /* bad ID assigned in machine driver */
  1436. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1437. return -EINVAL;
  1438. }
  1439. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1440. session_type = SESSION_TYPE_RX;
  1441. path_type = ADM_PATH_PLAYBACK;
  1442. port_type = MSM_AFE_PORT_TYPE_RX;
  1443. } else {
  1444. session_type = SESSION_TYPE_TX;
  1445. path_type = ADM_PATH_LIVE_REC;
  1446. port_type = MSM_AFE_PORT_TYPE_TX;
  1447. }
  1448. mutex_lock(&routing_lock);
  1449. payload.num_copps = 0; /* only RX needs to use payload */
  1450. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1451. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1452. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1453. /* re-enable EQ if active */
  1454. msm_qti_pp_send_eq_values(fedai_id);
  1455. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1456. if (!is_be_dai_extproc(i) &&
  1457. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1458. (msm_bedais[i].active) &&
  1459. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1460. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1461. /*
  1462. * check if ADM needs to be configured with different
  1463. * channel mapping than backend
  1464. */
  1465. if (!msm_bedais[i].adm_override_ch)
  1466. channels = msm_bedais[i].channel;
  1467. else
  1468. channels = msm_bedais[i].adm_override_ch;
  1469. bits_per_sample = msm_routing_get_bit_width(
  1470. msm_bedais[i].format);
  1471. app_type =
  1472. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1473. if (app_type) {
  1474. app_type_idx =
  1475. msm_pcm_routing_get_app_type_idx(app_type);
  1476. sample_rate =
  1477. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1478. .sample_rate;
  1479. bits_per_sample =
  1480. app_type_cfg[app_type_idx].bit_width;
  1481. } else
  1482. sample_rate = msm_bedais[i].sample_rate;
  1483. acdb_dev_id =
  1484. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1485. .acdb_dev_id;
  1486. topology = msm_routing_get_adm_topology(fedai_id,
  1487. session_type,
  1488. i);
  1489. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1490. sample_rate, channels, topology,
  1491. perf_mode, bits_per_sample,
  1492. app_type, acdb_dev_id);
  1493. if ((copp_idx < 0) ||
  1494. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1495. pr_err("%s: adm open failed copp_idx:%d\n",
  1496. __func__, copp_idx);
  1497. mutex_unlock(&routing_lock);
  1498. return -EINVAL;
  1499. }
  1500. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1501. __func__, fedai_id, session_type, i);
  1502. set_bit(copp_idx,
  1503. &session_copp_map[fedai_id][session_type][i]);
  1504. if (msm_is_resample_needed(
  1505. sample_rate,
  1506. msm_bedais[i].sample_rate))
  1507. adm_copp_mfc_cfg(
  1508. msm_bedais[i].port_id, copp_idx,
  1509. msm_bedais[i].sample_rate);
  1510. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1511. unsigned long copp =
  1512. session_copp_map[fedai_id][session_type][i];
  1513. if (test_bit(j, &copp)) {
  1514. payload.port_id[num_copps] =
  1515. msm_bedais[i].port_id;
  1516. payload.copp_idx[num_copps] = j;
  1517. payload.app_type[num_copps] =
  1518. fe_dai_app_type_cfg
  1519. [fedai_id][session_type]
  1520. [i].app_type;
  1521. payload.acdb_dev_id[num_copps] =
  1522. fe_dai_app_type_cfg
  1523. [fedai_id][session_type]
  1524. [i].acdb_dev_id;
  1525. payload.sample_rate[num_copps] =
  1526. fe_dai_app_type_cfg
  1527. [fedai_id][session_type]
  1528. [i].sample_rate;
  1529. num_copps++;
  1530. }
  1531. }
  1532. if (perf_mode == LEGACY_PCM_MODE)
  1533. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1534. copp_idx, topology, channels);
  1535. }
  1536. }
  1537. if (num_copps) {
  1538. payload.num_copps = num_copps;
  1539. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1540. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1541. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1542. }
  1543. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1544. dspst_id, stream_type);
  1545. mutex_unlock(&routing_lock);
  1546. return ret;
  1547. }
  1548. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1549. int dspst_id, int stream_type,
  1550. struct msm_pcm_routing_evt event_info)
  1551. {
  1552. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1553. stream_type)) {
  1554. pr_err("%s: failed to reg phy stream\n", __func__);
  1555. return -EINVAL;
  1556. }
  1557. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1558. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1559. else
  1560. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1561. return 0;
  1562. }
  1563. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1564. {
  1565. int i, port_type, session_type, path_type, topology;
  1566. struct msm_pcm_routing_fdai_data *fdai;
  1567. if (!is_mm_lsm_fe_id(fedai_id)) {
  1568. /* bad ID assigned in machine driver */
  1569. pr_err("%s: bad MM ID\n", __func__);
  1570. return;
  1571. }
  1572. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1573. port_type = MSM_AFE_PORT_TYPE_RX;
  1574. session_type = SESSION_TYPE_RX;
  1575. path_type = ADM_PATH_PLAYBACK;
  1576. } else {
  1577. port_type = MSM_AFE_PORT_TYPE_TX;
  1578. session_type = SESSION_TYPE_TX;
  1579. path_type = ADM_PATH_LIVE_REC;
  1580. }
  1581. mutex_lock(&routing_lock);
  1582. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1583. if (!is_be_dai_extproc(i) &&
  1584. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1585. (msm_bedais[i].active) &&
  1586. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1587. int idx;
  1588. unsigned long copp =
  1589. session_copp_map[fedai_id][session_type][i];
  1590. fdai = &fe_dai_map[fedai_id][session_type];
  1591. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1592. if (test_bit(idx, &copp))
  1593. break;
  1594. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1595. pr_debug("%s: copp idx is invalid, exiting\n",
  1596. __func__);
  1597. continue;
  1598. }
  1599. topology = adm_get_topology_for_port_copp_idx(
  1600. msm_bedais[i].port_id, idx);
  1601. msm_routing_unload_topology(topology);
  1602. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1603. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1604. __func__, copp, fedai_id, session_type, i);
  1605. clear_bit(idx,
  1606. &session_copp_map[fedai_id][session_type][i]);
  1607. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1608. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1609. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1610. (fdai->passthr_mode == LEGACY_PCM))
  1611. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1612. topology);
  1613. }
  1614. }
  1615. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1616. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1617. mutex_unlock(&routing_lock);
  1618. }
  1619. /* Check if FE/BE route is set */
  1620. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1621. {
  1622. bool rc = false;
  1623. if (!is_mm_lsm_fe_id(fe_id)) {
  1624. /* recheck FE ID in the mixer control defined in this file */
  1625. pr_err("%s: bad MM ID\n", __func__);
  1626. return rc;
  1627. }
  1628. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1629. rc = true;
  1630. return rc;
  1631. }
  1632. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1633. {
  1634. int session_type, path_type, topology;
  1635. u32 channels, sample_rate;
  1636. uint16_t bits_per_sample = 16;
  1637. struct msm_pcm_routing_fdai_data *fdai;
  1638. uint32_t passthr_mode;
  1639. bool is_lsm;
  1640. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1641. if (!is_mm_lsm_fe_id(val)) {
  1642. /* recheck FE ID in the mixer control defined in this file */
  1643. pr_err("%s: bad MM ID\n", __func__);
  1644. return;
  1645. }
  1646. if (!route_check_fe_id_adm_support(val)) {
  1647. /* ignore adm open if not supported for fe_id */
  1648. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1649. return;
  1650. }
  1651. session_type =
  1652. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1653. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1654. fdai = &fe_dai_map[val][session_type];
  1655. passthr_mode = fdai->passthr_mode;
  1656. if (session_type == SESSION_TYPE_RX) {
  1657. if (passthr_mode != LEGACY_PCM)
  1658. path_type = ADM_PATH_COMPRESSED_RX;
  1659. else
  1660. path_type = ADM_PATH_PLAYBACK;
  1661. } else {
  1662. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1663. path_type = ADM_PATH_COMPRESSED_TX;
  1664. else
  1665. path_type = ADM_PATH_LIVE_REC;
  1666. }
  1667. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1668. (val <= MSM_FRONTEND_DAI_LSM8);
  1669. mutex_lock(&routing_lock);
  1670. if (set) {
  1671. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1672. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1673. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1674. voc_start_playback(set, msm_bedais[reg].port_id);
  1675. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1676. if (msm_bedais[reg].active && fdai->strm_id !=
  1677. INVALID_SESSION) {
  1678. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1679. /*
  1680. * check if ADM needs to be configured with different
  1681. * channel mapping than backend
  1682. */
  1683. if (!msm_bedais[reg].adm_override_ch)
  1684. channels = msm_bedais[reg].channel;
  1685. else
  1686. channels = msm_bedais[reg].adm_override_ch;
  1687. if (session_type == SESSION_TYPE_TX &&
  1688. fdai->be_srate &&
  1689. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1690. pr_debug("%s: flush strm %d diff BE rates\n",
  1691. __func__, fdai->strm_id);
  1692. if (fdai->event_info.event_func)
  1693. fdai->event_info.event_func(
  1694. MSM_PCM_RT_EVT_BUF_RECFG,
  1695. fdai->event_info.priv_data);
  1696. fdai->be_srate = 0; /* might not need it */
  1697. }
  1698. bits_per_sample = msm_routing_get_bit_width(
  1699. msm_bedais[reg].format);
  1700. app_type =
  1701. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1702. if (app_type && is_lsm) {
  1703. app_type_idx =
  1704. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1705. sample_rate =
  1706. fe_dai_app_type_cfg[val][session_type][reg]
  1707. .sample_rate;
  1708. bits_per_sample =
  1709. lsm_app_type_cfg[app_type_idx].bit_width;
  1710. } else if (app_type) {
  1711. app_type_idx =
  1712. msm_pcm_routing_get_app_type_idx(app_type);
  1713. sample_rate =
  1714. fe_dai_app_type_cfg[val][session_type][reg]
  1715. .sample_rate;
  1716. bits_per_sample =
  1717. app_type_cfg[app_type_idx].bit_width;
  1718. } else
  1719. sample_rate = msm_bedais[reg].sample_rate;
  1720. topology = msm_routing_get_adm_topology(val,
  1721. session_type,
  1722. reg);
  1723. acdb_dev_id =
  1724. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1725. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1726. sample_rate, channels, topology,
  1727. fdai->perf_mode, bits_per_sample,
  1728. app_type, acdb_dev_id);
  1729. if ((copp_idx < 0) ||
  1730. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1731. pr_err("%s: adm open failed\n", __func__);
  1732. mutex_unlock(&routing_lock);
  1733. return;
  1734. }
  1735. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1736. __func__, val, session_type, reg);
  1737. set_bit(copp_idx,
  1738. &session_copp_map[val][session_type][reg]);
  1739. if (msm_is_resample_needed(
  1740. sample_rate,
  1741. msm_bedais[reg].sample_rate))
  1742. adm_copp_mfc_cfg(
  1743. msm_bedais[reg].port_id, copp_idx,
  1744. msm_bedais[reg].sample_rate);
  1745. if (session_type == SESSION_TYPE_RX &&
  1746. fdai->event_info.event_func)
  1747. fdai->event_info.event_func(
  1748. MSM_PCM_RT_EVT_DEVSWITCH,
  1749. fdai->event_info.priv_data);
  1750. msm_pcm_routing_build_matrix(val, session_type,
  1751. path_type,
  1752. fdai->perf_mode,
  1753. passthr_mode);
  1754. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1755. (passthr_mode == LEGACY_PCM))
  1756. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1757. copp_idx, topology,
  1758. channels);
  1759. }
  1760. } else {
  1761. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1762. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1763. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1764. voc_start_playback(set, msm_bedais[reg].port_id);
  1765. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1766. if (msm_bedais[reg].active && fdai->strm_id !=
  1767. INVALID_SESSION) {
  1768. int idx;
  1769. int port_id;
  1770. unsigned long copp =
  1771. session_copp_map[val][session_type][reg];
  1772. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1773. if (test_bit(idx, &copp))
  1774. break;
  1775. port_id = msm_bedais[reg].port_id;
  1776. topology = adm_get_topology_for_port_copp_idx(port_id,
  1777. idx);
  1778. msm_routing_unload_topology(topology);
  1779. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1780. idx);
  1781. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1782. __func__, copp, val, session_type, reg,
  1783. topology);
  1784. clear_bit(idx,
  1785. &session_copp_map[val][session_type][reg]);
  1786. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1787. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1788. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1789. (passthr_mode == LEGACY_PCM))
  1790. msm_pcm_routing_deinit_pp(
  1791. msm_bedais[reg].port_id,
  1792. topology);
  1793. msm_pcm_routing_build_matrix(val, session_type,
  1794. path_type,
  1795. fdai->perf_mode,
  1796. passthr_mode);
  1797. }
  1798. }
  1799. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1800. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1801. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1802. mutex_unlock(&routing_lock);
  1803. }
  1804. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1805. struct snd_ctl_elem_value *ucontrol)
  1806. {
  1807. struct soc_mixer_control *mc =
  1808. (struct soc_mixer_control *)kcontrol->private_value;
  1809. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1810. ucontrol->value.integer.value[0] = 1;
  1811. else
  1812. ucontrol->value.integer.value[0] = 0;
  1813. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1814. ucontrol->value.integer.value[0]);
  1815. return 0;
  1816. }
  1817. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1818. struct snd_ctl_elem_value *ucontrol)
  1819. {
  1820. struct snd_soc_dapm_widget *widget =
  1821. snd_soc_dapm_kcontrol_widget(kcontrol);
  1822. struct soc_mixer_control *mc =
  1823. (struct soc_mixer_control *)kcontrol->private_value;
  1824. struct snd_soc_dapm_update *update = NULL;
  1825. if (ucontrol->value.integer.value[0] &&
  1826. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1827. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1828. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1829. update);
  1830. } else if (!ucontrol->value.integer.value[0] &&
  1831. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1832. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1833. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1834. update);
  1835. }
  1836. return 1;
  1837. }
  1838. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1839. struct snd_ctl_elem_value *ucontrol)
  1840. {
  1841. struct soc_mixer_control *mc =
  1842. (struct soc_mixer_control *)kcontrol->private_value;
  1843. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1844. ucontrol->value.integer.value[0] = 1;
  1845. else
  1846. ucontrol->value.integer.value[0] = 0;
  1847. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1848. ucontrol->value.integer.value[0]);
  1849. return 0;
  1850. }
  1851. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1852. struct snd_ctl_elem_value *ucontrol)
  1853. {
  1854. struct snd_soc_dapm_widget *widget =
  1855. snd_soc_dapm_kcontrol_widget(kcontrol);
  1856. struct soc_mixer_control *mc =
  1857. (struct soc_mixer_control *)kcontrol->private_value;
  1858. struct snd_soc_dapm_update *update = NULL;
  1859. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1860. ucontrol->value.integer.value[0]);
  1861. if (ucontrol->value.integer.value[0]) {
  1862. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1863. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1864. snd_soc_dapm_mixer_update_power(widget->dapm,
  1865. kcontrol, 1, update);
  1866. } else if (!ucontrol->value.integer.value[0]) {
  1867. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1868. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1869. snd_soc_dapm_mixer_update_power(widget->dapm,
  1870. kcontrol, 0, update);
  1871. }
  1872. return 1;
  1873. }
  1874. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1875. {
  1876. u32 session_id = 0;
  1877. u16 path_type;
  1878. struct media_format_info voc_be_media_format;
  1879. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1880. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1881. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1882. __func__, val, session_id);
  1883. mutex_lock(&routing_lock);
  1884. if (set)
  1885. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1886. else
  1887. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1888. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1889. afe_get_port_type(msm_bedais[reg].port_id) ==
  1890. MSM_AFE_PORT_TYPE_RX) {
  1891. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1892. __func__, set, msm_bedais[reg].port_id);
  1893. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1894. }
  1895. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1896. MSM_AFE_PORT_TYPE_RX)
  1897. path_type = RX_PATH;
  1898. else
  1899. path_type = TX_PATH;
  1900. if (set) {
  1901. if (msm_bedais[reg].active) {
  1902. voc_set_route_flag(session_id, path_type, 1);
  1903. memset(&voc_be_media_format, 0,
  1904. sizeof(struct media_format_info));
  1905. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1906. voc_be_media_format.num_channels =
  1907. msm_bedais[reg].channel;
  1908. voc_be_media_format.sample_rate =
  1909. msm_bedais[reg].sample_rate;
  1910. voc_be_media_format.bits_per_sample =
  1911. msm_bedais[reg].format;
  1912. /* Defaulting this to 1 for voice call usecases */
  1913. voc_be_media_format.channel_mapping[0] = 1;
  1914. voc_set_device_config(session_id, path_type,
  1915. &voc_be_media_format);
  1916. if (voc_get_route_flag(session_id, TX_PATH) &&
  1917. voc_get_route_flag(session_id, RX_PATH))
  1918. voc_enable_device(session_id);
  1919. } else {
  1920. pr_debug("%s BE is not active\n", __func__);
  1921. }
  1922. } else {
  1923. voc_set_route_flag(session_id, path_type, 0);
  1924. voc_disable_device(session_id);
  1925. }
  1926. mutex_unlock(&routing_lock);
  1927. }
  1928. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1929. struct snd_ctl_elem_value *ucontrol)
  1930. {
  1931. struct soc_mixer_control *mc =
  1932. (struct soc_mixer_control *)kcontrol->private_value;
  1933. mutex_lock(&routing_lock);
  1934. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1935. ucontrol->value.integer.value[0] = 1;
  1936. else
  1937. ucontrol->value.integer.value[0] = 0;
  1938. mutex_unlock(&routing_lock);
  1939. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1940. ucontrol->value.integer.value[0]);
  1941. return 0;
  1942. }
  1943. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1944. struct snd_ctl_elem_value *ucontrol)
  1945. {
  1946. struct snd_soc_dapm_widget *widget =
  1947. snd_soc_dapm_kcontrol_widget(kcontrol);
  1948. struct soc_mixer_control *mc =
  1949. (struct soc_mixer_control *)kcontrol->private_value;
  1950. struct snd_soc_dapm_update *update = NULL;
  1951. if (ucontrol->value.integer.value[0]) {
  1952. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1953. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1954. update);
  1955. } else {
  1956. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1957. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1958. update);
  1959. }
  1960. return 1;
  1961. }
  1962. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1963. struct snd_ctl_elem_value *ucontrol)
  1964. {
  1965. struct soc_mixer_control *mc =
  1966. (struct soc_mixer_control *)kcontrol->private_value;
  1967. mutex_lock(&routing_lock);
  1968. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1969. ucontrol->value.integer.value[0] = 1;
  1970. else
  1971. ucontrol->value.integer.value[0] = 0;
  1972. mutex_unlock(&routing_lock);
  1973. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1974. ucontrol->value.integer.value[0]);
  1975. return 0;
  1976. }
  1977. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1978. struct snd_ctl_elem_value *ucontrol)
  1979. {
  1980. struct snd_soc_dapm_widget *widget =
  1981. snd_soc_dapm_kcontrol_widget(kcontrol);
  1982. struct soc_mixer_control *mc =
  1983. (struct soc_mixer_control *)kcontrol->private_value;
  1984. struct snd_soc_dapm_update *update = NULL;
  1985. if (ucontrol->value.integer.value[0]) {
  1986. mutex_lock(&routing_lock);
  1987. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1988. mutex_unlock(&routing_lock);
  1989. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1990. update);
  1991. } else {
  1992. mutex_lock(&routing_lock);
  1993. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1994. mutex_unlock(&routing_lock);
  1995. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1996. update);
  1997. }
  1998. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1999. ucontrol->value.integer.value[0]);
  2000. return 1;
  2001. }
  2002. /*
  2003. * Return the mapping between port ID and backend ID to enable the AFE callback
  2004. * to determine the acdb_dev_id from the port id
  2005. */
  2006. int msm_pcm_get_be_id_from_port_id(int port_id)
  2007. {
  2008. int i;
  2009. int be_id = -EINVAL;
  2010. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2011. if (msm_bedais[i].port_id == port_id) {
  2012. be_id = i;
  2013. break;
  2014. }
  2015. }
  2016. return be_id;
  2017. }
  2018. /*
  2019. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2020. * correct AFE calibration information by comparing the header information.
  2021. */
  2022. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2023. {
  2024. int acdb_id = -EINVAL;
  2025. int i = 0;
  2026. int session;
  2027. int port_type = afe_get_port_type(port_id);
  2028. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2029. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2030. __func__, port_id, be_id, port_type);
  2031. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2032. session = SESSION_TYPE_TX;
  2033. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2034. session = SESSION_TYPE_RX;
  2035. } else {
  2036. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2037. acdb_id = -EINVAL;
  2038. goto exit;
  2039. }
  2040. if (be_id < 0) {
  2041. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2042. goto exit;
  2043. }
  2044. mutex_lock(&routing_lock);
  2045. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2046. MSM_FRONTEND_DAI_MAX);
  2047. if (i < MSM_FRONTEND_DAI_MAX)
  2048. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2049. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2050. __func__, i, session, be_id, acdb_id);
  2051. mutex_unlock(&routing_lock);
  2052. exit:
  2053. return acdb_id;
  2054. }
  2055. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2056. struct snd_ctl_elem_value *ucontrol)
  2057. {
  2058. ucontrol->value.integer.value[0] = fm_switch_enable;
  2059. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2060. ucontrol->value.integer.value[0]);
  2061. return 0;
  2062. }
  2063. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2064. struct snd_ctl_elem_value *ucontrol)
  2065. {
  2066. struct snd_soc_dapm_widget *widget =
  2067. snd_soc_dapm_kcontrol_widget(kcontrol);
  2068. struct snd_soc_dapm_update *update = NULL;
  2069. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2070. ucontrol->value.integer.value[0]);
  2071. if (ucontrol->value.integer.value[0])
  2072. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2073. update);
  2074. else
  2075. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2076. update);
  2077. fm_switch_enable = ucontrol->value.integer.value[0];
  2078. return 1;
  2079. }
  2080. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2081. struct snd_ctl_elem_value *ucontrol)
  2082. {
  2083. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2084. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2085. ucontrol->value.integer.value[0]);
  2086. return 0;
  2087. }
  2088. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2089. struct snd_ctl_elem_value *ucontrol)
  2090. {
  2091. struct snd_soc_dapm_widget *widget =
  2092. snd_soc_dapm_kcontrol_widget(kcontrol);
  2093. struct snd_soc_dapm_update *update = NULL;
  2094. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2095. ucontrol->value.integer.value[0]);
  2096. if (ucontrol->value.integer.value[0])
  2097. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2098. 1, update);
  2099. else
  2100. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2101. 0, update);
  2102. hfp_switch_enable = ucontrol->value.integer.value[0];
  2103. return 1;
  2104. }
  2105. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2106. struct snd_ctl_elem_value *ucontrol)
  2107. {
  2108. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2109. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2110. ucontrol->value.integer.value[0]);
  2111. return 0;
  2112. }
  2113. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2114. struct snd_ctl_elem_value *ucontrol)
  2115. {
  2116. struct snd_soc_dapm_widget *widget =
  2117. snd_soc_dapm_kcontrol_widget(kcontrol);
  2118. struct snd_soc_dapm_update *update = NULL;
  2119. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2120. ucontrol->value.integer.value[0]);
  2121. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2122. if (a2dp_switch_enable)
  2123. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2124. 1, update);
  2125. else
  2126. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2127. 0, update);
  2128. return 1;
  2129. }
  2130. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2131. struct snd_ctl_elem_value *ucontrol)
  2132. {
  2133. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2134. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2135. ucontrol->value.integer.value[0]);
  2136. return 0;
  2137. }
  2138. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2139. struct snd_ctl_elem_value *ucontrol)
  2140. {
  2141. struct snd_soc_dapm_widget *widget =
  2142. snd_soc_dapm_kcontrol_widget(kcontrol);
  2143. struct snd_soc_dapm_update *update = NULL;
  2144. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2145. ucontrol->value.integer.value[0]);
  2146. if (ucontrol->value.integer.value[0])
  2147. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2148. update);
  2149. else
  2150. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2151. update);
  2152. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2153. return 1;
  2154. }
  2155. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2156. struct snd_ctl_elem_value *ucontrol)
  2157. {
  2158. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2159. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2160. ucontrol->value.integer.value[0]);
  2161. return 0;
  2162. }
  2163. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2164. struct snd_ctl_elem_value *ucontrol)
  2165. {
  2166. struct snd_soc_dapm_widget *widget =
  2167. snd_soc_dapm_kcontrol_widget(kcontrol);
  2168. struct snd_soc_dapm_update *update = NULL;
  2169. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2170. ucontrol->value.integer.value[0]);
  2171. if (ucontrol->value.integer.value[0])
  2172. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2173. update);
  2174. else
  2175. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2176. update);
  2177. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2178. return 1;
  2179. }
  2180. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2181. struct snd_ctl_elem_value *ucontrol)
  2182. {
  2183. ucontrol->value.integer.value[0] = usb_switch_enable;
  2184. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2185. ucontrol->value.integer.value[0]);
  2186. return 0;
  2187. }
  2188. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2189. struct snd_ctl_elem_value *ucontrol)
  2190. {
  2191. struct snd_soc_dapm_widget *widget =
  2192. snd_soc_dapm_kcontrol_widget(kcontrol);
  2193. struct snd_soc_dapm_update *update = NULL;
  2194. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2195. ucontrol->value.integer.value[0]);
  2196. if (ucontrol->value.integer.value[0])
  2197. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2198. 1, update);
  2199. else
  2200. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2201. 0, update);
  2202. usb_switch_enable = ucontrol->value.integer.value[0];
  2203. return 1;
  2204. }
  2205. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2206. struct snd_ctl_elem_value *ucontrol)
  2207. {
  2208. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2209. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2210. ucontrol->value.integer.value[0]);
  2211. return 0;
  2212. }
  2213. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2214. struct snd_ctl_elem_value *ucontrol)
  2215. {
  2216. struct snd_soc_dapm_widget *widget =
  2217. snd_soc_dapm_kcontrol_widget(kcontrol);
  2218. struct snd_soc_dapm_update *update = NULL;
  2219. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2220. ucontrol->value.integer.value[0]);
  2221. if (ucontrol->value.integer.value[0])
  2222. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2223. update);
  2224. else
  2225. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2226. update);
  2227. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2228. return 1;
  2229. }
  2230. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2231. struct snd_ctl_elem_value *ucontrol)
  2232. {
  2233. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2234. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2235. ucontrol->value.integer.value[0]);
  2236. return 0;
  2237. }
  2238. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2239. struct snd_ctl_elem_value *ucontrol)
  2240. {
  2241. struct snd_soc_dapm_widget *widget =
  2242. snd_soc_dapm_kcontrol_widget(kcontrol);
  2243. struct snd_soc_dapm_update *update = NULL;
  2244. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2245. ucontrol->value.integer.value[0]);
  2246. if (ucontrol->value.integer.value[0])
  2247. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2248. update);
  2249. else
  2250. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2251. update);
  2252. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2253. return 1;
  2254. }
  2255. static int msm_routing_get_tert_mi2s_switch_mixer(
  2256. struct snd_kcontrol *kcontrol,
  2257. struct snd_ctl_elem_value *ucontrol)
  2258. {
  2259. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2260. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2261. ucontrol->value.integer.value[0]);
  2262. return 0;
  2263. }
  2264. static int msm_routing_put_tert_mi2s_switch_mixer(
  2265. struct snd_kcontrol *kcontrol,
  2266. struct snd_ctl_elem_value *ucontrol)
  2267. {
  2268. struct snd_soc_dapm_widget *widget =
  2269. snd_soc_dapm_kcontrol_widget(kcontrol);
  2270. struct snd_soc_dapm_update *update = NULL;
  2271. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2272. ucontrol->value.integer.value[0]);
  2273. if (ucontrol->value.integer.value[0])
  2274. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2275. update);
  2276. else
  2277. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2278. update);
  2279. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2280. return 1;
  2281. }
  2282. static int msm_routing_get_quat_mi2s_switch_mixer(
  2283. struct snd_kcontrol *kcontrol,
  2284. struct snd_ctl_elem_value *ucontrol)
  2285. {
  2286. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2287. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2288. ucontrol->value.integer.value[0]);
  2289. return 0;
  2290. }
  2291. static int msm_routing_put_quat_mi2s_switch_mixer(
  2292. struct snd_kcontrol *kcontrol,
  2293. struct snd_ctl_elem_value *ucontrol)
  2294. {
  2295. struct snd_soc_dapm_widget *widget =
  2296. snd_soc_dapm_kcontrol_widget(kcontrol);
  2297. struct snd_soc_dapm_update *update = NULL;
  2298. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2299. ucontrol->value.integer.value[0]);
  2300. if (ucontrol->value.integer.value[0])
  2301. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2302. update);
  2303. else
  2304. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2305. update);
  2306. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2307. return 1;
  2308. }
  2309. static int msm_routing_get_quin_mi2s_switch_mixer(
  2310. struct snd_kcontrol *kcontrol,
  2311. struct snd_ctl_elem_value *ucontrol)
  2312. {
  2313. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2314. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2315. ucontrol->value.integer.value[0]);
  2316. return 0;
  2317. }
  2318. static int msm_routing_put_quin_mi2s_switch_mixer(
  2319. struct snd_kcontrol *kcontrol,
  2320. struct snd_ctl_elem_value *ucontrol)
  2321. {
  2322. struct snd_soc_dapm_widget *widget =
  2323. snd_soc_dapm_kcontrol_widget(kcontrol);
  2324. struct snd_soc_dapm_update *update = NULL;
  2325. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2326. ucontrol->value.integer.value[0]);
  2327. if (ucontrol->value.integer.value[0])
  2328. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2329. update);
  2330. else
  2331. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2332. update);
  2333. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2334. return 1;
  2335. }
  2336. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2337. struct snd_ctl_elem_value *ucontrol)
  2338. {
  2339. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2340. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2341. ucontrol->value.integer.value[0]);
  2342. return 0;
  2343. }
  2344. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2345. struct snd_ctl_elem_value *ucontrol)
  2346. {
  2347. struct snd_soc_dapm_widget *widget =
  2348. snd_soc_dapm_kcontrol_widget(kcontrol);
  2349. struct snd_soc_dapm_update *update = NULL;
  2350. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2351. ucontrol->value.integer.value[0]);
  2352. if (ucontrol->value.integer.value[0])
  2353. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2354. update);
  2355. else
  2356. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2357. update);
  2358. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2359. return 1;
  2360. }
  2361. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2362. struct snd_ctl_elem_value *ucontrol)
  2363. {
  2364. ucontrol->value.integer.value[0] = lsm_port_index;
  2365. return 0;
  2366. }
  2367. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2368. struct snd_ctl_elem_value *ucontrol)
  2369. {
  2370. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2371. int mux = ucontrol->value.enumerated.item[0];
  2372. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2373. if (mux >= e->items) {
  2374. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2375. return -EINVAL;
  2376. }
  2377. pr_debug("%s: LSM enable %ld\n", __func__,
  2378. ucontrol->value.integer.value[0]);
  2379. switch (ucontrol->value.integer.value[0]) {
  2380. case 1:
  2381. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2382. break;
  2383. case 2:
  2384. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2385. break;
  2386. case 3:
  2387. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2388. break;
  2389. case 4:
  2390. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2391. break;
  2392. case 5:
  2393. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2394. break;
  2395. case 6:
  2396. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2397. break;
  2398. case 7:
  2399. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2400. break;
  2401. case 8:
  2402. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2403. break;
  2404. case 9:
  2405. lsm_port = ADM_LSM_PORT_ID;
  2406. break;
  2407. case 10:
  2408. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2409. break;
  2410. case 11:
  2411. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2412. break;
  2413. case 12:
  2414. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2415. break;
  2416. case 13:
  2417. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2418. break;
  2419. case 14:
  2420. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2421. break;
  2422. default:
  2423. pr_err("Default lsm port");
  2424. break;
  2425. }
  2426. set_lsm_port(lsm_port);
  2427. lsm_port_index = ucontrol->value.integer.value[0];
  2428. return 0;
  2429. }
  2430. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2431. struct snd_ctl_elem_value *ucontrol)
  2432. {
  2433. int i;
  2434. u16 port_id;
  2435. enum afe_mad_type mad_type;
  2436. pr_debug("%s: enter\n", __func__);
  2437. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2438. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2439. strlen(lsm_port_text[i])))
  2440. break;
  2441. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2442. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2443. return -EINVAL;
  2444. }
  2445. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2446. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2447. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2448. strlen(lsm_port_text[7])))
  2449. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2450. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2451. strlen(lsm_port_text[8])))
  2452. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2453. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2454. strlen(lsm_port_text[10])))
  2455. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2456. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2457. strlen(lsm_port_text[13])))
  2458. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2459. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2460. strlen(lsm_port_text[14])))
  2461. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2462. mad_type = afe_port_get_mad_type(port_id);
  2463. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2464. mad_type);
  2465. switch (mad_type) {
  2466. case MAD_HW_NONE:
  2467. ucontrol->value.integer.value[0] = MADNONE;
  2468. break;
  2469. case MAD_HW_AUDIO:
  2470. ucontrol->value.integer.value[0] = MADAUDIO;
  2471. break;
  2472. case MAD_HW_BEACON:
  2473. ucontrol->value.integer.value[0] = MADBEACON;
  2474. break;
  2475. case MAD_HW_ULTRASOUND:
  2476. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2477. break;
  2478. case MAD_SW_AUDIO:
  2479. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2480. break;
  2481. default:
  2482. WARN(1, "Unknown\n");
  2483. return -EINVAL;
  2484. }
  2485. return 0;
  2486. }
  2487. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2488. struct snd_ctl_elem_value *ucontrol)
  2489. {
  2490. int i;
  2491. u16 port_id;
  2492. enum afe_mad_type mad_type;
  2493. pr_debug("%s: enter\n", __func__);
  2494. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2495. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2496. strlen(lsm_port_text[i])))
  2497. break;
  2498. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2499. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2500. return -EINVAL;
  2501. }
  2502. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2503. switch (ucontrol->value.integer.value[0]) {
  2504. case MADNONE:
  2505. mad_type = MAD_HW_NONE;
  2506. break;
  2507. case MADAUDIO:
  2508. mad_type = MAD_HW_AUDIO;
  2509. break;
  2510. case MADBEACON:
  2511. mad_type = MAD_HW_BEACON;
  2512. break;
  2513. case MADULTRASOUND:
  2514. mad_type = MAD_HW_ULTRASOUND;
  2515. break;
  2516. case MADSWAUDIO:
  2517. mad_type = MAD_SW_AUDIO;
  2518. break;
  2519. default:
  2520. WARN(1, "Unknown\n");
  2521. return -EINVAL;
  2522. }
  2523. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2524. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2525. strlen(lsm_port_text[7])))
  2526. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2527. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2528. strlen(lsm_port_text[8])))
  2529. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2530. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2531. strlen(lsm_port_text[10])))
  2532. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2533. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2534. strlen(lsm_port_text[13])))
  2535. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2536. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2537. strlen(lsm_port_text[14])))
  2538. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2539. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2540. mad_type);
  2541. return afe_port_set_mad_type(port_id, mad_type);
  2542. }
  2543. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2544. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2545. adm_override_chs_text);
  2546. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2547. {
  2548. int backend_id;
  2549. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2550. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2551. } else {
  2552. pr_err("%s: unsupported backend id: %s",
  2553. __func__, kcontrol->id.name);
  2554. return -EINVAL;
  2555. }
  2556. return backend_id;
  2557. }
  2558. static int msm_routing_adm_channel_config_get(
  2559. struct snd_kcontrol *kcontrol,
  2560. struct snd_ctl_elem_value *ucontrol)
  2561. {
  2562. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2563. if (backend_id >= 0) {
  2564. mutex_lock(&routing_lock);
  2565. ucontrol->value.integer.value[0] =
  2566. msm_bedais[backend_id].adm_override_ch;
  2567. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2568. ucontrol->value.integer.value[0], backend_id);
  2569. mutex_unlock(&routing_lock);
  2570. }
  2571. return 0;
  2572. }
  2573. static int msm_routing_adm_channel_config_put(
  2574. struct snd_kcontrol *kcontrol,
  2575. struct snd_ctl_elem_value *ucontrol)
  2576. {
  2577. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2578. if (backend_id >= 0) {
  2579. mutex_lock(&routing_lock);
  2580. msm_bedais[backend_id].adm_override_ch =
  2581. ucontrol->value.integer.value[0];
  2582. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2583. __func__, backend_id,
  2584. msm_bedais[backend_id].adm_override_ch);
  2585. mutex_unlock(&routing_lock);
  2586. }
  2587. return 0;
  2588. }
  2589. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2590. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2591. msm_routing_adm_channel_config_get,
  2592. msm_routing_adm_channel_config_put),
  2593. };
  2594. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2595. struct snd_ctl_elem_value *ucontrol)
  2596. {
  2597. mutex_lock(&routing_lock);
  2598. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2599. mutex_unlock(&routing_lock);
  2600. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2601. ucontrol->value.integer.value[0]);
  2602. return 0;
  2603. };
  2604. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2605. struct snd_ctl_elem_value *ucontrol)
  2606. {
  2607. struct aanc_data aanc_info;
  2608. mutex_lock(&routing_lock);
  2609. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2610. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2611. ucontrol->value.integer.value[0]);
  2612. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2613. if (ucontrol->value.integer.value[0] == 0) {
  2614. aanc_info.aanc_active = false;
  2615. aanc_info.aanc_tx_port = 0;
  2616. aanc_info.aanc_rx_port = 0;
  2617. } else {
  2618. aanc_info.aanc_active = true;
  2619. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2620. aanc_info.aanc_tx_port =
  2621. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2622. }
  2623. afe_set_aanc_info(&aanc_info);
  2624. mutex_unlock(&routing_lock);
  2625. return 0;
  2626. };
  2627. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2628. struct snd_ctl_elem_value *ucontrol)
  2629. {
  2630. int idx = 0, shift = 0;
  2631. struct soc_mixer_control *mc =
  2632. (struct soc_mixer_control *)kcontrol->private_value;
  2633. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2634. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2635. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2636. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2637. return -EINVAL;
  2638. }
  2639. if (test_bit(shift,
  2640. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2641. ucontrol->value.integer.value[0] = 1;
  2642. else
  2643. ucontrol->value.integer.value[0] = 0;
  2644. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2645. ucontrol->value.integer.value[0]);
  2646. return 0;
  2647. }
  2648. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2649. struct snd_ctl_elem_value *ucontrol)
  2650. {
  2651. int idx = 0, shift = 0;
  2652. struct soc_mixer_control *mc =
  2653. (struct soc_mixer_control *)kcontrol->private_value;
  2654. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2655. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2656. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2657. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2658. return -EINVAL;
  2659. }
  2660. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2661. __func__, mc->shift, mc->rshift,
  2662. ucontrol->value.integer.value[0], idx, shift);
  2663. if (ucontrol->value.integer.value[0]) {
  2664. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2665. msm_bedais[mc->rshift].port_id);
  2666. set_bit(shift,
  2667. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2668. } else {
  2669. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2670. msm_bedais[mc->rshift].port_id);
  2671. clear_bit(shift,
  2672. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2673. }
  2674. return 1;
  2675. }
  2676. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2677. struct snd_ctl_elem_value *ucontrol)
  2678. {
  2679. u16 fe_id = 0;
  2680. fe_id = ((struct soc_mixer_control *)
  2681. kcontrol->private_value)->shift;
  2682. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2683. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2684. return -EINVAL;
  2685. }
  2686. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2687. return 0;
  2688. }
  2689. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2690. struct snd_ctl_elem_value *ucontrol)
  2691. {
  2692. u16 fe_id = 0;
  2693. fe_id = ((struct soc_mixer_control *)
  2694. kcontrol->private_value)->shift;
  2695. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2696. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2697. return -EINVAL;
  2698. }
  2699. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2700. return 1;
  2701. }
  2702. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2703. struct snd_ctl_elem_value *ucontrol)
  2704. {
  2705. u16 fe_id = 0;
  2706. fe_id = ((struct soc_multi_mixer_control *)
  2707. kcontrol->private_value)->shift;
  2708. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2709. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2710. return -EINVAL;
  2711. }
  2712. ucontrol->value.integer.value[0] =
  2713. channel_mixer[fe_id].output_channel;
  2714. return 0;
  2715. }
  2716. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2717. struct snd_ctl_elem_value *ucontrol)
  2718. {
  2719. u16 fe_id = 0;
  2720. fe_id = ((struct soc_multi_mixer_control *)
  2721. kcontrol->private_value)->shift;
  2722. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2723. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2724. return -EINVAL;
  2725. }
  2726. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2727. fe_id,
  2728. (unsigned int)(ucontrol->value.integer.value[0]));
  2729. channel_mixer[fe_id].output_channel =
  2730. (unsigned int)(ucontrol->value.integer.value[0]);
  2731. return 1;
  2732. }
  2733. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2734. /* If new backend is added, need update this array */
  2735. static const char *const be_name[] = {
  2736. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2737. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2738. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2739. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2740. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2741. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2742. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2743. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2744. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2745. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2746. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2747. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2748. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2749. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2750. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2751. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2752. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2753. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2754. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2755. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2756. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2757. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2758. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2759. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2760. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2761. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2762. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2763. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2764. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2765. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2766. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2767. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2768. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2769. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2770. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2771. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2772. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2773. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2774. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2775. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2776. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2777. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2778. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1",
  2779. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2780. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2781. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2782. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2783. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2784. };
  2785. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2786. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2787. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2788. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2789. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2790. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2791. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2792. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2793. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2794. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2795. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2796. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2797. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2798. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2799. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2800. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2801. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2802. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2803. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2804. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2805. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2806. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2807. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2808. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2809. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2810. unsigned int channels,
  2811. unsigned int items, const char *const names[])
  2812. {
  2813. if (uinfo->value.enumerated.item >= items)
  2814. uinfo->value.enumerated.item = items - 1;
  2815. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2816. sizeof(uinfo->value.enumerated.name),
  2817. "ALSA: too long item name '%s'\n",
  2818. names[uinfo->value.enumerated.item]);
  2819. strlcpy(uinfo->value.enumerated.name,
  2820. names[uinfo->value.enumerated.item],
  2821. sizeof(uinfo->value.enumerated.name));
  2822. return 0;
  2823. }
  2824. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2825. struct snd_ctl_elem_info *uinfo)
  2826. {
  2827. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2828. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2829. uinfo->count = 1;
  2830. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2831. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2832. return 0;
  2833. }
  2834. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2835. struct snd_ctl_elem_value *ucontrol)
  2836. {
  2837. u16 fe_id = 0;
  2838. fe_id = ((struct soc_enum *)
  2839. kcontrol->private_value)->shift_l;
  2840. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2841. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2842. return -EINVAL;
  2843. }
  2844. pr_debug("%s: FE %d %s\n", __func__,
  2845. fe_id,
  2846. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2847. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2848. return 0;
  2849. }
  2850. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2851. struct snd_ctl_elem_value *ucontrol)
  2852. {
  2853. u16 fe_id = 0;
  2854. fe_id = ((struct soc_enum *)
  2855. kcontrol->private_value)->shift_l;
  2856. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2857. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2858. return -EINVAL;
  2859. }
  2860. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2861. pr_debug("%s: %s FE %d\n", __func__,
  2862. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2863. fe_id);
  2864. return 0;
  2865. }
  2866. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2867. struct snd_ctl_elem_info *uinfo)
  2868. {
  2869. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2870. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2871. uinfo->count = 1;
  2872. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2873. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2874. return 0;
  2875. }
  2876. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2877. struct snd_ctl_elem_value *ucontrol)
  2878. {
  2879. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2880. u16 fe_id = 0, in_ch = 0;
  2881. fe_id = e->shift_l;
  2882. in_ch = e->shift_r;
  2883. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2884. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2885. return -EINVAL;
  2886. }
  2887. if (in_ch >= ADM_MAX_CHANNELS) {
  2888. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2889. return -EINVAL;
  2890. }
  2891. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2892. return 1;
  2893. }
  2894. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2895. struct snd_ctl_elem_value *ucontrol)
  2896. {
  2897. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2898. u16 fe_id = 0, in_ch = 0;
  2899. fe_id = e->shift_l;
  2900. in_ch = e->shift_r;
  2901. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2902. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2903. return -EINVAL;
  2904. }
  2905. if (in_ch >= ADM_MAX_CHANNELS) {
  2906. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2907. return -EINVAL;
  2908. }
  2909. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2910. return 1;
  2911. }
  2912. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2913. struct snd_ctl_elem_info *uinfo)
  2914. {
  2915. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2916. uinfo->count = ADM_MAX_CHANNELS;
  2917. uinfo->value.integer.min = 0;
  2918. uinfo->value.integer.max = WEIGHT_0_DB;
  2919. return 0;
  2920. }
  2921. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2922. struct snd_ctl_elem_value *ucontrol)
  2923. {
  2924. u16 fe_id = 0, out_ch = 0;
  2925. int i, weight;
  2926. fe_id = ((struct soc_multi_mixer_control *)
  2927. kcontrol->private_value)->shift;
  2928. out_ch = ((struct soc_multi_mixer_control *)
  2929. kcontrol->private_value)->rshift;
  2930. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2931. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2932. return -EINVAL;
  2933. }
  2934. if (out_ch >= ADM_MAX_CHANNELS) {
  2935. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2936. return -EINVAL;
  2937. }
  2938. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2939. __func__, fe_id,
  2940. ucontrol->value.integer.value[0],
  2941. ucontrol->value.integer.value[1],
  2942. ucontrol->value.integer.value[2],
  2943. ucontrol->value.integer.value[3],
  2944. ucontrol->value.integer.value[4],
  2945. ucontrol->value.integer.value[5],
  2946. ucontrol->value.integer.value[6],
  2947. ucontrol->value.integer.value[7]);
  2948. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2949. weight = ucontrol->value.integer.value[i];
  2950. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2951. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2952. __func__, fe_id, out_ch, i,
  2953. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2954. }
  2955. return 0;
  2956. }
  2957. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2958. struct snd_ctl_elem_value *ucontrol)
  2959. {
  2960. u16 fe_id = 0, out_ch = 0;
  2961. int i;
  2962. fe_id = ((struct soc_multi_mixer_control *)
  2963. kcontrol->private_value)->shift;
  2964. out_ch = ((struct soc_multi_mixer_control *)
  2965. kcontrol->private_value)->rshift;
  2966. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2967. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2968. return -EINVAL;
  2969. }
  2970. if (out_ch >= ADM_MAX_CHANNELS) {
  2971. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2972. return -EINVAL;
  2973. }
  2974. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2975. ucontrol->value.integer.value[i] =
  2976. channel_mixer[fe_id].channel_weight[out_ch][i];
  2977. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2978. __func__, fe_id,
  2979. ucontrol->value.integer.value[0],
  2980. ucontrol->value.integer.value[1],
  2981. ucontrol->value.integer.value[2],
  2982. ucontrol->value.integer.value[3],
  2983. ucontrol->value.integer.value[4],
  2984. ucontrol->value.integer.value[5],
  2985. ucontrol->value.integer.value[6],
  2986. ucontrol->value.integer.value[7]);
  2987. return 0;
  2988. }
  2989. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2990. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2991. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2992. msm_pcm_get_channel_rule_index,
  2993. msm_pcm_put_channel_rule_index),
  2994. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2995. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2996. msm_pcm_get_channel_rule_index,
  2997. msm_pcm_put_channel_rule_index),
  2998. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2999. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3000. msm_pcm_get_channel_rule_index,
  3001. msm_pcm_put_channel_rule_index),
  3002. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3003. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3004. msm_pcm_get_channel_rule_index,
  3005. msm_pcm_put_channel_rule_index),
  3006. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3007. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3008. msm_pcm_get_channel_rule_index,
  3009. msm_pcm_put_channel_rule_index),
  3010. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3011. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3012. msm_pcm_get_channel_rule_index,
  3013. msm_pcm_put_channel_rule_index),
  3014. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3015. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3016. msm_pcm_get_out_chs,
  3017. msm_pcm_put_out_chs),
  3018. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3019. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3020. msm_pcm_get_out_chs,
  3021. msm_pcm_put_out_chs),
  3022. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3023. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3024. msm_pcm_get_out_chs,
  3025. msm_pcm_put_out_chs),
  3026. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3027. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3028. msm_pcm_get_out_chs,
  3029. msm_pcm_put_out_chs),
  3030. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3031. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3032. msm_pcm_get_out_chs,
  3033. msm_pcm_put_out_chs),
  3034. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3035. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3036. msm_pcm_get_out_chs,
  3037. msm_pcm_put_out_chs),
  3038. {
  3039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3041. .name = "MultiMedia1 Channel Mixer",
  3042. .info = msm_pcm_channel_mixer_info,
  3043. .get = msm_pcm_channel_mixer_get,
  3044. .put = msm_pcm_channel_mixer_put,
  3045. .private_value = (unsigned long)&(mm1_channel_mux)
  3046. },
  3047. {
  3048. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3049. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3050. .name = "MultiMedia2 Channel Mixer",
  3051. .info = msm_pcm_channel_mixer_info,
  3052. .get = msm_pcm_channel_mixer_get,
  3053. .put = msm_pcm_channel_mixer_put,
  3054. .private_value = (unsigned long)&(mm2_channel_mux)
  3055. },
  3056. {
  3057. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3058. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3059. .name = "MultiMedia3 Channel Mixer",
  3060. .info = msm_pcm_channel_mixer_info,
  3061. .get = msm_pcm_channel_mixer_get,
  3062. .put = msm_pcm_channel_mixer_put,
  3063. .private_value = (unsigned long)&(mm3_channel_mux)
  3064. },
  3065. {
  3066. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3067. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3068. .name = "MultiMedia4 Channel Mixer",
  3069. .info = msm_pcm_channel_mixer_info,
  3070. .get = msm_pcm_channel_mixer_get,
  3071. .put = msm_pcm_channel_mixer_put,
  3072. .private_value = (unsigned long)&(mm4_channel_mux)
  3073. },
  3074. {
  3075. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3076. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3077. .name = "MultiMedia1 Output Channel1",
  3078. .info = msm_pcm_channel_weight_info,
  3079. .get = msm_pcm_channel_weight_get,
  3080. .put = msm_pcm_channel_weight_put,
  3081. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3082. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3083. },
  3084. {
  3085. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3086. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3087. .name = "MultiMedia1 Output Channel2",
  3088. .info = msm_pcm_channel_weight_info,
  3089. .get = msm_pcm_channel_weight_get,
  3090. .put = msm_pcm_channel_weight_put,
  3091. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3092. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3093. },
  3094. {
  3095. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3096. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3097. .name = "MultiMedia1 Output Channel3",
  3098. .info = msm_pcm_channel_weight_info,
  3099. .get = msm_pcm_channel_weight_get,
  3100. .put = msm_pcm_channel_weight_put,
  3101. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3102. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3103. },
  3104. {
  3105. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3106. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3107. .name = "MultiMedia1 Output Channel4",
  3108. .info = msm_pcm_channel_weight_info,
  3109. .get = msm_pcm_channel_weight_get,
  3110. .put = msm_pcm_channel_weight_put,
  3111. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3112. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3113. },
  3114. {
  3115. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3116. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3117. .name = "MultiMedia1 Output Channel5",
  3118. .info = msm_pcm_channel_weight_info,
  3119. .get = msm_pcm_channel_weight_get,
  3120. .put = msm_pcm_channel_weight_put,
  3121. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3122. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3123. },
  3124. {
  3125. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3126. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3127. .name = "MultiMedia1 Output Channel6",
  3128. .info = msm_pcm_channel_weight_info,
  3129. .get = msm_pcm_channel_weight_get,
  3130. .put = msm_pcm_channel_weight_put,
  3131. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3132. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3133. },
  3134. {
  3135. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3136. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3137. .name = "MultiMedia1 Output Channel7",
  3138. .info = msm_pcm_channel_weight_info,
  3139. .get = msm_pcm_channel_weight_get,
  3140. .put = msm_pcm_channel_weight_put,
  3141. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3142. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3143. },
  3144. {
  3145. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3146. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3147. .name = "MultiMedia1 Output Channel8",
  3148. .info = msm_pcm_channel_weight_info,
  3149. .get = msm_pcm_channel_weight_get,
  3150. .put = msm_pcm_channel_weight_put,
  3151. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3152. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3153. },
  3154. {
  3155. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3156. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3157. .name = "MultiMedia2 Output Channel1",
  3158. .info = msm_pcm_channel_weight_info,
  3159. .get = msm_pcm_channel_weight_get,
  3160. .put = msm_pcm_channel_weight_put,
  3161. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3162. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3163. },
  3164. {
  3165. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3166. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3167. .name = "MultiMedia2 Output Channel2",
  3168. .info = msm_pcm_channel_weight_info,
  3169. .get = msm_pcm_channel_weight_get,
  3170. .put = msm_pcm_channel_weight_put,
  3171. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3172. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3173. },
  3174. {
  3175. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3176. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3177. .name = "MultiMedia2 Output Channel3",
  3178. .info = msm_pcm_channel_weight_info,
  3179. .get = msm_pcm_channel_weight_get,
  3180. .put = msm_pcm_channel_weight_put,
  3181. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3182. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3183. },
  3184. {
  3185. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3186. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3187. .name = "MultiMedia3 Output Channel1",
  3188. .info = msm_pcm_channel_weight_info,
  3189. .get = msm_pcm_channel_weight_get,
  3190. .put = msm_pcm_channel_weight_put,
  3191. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3192. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3193. },
  3194. {
  3195. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3196. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3197. .name = "MultiMedia3 Output Channel2",
  3198. .info = msm_pcm_channel_weight_info,
  3199. .get = msm_pcm_channel_weight_get,
  3200. .put = msm_pcm_channel_weight_put,
  3201. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3202. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3203. },
  3204. {
  3205. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3206. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3207. .name = "MultiMedia1 Channel1",
  3208. .info = msm_pcm_channel_input_be_info,
  3209. .get = msm_pcm_channel_input_be_get,
  3210. .put = msm_pcm_channel_input_be_put,
  3211. .private_value = (unsigned long)&(mm1_ch1_enum)
  3212. },
  3213. {
  3214. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3215. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3216. .name = "MultiMedia1 Channel2",
  3217. .info = msm_pcm_channel_input_be_info,
  3218. .get = msm_pcm_channel_input_be_get,
  3219. .put = msm_pcm_channel_input_be_put,
  3220. .private_value = (unsigned long)&(mm1_ch2_enum)
  3221. },
  3222. {
  3223. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3224. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3225. .name = "MultiMedia1 Channel3",
  3226. .info = msm_pcm_channel_input_be_info,
  3227. .get = msm_pcm_channel_input_be_get,
  3228. .put = msm_pcm_channel_input_be_put,
  3229. .private_value = (unsigned long)&(mm1_ch3_enum)
  3230. },
  3231. {
  3232. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3233. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3234. .name = "MultiMedia1 Channel4",
  3235. .info = msm_pcm_channel_input_be_info,
  3236. .get = msm_pcm_channel_input_be_get,
  3237. .put = msm_pcm_channel_input_be_put,
  3238. .private_value = (unsigned long)&(mm1_ch4_enum)
  3239. },
  3240. {
  3241. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3242. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3243. .name = "MultiMedia1 Channel5",
  3244. .info = msm_pcm_channel_input_be_info,
  3245. .get = msm_pcm_channel_input_be_get,
  3246. .put = msm_pcm_channel_input_be_put,
  3247. .private_value = (unsigned long)&(mm1_ch5_enum)
  3248. },
  3249. {
  3250. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3251. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3252. .name = "MultiMedia1 Channel6",
  3253. .info = msm_pcm_channel_input_be_info,
  3254. .get = msm_pcm_channel_input_be_get,
  3255. .put = msm_pcm_channel_input_be_put,
  3256. .private_value = (unsigned long)&(mm1_ch6_enum)
  3257. },
  3258. {
  3259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3261. .name = "MultiMedia1 Channel7",
  3262. .info = msm_pcm_channel_input_be_info,
  3263. .get = msm_pcm_channel_input_be_get,
  3264. .put = msm_pcm_channel_input_be_put,
  3265. .private_value = (unsigned long)&(mm1_ch7_enum)
  3266. },
  3267. {
  3268. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3269. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3270. .name = "MultiMedia1 Channel8",
  3271. .info = msm_pcm_channel_input_be_info,
  3272. .get = msm_pcm_channel_input_be_get,
  3273. .put = msm_pcm_channel_input_be_put,
  3274. .private_value = (unsigned long)&(mm1_ch8_enum)
  3275. },
  3276. };
  3277. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3278. struct snd_ctl_elem_value *ucontrol)
  3279. {
  3280. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3281. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3282. ucontrol->value.integer.value[0]);
  3283. return 0;
  3284. }
  3285. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3286. struct snd_ctl_elem_value *ucontrol)
  3287. {
  3288. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3289. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3290. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3291. return 0;
  3292. }
  3293. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3294. "Four", "Five", "Six", "Seven", "Eight"};
  3295. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3296. struct snd_ctl_elem_value *ucontrol)
  3297. {
  3298. switch (msm_ec_ref_bit_format) {
  3299. case SNDRV_PCM_FORMAT_S24_LE:
  3300. ucontrol->value.integer.value[0] = 2;
  3301. break;
  3302. case SNDRV_PCM_FORMAT_S16_LE:
  3303. ucontrol->value.integer.value[0] = 1;
  3304. break;
  3305. default:
  3306. ucontrol->value.integer.value[0] = 0;
  3307. break;
  3308. }
  3309. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3310. __func__, ucontrol->value.integer.value[0]);
  3311. return 0;
  3312. }
  3313. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3314. struct snd_ctl_elem_value *ucontrol)
  3315. {
  3316. u16 bit_width = 0;
  3317. switch (ucontrol->value.integer.value[0]) {
  3318. case 2:
  3319. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3320. break;
  3321. case 1:
  3322. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3323. break;
  3324. default:
  3325. msm_ec_ref_bit_format = 0;
  3326. break;
  3327. }
  3328. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3329. bit_width = 16;
  3330. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3331. bit_width = 24;
  3332. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3333. __func__, msm_ec_ref_bit_format);
  3334. adm_ec_ref_rx_bit_width(bit_width);
  3335. return 0;
  3336. }
  3337. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3338. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3339. struct snd_ctl_elem_value *ucontrol)
  3340. {
  3341. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3342. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3343. __func__, ucontrol->value.integer.value[0]);
  3344. return 0;
  3345. }
  3346. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3347. struct snd_ctl_elem_value *ucontrol)
  3348. {
  3349. switch (ucontrol->value.integer.value[0]) {
  3350. case 0:
  3351. msm_ec_ref_sampling_rate = 0;
  3352. break;
  3353. case 1:
  3354. msm_ec_ref_sampling_rate = 8000;
  3355. break;
  3356. case 2:
  3357. msm_ec_ref_sampling_rate = 16000;
  3358. break;
  3359. case 3:
  3360. msm_ec_ref_sampling_rate = 32000;
  3361. break;
  3362. case 4:
  3363. msm_ec_ref_sampling_rate = 44100;
  3364. break;
  3365. case 5:
  3366. msm_ec_ref_sampling_rate = 48000;
  3367. break;
  3368. case 6:
  3369. msm_ec_ref_sampling_rate = 96000;
  3370. break;
  3371. case 7:
  3372. msm_ec_ref_sampling_rate = 192000;
  3373. break;
  3374. case 8:
  3375. msm_ec_ref_sampling_rate = 384000;
  3376. break;
  3377. default:
  3378. msm_ec_ref_sampling_rate = 48000;
  3379. break;
  3380. }
  3381. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3382. __func__, msm_ec_ref_sampling_rate);
  3383. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3384. return 0;
  3385. }
  3386. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3387. "32000", "44100", "48000", "96000", "192000", "384000"};
  3388. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3389. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3390. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3391. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3392. };
  3393. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3394. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3395. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3396. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3397. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3398. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3399. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3400. };
  3401. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3402. struct snd_ctl_elem_value *ucontrol)
  3403. {
  3404. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3405. mutex_lock(&routing_lock);
  3406. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3407. mutex_unlock(&routing_lock);
  3408. return 0;
  3409. }
  3410. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3411. struct snd_ctl_elem_value *ucontrol)
  3412. {
  3413. int ec_ref_port_id;
  3414. struct snd_soc_dapm_widget *widget =
  3415. snd_soc_dapm_kcontrol_widget(kcontrol);
  3416. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3417. struct snd_soc_dapm_update *update = NULL;
  3418. mutex_lock(&routing_lock);
  3419. switch (ucontrol->value.integer.value[0]) {
  3420. case 0:
  3421. msm_route_ec_ref_rx = 0;
  3422. ec_ref_port_id = AFE_PORT_INVALID;
  3423. break;
  3424. case 1:
  3425. msm_route_ec_ref_rx = 1;
  3426. ec_ref_port_id = SLIMBUS_0_RX;
  3427. break;
  3428. case 2:
  3429. msm_route_ec_ref_rx = 2;
  3430. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3431. break;
  3432. case 3:
  3433. msm_route_ec_ref_rx = 3;
  3434. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3435. break;
  3436. case 4:
  3437. msm_route_ec_ref_rx = 4;
  3438. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3439. break;
  3440. case 5:
  3441. msm_route_ec_ref_rx = 5;
  3442. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3443. break;
  3444. case 6:
  3445. msm_route_ec_ref_rx = 6;
  3446. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3447. break;
  3448. case 7:
  3449. msm_route_ec_ref_rx = 7;
  3450. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3451. break;
  3452. case 9:
  3453. msm_route_ec_ref_rx = 9;
  3454. ec_ref_port_id = SLIMBUS_5_RX;
  3455. break;
  3456. case 10:
  3457. msm_route_ec_ref_rx = 10;
  3458. ec_ref_port_id = SLIMBUS_1_TX;
  3459. break;
  3460. case 11:
  3461. msm_route_ec_ref_rx = 11;
  3462. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3463. break;
  3464. case 12:
  3465. msm_route_ec_ref_rx = 12;
  3466. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3467. break;
  3468. case 13:
  3469. msm_route_ec_ref_rx = 13;
  3470. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3471. break;
  3472. case 14:
  3473. msm_route_ec_ref_rx = 14;
  3474. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3475. break;
  3476. case 15:
  3477. msm_route_ec_ref_rx = 15;
  3478. ec_ref_port_id = SLIMBUS_6_RX;
  3479. break;
  3480. case 16:
  3481. msm_route_ec_ref_rx = 16;
  3482. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3483. break;
  3484. case 17:
  3485. msm_route_ec_ref_rx = 17;
  3486. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3487. break;
  3488. case 18:
  3489. msm_route_ec_ref_rx = 18;
  3490. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3491. break;
  3492. case 19:
  3493. msm_route_ec_ref_rx = 19;
  3494. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3495. break;
  3496. case 20:
  3497. msm_route_ec_ref_rx = 20;
  3498. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3499. break;
  3500. case 21:
  3501. msm_route_ec_ref_rx = 21;
  3502. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3503. break;
  3504. case 22:
  3505. msm_route_ec_ref_rx = 22;
  3506. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3507. break;
  3508. case 23:
  3509. msm_route_ec_ref_rx = 23;
  3510. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3511. break;
  3512. case 24:
  3513. msm_route_ec_ref_rx = 24;
  3514. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3515. break;
  3516. case 25:
  3517. msm_route_ec_ref_rx = 25;
  3518. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3519. break;
  3520. case 26:
  3521. msm_route_ec_ref_rx = 26;
  3522. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3523. break;
  3524. case 27:
  3525. msm_route_ec_ref_rx = 27;
  3526. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3527. break;
  3528. case 28:
  3529. msm_route_ec_ref_rx = 28;
  3530. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3531. break;
  3532. case 29:
  3533. msm_route_ec_ref_rx = 29;
  3534. ec_ref_port_id = SLIMBUS_7_RX;
  3535. break;
  3536. case 30:
  3537. msm_route_ec_ref_rx = 30;
  3538. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3539. break;
  3540. case 31:
  3541. msm_route_ec_ref_rx = 31;
  3542. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3543. break;
  3544. case 32:
  3545. msm_route_ec_ref_rx = 32;
  3546. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3547. break;
  3548. case 33:
  3549. msm_route_ec_ref_rx = 33;
  3550. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3551. break;
  3552. case 34:
  3553. msm_route_ec_ref_rx = 34;
  3554. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3555. break;
  3556. default:
  3557. msm_route_ec_ref_rx = 0; /* NONE */
  3558. pr_err("%s EC ref rx %ld not valid\n",
  3559. __func__, ucontrol->value.integer.value[0]);
  3560. ec_ref_port_id = AFE_PORT_INVALID;
  3561. break;
  3562. }
  3563. adm_ec_ref_rx_id(ec_ref_port_id);
  3564. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3565. __func__, msm_route_ec_ref_rx);
  3566. mutex_unlock(&routing_lock);
  3567. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3568. msm_route_ec_ref_rx, e, update);
  3569. return 0;
  3570. }
  3571. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3572. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3573. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3574. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3575. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3576. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3577. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3578. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3579. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3580. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3581. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0",
  3582. };
  3583. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3584. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3585. };
  3586. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3587. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3588. msm_route_ec_ref_rx_enum[0],
  3589. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3590. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3591. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3592. msm_route_ec_ref_rx_enum[0],
  3593. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3594. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3595. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3596. msm_route_ec_ref_rx_enum[0],
  3597. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3598. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3599. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3600. msm_route_ec_ref_rx_enum[0],
  3601. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3602. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3603. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3604. msm_route_ec_ref_rx_enum[0],
  3605. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3606. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3607. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3608. msm_route_ec_ref_rx_enum[0],
  3609. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3610. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3611. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3612. msm_route_ec_ref_rx_enum[0],
  3613. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3614. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3615. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3616. msm_route_ec_ref_rx_enum[0],
  3617. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3618. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3619. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3620. msm_route_ec_ref_rx_enum[0],
  3621. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3622. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3623. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3624. msm_route_ec_ref_rx_enum[0],
  3625. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3626. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3627. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3628. msm_route_ec_ref_rx_enum[0],
  3629. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3630. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3631. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3632. msm_route_ec_ref_rx_enum[0],
  3633. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3634. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3635. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3636. msm_route_ec_ref_rx_enum[0],
  3637. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3638. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3639. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3640. msm_route_ec_ref_rx_enum[0],
  3641. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3642. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3643. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3644. msm_route_ec_ref_rx_enum[0],
  3645. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3646. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3647. struct snd_ctl_elem_value *ucontrol)
  3648. {
  3649. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3650. mutex_lock(&routing_lock);
  3651. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3652. mutex_unlock(&routing_lock);
  3653. return 0;
  3654. }
  3655. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3656. struct snd_ctl_elem_value *ucontrol)
  3657. {
  3658. struct snd_soc_dapm_widget *widget =
  3659. snd_soc_dapm_kcontrol_widget(kcontrol);
  3660. int mux = ucontrol->value.enumerated.item[0];
  3661. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3662. int ret = 1;
  3663. bool state = true;
  3664. uint16_t ext_ec_ref_port_id;
  3665. struct snd_soc_dapm_update *update = NULL;
  3666. if (mux >= e->items) {
  3667. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3668. return -EINVAL;
  3669. }
  3670. mutex_lock(&routing_lock);
  3671. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3672. switch (msm_route_ext_ec_ref) {
  3673. case EXT_EC_REF_PRI_MI2S_TX:
  3674. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3675. break;
  3676. case EXT_EC_REF_SEC_MI2S_TX:
  3677. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3678. break;
  3679. case EXT_EC_REF_TERT_MI2S_TX:
  3680. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3681. break;
  3682. case EXT_EC_REF_QUAT_MI2S_TX:
  3683. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3684. break;
  3685. case EXT_EC_REF_QUIN_MI2S_TX:
  3686. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3687. break;
  3688. case EXT_EC_REF_SLIM_1_TX:
  3689. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3690. break;
  3691. case EXT_EC_REF_SEC_TDM_TX:
  3692. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3693. break;
  3694. case EXT_EC_REF_NONE:
  3695. default:
  3696. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3697. state = false;
  3698. break;
  3699. }
  3700. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3701. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3702. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3703. mutex_unlock(&routing_lock);
  3704. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3705. update);
  3706. } else {
  3707. ret = -EINVAL;
  3708. mutex_unlock(&routing_lock);
  3709. }
  3710. return ret;
  3711. }
  3712. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3713. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3714. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3715. "SLIM_1_TX", "SEC_TDM_TX"};
  3716. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3717. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3718. };
  3719. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3720. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3721. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3722. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3724. MSM_BACKEND_DAI_PRI_I2S_RX,
  3725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3726. msm_routing_put_audio_mixer),
  3727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3728. MSM_BACKEND_DAI_PRI_I2S_RX,
  3729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3730. msm_routing_put_audio_mixer),
  3731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3732. MSM_BACKEND_DAI_PRI_I2S_RX,
  3733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3734. msm_routing_put_audio_mixer),
  3735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3736. MSM_BACKEND_DAI_PRI_I2S_RX,
  3737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3738. msm_routing_put_audio_mixer),
  3739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3740. MSM_BACKEND_DAI_PRI_I2S_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3744. MSM_BACKEND_DAI_PRI_I2S_RX,
  3745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3746. msm_routing_put_audio_mixer),
  3747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3748. MSM_BACKEND_DAI_PRI_I2S_RX,
  3749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3750. msm_routing_put_audio_mixer),
  3751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3752. MSM_BACKEND_DAI_PRI_I2S_RX,
  3753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3754. msm_routing_put_audio_mixer),
  3755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3756. MSM_BACKEND_DAI_PRI_I2S_RX,
  3757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3758. msm_routing_put_audio_mixer),
  3759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3760. MSM_BACKEND_DAI_PRI_I2S_RX,
  3761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3762. msm_routing_put_audio_mixer),
  3763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3764. MSM_BACKEND_DAI_PRI_I2S_RX,
  3765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3766. msm_routing_put_audio_mixer),
  3767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3768. MSM_BACKEND_DAI_PRI_I2S_RX,
  3769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3770. msm_routing_put_audio_mixer),
  3771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3772. MSM_BACKEND_DAI_PRI_I2S_RX,
  3773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3774. msm_routing_put_audio_mixer),
  3775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3776. MSM_BACKEND_DAI_PRI_I2S_RX,
  3777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3778. msm_routing_put_audio_mixer),
  3779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3780. MSM_BACKEND_DAI_PRI_I2S_RX,
  3781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3782. msm_routing_put_audio_mixer),
  3783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3784. MSM_BACKEND_DAI_PRI_I2S_RX,
  3785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3786. msm_routing_put_audio_mixer),
  3787. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3788. MSM_BACKEND_DAI_PRI_I2S_RX,
  3789. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3790. msm_routing_put_audio_mixer),
  3791. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3792. MSM_BACKEND_DAI_PRI_I2S_RX,
  3793. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3794. msm_routing_put_audio_mixer),
  3795. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3796. MSM_BACKEND_DAI_PRI_I2S_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3800. MSM_BACKEND_DAI_PRI_I2S_RX,
  3801. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3802. msm_routing_put_audio_mixer),
  3803. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3804. MSM_BACKEND_DAI_PRI_I2S_RX,
  3805. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3806. msm_routing_put_audio_mixer),
  3807. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3808. MSM_BACKEND_DAI_PRI_I2S_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. };
  3812. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3813. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3814. MSM_BACKEND_DAI_SEC_I2S_RX,
  3815. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3816. msm_routing_put_audio_mixer),
  3817. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3818. MSM_BACKEND_DAI_SEC_I2S_RX,
  3819. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3820. msm_routing_put_audio_mixer),
  3821. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3822. MSM_BACKEND_DAI_SEC_I2S_RX,
  3823. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3824. msm_routing_put_audio_mixer),
  3825. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3826. MSM_BACKEND_DAI_SEC_I2S_RX,
  3827. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3828. msm_routing_put_audio_mixer),
  3829. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3830. MSM_BACKEND_DAI_SEC_I2S_RX,
  3831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3832. msm_routing_put_audio_mixer),
  3833. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3834. MSM_BACKEND_DAI_SEC_I2S_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3838. MSM_BACKEND_DAI_SEC_I2S_RX,
  3839. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3840. msm_routing_put_audio_mixer),
  3841. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3842. MSM_BACKEND_DAI_SEC_I2S_RX,
  3843. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3844. msm_routing_put_audio_mixer),
  3845. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3846. MSM_BACKEND_DAI_SEC_I2S_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3850. MSM_BACKEND_DAI_SEC_I2S_RX,
  3851. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3852. msm_routing_put_audio_mixer),
  3853. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3854. MSM_BACKEND_DAI_SEC_I2S_RX,
  3855. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3856. msm_routing_put_audio_mixer),
  3857. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3858. MSM_BACKEND_DAI_SEC_I2S_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3862. MSM_BACKEND_DAI_SEC_I2S_RX,
  3863. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3864. msm_routing_put_audio_mixer),
  3865. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3866. MSM_BACKEND_DAI_SEC_I2S_RX,
  3867. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3868. msm_routing_put_audio_mixer),
  3869. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3870. MSM_BACKEND_DAI_SEC_I2S_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3874. MSM_BACKEND_DAI_SEC_I2S_RX,
  3875. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3876. msm_routing_put_audio_mixer),
  3877. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3878. MSM_BACKEND_DAI_SEC_I2S_RX,
  3879. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3880. msm_routing_put_audio_mixer),
  3881. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3882. MSM_BACKEND_DAI_SEC_I2S_RX,
  3883. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3884. msm_routing_put_audio_mixer),
  3885. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3886. MSM_BACKEND_DAI_SEC_I2S_RX,
  3887. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3888. msm_routing_put_audio_mixer),
  3889. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3890. MSM_BACKEND_DAI_SEC_I2S_RX,
  3891. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3892. msm_routing_put_audio_mixer),
  3893. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3894. MSM_BACKEND_DAI_SEC_I2S_RX,
  3895. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3896. msm_routing_put_audio_mixer),
  3897. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3898. MSM_BACKEND_DAI_SEC_I2S_RX,
  3899. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3900. msm_routing_put_audio_mixer),
  3901. };
  3902. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  3903. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3904. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3905. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3906. msm_routing_put_audio_mixer),
  3907. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3908. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3909. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3910. msm_routing_put_audio_mixer),
  3911. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3912. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3913. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3914. msm_routing_put_audio_mixer),
  3915. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3916. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3917. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3918. msm_routing_put_audio_mixer),
  3919. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3920. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3924. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3925. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3926. msm_routing_put_audio_mixer),
  3927. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3928. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3929. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3930. msm_routing_put_audio_mixer),
  3931. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3932. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3936. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3937. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3938. msm_routing_put_audio_mixer),
  3939. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3940. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3941. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3942. msm_routing_put_audio_mixer),
  3943. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3944. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3948. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3949. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3950. msm_routing_put_audio_mixer),
  3951. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3952. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3953. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3954. msm_routing_put_audio_mixer),
  3955. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3956. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3957. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3958. msm_routing_put_audio_mixer),
  3959. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3960. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3961. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3962. msm_routing_put_audio_mixer),
  3963. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3964. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3965. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3966. msm_routing_put_audio_mixer),
  3967. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3968. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3969. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3970. msm_routing_put_audio_mixer),
  3971. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3972. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3973. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3974. msm_routing_put_audio_mixer),
  3975. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3976. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3977. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3978. msm_routing_put_audio_mixer),
  3979. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3980. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3981. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3982. msm_routing_put_audio_mixer),
  3983. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3984. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3985. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3986. msm_routing_put_audio_mixer),
  3987. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3988. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3989. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3990. msm_routing_put_audio_mixer),
  3991. };
  3992. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  3993. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3994. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3996. msm_routing_put_audio_mixer),
  3997. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3998. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4000. msm_routing_put_audio_mixer),
  4001. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4002. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4003. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4004. msm_routing_put_audio_mixer),
  4005. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4006. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4008. msm_routing_put_audio_mixer),
  4009. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4010. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4012. msm_routing_put_audio_mixer),
  4013. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4014. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4016. msm_routing_put_audio_mixer),
  4017. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4018. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4019. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4020. msm_routing_put_audio_mixer),
  4021. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4022. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4024. msm_routing_put_audio_mixer),
  4025. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4026. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4027. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4028. msm_routing_put_audio_mixer),
  4029. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4030. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4032. msm_routing_put_audio_mixer),
  4033. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4034. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4035. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4036. msm_routing_put_audio_mixer),
  4037. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4038. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4039. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4040. msm_routing_put_audio_mixer),
  4041. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4042. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4043. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4044. msm_routing_put_audio_mixer),
  4045. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4046. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4047. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4048. msm_routing_put_audio_mixer),
  4049. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4050. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4051. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4052. msm_routing_put_audio_mixer),
  4053. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4054. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4056. msm_routing_put_audio_mixer),
  4057. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4058. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4059. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4060. msm_routing_put_audio_mixer),
  4061. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4062. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4063. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4064. msm_routing_put_audio_mixer),
  4065. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4066. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4067. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4068. msm_routing_put_audio_mixer),
  4069. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4070. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4071. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4072. msm_routing_put_audio_mixer),
  4073. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4074. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4075. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4076. msm_routing_put_audio_mixer),
  4077. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4078. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. };
  4082. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4083. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4084. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4085. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4086. msm_routing_put_audio_mixer),
  4087. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4088. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4089. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4090. msm_routing_put_audio_mixer),
  4091. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4092. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4093. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4094. msm_routing_put_audio_mixer),
  4095. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4096. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4100. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4101. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4102. msm_routing_put_audio_mixer),
  4103. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4104. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4105. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4106. msm_routing_put_audio_mixer),
  4107. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4108. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4109. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4110. msm_routing_put_audio_mixer),
  4111. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4112. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4113. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4114. msm_routing_put_audio_mixer),
  4115. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4116. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4117. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4118. msm_routing_put_audio_mixer),
  4119. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4120. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4124. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4125. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4126. msm_routing_put_audio_mixer),
  4127. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4128. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4129. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4130. msm_routing_put_audio_mixer),
  4131. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4132. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4133. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4134. msm_routing_put_audio_mixer),
  4135. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4136. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4137. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4138. msm_routing_put_audio_mixer),
  4139. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4140. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4141. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4142. msm_routing_put_audio_mixer),
  4143. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4144. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4145. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4146. msm_routing_put_audio_mixer),
  4147. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4148. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4149. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4150. msm_routing_put_audio_mixer),
  4151. };
  4152. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4153. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4154. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4156. msm_routing_put_audio_mixer),
  4157. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4158. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4160. msm_routing_put_audio_mixer),
  4161. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4162. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4163. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4164. msm_routing_put_audio_mixer),
  4165. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4166. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4168. msm_routing_put_audio_mixer),
  4169. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4170. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4174. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4176. msm_routing_put_audio_mixer),
  4177. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4178. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4182. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4184. msm_routing_put_audio_mixer),
  4185. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4186. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4188. msm_routing_put_audio_mixer),
  4189. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4190. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4191. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4192. msm_routing_put_audio_mixer),
  4193. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4194. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4195. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4196. msm_routing_put_audio_mixer),
  4197. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4198. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4199. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4200. msm_routing_put_audio_mixer),
  4201. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4202. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4206. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4207. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4208. msm_routing_put_audio_mixer),
  4209. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4210. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4211. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4212. msm_routing_put_audio_mixer),
  4213. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4214. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4216. msm_routing_put_audio_mixer),
  4217. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4218. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4219. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4220. msm_routing_put_audio_mixer),
  4221. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4222. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4223. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4224. msm_routing_put_audio_mixer),
  4225. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4226. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4227. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4228. msm_routing_put_audio_mixer),
  4229. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4230. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4231. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4232. msm_routing_put_audio_mixer),
  4233. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4234. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4235. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4236. msm_routing_put_audio_mixer),
  4237. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4238. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4239. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4240. msm_routing_put_audio_mixer),
  4241. };
  4242. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4243. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4244. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4245. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4246. msm_routing_put_audio_mixer),
  4247. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4248. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4249. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4250. msm_routing_put_audio_mixer),
  4251. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4252. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4253. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4254. msm_routing_put_audio_mixer),
  4255. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4256. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4257. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4258. msm_routing_put_audio_mixer),
  4259. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4260. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4261. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4262. msm_routing_put_audio_mixer),
  4263. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4264. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4268. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4269. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4270. msm_routing_put_audio_mixer),
  4271. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4272. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4273. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4274. msm_routing_put_audio_mixer),
  4275. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4276. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4277. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4278. msm_routing_put_audio_mixer),
  4279. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4280. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4281. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4282. msm_routing_put_audio_mixer),
  4283. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4284. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4285. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4286. msm_routing_put_audio_mixer),
  4287. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4288. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4289. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4290. msm_routing_put_audio_mixer),
  4291. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4292. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4293. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4294. msm_routing_put_audio_mixer),
  4295. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4296. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4297. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4298. msm_routing_put_audio_mixer),
  4299. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4300. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4301. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4302. msm_routing_put_audio_mixer),
  4303. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4304. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4305. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4306. msm_routing_put_audio_mixer),
  4307. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4308. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4309. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4310. msm_routing_put_audio_mixer),
  4311. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4312. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4313. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4314. msm_routing_put_audio_mixer),
  4315. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4316. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4317. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4318. msm_routing_put_audio_mixer),
  4319. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4320. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4321. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4322. msm_routing_put_audio_mixer),
  4323. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4324. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4325. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4326. msm_routing_put_audio_mixer),
  4327. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4328. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4329. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4330. msm_routing_put_audio_mixer),
  4331. };
  4332. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4333. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4334. MSM_BACKEND_DAI_MI2S_RX,
  4335. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4336. msm_routing_put_audio_mixer),
  4337. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4338. MSM_BACKEND_DAI_MI2S_RX,
  4339. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4340. msm_routing_put_audio_mixer),
  4341. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4342. MSM_BACKEND_DAI_MI2S_RX,
  4343. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4344. msm_routing_put_audio_mixer),
  4345. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4346. MSM_BACKEND_DAI_MI2S_RX,
  4347. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4348. msm_routing_put_audio_mixer),
  4349. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4350. MSM_BACKEND_DAI_MI2S_RX,
  4351. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4352. msm_routing_put_audio_mixer),
  4353. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4354. MSM_BACKEND_DAI_MI2S_RX,
  4355. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4356. msm_routing_put_audio_mixer),
  4357. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4358. MSM_BACKEND_DAI_MI2S_RX,
  4359. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4360. msm_routing_put_audio_mixer),
  4361. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4362. MSM_BACKEND_DAI_MI2S_RX,
  4363. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4364. msm_routing_put_audio_mixer),
  4365. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4366. MSM_BACKEND_DAI_MI2S_RX,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4370. MSM_BACKEND_DAI_MI2S_RX,
  4371. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4372. msm_routing_put_audio_mixer),
  4373. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4374. MSM_BACKEND_DAI_MI2S_RX,
  4375. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4376. msm_routing_put_audio_mixer),
  4377. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4378. MSM_BACKEND_DAI_MI2S_RX,
  4379. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4380. msm_routing_put_audio_mixer),
  4381. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4382. MSM_BACKEND_DAI_MI2S_RX,
  4383. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4384. msm_routing_put_audio_mixer),
  4385. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4386. MSM_BACKEND_DAI_MI2S_RX,
  4387. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4388. msm_routing_put_audio_mixer),
  4389. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4390. MSM_BACKEND_DAI_MI2S_RX,
  4391. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4392. msm_routing_put_audio_mixer),
  4393. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4394. MSM_BACKEND_DAI_MI2S_RX,
  4395. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4396. msm_routing_put_audio_mixer),
  4397. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4398. MSM_BACKEND_DAI_MI2S_RX,
  4399. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4400. msm_routing_put_audio_mixer),
  4401. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4402. MSM_BACKEND_DAI_MI2S_RX,
  4403. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4404. msm_routing_put_audio_mixer),
  4405. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4406. MSM_BACKEND_DAI_MI2S_RX,
  4407. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4408. msm_routing_put_audio_mixer),
  4409. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4410. MSM_BACKEND_DAI_MI2S_RX,
  4411. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4412. msm_routing_put_audio_mixer),
  4413. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4414. MSM_BACKEND_DAI_MI2S_RX,
  4415. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4416. msm_routing_put_audio_mixer),
  4417. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4418. MSM_BACKEND_DAI_MI2S_RX,
  4419. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4420. msm_routing_put_audio_mixer),
  4421. };
  4422. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4423. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4424. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4425. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4426. msm_routing_put_audio_mixer),
  4427. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4428. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4429. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4430. msm_routing_put_audio_mixer),
  4431. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4432. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4433. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4434. msm_routing_put_audio_mixer),
  4435. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4436. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4440. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4441. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4442. msm_routing_put_audio_mixer),
  4443. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4444. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4445. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4446. msm_routing_put_audio_mixer),
  4447. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4448. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4452. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4453. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4454. msm_routing_put_audio_mixer),
  4455. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4456. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4457. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4458. msm_routing_put_audio_mixer),
  4459. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4460. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4461. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4462. msm_routing_put_audio_mixer),
  4463. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4464. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4465. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4466. msm_routing_put_audio_mixer),
  4467. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4468. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4469. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4470. msm_routing_put_audio_mixer),
  4471. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4472. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4473. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4474. msm_routing_put_audio_mixer),
  4475. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4476. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4477. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4478. msm_routing_put_audio_mixer),
  4479. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4480. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4484. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4485. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4486. msm_routing_put_audio_mixer),
  4487. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4488. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4489. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4490. msm_routing_put_audio_mixer),
  4491. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4492. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4493. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4494. msm_routing_put_audio_mixer),
  4495. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4496. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4497. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4498. msm_routing_put_audio_mixer),
  4499. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4500. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4501. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4502. msm_routing_put_audio_mixer),
  4503. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4504. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4505. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4506. msm_routing_put_audio_mixer),
  4507. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4508. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4509. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4510. msm_routing_put_audio_mixer),
  4511. };
  4512. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4513. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4514. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4516. msm_routing_put_audio_mixer),
  4517. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4518. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4520. msm_routing_put_audio_mixer),
  4521. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4522. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4524. msm_routing_put_audio_mixer),
  4525. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4526. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4528. msm_routing_put_audio_mixer),
  4529. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4530. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4532. msm_routing_put_audio_mixer),
  4533. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4534. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4536. msm_routing_put_audio_mixer),
  4537. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4538. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4539. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4540. msm_routing_put_audio_mixer),
  4541. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4542. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4544. msm_routing_put_audio_mixer),
  4545. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4546. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4548. msm_routing_put_audio_mixer),
  4549. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4550. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4552. msm_routing_put_audio_mixer),
  4553. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4554. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4555. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4556. msm_routing_put_audio_mixer),
  4557. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4558. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4560. msm_routing_put_audio_mixer),
  4561. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4562. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4564. msm_routing_put_audio_mixer),
  4565. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4566. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4570. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4571. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4572. msm_routing_put_audio_mixer),
  4573. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4574. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4576. msm_routing_put_audio_mixer),
  4577. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4578. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4579. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4580. msm_routing_put_audio_mixer),
  4581. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4582. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4583. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4584. msm_routing_put_audio_mixer),
  4585. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4586. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4587. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4588. msm_routing_put_audio_mixer),
  4589. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4590. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4591. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4592. msm_routing_put_audio_mixer),
  4593. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4594. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4595. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4596. msm_routing_put_audio_mixer),
  4597. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4598. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. };
  4602. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4603. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4604. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4605. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4606. msm_routing_put_audio_mixer),
  4607. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4608. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4609. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4610. msm_routing_put_audio_mixer),
  4611. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4612. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4613. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4614. msm_routing_put_audio_mixer),
  4615. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4616. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4617. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4618. msm_routing_put_audio_mixer),
  4619. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4620. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4621. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4622. msm_routing_put_audio_mixer),
  4623. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4624. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4625. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4626. msm_routing_put_audio_mixer),
  4627. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4628. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4629. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4630. msm_routing_put_audio_mixer),
  4631. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4632. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4633. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4634. msm_routing_put_audio_mixer),
  4635. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4636. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4637. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4638. msm_routing_put_audio_mixer),
  4639. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4640. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4641. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4642. msm_routing_put_audio_mixer),
  4643. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4644. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4645. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4646. msm_routing_put_audio_mixer),
  4647. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4648. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4649. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4650. msm_routing_put_audio_mixer),
  4651. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4652. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4653. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4654. msm_routing_put_audio_mixer),
  4655. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4656. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4657. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4658. msm_routing_put_audio_mixer),
  4659. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4660. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4661. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4662. msm_routing_put_audio_mixer),
  4663. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4664. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4665. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4666. msm_routing_put_audio_mixer),
  4667. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4668. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4669. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4670. msm_routing_put_audio_mixer),
  4671. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4672. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4673. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4674. msm_routing_put_audio_mixer),
  4675. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4676. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4677. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4678. msm_routing_put_audio_mixer),
  4679. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4680. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4681. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4682. msm_routing_put_audio_mixer),
  4683. };
  4684. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4685. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4686. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4687. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4688. msm_routing_put_audio_mixer),
  4689. };
  4690. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4691. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4692. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4693. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4694. msm_routing_put_audio_mixer),
  4695. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4696. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4697. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4698. msm_routing_put_audio_mixer),
  4699. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4700. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4701. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4702. msm_routing_put_audio_mixer),
  4703. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4704. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4705. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4706. msm_routing_put_audio_mixer),
  4707. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4708. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4709. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4710. msm_routing_put_audio_mixer),
  4711. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4712. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4713. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4714. msm_routing_put_audio_mixer),
  4715. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4716. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4717. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4718. msm_routing_put_audio_mixer),
  4719. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4720. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4721. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4722. msm_routing_put_audio_mixer),
  4723. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4724. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4725. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4726. msm_routing_put_audio_mixer),
  4727. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4728. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4729. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4730. msm_routing_put_audio_mixer),
  4731. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4732. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4733. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4734. msm_routing_put_audio_mixer),
  4735. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4736. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4737. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4738. msm_routing_put_audio_mixer),
  4739. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4740. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4744. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4745. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4746. msm_routing_put_audio_mixer),
  4747. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4748. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4749. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4750. msm_routing_put_audio_mixer),
  4751. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4752. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4753. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4754. msm_routing_put_audio_mixer),
  4755. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4756. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4757. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4758. msm_routing_put_audio_mixer),
  4759. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4760. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4761. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4762. msm_routing_put_audio_mixer),
  4763. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4764. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4765. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4766. msm_routing_put_audio_mixer),
  4767. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4768. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4769. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4770. msm_routing_put_audio_mixer),
  4771. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4772. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4776. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4777. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4778. msm_routing_put_audio_mixer),
  4779. };
  4780. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4781. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4782. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4783. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4784. msm_routing_put_audio_mixer),
  4785. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4786. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4787. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4788. msm_routing_put_audio_mixer),
  4789. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4790. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4791. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4792. msm_routing_put_audio_mixer),
  4793. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4794. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4795. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4796. msm_routing_put_audio_mixer),
  4797. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4798. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4800. msm_routing_put_audio_mixer),
  4801. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4802. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4803. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4804. msm_routing_put_audio_mixer),
  4805. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4806. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4807. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4808. msm_routing_put_audio_mixer),
  4809. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4810. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4811. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4812. msm_routing_put_audio_mixer),
  4813. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4814. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4815. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4816. msm_routing_put_audio_mixer),
  4817. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4818. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4819. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4820. msm_routing_put_audio_mixer),
  4821. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4822. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4823. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4824. msm_routing_put_audio_mixer),
  4825. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4826. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4827. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4828. msm_routing_put_audio_mixer),
  4829. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4830. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4831. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4832. msm_routing_put_audio_mixer),
  4833. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4834. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4835. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4836. msm_routing_put_audio_mixer),
  4837. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4838. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4839. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4840. msm_routing_put_audio_mixer),
  4841. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4842. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4843. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4844. msm_routing_put_audio_mixer),
  4845. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4846. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4847. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4848. msm_routing_put_audio_mixer),
  4849. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4850. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4851. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4852. msm_routing_put_audio_mixer),
  4853. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4854. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4855. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4856. msm_routing_put_audio_mixer),
  4857. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4858. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4862. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4863. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4864. msm_routing_put_audio_mixer),
  4865. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4866. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4867. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4868. msm_routing_put_audio_mixer),
  4869. };
  4870. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4871. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4872. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4873. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4874. msm_routing_put_audio_mixer),
  4875. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4876. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4877. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4878. msm_routing_put_audio_mixer),
  4879. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4880. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4881. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4882. msm_routing_put_audio_mixer),
  4883. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4884. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4885. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4886. msm_routing_put_audio_mixer),
  4887. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4888. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4889. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4890. msm_routing_put_audio_mixer),
  4891. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4892. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4893. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4894. msm_routing_put_audio_mixer),
  4895. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4896. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4897. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4898. msm_routing_put_audio_mixer),
  4899. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4900. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4901. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4902. msm_routing_put_audio_mixer),
  4903. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4904. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4905. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4906. msm_routing_put_audio_mixer),
  4907. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4908. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4909. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4910. msm_routing_put_audio_mixer),
  4911. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4912. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4913. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4914. msm_routing_put_audio_mixer),
  4915. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4916. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4917. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4918. msm_routing_put_audio_mixer),
  4919. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4920. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4921. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4922. msm_routing_put_audio_mixer),
  4923. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4924. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4925. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4926. msm_routing_put_audio_mixer),
  4927. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4928. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4932. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4933. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4934. msm_routing_put_audio_mixer),
  4935. };
  4936. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4937. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4938. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4939. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4940. msm_routing_put_audio_mixer),
  4941. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4942. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4943. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4944. msm_routing_put_audio_mixer),
  4945. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4946. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4947. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4948. msm_routing_put_audio_mixer),
  4949. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4950. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4951. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4952. msm_routing_put_audio_mixer),
  4953. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4954. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4955. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4956. msm_routing_put_audio_mixer),
  4957. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4958. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4959. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4960. msm_routing_put_audio_mixer),
  4961. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4962. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4963. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4964. msm_routing_put_audio_mixer),
  4965. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4966. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4967. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4968. msm_routing_put_audio_mixer),
  4969. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4970. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4971. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4972. msm_routing_put_audio_mixer),
  4973. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4974. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4975. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4976. msm_routing_put_audio_mixer),
  4977. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4978. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4979. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4980. msm_routing_put_audio_mixer),
  4981. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4982. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4983. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4984. msm_routing_put_audio_mixer),
  4985. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4986. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4987. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4988. msm_routing_put_audio_mixer),
  4989. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4990. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4994. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4995. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4996. msm_routing_put_audio_mixer),
  4997. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4998. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5000. msm_routing_put_audio_mixer),
  5001. };
  5002. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  5003. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5004. MSM_BACKEND_DAI_HDMI_RX,
  5005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5006. msm_routing_put_audio_mixer),
  5007. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5008. MSM_BACKEND_DAI_HDMI_RX,
  5009. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5010. msm_routing_put_audio_mixer),
  5011. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5012. MSM_BACKEND_DAI_HDMI_RX,
  5013. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5014. msm_routing_put_audio_mixer),
  5015. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5016. MSM_BACKEND_DAI_HDMI_RX,
  5017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5018. msm_routing_put_audio_mixer),
  5019. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5020. MSM_BACKEND_DAI_HDMI_RX,
  5021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5022. msm_routing_put_audio_mixer),
  5023. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5024. MSM_BACKEND_DAI_HDMI_RX,
  5025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5026. msm_routing_put_audio_mixer),
  5027. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5028. MSM_BACKEND_DAI_HDMI_RX,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5032. MSM_BACKEND_DAI_HDMI_RX,
  5033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5034. msm_routing_put_audio_mixer),
  5035. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5036. MSM_BACKEND_DAI_HDMI_RX,
  5037. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5038. msm_routing_put_audio_mixer),
  5039. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5040. MSM_BACKEND_DAI_HDMI_RX,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5044. MSM_BACKEND_DAI_HDMI_RX,
  5045. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5046. msm_routing_put_audio_mixer),
  5047. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5048. MSM_BACKEND_DAI_HDMI_RX,
  5049. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5050. msm_routing_put_audio_mixer),
  5051. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5052. MSM_BACKEND_DAI_HDMI_RX,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5056. MSM_BACKEND_DAI_HDMI_RX,
  5057. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5058. msm_routing_put_audio_mixer),
  5059. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5060. MSM_BACKEND_DAI_HDMI_RX,
  5061. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5062. msm_routing_put_audio_mixer),
  5063. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5064. MSM_BACKEND_DAI_HDMI_RX,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5068. MSM_BACKEND_DAI_HDMI_RX,
  5069. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5070. msm_routing_put_audio_mixer),
  5071. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5072. MSM_BACKEND_DAI_HDMI_RX,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5076. MSM_BACKEND_DAI_HDMI_RX,
  5077. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5078. msm_routing_put_audio_mixer),
  5079. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5080. MSM_BACKEND_DAI_HDMI_RX,
  5081. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5082. msm_routing_put_audio_mixer),
  5083. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5084. MSM_BACKEND_DAI_HDMI_RX,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5088. MSM_BACKEND_DAI_HDMI_RX,
  5089. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5090. msm_routing_put_audio_mixer),
  5091. };
  5092. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5093. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5094. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5095. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5096. msm_routing_put_audio_mixer),
  5097. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5098. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5099. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5100. msm_routing_put_audio_mixer),
  5101. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5102. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5103. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5104. msm_routing_put_audio_mixer),
  5105. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5106. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5107. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5108. msm_routing_put_audio_mixer),
  5109. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5110. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5111. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5112. msm_routing_put_audio_mixer),
  5113. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5114. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5118. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5122. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5126. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5127. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5128. msm_routing_put_audio_mixer),
  5129. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5130. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5134. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5138. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5139. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5140. msm_routing_put_audio_mixer),
  5141. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5142. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5146. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5150. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5151. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5152. msm_routing_put_audio_mixer),
  5153. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5154. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5155. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5156. msm_routing_put_audio_mixer),
  5157. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5158. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. };
  5162. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5163. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5164. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5165. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5166. msm_routing_put_audio_mixer),
  5167. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5168. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5169. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5170. msm_routing_put_audio_mixer),
  5171. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5172. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5176. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5177. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5178. msm_routing_put_audio_mixer),
  5179. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5180. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5184. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5188. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5189. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5190. msm_routing_put_audio_mixer),
  5191. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5192. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5200. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5204. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5208. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5212. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5216. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5220. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5224. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5228. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. };
  5232. /* incall music delivery mixer */
  5233. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5234. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5235. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5236. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5237. msm_routing_put_audio_mixer),
  5238. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5239. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5240. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5241. msm_routing_put_audio_mixer),
  5242. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5243. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. };
  5251. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5252. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5253. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5254. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5255. msm_routing_put_audio_mixer),
  5256. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5257. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5258. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5259. msm_routing_put_audio_mixer),
  5260. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5261. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5262. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5263. msm_routing_put_audio_mixer),
  5264. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5265. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5266. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5267. msm_routing_put_audio_mixer),
  5268. };
  5269. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5270. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. };
  5287. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5288. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5289. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5290. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5291. msm_routing_put_audio_mixer),
  5292. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5293. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5294. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5295. msm_routing_put_audio_mixer),
  5296. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5297. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5298. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5299. msm_routing_put_audio_mixer),
  5300. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5301. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5302. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5303. msm_routing_put_audio_mixer),
  5304. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5305. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5309. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5313. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5314. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5315. msm_routing_put_audio_mixer),
  5316. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5317. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. };
  5357. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5358. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5359. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5363. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5364. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5365. msm_routing_put_audio_mixer),
  5366. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. };
  5427. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5428. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. };
  5497. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5498. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. };
  5567. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5568. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. };
  5637. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5638. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. };
  5707. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5708. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5709. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. };
  5777. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  5778. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5779. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5780. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5781. msm_routing_put_audio_mixer),
  5782. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5783. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5784. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5785. msm_routing_put_audio_mixer),
  5786. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5787. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. };
  5847. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  5848. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5849. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5850. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5851. msm_routing_put_audio_mixer),
  5852. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5853. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5854. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5855. msm_routing_put_audio_mixer),
  5856. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5858. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5859. msm_routing_put_audio_mixer),
  5860. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5869. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5873. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5877. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5881. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5885. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5886. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5887. msm_routing_put_audio_mixer),
  5888. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. };
  5917. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  5918. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5919. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5923. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5924. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5925. msm_routing_put_audio_mixer),
  5926. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5927. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5935. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5936. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5937. msm_routing_put_audio_mixer),
  5938. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5939. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5940. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5941. msm_routing_put_audio_mixer),
  5942. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5943. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5947. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5948. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5949. msm_routing_put_audio_mixer),
  5950. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5951. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5952. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5953. msm_routing_put_audio_mixer),
  5954. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5955. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5959. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5963. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5964. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5965. msm_routing_put_audio_mixer),
  5966. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5971. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5975. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. };
  5987. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  5988. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5993. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5997. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6001. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6005. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6009. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6013. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6017. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6021. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6025. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6029. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6033. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6034. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6035. msm_routing_put_audio_mixer),
  6036. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6037. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6041. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6042. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6043. msm_routing_put_audio_mixer),
  6044. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6045. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6046. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6047. msm_routing_put_audio_mixer),
  6048. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6049. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6053. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. };
  6057. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6058. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6087. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6091. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6103. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6107. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6111. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6115. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6119. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. };
  6127. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6128. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6181. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6185. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6186. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6187. msm_routing_put_audio_mixer),
  6188. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6189. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. };
  6197. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6198. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_USB_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_USB_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_USB_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_USB_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_USB_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_USB_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_USB_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_USB_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_USB_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_USB_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_USB_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_USB_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_USB_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_USB_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_USB_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_USB_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_USB_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. };
  6267. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6268. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6269. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. };
  6357. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6358. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6359. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6363. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6364. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6365. msm_routing_put_audio_mixer),
  6366. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6367. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6368. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6369. msm_routing_put_audio_mixer),
  6370. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6371. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6375. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6391. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6395. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. };
  6427. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6428. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6429. MSM_BACKEND_DAI_INT_FM_RX,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6433. MSM_BACKEND_DAI_INT_FM_RX,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_INT_FM_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_INT_FM_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_INT_FM_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_INT_FM_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_INT_FM_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6457. MSM_BACKEND_DAI_INT_FM_RX,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_INT_FM_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_INT_FM_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_INT_FM_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_INT_FM_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_INT_FM_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_INT_FM_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_INT_FM_RX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_INT_FM_RX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_INT_FM_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_INT_FM_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_INT_FM_RX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_INT_FM_RX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_INT_FM_RX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_INT_FM_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. };
  6517. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6518. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6519. MSM_BACKEND_DAI_AFE_PCM_RX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6523. MSM_BACKEND_DAI_AFE_PCM_RX,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_AFE_PCM_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_AFE_PCM_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_AFE_PCM_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_AFE_PCM_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_AFE_PCM_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_AFE_PCM_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_AFE_PCM_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_AFE_PCM_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_AFE_PCM_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_AFE_PCM_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_AFE_PCM_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_AFE_PCM_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_AFE_PCM_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_AFE_PCM_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_AFE_PCM_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_AFE_PCM_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_AFE_PCM_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_AFE_PCM_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_AFE_PCM_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_AFE_PCM_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. };
  6607. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6608. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_AUXPCM_RX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_AUXPCM_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_AUXPCM_RX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_AUXPCM_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_AUXPCM_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_AUXPCM_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_AUXPCM_RX,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_AUXPCM_RX,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_AUXPCM_RX,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_AUXPCM_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_AUXPCM_RX,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_AUXPCM_RX,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_AUXPCM_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_AUXPCM_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6665. MSM_BACKEND_DAI_AUXPCM_RX,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6669. MSM_BACKEND_DAI_AUXPCM_RX,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_AUXPCM_RX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6677. MSM_BACKEND_DAI_AUXPCM_RX,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6681. MSM_BACKEND_DAI_AUXPCM_RX,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_AUXPCM_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_AUXPCM_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_AUXPCM_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_AUXPCM_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. };
  6701. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6702. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6731. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6732. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6733. msm_routing_put_audio_mixer),
  6734. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6735. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6743. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6747. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6748. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6749. msm_routing_put_audio_mixer),
  6750. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6751. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6755. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6756. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6757. msm_routing_put_audio_mixer),
  6758. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6759. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6760. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6761. msm_routing_put_audio_mixer),
  6762. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6763. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6767. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6768. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6769. msm_routing_put_audio_mixer),
  6770. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6771. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. };
  6795. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  6796. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6797. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6801. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6805. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6821. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6825. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6829. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6830. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6831. msm_routing_put_audio_mixer),
  6832. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6833. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6837. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6841. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6842. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6843. msm_routing_put_audio_mixer),
  6844. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6845. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6846. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6847. msm_routing_put_audio_mixer),
  6848. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6849. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6853. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6854. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6855. msm_routing_put_audio_mixer),
  6856. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6857. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. };
  6865. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  6866. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6867. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6871. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6872. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6873. msm_routing_put_audio_mixer),
  6874. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6895. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6896. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6897. msm_routing_put_audio_mixer),
  6898. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6899. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6900. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6901. msm_routing_put_audio_mixer),
  6902. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6903. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6907. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6911. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6915. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6916. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6917. msm_routing_put_audio_mixer),
  6918. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6919. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6920. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6921. msm_routing_put_audio_mixer),
  6922. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6923. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6927. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6928. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6929. msm_routing_put_audio_mixer),
  6930. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6931. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. };
  6935. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6936. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6957. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6961. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6965. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6969. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6973. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6977. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6981. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6985. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6989. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6993. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6997. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. };
  7005. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7006. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7035. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7043. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. };
  7075. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7076. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. };
  7145. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7146. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7147. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7148. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7149. msm_routing_put_audio_mixer),
  7150. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7151. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7152. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7153. msm_routing_put_audio_mixer),
  7154. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7155. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7159. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7160. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7161. msm_routing_put_audio_mixer),
  7162. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7163. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7164. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7165. msm_routing_put_audio_mixer),
  7166. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7167. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7168. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7169. msm_routing_put_audio_mixer),
  7170. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7171. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7172. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7173. msm_routing_put_audio_mixer),
  7174. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7175. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7176. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7177. msm_routing_put_audio_mixer),
  7178. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7179. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7180. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7181. msm_routing_put_audio_mixer),
  7182. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7183. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7184. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7185. msm_routing_put_audio_mixer),
  7186. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7187. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7191. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. };
  7215. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7216. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7217. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7218. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7219. msm_routing_put_audio_mixer),
  7220. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7221. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7222. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7223. msm_routing_put_audio_mixer),
  7224. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7225. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7226. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7227. msm_routing_put_audio_mixer),
  7228. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7229. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7233. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7234. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7235. msm_routing_put_audio_mixer),
  7236. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7237. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7238. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7239. msm_routing_put_audio_mixer),
  7240. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7241. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7245. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7246. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7247. msm_routing_put_audio_mixer),
  7248. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7249. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7250. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7251. msm_routing_put_audio_mixer),
  7252. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7253. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7257. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7258. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7259. msm_routing_put_audio_mixer),
  7260. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7261. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7265. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. };
  7285. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7286. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7287. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7288. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7289. msm_routing_put_audio_mixer),
  7290. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7291. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7292. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7293. msm_routing_put_audio_mixer),
  7294. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7295. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7296. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7297. msm_routing_put_audio_mixer),
  7298. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7299. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7300. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7301. msm_routing_put_audio_mixer),
  7302. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7303. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7304. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7305. msm_routing_put_audio_mixer),
  7306. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7307. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7308. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7309. msm_routing_put_audio_mixer),
  7310. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7311. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7312. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7313. msm_routing_put_audio_mixer),
  7314. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7315. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7316. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7317. msm_routing_put_audio_mixer),
  7318. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7319. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7320. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7321. msm_routing_put_audio_mixer),
  7322. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7323. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7324. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7325. msm_routing_put_audio_mixer),
  7326. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7327. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7328. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7329. msm_routing_put_audio_mixer),
  7330. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7331. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7332. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7333. msm_routing_put_audio_mixer),
  7334. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7335. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7336. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7337. msm_routing_put_audio_mixer),
  7338. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7339. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7343. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. };
  7351. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7352. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7353. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7354. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7355. msm_routing_put_audio_mixer),
  7356. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7357. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7358. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7359. msm_routing_put_audio_mixer),
  7360. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7361. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7362. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7363. msm_routing_put_audio_mixer),
  7364. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7365. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7366. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7367. msm_routing_put_audio_mixer),
  7368. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7369. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7370. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7371. msm_routing_put_audio_mixer),
  7372. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7373. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7374. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7375. msm_routing_put_audio_mixer),
  7376. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7377. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7378. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7379. msm_routing_put_audio_mixer),
  7380. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7381. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7382. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7383. msm_routing_put_audio_mixer),
  7384. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7385. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7386. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7387. msm_routing_put_audio_mixer),
  7388. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7389. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7390. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7391. msm_routing_put_audio_mixer),
  7392. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7393. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7394. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7395. msm_routing_put_audio_mixer),
  7396. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7397. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7401. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7402. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7403. msm_routing_put_audio_mixer),
  7404. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7405. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7409. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7413. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. };
  7421. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7422. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7423. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7424. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7425. msm_routing_put_audio_mixer),
  7426. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7427. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7428. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7429. msm_routing_put_audio_mixer),
  7430. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7431. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7433. msm_routing_put_audio_mixer),
  7434. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7435. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7436. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7437. msm_routing_put_audio_mixer),
  7438. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7439. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7440. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7441. msm_routing_put_audio_mixer),
  7442. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7443. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7444. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7445. msm_routing_put_audio_mixer),
  7446. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7447. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7448. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7449. msm_routing_put_audio_mixer),
  7450. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7451. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7452. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7453. msm_routing_put_audio_mixer),
  7454. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7455. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7456. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7457. msm_routing_put_audio_mixer),
  7458. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7459. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7460. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7461. msm_routing_put_audio_mixer),
  7462. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7463. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7464. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7465. msm_routing_put_audio_mixer),
  7466. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7467. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. };
  7491. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7492. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7493. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7494. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7495. msm_routing_put_audio_mixer),
  7496. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7497. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7498. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7499. msm_routing_put_audio_mixer),
  7500. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7501. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7502. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7503. msm_routing_put_audio_mixer),
  7504. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7505. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7506. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7507. msm_routing_put_audio_mixer),
  7508. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7509. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7510. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7511. msm_routing_put_audio_mixer),
  7512. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7513. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7514. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7515. msm_routing_put_audio_mixer),
  7516. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7517. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7518. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7519. msm_routing_put_audio_mixer),
  7520. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7521. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7522. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7523. msm_routing_put_audio_mixer),
  7524. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7525. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7526. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7527. msm_routing_put_audio_mixer),
  7528. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7529. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7530. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7531. msm_routing_put_audio_mixer),
  7532. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7533. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7534. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7535. msm_routing_put_audio_mixer),
  7536. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7550. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7551. msm_routing_put_audio_mixer),
  7552. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7554. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7555. msm_routing_put_audio_mixer),
  7556. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. };
  7561. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7562. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7563. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7564. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7565. msm_routing_put_audio_mixer),
  7566. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7567. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7568. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7569. msm_routing_put_audio_mixer),
  7570. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7571. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7572. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7573. msm_routing_put_audio_mixer),
  7574. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7575. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7576. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7577. msm_routing_put_audio_mixer),
  7578. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7579. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7580. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7581. msm_routing_put_audio_mixer),
  7582. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7583. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7584. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7585. msm_routing_put_audio_mixer),
  7586. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7587. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7588. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7589. msm_routing_put_audio_mixer),
  7590. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7591. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7592. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7593. msm_routing_put_audio_mixer),
  7594. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7595. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7596. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7597. msm_routing_put_audio_mixer),
  7598. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7599. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7600. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7601. msm_routing_put_audio_mixer),
  7602. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7603. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7604. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7605. msm_routing_put_audio_mixer),
  7606. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. };
  7631. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7632. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7633. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7634. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7635. msm_routing_put_audio_mixer),
  7636. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7637. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7638. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7639. msm_routing_put_audio_mixer),
  7640. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7641. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7642. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7643. msm_routing_put_audio_mixer),
  7644. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7645. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7646. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7647. msm_routing_put_audio_mixer),
  7648. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7649. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7650. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7651. msm_routing_put_audio_mixer),
  7652. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7653. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7654. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7655. msm_routing_put_audio_mixer),
  7656. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7657. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7658. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7659. msm_routing_put_audio_mixer),
  7660. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7661. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7662. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7663. msm_routing_put_audio_mixer),
  7664. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7665. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7666. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7667. msm_routing_put_audio_mixer),
  7668. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7669. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7670. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7671. msm_routing_put_audio_mixer),
  7672. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7673. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7674. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7675. msm_routing_put_audio_mixer),
  7676. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. };
  7697. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7698. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7699. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7700. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7701. msm_routing_put_audio_mixer),
  7702. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7703. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7704. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7705. msm_routing_put_audio_mixer),
  7706. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7707. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7708. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7709. msm_routing_put_audio_mixer),
  7710. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7711. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7712. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7713. msm_routing_put_audio_mixer),
  7714. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7715. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7717. msm_routing_put_audio_mixer),
  7718. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7719. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7720. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7721. msm_routing_put_audio_mixer),
  7722. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7723. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7724. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7725. msm_routing_put_audio_mixer),
  7726. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7727. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7728. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7729. msm_routing_put_audio_mixer),
  7730. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7731. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7732. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7733. msm_routing_put_audio_mixer),
  7734. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7735. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7736. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7737. msm_routing_put_audio_mixer),
  7738. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7739. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7740. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7741. msm_routing_put_audio_mixer),
  7742. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7743. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7744. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7745. msm_routing_put_audio_mixer),
  7746. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7747. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7748. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7749. msm_routing_put_audio_mixer),
  7750. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. };
  7767. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  7768. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7769. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7770. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7771. msm_routing_put_audio_mixer),
  7772. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7773. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7774. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7775. msm_routing_put_audio_mixer),
  7776. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7777. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7778. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7779. msm_routing_put_audio_mixer),
  7780. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7781. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7782. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7783. msm_routing_put_audio_mixer),
  7784. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7785. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7786. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7787. msm_routing_put_audio_mixer),
  7788. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7789. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7790. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7791. msm_routing_put_audio_mixer),
  7792. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7793. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7794. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7795. msm_routing_put_audio_mixer),
  7796. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7797. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7798. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7799. msm_routing_put_audio_mixer),
  7800. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7801. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7802. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7803. msm_routing_put_audio_mixer),
  7804. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7805. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7806. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7807. msm_routing_put_audio_mixer),
  7808. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7809. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7810. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7811. msm_routing_put_audio_mixer),
  7812. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7813. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7814. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7815. msm_routing_put_audio_mixer),
  7816. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. };
  7833. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  7834. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7835. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7836. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7837. msm_routing_put_audio_mixer),
  7838. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7839. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7840. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7841. msm_routing_put_audio_mixer),
  7842. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7843. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7844. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7845. msm_routing_put_audio_mixer),
  7846. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7847. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7848. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7849. msm_routing_put_audio_mixer),
  7850. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7851. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7852. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7853. msm_routing_put_audio_mixer),
  7854. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7855. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7856. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7857. msm_routing_put_audio_mixer),
  7858. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7859. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7860. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7861. msm_routing_put_audio_mixer),
  7862. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7863. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7864. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7865. msm_routing_put_audio_mixer),
  7866. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7867. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7868. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7869. msm_routing_put_audio_mixer),
  7870. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7871. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7872. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7873. msm_routing_put_audio_mixer),
  7874. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7875. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7876. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7877. msm_routing_put_audio_mixer),
  7878. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7879. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7880. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7881. msm_routing_put_audio_mixer),
  7882. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7883. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7884. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7885. msm_routing_put_audio_mixer),
  7886. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7887. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7888. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7889. msm_routing_put_audio_mixer),
  7890. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7891. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7892. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7893. msm_routing_put_audio_mixer),
  7894. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7895. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7896. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7897. msm_routing_put_audio_mixer),
  7898. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7899. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7900. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7901. msm_routing_put_audio_mixer),
  7902. };
  7903. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  7904. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7905. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7906. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7907. msm_routing_put_audio_mixer),
  7908. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7909. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7910. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7911. msm_routing_put_audio_mixer),
  7912. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7913. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7914. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7915. msm_routing_put_audio_mixer),
  7916. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7917. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7918. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7919. msm_routing_put_audio_mixer),
  7920. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7921. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7922. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7923. msm_routing_put_audio_mixer),
  7924. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7925. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7926. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7927. msm_routing_put_audio_mixer),
  7928. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7929. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7930. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7931. msm_routing_put_audio_mixer),
  7932. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7933. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7934. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7935. msm_routing_put_audio_mixer),
  7936. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7937. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7938. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7939. msm_routing_put_audio_mixer),
  7940. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7941. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7942. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7943. msm_routing_put_audio_mixer),
  7944. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7945. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7946. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7947. msm_routing_put_audio_mixer),
  7948. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7949. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7950. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7951. msm_routing_put_audio_mixer),
  7952. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7953. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7954. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7955. msm_routing_put_audio_mixer),
  7956. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7957. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7958. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7959. msm_routing_put_audio_mixer),
  7960. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7961. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7962. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7963. msm_routing_put_audio_mixer),
  7964. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7965. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7966. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7967. msm_routing_put_audio_mixer),
  7968. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. };
  7973. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7974. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7975. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7976. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7977. msm_routing_put_audio_mixer),
  7978. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7979. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7980. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7981. msm_routing_put_audio_mixer),
  7982. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7983. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7984. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7985. msm_routing_put_audio_mixer),
  7986. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7987. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7988. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7989. msm_routing_put_audio_mixer),
  7990. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7991. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7992. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7993. msm_routing_put_audio_mixer),
  7994. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7995. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7996. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7997. msm_routing_put_audio_mixer),
  7998. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7999. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8000. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8001. msm_routing_put_audio_mixer),
  8002. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8003. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8004. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8005. msm_routing_put_audio_mixer),
  8006. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8007. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8008. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8009. msm_routing_put_audio_mixer),
  8010. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8011. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8012. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8013. msm_routing_put_audio_mixer),
  8014. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8015. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8016. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8017. msm_routing_put_audio_mixer),
  8018. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. };
  8043. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8044. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8045. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8046. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8047. msm_routing_put_audio_mixer),
  8048. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8049. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8050. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8051. msm_routing_put_audio_mixer),
  8052. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8053. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8054. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8055. msm_routing_put_audio_mixer),
  8056. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8057. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8058. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8059. msm_routing_put_audio_mixer),
  8060. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8061. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8062. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8063. msm_routing_put_audio_mixer),
  8064. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8065. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8066. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8067. msm_routing_put_audio_mixer),
  8068. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8069. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8070. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8071. msm_routing_put_audio_mixer),
  8072. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8073. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8074. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8075. msm_routing_put_audio_mixer),
  8076. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8077. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8078. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8079. msm_routing_put_audio_mixer),
  8080. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8081. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8082. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8083. msm_routing_put_audio_mixer),
  8084. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8085. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8086. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8087. msm_routing_put_audio_mixer),
  8088. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8089. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8090. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8091. msm_routing_put_audio_mixer),
  8092. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8093. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8094. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8095. msm_routing_put_audio_mixer),
  8096. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8097. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8098. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8099. msm_routing_put_audio_mixer),
  8100. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8101. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8102. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8103. msm_routing_put_audio_mixer),
  8104. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8105. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8106. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8107. msm_routing_put_audio_mixer),
  8108. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. };
  8113. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8114. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8115. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8116. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8117. msm_routing_put_audio_mixer),
  8118. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8119. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8120. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8121. msm_routing_put_audio_mixer),
  8122. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8123. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8124. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8125. msm_routing_put_audio_mixer),
  8126. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8127. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8128. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8129. msm_routing_put_audio_mixer),
  8130. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8131. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8132. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8133. msm_routing_put_audio_mixer),
  8134. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8135. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8136. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8137. msm_routing_put_audio_mixer),
  8138. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8139. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8140. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8141. msm_routing_put_audio_mixer),
  8142. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8143. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8144. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8145. msm_routing_put_audio_mixer),
  8146. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8147. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8148. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8149. msm_routing_put_audio_mixer),
  8150. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8151. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8152. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8153. msm_routing_put_audio_mixer),
  8154. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8155. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8156. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8157. msm_routing_put_audio_mixer),
  8158. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8159. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8160. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8161. msm_routing_put_audio_mixer),
  8162. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8163. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8164. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8165. msm_routing_put_audio_mixer),
  8166. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8175. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8176. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8177. msm_routing_put_audio_mixer),
  8178. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8179. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8180. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8181. msm_routing_put_audio_mixer),
  8182. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. };
  8187. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8188. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8189. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8190. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8191. msm_routing_put_audio_mixer),
  8192. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8193. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8195. msm_routing_put_audio_mixer),
  8196. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8197. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8198. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8199. msm_routing_put_audio_mixer),
  8200. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8201. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8202. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8203. msm_routing_put_audio_mixer),
  8204. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8205. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8206. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8207. msm_routing_put_audio_mixer),
  8208. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8209. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8210. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8211. msm_routing_put_audio_mixer),
  8212. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8213. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8214. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8215. msm_routing_put_audio_mixer),
  8216. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8217. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8218. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8219. msm_routing_put_audio_mixer),
  8220. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8221. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8222. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8223. msm_routing_put_audio_mixer),
  8224. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8225. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8226. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8227. msm_routing_put_audio_mixer),
  8228. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8229. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8230. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8231. msm_routing_put_audio_mixer),
  8232. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8233. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8234. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8235. msm_routing_put_audio_mixer),
  8236. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. };
  8253. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8254. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8255. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8256. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8257. msm_routing_put_audio_mixer),
  8258. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8259. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8260. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8261. msm_routing_put_audio_mixer),
  8262. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8263. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8264. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8265. msm_routing_put_audio_mixer),
  8266. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8267. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8268. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8269. msm_routing_put_audio_mixer),
  8270. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8271. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8272. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8273. msm_routing_put_audio_mixer),
  8274. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8275. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8276. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8277. msm_routing_put_audio_mixer),
  8278. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8279. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8280. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8281. msm_routing_put_audio_mixer),
  8282. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8283. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8284. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8285. msm_routing_put_audio_mixer),
  8286. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8287. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8288. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8289. msm_routing_put_audio_mixer),
  8290. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8291. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8292. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8293. msm_routing_put_audio_mixer),
  8294. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8295. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8296. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8297. msm_routing_put_audio_mixer),
  8298. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8299. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8300. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8301. msm_routing_put_audio_mixer),
  8302. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8303. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8304. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8305. msm_routing_put_audio_mixer),
  8306. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8307. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8308. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8309. msm_routing_put_audio_mixer),
  8310. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8311. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8312. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8313. msm_routing_put_audio_mixer),
  8314. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8315. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8316. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8317. msm_routing_put_audio_mixer),
  8318. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. };
  8327. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8328. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8329. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8330. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8331. msm_routing_put_audio_mixer),
  8332. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8333. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8334. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8335. msm_routing_put_audio_mixer),
  8336. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8337. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8338. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8339. msm_routing_put_audio_mixer),
  8340. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8341. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8342. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8343. msm_routing_put_audio_mixer),
  8344. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8345. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8346. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8347. msm_routing_put_audio_mixer),
  8348. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8349. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8350. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8351. msm_routing_put_audio_mixer),
  8352. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8353. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8354. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8355. msm_routing_put_audio_mixer),
  8356. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8357. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8358. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8359. msm_routing_put_audio_mixer),
  8360. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8361. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8362. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8363. msm_routing_put_audio_mixer),
  8364. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8365. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8366. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8367. msm_routing_put_audio_mixer),
  8368. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8369. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8370. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8371. msm_routing_put_audio_mixer),
  8372. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8373. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8374. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8375. msm_routing_put_audio_mixer),
  8376. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8377. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8378. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8379. msm_routing_put_audio_mixer),
  8380. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8381. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8382. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8383. msm_routing_put_audio_mixer),
  8384. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8385. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8386. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8387. msm_routing_put_audio_mixer),
  8388. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8389. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8390. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8391. msm_routing_put_audio_mixer),
  8392. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8393. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8394. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8395. msm_routing_put_audio_mixer),
  8396. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8397. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8398. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8399. msm_routing_put_audio_mixer),
  8400. };
  8401. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8402. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8403. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8404. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8405. msm_routing_put_audio_mixer),
  8406. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8407. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8408. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8409. msm_routing_put_audio_mixer),
  8410. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8411. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8412. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8413. msm_routing_put_audio_mixer),
  8414. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8415. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8416. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8417. msm_routing_put_audio_mixer),
  8418. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8419. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8420. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8421. msm_routing_put_audio_mixer),
  8422. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8423. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8424. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8425. msm_routing_put_audio_mixer),
  8426. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8427. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8428. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8429. msm_routing_put_audio_mixer),
  8430. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8431. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8432. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8433. msm_routing_put_audio_mixer),
  8434. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8435. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8436. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8437. msm_routing_put_audio_mixer),
  8438. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8439. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8440. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8441. msm_routing_put_audio_mixer),
  8442. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8443. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8444. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8445. msm_routing_put_audio_mixer),
  8446. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8447. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8448. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8449. msm_routing_put_audio_mixer),
  8450. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8451. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8452. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8453. msm_routing_put_audio_mixer),
  8454. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8455. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8456. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8457. msm_routing_put_audio_mixer),
  8458. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8459. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8460. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8461. msm_routing_put_audio_mixer),
  8462. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8463. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8464. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8465. msm_routing_put_audio_mixer),
  8466. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8467. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8468. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8469. msm_routing_put_audio_mixer),
  8470. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. };
  8475. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8476. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8477. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8478. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8479. msm_routing_put_audio_mixer),
  8480. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8481. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8482. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8483. msm_routing_put_audio_mixer),
  8484. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8485. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8486. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8487. msm_routing_put_audio_mixer),
  8488. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8489. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8490. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8491. msm_routing_put_audio_mixer),
  8492. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8493. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8494. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8495. msm_routing_put_audio_mixer),
  8496. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8497. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8498. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8499. msm_routing_put_audio_mixer),
  8500. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8501. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8502. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8503. msm_routing_put_audio_mixer),
  8504. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8505. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8506. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8507. msm_routing_put_audio_mixer),
  8508. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8509. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8510. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8511. msm_routing_put_audio_mixer),
  8512. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8513. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8514. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8515. msm_routing_put_audio_mixer),
  8516. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8517. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8518. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8519. msm_routing_put_audio_mixer),
  8520. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8521. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8522. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8523. msm_routing_put_audio_mixer),
  8524. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8525. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8526. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8527. msm_routing_put_audio_mixer),
  8528. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8529. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8530. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8531. msm_routing_put_audio_mixer),
  8532. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8533. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8534. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8535. msm_routing_put_audio_mixer),
  8536. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8537. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8538. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8539. msm_routing_put_audio_mixer),
  8540. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8541. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8542. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8543. msm_routing_put_audio_mixer),
  8544. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. };
  8549. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8550. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8551. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8552. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8553. msm_routing_put_audio_mixer),
  8554. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8555. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8556. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8557. msm_routing_put_audio_mixer),
  8558. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8559. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8560. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8561. msm_routing_put_audio_mixer),
  8562. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8563. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8564. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8565. msm_routing_put_audio_mixer),
  8566. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8567. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8568. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8569. msm_routing_put_audio_mixer),
  8570. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8571. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8572. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8573. msm_routing_put_audio_mixer),
  8574. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8575. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8576. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8577. msm_routing_put_audio_mixer),
  8578. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8579. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8580. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8581. msm_routing_put_audio_mixer),
  8582. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8583. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8584. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8585. msm_routing_put_audio_mixer),
  8586. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8587. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8588. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8589. msm_routing_put_audio_mixer),
  8590. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8591. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8592. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8593. msm_routing_put_audio_mixer),
  8594. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8595. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8596. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8597. msm_routing_put_audio_mixer),
  8598. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8599. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8600. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8601. msm_routing_put_audio_mixer),
  8602. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8603. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8604. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8605. msm_routing_put_audio_mixer),
  8606. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8607. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8608. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8609. msm_routing_put_audio_mixer),
  8610. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8611. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8612. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8613. msm_routing_put_audio_mixer),
  8614. };
  8615. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8616. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8617. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8618. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8619. msm_routing_put_audio_mixer),
  8620. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8621. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8622. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8623. msm_routing_put_audio_mixer),
  8624. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8625. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8626. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8627. msm_routing_put_audio_mixer),
  8628. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8657. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8658. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8659. msm_routing_put_audio_mixer),
  8660. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8661. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8662. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8663. msm_routing_put_audio_mixer),
  8664. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8665. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8666. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8667. msm_routing_put_audio_mixer),
  8668. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8669. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8670. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8671. msm_routing_put_audio_mixer),
  8672. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8673. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8674. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8675. msm_routing_put_audio_mixer),
  8676. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8677. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8678. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8679. msm_routing_put_audio_mixer),
  8680. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8681. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8682. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8683. msm_routing_put_audio_mixer),
  8684. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8685. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8686. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8687. msm_routing_put_audio_mixer),
  8688. };
  8689. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8690. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8691. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8692. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8693. msm_routing_put_audio_mixer),
  8694. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8695. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8696. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8697. msm_routing_put_audio_mixer),
  8698. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8699. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8700. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8701. msm_routing_put_audio_mixer),
  8702. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. };
  8763. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  8764. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8765. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8766. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8767. msm_routing_put_audio_mixer),
  8768. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8769. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8770. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8771. msm_routing_put_audio_mixer),
  8772. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8773. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8774. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8775. msm_routing_put_audio_mixer),
  8776. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8777. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8778. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8779. msm_routing_put_audio_mixer),
  8780. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8781. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8782. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8783. msm_routing_put_audio_mixer),
  8784. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8785. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8786. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8787. msm_routing_put_audio_mixer),
  8788. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8789. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8790. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8791. msm_routing_put_audio_mixer),
  8792. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8793. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8794. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8795. msm_routing_put_audio_mixer),
  8796. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8797. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8798. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8799. msm_routing_put_audio_mixer),
  8800. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8801. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8802. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8803. msm_routing_put_audio_mixer),
  8804. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8805. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8806. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8807. msm_routing_put_audio_mixer),
  8808. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8809. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8810. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8811. msm_routing_put_audio_mixer),
  8812. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. };
  8837. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  8838. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  8839. MSM_BACKEND_DAI_PRI_I2S_TX,
  8840. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8841. msm_routing_put_audio_mixer),
  8842. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8843. MSM_BACKEND_DAI_MI2S_TX,
  8844. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8845. msm_routing_put_audio_mixer),
  8846. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8847. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8848. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8849. msm_routing_put_audio_mixer),
  8850. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8851. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8852. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8853. msm_routing_put_audio_mixer),
  8854. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8855. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8856. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8857. msm_routing_put_audio_mixer),
  8858. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8859. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8860. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8861. msm_routing_put_audio_mixer),
  8862. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8863. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8864. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8865. msm_routing_put_audio_mixer),
  8866. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8867. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8868. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8869. msm_routing_put_audio_mixer),
  8870. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8871. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8872. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8873. msm_routing_put_audio_mixer),
  8874. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8875. MSM_BACKEND_DAI_AUXPCM_TX,
  8876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8877. msm_routing_put_audio_mixer),
  8878. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8879. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8881. msm_routing_put_audio_mixer),
  8882. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_INT_FM_TX,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_AFE_PCM_TX,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  8915. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  8916. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8917. msm_routing_put_audio_mixer),
  8918. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8919. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8920. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8921. msm_routing_put_audio_mixer),
  8922. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8923. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8924. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8925. msm_routing_put_audio_mixer),
  8926. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8927. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8929. msm_routing_put_audio_mixer),
  8930. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8931. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8933. msm_routing_put_audio_mixer),
  8934. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8935. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8936. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8937. msm_routing_put_audio_mixer),
  8938. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8939. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8940. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8941. msm_routing_put_audio_mixer),
  8942. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8943. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8944. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8945. msm_routing_put_audio_mixer),
  8946. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8947. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8948. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8949. msm_routing_put_audio_mixer),
  8950. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8951. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8952. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8953. msm_routing_put_audio_mixer),
  8954. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8955. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8956. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8957. msm_routing_put_audio_mixer),
  8958. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8959. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8961. msm_routing_put_audio_mixer),
  8962. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8963. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8964. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8965. msm_routing_put_audio_mixer),
  8966. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8967. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8968. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8969. msm_routing_put_audio_mixer),
  8970. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8971. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8972. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8973. msm_routing_put_audio_mixer),
  8974. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8975. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8976. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8977. msm_routing_put_audio_mixer),
  8978. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8979. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8981. msm_routing_put_audio_mixer),
  8982. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8983. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8985. msm_routing_put_audio_mixer),
  8986. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8987. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8988. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8989. msm_routing_put_audio_mixer),
  8990. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8991. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8993. msm_routing_put_audio_mixer),
  8994. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8995. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8997. msm_routing_put_audio_mixer),
  8998. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8999. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9001. msm_routing_put_audio_mixer),
  9002. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9003. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9004. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9005. msm_routing_put_audio_mixer),
  9006. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9007. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9009. msm_routing_put_audio_mixer),
  9010. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9011. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9012. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9013. msm_routing_put_audio_mixer),
  9014. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9015. MSM_BACKEND_DAI_USB_TX,
  9016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9017. msm_routing_put_audio_mixer),
  9018. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9019. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9021. msm_routing_put_audio_mixer),
  9022. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9063. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9064. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9065. msm_routing_put_audio_mixer),
  9066. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9067. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9068. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9069. msm_routing_put_audio_mixer),
  9070. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. };
  9075. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  9076. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9077. MSM_BACKEND_DAI_INT_FM_TX,
  9078. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9079. msm_routing_put_audio_mixer),
  9080. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9081. MSM_BACKEND_DAI_MI2S_TX,
  9082. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9083. msm_routing_put_audio_mixer),
  9084. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9085. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9086. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9087. msm_routing_put_audio_mixer),
  9088. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9089. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9090. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9091. msm_routing_put_audio_mixer),
  9092. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9093. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9095. msm_routing_put_audio_mixer),
  9096. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9097. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9098. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9099. msm_routing_put_audio_mixer),
  9100. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9101. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9102. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9103. msm_routing_put_audio_mixer),
  9104. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9105. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9106. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9107. msm_routing_put_audio_mixer),
  9108. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9109. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9110. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9111. msm_routing_put_audio_mixer),
  9112. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9113. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9114. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9115. msm_routing_put_audio_mixer),
  9116. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9117. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9118. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9119. msm_routing_put_audio_mixer),
  9120. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9121. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9122. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9123. msm_routing_put_audio_mixer),
  9124. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9125. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9126. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9127. msm_routing_put_audio_mixer),
  9128. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9129. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9130. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9131. msm_routing_put_audio_mixer),
  9132. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9133. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9134. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9135. msm_routing_put_audio_mixer),
  9136. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9137. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9138. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9139. msm_routing_put_audio_mixer),
  9140. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9141. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9142. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9143. msm_routing_put_audio_mixer),
  9144. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9145. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9146. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9147. msm_routing_put_audio_mixer),
  9148. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9149. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9150. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9151. msm_routing_put_audio_mixer),
  9152. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9153. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9154. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9155. msm_routing_put_audio_mixer),
  9156. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9157. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9158. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9159. msm_routing_put_audio_mixer),
  9160. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9161. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9162. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9163. msm_routing_put_audio_mixer),
  9164. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9165. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9166. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9167. msm_routing_put_audio_mixer),
  9168. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9169. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9170. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9171. msm_routing_put_audio_mixer),
  9172. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9173. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9174. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9175. msm_routing_put_audio_mixer),
  9176. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9177. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9178. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9179. msm_routing_put_audio_mixer),
  9180. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9181. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9182. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9183. msm_routing_put_audio_mixer),
  9184. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9185. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9186. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9187. msm_routing_put_audio_mixer),
  9188. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9189. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9190. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9191. msm_routing_put_audio_mixer),
  9192. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9193. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9195. msm_routing_put_audio_mixer),
  9196. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9197. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9198. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9199. msm_routing_put_audio_mixer),
  9200. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9201. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9202. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9203. msm_routing_put_audio_mixer),
  9204. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9205. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9206. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9207. msm_routing_put_audio_mixer),
  9208. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9209. MSM_BACKEND_DAI_USB_TX,
  9210. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9211. msm_routing_put_audio_mixer),
  9212. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9213. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9214. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9215. msm_routing_put_audio_mixer),
  9216. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9217. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9218. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9219. msm_routing_put_audio_mixer),
  9220. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9221. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9222. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9223. msm_routing_put_audio_mixer),
  9224. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9225. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9227. msm_routing_put_audio_mixer),
  9228. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9229. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9231. msm_routing_put_audio_mixer),
  9232. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9233. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9235. msm_routing_put_audio_mixer),
  9236. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9237. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9238. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9239. msm_routing_put_audio_mixer),
  9240. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9241. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9243. msm_routing_put_audio_mixer),
  9244. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9245. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9246. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9249. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9250. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9251. msm_routing_put_audio_mixer),
  9252. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9253. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9254. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9255. msm_routing_put_audio_mixer),
  9256. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9257. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9258. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9259. msm_routing_put_audio_mixer),
  9260. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9261. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9262. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9263. msm_routing_put_audio_mixer),
  9264. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9265. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9266. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9267. msm_routing_put_audio_mixer),
  9268. };
  9269. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  9270. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9271. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9272. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9273. msm_routing_put_audio_mixer),
  9274. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9275. MSM_BACKEND_DAI_INT_FM_TX,
  9276. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9277. msm_routing_put_audio_mixer),
  9278. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9279. MSM_BACKEND_DAI_MI2S_TX,
  9280. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9281. msm_routing_put_audio_mixer),
  9282. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9283. MSM_BACKEND_DAI_AFE_PCM_TX,
  9284. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9285. msm_routing_put_audio_mixer),
  9286. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9287. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9288. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9289. msm_routing_put_audio_mixer),
  9290. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9291. MSM_BACKEND_DAI_AUXPCM_TX,
  9292. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9293. msm_routing_put_audio_mixer),
  9294. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9295. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9296. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9297. msm_routing_put_audio_mixer),
  9298. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9299. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9300. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9301. msm_routing_put_audio_mixer),
  9302. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9303. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9304. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9305. msm_routing_put_audio_mixer),
  9306. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9307. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9308. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9309. msm_routing_put_audio_mixer),
  9310. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9311. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9312. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9313. msm_routing_put_audio_mixer),
  9314. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9319. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9320. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9321. msm_routing_put_audio_mixer),
  9322. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9323. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9324. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9325. msm_routing_put_audio_mixer),
  9326. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9327. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9328. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9329. msm_routing_put_audio_mixer),
  9330. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9331. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9332. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9333. msm_routing_put_audio_mixer),
  9334. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9335. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9336. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9337. msm_routing_put_audio_mixer),
  9338. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9339. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9340. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9341. msm_routing_put_audio_mixer),
  9342. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9375. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9376. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9377. msm_routing_put_audio_mixer),
  9378. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9379. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9381. msm_routing_put_audio_mixer),
  9382. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9383. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9385. msm_routing_put_audio_mixer),
  9386. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9387. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9388. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9389. msm_routing_put_audio_mixer),
  9390. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9391. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9392. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9393. msm_routing_put_audio_mixer),
  9394. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9395. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9396. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9397. msm_routing_put_audio_mixer),
  9398. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9399. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9400. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9401. msm_routing_put_audio_mixer),
  9402. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9403. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9404. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9405. msm_routing_put_audio_mixer),
  9406. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9407. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9408. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9409. msm_routing_put_audio_mixer),
  9410. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9411. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9412. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9413. msm_routing_put_audio_mixer),
  9414. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9415. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9416. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9417. msm_routing_put_audio_mixer),
  9418. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9419. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9420. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9421. msm_routing_put_audio_mixer),
  9422. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9423. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9424. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9425. msm_routing_put_audio_mixer),
  9426. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9427. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9428. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9429. msm_routing_put_audio_mixer),
  9430. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9431. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9433. msm_routing_put_audio_mixer),
  9434. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9435. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9436. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9437. msm_routing_put_audio_mixer),
  9438. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9439. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9440. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9441. msm_routing_put_audio_mixer),
  9442. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9443. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9444. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9445. msm_routing_put_audio_mixer),
  9446. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9447. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9448. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9449. msm_routing_put_audio_mixer),
  9450. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9451. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9452. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9453. msm_routing_put_audio_mixer),
  9454. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9455. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9456. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9457. msm_routing_put_audio_mixer),
  9458. };
  9459. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9460. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9461. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9462. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9463. msm_routing_put_audio_mixer),
  9464. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9465. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9466. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9467. msm_routing_put_audio_mixer),
  9468. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9469. MSM_BACKEND_DAI_INT_FM_TX,
  9470. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9471. msm_routing_put_audio_mixer),
  9472. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9473. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9474. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9475. msm_routing_put_audio_mixer),
  9476. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9477. MSM_BACKEND_DAI_AFE_PCM_TX,
  9478. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9479. msm_routing_put_audio_mixer),
  9480. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9481. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9482. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9483. msm_routing_put_audio_mixer),
  9484. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9485. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9486. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9487. msm_routing_put_audio_mixer),
  9488. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9489. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9490. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9491. msm_routing_put_audio_mixer),
  9492. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9493. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9494. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9495. msm_routing_put_audio_mixer),
  9496. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9497. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9498. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9499. msm_routing_put_audio_mixer),
  9500. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9501. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9502. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9503. msm_routing_put_audio_mixer),
  9504. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9505. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9506. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9507. msm_routing_put_audio_mixer),
  9508. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9509. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9510. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9511. msm_routing_put_audio_mixer),
  9512. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9513. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9514. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9515. msm_routing_put_audio_mixer),
  9516. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9517. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9518. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9519. msm_routing_put_audio_mixer),
  9520. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9521. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9522. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9523. msm_routing_put_audio_mixer),
  9524. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9525. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9526. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9527. msm_routing_put_audio_mixer),
  9528. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9529. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9530. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9531. msm_routing_put_audio_mixer),
  9532. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9533. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9534. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9535. msm_routing_put_audio_mixer),
  9536. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9537. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9539. msm_routing_put_audio_mixer),
  9540. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9541. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9542. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9543. msm_routing_put_audio_mixer),
  9544. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9545. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9546. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9547. msm_routing_put_audio_mixer),
  9548. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9549. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9550. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9551. msm_routing_put_audio_mixer),
  9552. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9553. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9554. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9555. msm_routing_put_audio_mixer),
  9556. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9557. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9558. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9559. msm_routing_put_audio_mixer),
  9560. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9561. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9562. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9563. msm_routing_put_audio_mixer),
  9564. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9565. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9566. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9567. msm_routing_put_audio_mixer),
  9568. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9569. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9570. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9571. msm_routing_put_audio_mixer),
  9572. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9573. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9574. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9575. msm_routing_put_audio_mixer),
  9576. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9577. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9578. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9579. msm_routing_put_audio_mixer),
  9580. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9581. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9582. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9583. msm_routing_put_audio_mixer),
  9584. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9585. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9586. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9587. msm_routing_put_audio_mixer),
  9588. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9589. MSM_BACKEND_DAI_USB_TX,
  9590. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9591. msm_routing_put_audio_mixer),
  9592. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9593. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9594. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9595. msm_routing_put_audio_mixer),
  9596. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9597. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9598. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9599. msm_routing_put_audio_mixer),
  9600. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9601. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9602. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9603. msm_routing_put_audio_mixer),
  9604. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9605. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9606. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9607. msm_routing_put_audio_mixer),
  9608. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9609. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9610. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9611. msm_routing_put_audio_mixer),
  9612. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9613. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9614. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9615. msm_routing_put_audio_mixer),
  9616. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9617. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9618. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9619. msm_routing_put_audio_mixer),
  9620. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9621. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9622. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9623. msm_routing_put_audio_mixer),
  9624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9626. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9627. msm_routing_put_audio_mixer),
  9628. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9629. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9630. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9631. msm_routing_put_audio_mixer),
  9632. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9633. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9634. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9635. msm_routing_put_audio_mixer),
  9636. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9637. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9638. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9639. msm_routing_put_audio_mixer),
  9640. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9641. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9643. msm_routing_put_audio_mixer),
  9644. };
  9645. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9646. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9647. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9648. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9649. msm_routing_put_audio_mixer),
  9650. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9651. MSM_BACKEND_DAI_INT_FM_TX,
  9652. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9653. msm_routing_put_audio_mixer),
  9654. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9655. MSM_BACKEND_DAI_MI2S_TX,
  9656. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9657. msm_routing_put_audio_mixer),
  9658. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9659. MSM_BACKEND_DAI_AFE_PCM_TX,
  9660. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9661. msm_routing_put_audio_mixer),
  9662. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9663. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9664. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9665. msm_routing_put_audio_mixer),
  9666. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9667. MSM_BACKEND_DAI_AUXPCM_TX,
  9668. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9669. msm_routing_put_audio_mixer),
  9670. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9671. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9672. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9673. msm_routing_put_audio_mixer),
  9674. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9675. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9676. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9677. msm_routing_put_audio_mixer),
  9678. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9679. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9680. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9681. msm_routing_put_audio_mixer),
  9682. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9683. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9684. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9685. msm_routing_put_audio_mixer),
  9686. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9687. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9688. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9689. msm_routing_put_audio_mixer),
  9690. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9691. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9692. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9693. msm_routing_put_audio_mixer),
  9694. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9695. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9696. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9697. msm_routing_put_audio_mixer),
  9698. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9699. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9700. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9701. msm_routing_put_audio_mixer),
  9702. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9703. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9704. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9705. msm_routing_put_audio_mixer),
  9706. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9707. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9708. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9709. msm_routing_put_audio_mixer),
  9710. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9711. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9712. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9713. msm_routing_put_audio_mixer),
  9714. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9715. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9717. msm_routing_put_audio_mixer),
  9718. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9719. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9720. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9721. msm_routing_put_audio_mixer),
  9722. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9723. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9725. msm_routing_put_audio_mixer),
  9726. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9727. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9729. msm_routing_put_audio_mixer),
  9730. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9731. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9732. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9733. msm_routing_put_audio_mixer),
  9734. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9735. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9736. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9737. msm_routing_put_audio_mixer),
  9738. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9739. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9740. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9741. msm_routing_put_audio_mixer),
  9742. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9743. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9744. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9745. msm_routing_put_audio_mixer),
  9746. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9747. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9748. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9749. msm_routing_put_audio_mixer),
  9750. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9751. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9753. msm_routing_put_audio_mixer),
  9754. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9755. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9756. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9757. msm_routing_put_audio_mixer),
  9758. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9759. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9760. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9761. msm_routing_put_audio_mixer),
  9762. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9763. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9764. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9765. msm_routing_put_audio_mixer),
  9766. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9767. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9768. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9769. msm_routing_put_audio_mixer),
  9770. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9771. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9772. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9773. msm_routing_put_audio_mixer),
  9774. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9775. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9777. msm_routing_put_audio_mixer),
  9778. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9779. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9780. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9781. msm_routing_put_audio_mixer),
  9782. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9783. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9784. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9785. msm_routing_put_audio_mixer),
  9786. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9787. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9788. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9789. msm_routing_put_audio_mixer),
  9790. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9791. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9793. msm_routing_put_audio_mixer),
  9794. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9795. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9797. msm_routing_put_audio_mixer),
  9798. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9799. MSM_BACKEND_DAI_USB_TX,
  9800. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9801. msm_routing_put_audio_mixer),
  9802. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9803. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9804. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9805. msm_routing_put_audio_mixer),
  9806. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9807. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9809. msm_routing_put_audio_mixer),
  9810. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9811. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9812. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9813. msm_routing_put_audio_mixer),
  9814. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9815. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9816. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9817. msm_routing_put_audio_mixer),
  9818. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9819. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9820. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9821. msm_routing_put_audio_mixer),
  9822. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9823. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9824. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9825. msm_routing_put_audio_mixer),
  9826. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9827. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9828. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9829. msm_routing_put_audio_mixer),
  9830. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9831. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9833. msm_routing_put_audio_mixer),
  9834. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9835. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9836. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9837. msm_routing_put_audio_mixer),
  9838. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9840. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9841. msm_routing_put_audio_mixer),
  9842. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9843. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9844. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9845. msm_routing_put_audio_mixer),
  9846. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9847. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9848. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9849. msm_routing_put_audio_mixer),
  9850. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. };
  9859. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  9860. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9861. MSM_BACKEND_DAI_INT_FM_TX,
  9862. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9863. msm_routing_put_audio_mixer),
  9864. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9865. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9866. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9867. msm_routing_put_audio_mixer),
  9868. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9869. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9870. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9871. msm_routing_put_audio_mixer),
  9872. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9873. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9874. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9875. msm_routing_put_audio_mixer),
  9876. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9877. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9878. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9879. msm_routing_put_audio_mixer),
  9880. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9881. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9882. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9883. msm_routing_put_audio_mixer),
  9884. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9885. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9886. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9887. msm_routing_put_audio_mixer),
  9888. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9889. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9890. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9891. msm_routing_put_audio_mixer),
  9892. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9893. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9894. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9895. msm_routing_put_audio_mixer),
  9896. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9897. MSM_BACKEND_DAI_AUXPCM_TX,
  9898. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9899. msm_routing_put_audio_mixer),
  9900. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9901. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9902. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9903. msm_routing_put_audio_mixer),
  9904. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9905. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9906. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9907. msm_routing_put_audio_mixer),
  9908. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9909. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9910. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9911. msm_routing_put_audio_mixer),
  9912. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9913. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9914. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9915. msm_routing_put_audio_mixer),
  9916. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9917. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9919. msm_routing_put_audio_mixer),
  9920. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9921. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9922. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9923. msm_routing_put_audio_mixer),
  9924. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9925. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9926. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9927. msm_routing_put_audio_mixer),
  9928. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9929. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9930. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9931. msm_routing_put_audio_mixer),
  9932. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9935. msm_routing_put_audio_mixer),
  9936. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9938. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9939. msm_routing_put_audio_mixer),
  9940. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9943. msm_routing_put_audio_mixer),
  9944. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9947. msm_routing_put_audio_mixer),
  9948. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9950. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9951. msm_routing_put_audio_mixer),
  9952. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9953. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9954. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9955. msm_routing_put_audio_mixer),
  9956. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9957. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9958. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9959. msm_routing_put_audio_mixer),
  9960. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9961. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9962. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9963. msm_routing_put_audio_mixer),
  9964. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9965. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9967. msm_routing_put_audio_mixer),
  9968. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9969. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9971. msm_routing_put_audio_mixer),
  9972. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9973. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9975. msm_routing_put_audio_mixer),
  9976. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9977. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9978. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9979. msm_routing_put_audio_mixer),
  9980. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9981. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9982. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9983. msm_routing_put_audio_mixer),
  9984. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9985. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9986. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9987. msm_routing_put_audio_mixer),
  9988. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9989. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9990. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9991. msm_routing_put_audio_mixer),
  9992. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9993. MSM_BACKEND_DAI_USB_TX,
  9994. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9995. msm_routing_put_audio_mixer),
  9996. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9997. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9998. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9999. msm_routing_put_audio_mixer),
  10000. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10001. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10002. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10003. msm_routing_put_audio_mixer),
  10004. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10005. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10006. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10007. msm_routing_put_audio_mixer),
  10008. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10009. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10010. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10011. msm_routing_put_audio_mixer),
  10012. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10013. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10014. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10015. msm_routing_put_audio_mixer),
  10016. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10017. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10018. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10019. msm_routing_put_audio_mixer),
  10020. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10021. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10022. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10023. msm_routing_put_audio_mixer),
  10024. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10025. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10026. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10027. msm_routing_put_audio_mixer),
  10028. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10029. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10030. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10031. msm_routing_put_audio_mixer),
  10032. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10033. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10034. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10035. msm_routing_put_audio_mixer),
  10036. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10037. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10038. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10039. msm_routing_put_audio_mixer),
  10040. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10041. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10042. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10043. msm_routing_put_audio_mixer),
  10044. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10045. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10046. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10047. msm_routing_put_audio_mixer),
  10048. };
  10049. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  10050. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10051. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10052. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10053. msm_routing_put_audio_mixer),
  10054. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10055. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10056. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10057. msm_routing_put_audio_mixer),
  10058. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10059. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10060. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10061. msm_routing_put_audio_mixer),
  10062. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10063. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10065. msm_routing_put_audio_mixer),
  10066. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10067. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10068. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10069. msm_routing_put_audio_mixer),
  10070. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10071. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10072. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10073. msm_routing_put_audio_mixer),
  10074. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10075. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10076. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10077. msm_routing_put_audio_mixer),
  10078. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10079. MSM_BACKEND_DAI_INT_FM_TX,
  10080. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10081. msm_routing_put_audio_mixer),
  10082. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10083. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10084. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10085. msm_routing_put_audio_mixer),
  10086. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10087. MSM_BACKEND_DAI_AFE_PCM_TX,
  10088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10089. msm_routing_put_audio_mixer),
  10090. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10091. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10092. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10093. msm_routing_put_audio_mixer),
  10094. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10095. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10096. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10097. msm_routing_put_audio_mixer),
  10098. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10099. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10100. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10101. msm_routing_put_audio_mixer),
  10102. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10103. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10104. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10105. msm_routing_put_audio_mixer),
  10106. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10107. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10108. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10109. msm_routing_put_audio_mixer),
  10110. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10111. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10112. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10113. msm_routing_put_audio_mixer),
  10114. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10115. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10116. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10117. msm_routing_put_audio_mixer),
  10118. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10119. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10120. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10121. msm_routing_put_audio_mixer),
  10122. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10123. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10124. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10125. msm_routing_put_audio_mixer),
  10126. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10127. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10128. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10129. msm_routing_put_audio_mixer),
  10130. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10131. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10132. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10133. msm_routing_put_audio_mixer),
  10134. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10135. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10136. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10137. msm_routing_put_audio_mixer),
  10138. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10139. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10140. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10141. msm_routing_put_audio_mixer),
  10142. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10143. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10144. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10145. msm_routing_put_audio_mixer),
  10146. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10148. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10149. msm_routing_put_audio_mixer),
  10150. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10151. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10152. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10153. msm_routing_put_audio_mixer),
  10154. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10155. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10156. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10157. msm_routing_put_audio_mixer),
  10158. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10159. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10160. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10161. msm_routing_put_audio_mixer),
  10162. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10163. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10164. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10165. msm_routing_put_audio_mixer),
  10166. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10168. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10169. msm_routing_put_audio_mixer),
  10170. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10171. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10172. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10173. msm_routing_put_audio_mixer),
  10174. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10176. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10177. msm_routing_put_audio_mixer),
  10178. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10180. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10181. msm_routing_put_audio_mixer),
  10182. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10185. msm_routing_put_audio_mixer),
  10186. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_USB_TX,
  10188. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10189. msm_routing_put_audio_mixer),
  10190. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10192. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10193. msm_routing_put_audio_mixer),
  10194. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10195. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10196. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10197. msm_routing_put_audio_mixer),
  10198. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10199. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10201. msm_routing_put_audio_mixer),
  10202. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10203. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10204. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10205. msm_routing_put_audio_mixer),
  10206. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10207. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10208. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10209. msm_routing_put_audio_mixer),
  10210. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10211. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10213. msm_routing_put_audio_mixer),
  10214. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10215. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10216. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10217. msm_routing_put_audio_mixer),
  10218. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10220. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10221. msm_routing_put_audio_mixer),
  10222. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10223. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10224. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10225. msm_routing_put_audio_mixer),
  10226. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10227. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10228. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10229. msm_routing_put_audio_mixer),
  10230. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10231. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10232. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10233. msm_routing_put_audio_mixer),
  10234. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10235. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10236. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10237. msm_routing_put_audio_mixer),
  10238. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10239. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10240. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10241. msm_routing_put_audio_mixer),
  10242. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10243. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10244. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10245. msm_routing_put_audio_mixer),
  10246. };
  10247. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  10248. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10249. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10250. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10251. msm_routing_put_audio_mixer),
  10252. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10253. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10254. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10255. msm_routing_put_audio_mixer),
  10256. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10257. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10258. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10259. msm_routing_put_audio_mixer),
  10260. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10261. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10262. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10263. msm_routing_put_audio_mixer),
  10264. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10265. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10266. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10267. msm_routing_put_audio_mixer),
  10268. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10269. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10270. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10271. msm_routing_put_audio_mixer),
  10272. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10273. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10274. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10275. msm_routing_put_audio_mixer),
  10276. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10277. MSM_BACKEND_DAI_INT_FM_TX,
  10278. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10279. msm_routing_put_audio_mixer),
  10280. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10281. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10282. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10283. msm_routing_put_audio_mixer),
  10284. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10285. MSM_BACKEND_DAI_AFE_PCM_TX,
  10286. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10287. msm_routing_put_audio_mixer),
  10288. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10291. msm_routing_put_audio_mixer),
  10292. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10294. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10295. msm_routing_put_audio_mixer),
  10296. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10298. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10299. msm_routing_put_audio_mixer),
  10300. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10302. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10303. msm_routing_put_audio_mixer),
  10304. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10305. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10306. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10307. msm_routing_put_audio_mixer),
  10308. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10309. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10310. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10311. msm_routing_put_audio_mixer),
  10312. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10313. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10314. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10315. msm_routing_put_audio_mixer),
  10316. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10317. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10318. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10319. msm_routing_put_audio_mixer),
  10320. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10321. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10322. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10323. msm_routing_put_audio_mixer),
  10324. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10325. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10326. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10327. msm_routing_put_audio_mixer),
  10328. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10329. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10330. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10331. msm_routing_put_audio_mixer),
  10332. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10333. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10334. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10335. msm_routing_put_audio_mixer),
  10336. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10337. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10338. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10339. msm_routing_put_audio_mixer),
  10340. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10341. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10342. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10343. msm_routing_put_audio_mixer),
  10344. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10345. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10346. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10347. msm_routing_put_audio_mixer),
  10348. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10349. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10350. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10351. msm_routing_put_audio_mixer),
  10352. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10353. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10354. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10355. msm_routing_put_audio_mixer),
  10356. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10357. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10358. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10359. msm_routing_put_audio_mixer),
  10360. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10361. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10362. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10363. msm_routing_put_audio_mixer),
  10364. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10365. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10366. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10367. msm_routing_put_audio_mixer),
  10368. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10369. MSM_BACKEND_DAI_USB_TX,
  10370. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10371. msm_routing_put_audio_mixer),
  10372. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10373. MSM_BACKEND_DAI_MI2S_TX,
  10374. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10375. msm_routing_put_audio_mixer),
  10376. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10377. MSM_BACKEND_DAI_AUXPCM_TX,
  10378. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10379. msm_routing_put_audio_mixer),
  10380. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10381. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10382. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10383. msm_routing_put_audio_mixer),
  10384. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10385. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10386. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10387. msm_routing_put_audio_mixer),
  10388. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10389. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10390. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10391. msm_routing_put_audio_mixer),
  10392. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10393. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10394. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10395. msm_routing_put_audio_mixer),
  10396. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10397. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10398. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10399. msm_routing_put_audio_mixer),
  10400. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10402. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10403. msm_routing_put_audio_mixer),
  10404. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10406. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10407. msm_routing_put_audio_mixer),
  10408. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10409. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10410. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10411. msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10416. msm_routing_get_audio_mixer,
  10417. msm_routing_put_audio_mixer),
  10418. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10419. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10420. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10421. msm_routing_get_audio_mixer,
  10422. msm_routing_put_audio_mixer),
  10423. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10424. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10426. msm_routing_get_audio_mixer,
  10427. msm_routing_put_audio_mixer),
  10428. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10429. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10430. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10431. msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10436. msm_routing_get_audio_mixer,
  10437. msm_routing_put_audio_mixer),
  10438. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10439. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10440. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10441. msm_routing_put_audio_mixer),
  10442. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10443. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10444. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10445. msm_routing_put_audio_mixer),
  10446. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10447. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10448. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10449. msm_routing_put_audio_mixer),
  10450. };
  10451. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10452. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10453. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10454. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10455. msm_routing_put_audio_mixer),
  10456. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10457. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10458. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10459. msm_routing_put_audio_mixer),
  10460. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10461. MSM_BACKEND_DAI_INT_FM_TX,
  10462. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10463. msm_routing_put_audio_mixer),
  10464. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10465. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10466. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10467. msm_routing_put_audio_mixer),
  10468. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_AFE_PCM_TX,
  10470. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10471. msm_routing_put_audio_mixer),
  10472. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10473. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10474. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10475. msm_routing_put_audio_mixer),
  10476. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10477. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10478. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10479. msm_routing_put_audio_mixer),
  10480. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10481. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10482. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10483. msm_routing_put_audio_mixer),
  10484. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10485. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10486. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10487. msm_routing_put_audio_mixer),
  10488. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10489. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10490. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10491. msm_routing_put_audio_mixer),
  10492. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10493. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10494. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10495. msm_routing_put_audio_mixer),
  10496. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10497. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10498. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10499. msm_routing_put_audio_mixer),
  10500. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10501. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10502. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10503. msm_routing_put_audio_mixer),
  10504. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10505. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10506. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10507. msm_routing_put_audio_mixer),
  10508. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10509. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10510. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10511. msm_routing_put_audio_mixer),
  10512. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10513. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10514. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10515. msm_routing_put_audio_mixer),
  10516. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10517. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10518. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10519. msm_routing_put_audio_mixer),
  10520. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10521. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10522. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10523. msm_routing_put_audio_mixer),
  10524. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10525. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10526. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10527. msm_routing_put_audio_mixer),
  10528. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10529. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10530. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10531. msm_routing_put_audio_mixer),
  10532. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10533. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10534. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10535. msm_routing_put_audio_mixer),
  10536. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10537. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10538. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10539. msm_routing_put_audio_mixer),
  10540. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10541. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10542. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10543. msm_routing_put_audio_mixer),
  10544. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10545. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10546. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10547. msm_routing_put_audio_mixer),
  10548. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10549. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10550. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10551. msm_routing_put_audio_mixer),
  10552. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10553. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10554. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10555. msm_routing_put_audio_mixer),
  10556. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10557. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10559. msm_routing_put_audio_mixer),
  10560. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10561. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10562. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10563. msm_routing_put_audio_mixer),
  10564. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10565. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10566. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10567. msm_routing_put_audio_mixer),
  10568. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10569. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10570. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10571. msm_routing_put_audio_mixer),
  10572. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10573. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10574. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10575. msm_routing_put_audio_mixer),
  10576. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10577. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10578. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10579. msm_routing_put_audio_mixer),
  10580. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10581. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10582. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10583. msm_routing_put_audio_mixer),
  10584. };
  10585. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10586. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10587. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10588. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10589. msm_routing_put_audio_mixer),
  10590. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10591. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10592. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10593. msm_routing_put_audio_mixer),
  10594. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10595. MSM_BACKEND_DAI_INT_FM_TX,
  10596. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10597. msm_routing_put_audio_mixer),
  10598. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10599. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10600. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10601. msm_routing_put_audio_mixer),
  10602. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10603. MSM_BACKEND_DAI_AFE_PCM_TX,
  10604. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10605. msm_routing_put_audio_mixer),
  10606. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10607. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10608. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10609. msm_routing_put_audio_mixer),
  10610. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10611. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10612. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10613. msm_routing_put_audio_mixer),
  10614. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10615. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10616. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10617. msm_routing_put_audio_mixer),
  10618. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10619. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10620. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10621. msm_routing_put_audio_mixer),
  10622. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10623. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10624. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10625. msm_routing_put_audio_mixer),
  10626. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10627. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10628. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10629. msm_routing_put_audio_mixer),
  10630. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10631. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10632. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10633. msm_routing_put_audio_mixer),
  10634. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10635. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10636. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10637. msm_routing_put_audio_mixer),
  10638. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10639. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10641. msm_routing_put_audio_mixer),
  10642. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10643. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10644. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10645. msm_routing_put_audio_mixer),
  10646. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10647. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10648. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10649. msm_routing_put_audio_mixer),
  10650. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10651. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10652. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10653. msm_routing_put_audio_mixer),
  10654. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10655. MSM_BACKEND_DAI_USB_TX,
  10656. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10657. msm_routing_put_audio_mixer),
  10658. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10659. MSM_BACKEND_DAI_MI2S_TX,
  10660. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10661. msm_routing_put_audio_mixer),
  10662. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10663. MSM_BACKEND_DAI_AUXPCM_TX,
  10664. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10665. msm_routing_put_audio_mixer),
  10666. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10667. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10668. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10669. msm_routing_put_audio_mixer),
  10670. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10671. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10672. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10673. msm_routing_put_audio_mixer),
  10674. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10675. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10676. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10677. msm_routing_put_audio_mixer),
  10678. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10679. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10681. msm_routing_put_audio_mixer),
  10682. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10684. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10685. msm_routing_put_audio_mixer),
  10686. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10688. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10689. msm_routing_put_audio_mixer),
  10690. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10692. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10693. msm_routing_put_audio_mixer),
  10694. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10696. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10697. msm_routing_put_audio_mixer),
  10698. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10700. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10701. msm_routing_put_audio_mixer),
  10702. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10704. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10705. msm_routing_put_audio_mixer),
  10706. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10708. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10709. msm_routing_put_audio_mixer),
  10710. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10711. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10712. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10713. msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10718. msm_routing_get_audio_mixer,
  10719. msm_routing_put_audio_mixer),
  10720. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10721. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10722. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10723. msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10728. msm_routing_get_audio_mixer,
  10729. msm_routing_put_audio_mixer),
  10730. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10732. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10733. msm_routing_get_audio_mixer,
  10734. msm_routing_put_audio_mixer),
  10735. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10737. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10738. msm_routing_get_audio_mixer,
  10739. msm_routing_put_audio_mixer),
  10740. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10741. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10742. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10743. msm_routing_put_audio_mixer),
  10744. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10745. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10746. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10747. msm_routing_put_audio_mixer),
  10748. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10749. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10750. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10751. msm_routing_put_audio_mixer),
  10752. };
  10753. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  10754. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10755. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10756. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10757. msm_routing_put_audio_mixer),
  10758. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10759. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10760. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10761. msm_routing_put_audio_mixer),
  10762. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10763. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10764. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10765. msm_routing_put_audio_mixer),
  10766. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10767. MSM_BACKEND_DAI_INT_FM_TX,
  10768. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10769. msm_routing_put_audio_mixer),
  10770. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10771. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10772. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10773. msm_routing_put_audio_mixer),
  10774. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10775. MSM_BACKEND_DAI_AFE_PCM_TX,
  10776. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10777. msm_routing_put_audio_mixer),
  10778. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10779. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10780. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10781. msm_routing_put_audio_mixer),
  10782. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10783. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10784. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10785. msm_routing_put_audio_mixer),
  10786. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10787. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10788. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10789. msm_routing_put_audio_mixer),
  10790. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10791. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10792. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10793. msm_routing_put_audio_mixer),
  10794. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10795. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10796. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10797. msm_routing_put_audio_mixer),
  10798. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10799. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10800. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10801. msm_routing_put_audio_mixer),
  10802. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10803. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10804. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10805. msm_routing_put_audio_mixer),
  10806. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10807. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10808. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10809. msm_routing_put_audio_mixer),
  10810. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10811. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10812. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10813. msm_routing_put_audio_mixer),
  10814. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10815. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10816. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10817. msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10822. msm_routing_get_audio_mixer,
  10823. msm_routing_put_audio_mixer),
  10824. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10825. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10826. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10827. msm_routing_get_audio_mixer,
  10828. msm_routing_put_audio_mixer),
  10829. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10831. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10832. msm_routing_get_audio_mixer,
  10833. msm_routing_put_audio_mixer),
  10834. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10835. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10836. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10837. msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10842. msm_routing_get_audio_mixer,
  10843. msm_routing_put_audio_mixer),
  10844. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10845. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10846. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10847. msm_routing_put_audio_mixer),
  10848. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10849. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10850. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10851. msm_routing_put_audio_mixer),
  10852. };
  10853. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  10854. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10855. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10856. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10857. msm_routing_put_audio_mixer),
  10858. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10859. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10860. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10861. msm_routing_put_audio_mixer),
  10862. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10863. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10864. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10865. msm_routing_put_audio_mixer),
  10866. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10868. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10869. msm_routing_put_audio_mixer),
  10870. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10871. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10872. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10873. msm_routing_put_audio_mixer),
  10874. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10875. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10876. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10877. msm_routing_put_audio_mixer),
  10878. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_INT_FM_TX,
  10880. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10881. msm_routing_put_audio_mixer),
  10882. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10883. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10884. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_AFE_PCM_TX,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10889. msm_routing_put_audio_mixer),
  10890. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10892. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10893. msm_routing_put_audio_mixer),
  10894. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10895. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10896. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10897. msm_routing_put_audio_mixer),
  10898. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10900. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10901. msm_routing_put_audio_mixer),
  10902. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10904. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10905. msm_routing_put_audio_mixer),
  10906. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10907. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10908. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10909. msm_routing_put_audio_mixer),
  10910. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10921. msm_routing_get_audio_mixer,
  10922. msm_routing_put_audio_mixer),
  10923. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10925. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10926. msm_routing_get_audio_mixer,
  10927. msm_routing_put_audio_mixer),
  10928. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10929. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10930. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10931. msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10936. msm_routing_get_audio_mixer,
  10937. msm_routing_put_audio_mixer),
  10938. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10939. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10940. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10941. msm_routing_get_audio_mixer,
  10942. msm_routing_put_audio_mixer),
  10943. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10945. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10946. msm_routing_get_audio_mixer,
  10947. msm_routing_put_audio_mixer),
  10948. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10950. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10951. msm_routing_put_audio_mixer),
  10952. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10954. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10955. msm_routing_put_audio_mixer),
  10956. };
  10957. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  10958. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10959. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10960. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10961. msm_routing_put_audio_mixer),
  10962. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10963. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10964. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10965. msm_routing_put_audio_mixer),
  10966. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10967. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10968. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10969. msm_routing_put_audio_mixer),
  10970. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10971. MSM_BACKEND_DAI_INT_FM_TX,
  10972. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10973. msm_routing_put_audio_mixer),
  10974. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10975. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10976. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10977. msm_routing_put_audio_mixer),
  10978. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10979. MSM_BACKEND_DAI_AFE_PCM_TX,
  10980. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10981. msm_routing_put_audio_mixer),
  10982. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10983. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10984. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10985. msm_routing_put_audio_mixer),
  10986. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10987. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10988. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10989. msm_routing_put_audio_mixer),
  10990. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10991. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10992. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10993. msm_routing_put_audio_mixer),
  10994. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10995. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10996. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10997. msm_routing_put_audio_mixer),
  10998. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10999. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11000. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11001. msm_routing_put_audio_mixer),
  11002. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11003. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11004. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11005. msm_routing_put_audio_mixer),
  11006. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11007. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11008. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11009. msm_routing_put_audio_mixer),
  11010. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11011. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11012. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11013. msm_routing_put_audio_mixer),
  11014. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11015. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11016. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11017. msm_routing_put_audio_mixer),
  11018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11020. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11021. msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11026. msm_routing_get_audio_mixer,
  11027. msm_routing_put_audio_mixer),
  11028. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11029. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11030. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11031. msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11036. msm_routing_get_audio_mixer,
  11037. msm_routing_put_audio_mixer),
  11038. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11039. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11040. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11041. msm_routing_get_audio_mixer,
  11042. msm_routing_put_audio_mixer),
  11043. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11046. msm_routing_get_audio_mixer,
  11047. msm_routing_put_audio_mixer),
  11048. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11049. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11050. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11051. msm_routing_put_audio_mixer),
  11052. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11053. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11054. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11055. msm_routing_put_audio_mixer),
  11056. };
  11057. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  11058. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11059. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11060. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11061. msm_routing_put_audio_mixer),
  11062. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11063. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11064. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11065. msm_routing_put_audio_mixer),
  11066. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11067. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11068. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11069. msm_routing_put_audio_mixer),
  11070. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11071. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11072. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11073. msm_routing_put_audio_mixer),
  11074. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11075. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11076. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11077. msm_routing_put_audio_mixer),
  11078. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11079. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11080. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11081. msm_routing_put_audio_mixer),
  11082. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11083. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11084. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11085. msm_routing_put_audio_mixer),
  11086. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11087. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11088. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11089. msm_routing_put_audio_mixer),
  11090. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11091. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11092. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11093. msm_routing_put_audio_mixer),
  11094. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11095. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11096. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11097. msm_routing_put_audio_mixer),
  11098. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11099. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11100. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11101. msm_routing_put_audio_mixer),
  11102. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11103. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11104. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11105. msm_routing_put_audio_mixer),
  11106. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11107. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11108. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11109. msm_routing_put_audio_mixer),
  11110. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11111. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11112. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11113. msm_routing_put_audio_mixer),
  11114. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11115. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11116. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11117. msm_routing_put_audio_mixer),
  11118. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11119. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11120. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11121. msm_routing_put_audio_mixer),
  11122. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11123. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11124. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11125. msm_routing_put_audio_mixer),
  11126. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11127. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11128. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11129. msm_routing_put_audio_mixer),
  11130. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11131. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11132. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11133. msm_routing_put_audio_mixer),
  11134. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11135. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11136. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11137. msm_routing_put_audio_mixer),
  11138. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11139. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11140. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11141. msm_routing_put_audio_mixer),
  11142. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11143. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11144. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11145. msm_routing_put_audio_mixer),
  11146. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11147. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11148. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11149. msm_routing_put_audio_mixer),
  11150. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11151. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11152. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11153. msm_routing_put_audio_mixer),
  11154. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11155. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11156. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11157. msm_routing_put_audio_mixer),
  11158. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11159. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11160. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11161. msm_routing_put_audio_mixer),
  11162. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11163. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11164. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11165. msm_routing_put_audio_mixer),
  11166. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11167. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11168. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11169. msm_routing_put_audio_mixer),
  11170. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11171. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11172. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11173. msm_routing_put_audio_mixer),
  11174. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11175. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11176. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11177. msm_routing_put_audio_mixer),
  11178. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11179. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11180. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11181. msm_routing_put_audio_mixer),
  11182. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11183. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11184. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11185. msm_routing_put_audio_mixer),
  11186. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11187. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11188. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11189. msm_routing_put_audio_mixer),
  11190. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11191. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11192. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11193. msm_routing_put_audio_mixer),
  11194. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11195. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11196. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11201. msm_routing_put_audio_mixer),
  11202. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11204. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11205. msm_routing_put_audio_mixer),
  11206. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11208. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11209. msm_routing_put_audio_mixer),
  11210. };
  11211. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  11212. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11213. MSM_BACKEND_DAI_AUXPCM_TX,
  11214. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11215. msm_routing_put_audio_mixer),
  11216. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11217. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11218. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11219. msm_routing_put_audio_mixer),
  11220. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11221. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11222. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11223. msm_routing_put_audio_mixer),
  11224. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11225. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11226. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11227. msm_routing_put_audio_mixer),
  11228. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11229. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11230. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11231. msm_routing_put_audio_mixer),
  11232. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11233. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11234. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11235. msm_routing_put_audio_mixer),
  11236. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11237. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11238. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11239. msm_routing_put_audio_mixer),
  11240. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11241. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11242. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11243. msm_routing_put_audio_mixer),
  11244. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11245. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11246. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11247. msm_routing_put_audio_mixer),
  11248. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11249. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11250. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11251. msm_routing_put_audio_mixer),
  11252. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11253. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11254. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11255. msm_routing_put_audio_mixer),
  11256. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11257. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11258. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11259. msm_routing_put_audio_mixer),
  11260. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11261. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11262. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11263. msm_routing_put_audio_mixer),
  11264. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11265. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11266. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11267. msm_routing_put_audio_mixer),
  11268. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11269. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11270. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11271. msm_routing_put_audio_mixer),
  11272. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11273. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11274. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11275. msm_routing_put_audio_mixer),
  11276. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11277. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11278. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11279. msm_routing_put_audio_mixer),
  11280. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11281. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11282. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11283. msm_routing_put_audio_mixer),
  11284. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11285. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11286. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11287. msm_routing_put_audio_mixer),
  11288. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11289. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11290. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11291. msm_routing_put_audio_mixer),
  11292. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11293. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11294. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11295. msm_routing_put_audio_mixer),
  11296. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11297. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11298. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11299. msm_routing_put_audio_mixer),
  11300. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11301. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11302. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11303. msm_routing_put_audio_mixer),
  11304. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11306. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11307. msm_routing_put_audio_mixer),
  11308. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11309. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11310. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11311. msm_routing_put_audio_mixer),
  11312. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11313. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11314. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11315. msm_routing_put_audio_mixer),
  11316. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11318. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11319. msm_routing_put_audio_mixer),
  11320. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11321. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11322. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11323. msm_routing_put_audio_mixer),
  11324. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11325. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11326. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11327. msm_routing_put_audio_mixer),
  11328. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11329. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11330. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11331. msm_routing_put_audio_mixer),
  11332. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11333. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11334. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11335. msm_routing_put_audio_mixer),
  11336. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11337. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11338. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11339. msm_routing_put_audio_mixer),
  11340. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11341. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11342. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11343. msm_routing_put_audio_mixer),
  11344. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11345. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11346. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11347. msm_routing_put_audio_mixer),
  11348. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11349. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11350. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11351. msm_routing_put_audio_mixer),
  11352. };
  11353. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  11354. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11355. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11356. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11357. msm_routing_put_audio_mixer),
  11358. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11359. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11360. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11361. msm_routing_put_audio_mixer),
  11362. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11363. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11364. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11365. msm_routing_put_audio_mixer),
  11366. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11367. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11368. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11369. msm_routing_put_audio_mixer),
  11370. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11371. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11372. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11373. msm_routing_put_audio_mixer),
  11374. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11375. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11376. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11377. msm_routing_put_audio_mixer),
  11378. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11379. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11380. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11381. msm_routing_put_audio_mixer),
  11382. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11383. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11384. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11385. msm_routing_put_audio_mixer),
  11386. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11387. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11388. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11389. msm_routing_put_audio_mixer),
  11390. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11391. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11392. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11393. msm_routing_put_audio_mixer),
  11394. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11395. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11396. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11397. msm_routing_put_audio_mixer),
  11398. };
  11399. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  11400. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11401. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11402. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11403. msm_routing_put_audio_mixer),
  11404. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11405. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11406. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11407. msm_routing_put_audio_mixer),
  11408. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11410. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11411. msm_routing_put_audio_mixer),
  11412. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_INT_FM_TX,
  11414. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11415. msm_routing_put_audio_mixer),
  11416. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11417. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11418. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11419. msm_routing_put_audio_mixer),
  11420. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11421. MSM_BACKEND_DAI_AFE_PCM_TX,
  11422. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11423. msm_routing_put_audio_mixer),
  11424. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11425. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11426. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11427. msm_routing_put_audio_mixer),
  11428. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11429. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11430. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11431. msm_routing_put_audio_mixer),
  11432. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11433. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11434. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11435. msm_routing_put_audio_mixer),
  11436. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11437. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11438. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11439. msm_routing_put_audio_mixer),
  11440. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11442. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11443. msm_routing_put_audio_mixer),
  11444. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11445. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11446. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11447. msm_routing_put_audio_mixer),
  11448. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11450. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11451. msm_routing_put_audio_mixer),
  11452. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11454. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11455. msm_routing_put_audio_mixer),
  11456. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11457. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11458. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11459. msm_routing_put_audio_mixer),
  11460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11462. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11463. msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11468. msm_routing_get_audio_mixer,
  11469. msm_routing_put_audio_mixer),
  11470. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11471. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11472. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11473. msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11478. msm_routing_get_audio_mixer,
  11479. msm_routing_put_audio_mixer),
  11480. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11481. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11482. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11483. msm_routing_get_audio_mixer,
  11484. msm_routing_put_audio_mixer),
  11485. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11487. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11488. msm_routing_get_audio_mixer,
  11489. msm_routing_put_audio_mixer),
  11490. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11491. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11492. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11493. msm_routing_put_audio_mixer),
  11494. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11495. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11496. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11497. msm_routing_put_audio_mixer),
  11498. };
  11499. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  11500. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11501. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11502. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11503. msm_routing_put_audio_mixer),
  11504. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11505. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11506. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11507. msm_routing_put_audio_mixer),
  11508. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11509. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11510. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11511. msm_routing_put_audio_mixer),
  11512. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11513. MSM_BACKEND_DAI_INT_FM_TX,
  11514. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11515. msm_routing_put_audio_mixer),
  11516. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11517. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11518. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11519. msm_routing_put_audio_mixer),
  11520. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11521. MSM_BACKEND_DAI_AFE_PCM_TX,
  11522. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11523. msm_routing_put_audio_mixer),
  11524. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11525. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11526. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11527. msm_routing_put_audio_mixer),
  11528. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11529. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11530. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11531. msm_routing_put_audio_mixer),
  11532. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11533. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11534. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11535. msm_routing_put_audio_mixer),
  11536. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11537. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11538. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11539. msm_routing_put_audio_mixer),
  11540. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11541. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11542. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11543. msm_routing_put_audio_mixer),
  11544. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11545. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11546. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11547. msm_routing_put_audio_mixer),
  11548. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11549. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11550. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11551. msm_routing_put_audio_mixer),
  11552. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11553. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11554. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11555. msm_routing_put_audio_mixer),
  11556. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11557. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11558. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11559. msm_routing_put_audio_mixer),
  11560. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11561. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11562. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11563. msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11568. msm_routing_get_audio_mixer,
  11569. msm_routing_put_audio_mixer),
  11570. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11571. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11572. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11573. msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11577. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11578. msm_routing_get_audio_mixer,
  11579. msm_routing_put_audio_mixer),
  11580. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11581. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11582. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11583. msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11588. msm_routing_get_audio_mixer,
  11589. msm_routing_put_audio_mixer),
  11590. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11591. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11592. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11593. msm_routing_put_audio_mixer),
  11594. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11595. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11596. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11597. msm_routing_put_audio_mixer),
  11598. };
  11599. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  11600. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11601. MSM_BACKEND_DAI_PRI_I2S_RX,
  11602. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11603. msm_routing_put_voice_mixer),
  11604. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11605. MSM_BACKEND_DAI_PRI_I2S_RX,
  11606. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11607. msm_routing_put_voice_mixer),
  11608. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11609. MSM_BACKEND_DAI_PRI_I2S_RX,
  11610. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11611. msm_routing_put_voice_mixer),
  11612. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_PRI_I2S_RX,
  11614. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11615. msm_routing_put_voice_mixer),
  11616. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_PRI_I2S_RX,
  11618. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11619. msm_routing_put_voice_mixer),
  11620. };
  11621. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  11622. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11623. MSM_BACKEND_DAI_SEC_I2S_RX,
  11624. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11625. msm_routing_put_voice_mixer),
  11626. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11627. MSM_BACKEND_DAI_SEC_I2S_RX,
  11628. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11629. msm_routing_put_voice_mixer),
  11630. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11631. MSM_BACKEND_DAI_SEC_I2S_RX,
  11632. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11633. msm_routing_put_voice_mixer),
  11634. };
  11635. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  11636. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11637. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11638. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11639. msm_routing_put_voice_mixer),
  11640. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11641. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11642. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11643. msm_routing_put_voice_mixer),
  11644. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11645. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11646. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11647. msm_routing_put_voice_mixer),
  11648. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11649. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11650. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11651. msm_routing_put_voice_mixer),
  11652. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11653. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11654. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11655. msm_routing_put_voice_mixer),
  11656. };
  11657. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  11658. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11659. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11660. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11661. msm_routing_put_voice_mixer),
  11662. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11663. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11664. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11665. msm_routing_put_voice_mixer),
  11666. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11667. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11668. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11669. msm_routing_put_voice_mixer),
  11670. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11671. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11672. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11673. msm_routing_put_voice_mixer),
  11674. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11676. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11677. msm_routing_put_voice_mixer),
  11678. };
  11679. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  11680. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11681. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11682. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11683. msm_routing_put_voice_mixer),
  11684. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11685. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11686. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11687. msm_routing_put_voice_mixer),
  11688. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11689. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11690. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11691. msm_routing_put_voice_mixer),
  11692. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11693. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11694. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11695. msm_routing_put_voice_mixer),
  11696. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11697. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11698. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11699. msm_routing_put_voice_mixer),
  11700. };
  11701. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  11702. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11703. MSM_BACKEND_DAI_USB_RX,
  11704. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11705. msm_routing_put_voice_mixer),
  11706. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11707. MSM_BACKEND_DAI_USB_RX,
  11708. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11709. msm_routing_put_voice_mixer),
  11710. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11711. MSM_BACKEND_DAI_USB_RX,
  11712. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11713. msm_routing_put_voice_mixer),
  11714. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11715. MSM_BACKEND_DAI_USB_RX,
  11716. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11717. msm_routing_put_voice_mixer),
  11718. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11719. MSM_BACKEND_DAI_USB_RX,
  11720. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11721. msm_routing_put_voice_mixer),
  11722. };
  11723. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  11724. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11725. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11726. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11727. msm_routing_put_voice_mixer),
  11728. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11729. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11730. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11731. msm_routing_put_voice_mixer),
  11732. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11733. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11734. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11735. msm_routing_put_voice_mixer),
  11736. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11737. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11738. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11739. msm_routing_put_voice_mixer),
  11740. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11741. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11742. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11743. msm_routing_put_voice_mixer),
  11744. };
  11745. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  11746. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11747. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11748. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11749. msm_routing_put_voice_mixer),
  11750. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11751. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11752. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11753. msm_routing_put_voice_mixer),
  11754. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11755. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11756. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11757. msm_routing_put_voice_mixer),
  11758. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11759. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11760. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11761. msm_routing_put_voice_mixer),
  11762. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11763. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11764. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11765. msm_routing_put_voice_mixer),
  11766. };
  11767. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  11768. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11769. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11770. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11771. msm_routing_put_voice_mixer),
  11772. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11773. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11774. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11775. msm_routing_put_voice_mixer),
  11776. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11777. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11778. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11779. msm_routing_put_voice_mixer),
  11780. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11781. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11782. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11783. msm_routing_put_voice_mixer),
  11784. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11785. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11786. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11787. msm_routing_put_voice_mixer),
  11788. };
  11789. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  11790. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11791. MSM_BACKEND_DAI_MI2S_RX,
  11792. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11793. msm_routing_put_voice_mixer),
  11794. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11795. MSM_BACKEND_DAI_MI2S_RX,
  11796. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11797. msm_routing_put_voice_mixer),
  11798. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11799. MSM_BACKEND_DAI_MI2S_RX,
  11800. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11801. msm_routing_put_voice_mixer),
  11802. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11803. MSM_BACKEND_DAI_MI2S_RX,
  11804. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11805. msm_routing_put_voice_mixer),
  11806. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11807. MSM_BACKEND_DAI_MI2S_RX,
  11808. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11809. msm_routing_put_voice_mixer),
  11810. };
  11811. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  11812. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11813. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11814. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11815. msm_routing_put_voice_mixer),
  11816. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11817. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11818. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11819. msm_routing_put_voice_mixer),
  11820. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11821. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11822. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11823. msm_routing_put_voice_mixer),
  11824. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11825. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11826. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11827. msm_routing_put_voice_mixer),
  11828. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11829. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11830. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11831. msm_routing_put_voice_mixer),
  11832. };
  11833. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  11834. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11835. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11836. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11837. msm_routing_put_voice_mixer),
  11838. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11839. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11840. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11841. msm_routing_put_voice_mixer),
  11842. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11843. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11844. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11845. msm_routing_put_voice_mixer),
  11846. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11847. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11848. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11849. msm_routing_put_voice_mixer),
  11850. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11851. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11852. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11853. msm_routing_put_voice_mixer),
  11854. };
  11855. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  11856. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11857. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11858. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11859. msm_routing_put_voice_mixer),
  11860. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11861. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11862. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11863. msm_routing_put_voice_mixer),
  11864. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11865. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11866. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11867. msm_routing_put_voice_mixer),
  11868. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11869. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11870. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11871. msm_routing_put_voice_mixer),
  11872. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11874. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11875. msm_routing_put_voice_mixer),
  11876. };
  11877. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  11878. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11879. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11880. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11881. msm_routing_put_voice_mixer),
  11882. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11883. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11884. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11885. msm_routing_put_voice_mixer),
  11886. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11887. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11888. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11889. msm_routing_put_voice_mixer),
  11890. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11891. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11892. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11893. msm_routing_put_voice_mixer),
  11894. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11895. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11896. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11897. msm_routing_put_voice_mixer),
  11898. };
  11899. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  11900. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11901. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11902. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11903. msm_routing_put_voice_mixer),
  11904. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11905. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11906. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11907. msm_routing_put_voice_mixer),
  11908. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11909. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11910. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11911. msm_routing_put_voice_mixer),
  11912. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11914. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11915. msm_routing_put_voice_mixer),
  11916. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11918. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11919. msm_routing_put_voice_mixer),
  11920. };
  11921. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  11922. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11923. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11924. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11925. msm_routing_put_voice_mixer),
  11926. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11927. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11928. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11929. msm_routing_put_voice_mixer),
  11930. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11931. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11932. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11933. msm_routing_put_voice_mixer),
  11934. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11935. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11936. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11937. msm_routing_put_voice_mixer),
  11938. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11939. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11940. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11941. msm_routing_put_voice_mixer),
  11942. };
  11943. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  11944. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11945. MSM_BACKEND_DAI_AFE_PCM_RX,
  11946. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11947. msm_routing_put_voice_mixer),
  11948. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11949. MSM_BACKEND_DAI_AFE_PCM_RX,
  11950. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11951. msm_routing_put_voice_mixer),
  11952. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_AFE_PCM_RX,
  11954. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11955. msm_routing_put_voice_mixer),
  11956. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11957. MSM_BACKEND_DAI_AFE_PCM_RX,
  11958. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11959. msm_routing_put_voice_mixer),
  11960. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11961. MSM_BACKEND_DAI_AFE_PCM_RX,
  11962. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11963. msm_routing_put_voice_mixer),
  11964. };
  11965. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  11966. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11967. MSM_BACKEND_DAI_AUXPCM_RX,
  11968. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11969. msm_routing_put_voice_mixer),
  11970. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11971. MSM_BACKEND_DAI_AUXPCM_RX,
  11972. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11973. msm_routing_put_voice_mixer),
  11974. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_AUXPCM_RX,
  11976. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11977. msm_routing_put_voice_mixer),
  11978. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_AUXPCM_RX,
  11980. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11981. msm_routing_put_voice_mixer),
  11982. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11983. MSM_BACKEND_DAI_AUXPCM_RX,
  11984. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11985. msm_routing_put_voice_mixer),
  11986. };
  11987. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  11988. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11989. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11990. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11991. msm_routing_put_voice_mixer),
  11992. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11993. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11994. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11995. msm_routing_put_voice_mixer),
  11996. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11997. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11998. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11999. msm_routing_put_voice_mixer),
  12000. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12001. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12002. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12003. msm_routing_put_voice_mixer),
  12004. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12005. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12006. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12007. msm_routing_put_voice_mixer),
  12008. };
  12009. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  12010. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12011. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12012. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12013. msm_routing_put_voice_mixer),
  12014. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12015. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12016. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12017. msm_routing_put_voice_mixer),
  12018. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12020. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12021. msm_routing_put_voice_mixer),
  12022. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12024. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12025. msm_routing_put_voice_mixer),
  12026. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12027. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12028. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12029. msm_routing_put_voice_mixer),
  12030. };
  12031. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  12032. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12033. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12034. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12035. msm_routing_put_voice_mixer),
  12036. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12037. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12038. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12039. msm_routing_put_voice_mixer),
  12040. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12041. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12042. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12043. msm_routing_put_voice_mixer),
  12044. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12045. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12046. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12047. msm_routing_put_voice_mixer),
  12048. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12049. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12050. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12051. msm_routing_put_voice_mixer),
  12052. };
  12053. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  12054. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12055. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12056. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12057. msm_routing_put_voice_mixer),
  12058. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12059. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12060. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12061. msm_routing_put_voice_mixer),
  12062. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12063. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12064. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12065. msm_routing_put_voice_mixer),
  12066. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12068. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12069. msm_routing_put_voice_mixer),
  12070. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12071. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12072. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12073. msm_routing_put_voice_mixer),
  12074. };
  12075. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  12076. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12077. MSM_BACKEND_DAI_HDMI_RX,
  12078. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12079. msm_routing_put_voice_mixer),
  12080. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12081. MSM_BACKEND_DAI_HDMI_RX,
  12082. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12083. msm_routing_put_voice_mixer),
  12084. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12085. MSM_BACKEND_DAI_HDMI_RX,
  12086. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12087. msm_routing_put_voice_mixer),
  12088. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12089. MSM_BACKEND_DAI_HDMI_RX,
  12090. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12091. msm_routing_put_voice_mixer),
  12092. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12093. MSM_BACKEND_DAI_HDMI_RX,
  12094. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12095. msm_routing_put_voice_mixer),
  12096. };
  12097. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  12098. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12099. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12100. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12101. msm_routing_put_voice_mixer),
  12102. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12103. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12104. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12105. msm_routing_put_voice_mixer),
  12106. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12108. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12109. msm_routing_put_voice_mixer),
  12110. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12111. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12112. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12113. msm_routing_put_voice_mixer),
  12114. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12115. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12116. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12117. msm_routing_put_voice_mixer),
  12118. };
  12119. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  12120. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12121. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12122. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12123. msm_routing_put_voice_mixer),
  12124. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12125. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12126. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12127. msm_routing_put_voice_mixer),
  12128. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12129. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12130. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12131. msm_routing_put_voice_mixer),
  12132. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12133. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12134. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12135. msm_routing_put_voice_mixer),
  12136. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12137. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12138. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12139. msm_routing_put_voice_mixer),
  12140. };
  12141. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  12142. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12144. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12145. msm_routing_put_voice_mixer),
  12146. };
  12147. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  12148. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12149. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12150. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12151. msm_routing_put_voice_mixer),
  12152. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12153. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12154. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12155. msm_routing_put_voice_mixer),
  12156. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12157. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12158. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12159. msm_routing_put_voice_mixer),
  12160. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12161. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12162. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12163. msm_routing_put_voice_mixer),
  12164. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12165. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12166. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12167. msm_routing_put_voice_mixer),
  12168. };
  12169. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  12170. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12171. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12172. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12173. msm_routing_put_voice_mixer),
  12174. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12175. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12176. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12177. msm_routing_put_voice_mixer),
  12178. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12180. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12181. msm_routing_put_voice_mixer),
  12182. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12184. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12185. msm_routing_put_voice_mixer),
  12186. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12188. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12189. msm_routing_put_voice_mixer),
  12190. };
  12191. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  12192. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12193. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12194. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12195. msm_routing_put_voice_mixer),
  12196. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12197. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12198. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12199. msm_routing_put_voice_mixer),
  12200. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12201. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12202. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12203. msm_routing_put_voice_mixer),
  12204. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12205. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12206. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12207. msm_routing_put_voice_mixer),
  12208. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12209. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12210. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12211. msm_routing_put_voice_mixer),
  12212. };
  12213. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  12214. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12215. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12216. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12217. msm_routing_put_voice_mixer),
  12218. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12219. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12220. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12221. msm_routing_put_voice_mixer),
  12222. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12223. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12224. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12225. msm_routing_put_voice_mixer),
  12226. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12227. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12228. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12229. msm_routing_put_voice_mixer),
  12230. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12231. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12232. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12233. msm_routing_put_voice_mixer),
  12234. };
  12235. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  12236. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12237. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12238. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12239. msm_routing_put_voice_mixer),
  12240. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12241. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12242. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12243. msm_routing_put_voice_mixer),
  12244. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12246. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12247. msm_routing_put_voice_mixer),
  12248. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12250. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12251. msm_routing_put_voice_mixer),
  12252. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12253. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12254. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12255. msm_routing_put_voice_mixer),
  12256. };
  12257. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  12258. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12259. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12260. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12261. msm_routing_put_voice_mixer),
  12262. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12263. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12264. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12265. msm_routing_put_voice_mixer),
  12266. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12267. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12268. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12269. msm_routing_put_voice_mixer),
  12270. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12271. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12272. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12273. msm_routing_put_voice_mixer),
  12274. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12275. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12276. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12277. msm_routing_put_voice_mixer),
  12278. };
  12279. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  12280. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12281. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12282. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12283. msm_routing_put_voice_mixer),
  12284. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12285. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12286. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12287. msm_routing_put_voice_mixer),
  12288. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12289. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12290. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12291. msm_routing_put_voice_mixer),
  12292. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12293. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12294. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12295. msm_routing_put_voice_mixer),
  12296. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12297. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12298. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12299. msm_routing_put_voice_mixer),
  12300. };
  12301. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  12302. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12303. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12304. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12305. msm_routing_put_voice_mixer),
  12306. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12307. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12308. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12309. msm_routing_put_voice_mixer),
  12310. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12311. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12312. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12313. msm_routing_put_voice_mixer),
  12314. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12315. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12316. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12317. msm_routing_put_voice_mixer),
  12318. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12319. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12320. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12321. msm_routing_put_voice_mixer),
  12322. };
  12323. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  12324. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12325. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12326. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12327. msm_routing_put_voice_mixer),
  12328. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12329. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12330. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12331. msm_routing_put_voice_mixer),
  12332. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12334. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12335. msm_routing_put_voice_mixer),
  12336. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12338. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12339. msm_routing_put_voice_mixer),
  12340. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12342. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12343. msm_routing_put_voice_mixer),
  12344. };
  12345. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  12346. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12347. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12348. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12349. msm_routing_put_voice_mixer),
  12350. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12351. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12352. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12353. msm_routing_put_voice_mixer),
  12354. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12355. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12356. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12357. msm_routing_put_voice_mixer),
  12358. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12359. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12360. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12361. msm_routing_put_voice_mixer),
  12362. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12363. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12364. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12365. msm_routing_put_voice_mixer),
  12366. };
  12367. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  12368. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12369. MSM_BACKEND_DAI_EXTPROC_RX,
  12370. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12371. msm_routing_put_voice_mixer),
  12372. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_EXTPROC_RX,
  12374. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12375. msm_routing_put_voice_mixer),
  12376. };
  12377. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  12378. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12379. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12380. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12381. msm_routing_put_voice_mixer),
  12382. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12383. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12384. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12385. msm_routing_put_voice_mixer),
  12386. };
  12387. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  12388. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12389. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12390. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12391. msm_routing_put_voice_mixer),
  12392. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12393. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12394. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12395. msm_routing_put_voice_mixer),
  12396. };
  12397. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  12398. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  12399. MSM_BACKEND_DAI_PRI_I2S_TX,
  12400. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12401. msm_routing_put_voice_mixer),
  12402. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  12403. MSM_BACKEND_DAI_MI2S_TX,
  12404. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12405. msm_routing_put_voice_mixer),
  12406. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  12407. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12408. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12409. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12411. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12412. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  12413. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12414. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12415. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12417. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12418. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12419. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12420. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12421. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12423. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12424. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12425. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12426. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12427. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12429. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12430. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  12431. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12432. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12433. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12435. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12436. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  12437. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12438. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12439. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12441. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12442. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  12443. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12444. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12445. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_USB_TX,
  12447. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12448. msm_routing_put_voice_mixer),
  12449. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12451. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12452. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12453. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12454. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12455. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12457. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12458. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12459. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12460. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12461. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12463. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12464. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  12465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  12466. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12467. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  12469. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12470. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  12471. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  12472. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12473. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  12475. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12476. };
  12477. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  12478. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  12479. MSM_BACKEND_DAI_PRI_I2S_TX,
  12480. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12481. msm_routing_put_voice_mixer),
  12482. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  12483. MSM_BACKEND_DAI_MI2S_TX,
  12484. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12485. msm_routing_put_voice_mixer),
  12486. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  12487. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12488. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12489. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12491. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12492. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  12493. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12494. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12495. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12497. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12498. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12499. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12500. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12501. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12503. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12504. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12505. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12506. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12507. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12509. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12510. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  12511. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12512. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12513. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12515. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12516. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  12517. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12518. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12519. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12521. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12522. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  12523. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12524. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12525. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12527. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12528. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12529. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12530. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12531. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12533. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12534. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12535. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12536. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12537. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12539. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12540. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  12541. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  12542. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12543. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  12545. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12546. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  12547. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  12548. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12549. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  12551. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12552. };
  12553. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  12554. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_PRI_I2S_TX,
  12556. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12557. msm_routing_put_voice_mixer),
  12558. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  12559. MSM_BACKEND_DAI_MI2S_TX,
  12560. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12561. msm_routing_put_voice_mixer),
  12562. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12564. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12565. msm_routing_put_voice_mixer),
  12566. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12568. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12569. msm_routing_put_voice_mixer),
  12570. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_AFE_PCM_TX,
  12572. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12573. msm_routing_put_voice_mixer),
  12574. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12575. MSM_BACKEND_DAI_AUXPCM_TX,
  12576. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12577. msm_routing_put_voice_mixer),
  12578. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12579. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12580. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12581. msm_routing_put_voice_mixer),
  12582. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12584. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12585. msm_routing_put_voice_mixer),
  12586. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12588. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12589. msm_routing_put_voice_mixer),
  12590. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12592. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12593. msm_routing_put_voice_mixer),
  12594. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12596. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12597. msm_routing_put_voice_mixer),
  12598. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  12599. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12600. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12601. msm_routing_put_voice_mixer),
  12602. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12604. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12605. msm_routing_put_voice_mixer),
  12606. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12608. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12609. msm_routing_put_voice_mixer),
  12610. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12612. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12613. msm_routing_put_voice_mixer),
  12614. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  12615. MSM_BACKEND_DAI_USB_TX,
  12616. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12617. msm_routing_put_voice_mixer),
  12618. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12620. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12621. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12623. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12626. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12627. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12629. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12630. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  12632. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12633. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  12635. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12636. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  12637. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  12638. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12639. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  12641. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12642. };
  12643. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  12644. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12645. MSM_BACKEND_DAI_EXTPROC_TX,
  12646. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12647. msm_routing_put_voice_stub_mixer),
  12648. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12649. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12650. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12651. msm_routing_put_voice_stub_mixer),
  12652. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12653. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12654. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12655. msm_routing_put_voice_stub_mixer),
  12656. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12657. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12658. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12659. msm_routing_put_voice_stub_mixer),
  12660. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12661. MSM_BACKEND_DAI_MI2S_TX,
  12662. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12663. msm_routing_put_voice_stub_mixer),
  12664. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12665. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12666. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12667. msm_routing_put_voice_stub_mixer),
  12668. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12669. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12670. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12671. msm_routing_put_voice_stub_mixer),
  12672. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12673. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12674. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12675. msm_routing_put_voice_stub_mixer),
  12676. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12677. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12678. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12679. msm_routing_put_voice_stub_mixer),
  12680. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12681. MSM_BACKEND_DAI_AUXPCM_TX,
  12682. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12683. msm_routing_put_voice_stub_mixer),
  12684. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12685. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12686. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12687. msm_routing_put_voice_stub_mixer),
  12688. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12689. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12690. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12691. msm_routing_put_voice_stub_mixer),
  12692. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12693. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12694. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12695. msm_routing_put_voice_stub_mixer),
  12696. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12697. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12698. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12699. msm_routing_put_voice_stub_mixer),
  12700. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12701. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12702. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12703. msm_routing_put_voice_stub_mixer),
  12704. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12705. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12706. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12707. msm_routing_put_voice_stub_mixer),
  12708. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_AFE_PCM_TX,
  12710. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12711. msm_routing_put_voice_stub_mixer),
  12712. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12713. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12714. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12715. msm_routing_put_voice_stub_mixer),
  12716. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12717. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12718. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12719. msm_routing_put_voice_stub_mixer),
  12720. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12721. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12722. 1, 0, msm_routing_get_voice_stub_mixer,
  12723. msm_routing_put_voice_stub_mixer),
  12724. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12725. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12726. 1, 0, msm_routing_get_voice_stub_mixer,
  12727. msm_routing_put_voice_stub_mixer),
  12728. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12730. 1, 0, msm_routing_get_voice_stub_mixer,
  12731. msm_routing_put_voice_stub_mixer),
  12732. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12734. 1, 0, msm_routing_get_voice_stub_mixer,
  12735. msm_routing_put_voice_stub_mixer),
  12736. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12737. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  12738. 1, 0, msm_routing_get_voice_stub_mixer,
  12739. msm_routing_put_voice_stub_mixer),
  12740. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  12742. 1, 0, msm_routing_get_voice_stub_mixer,
  12743. msm_routing_put_voice_stub_mixer),
  12744. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  12746. 1, 0, msm_routing_get_voice_stub_mixer,
  12747. msm_routing_put_voice_stub_mixer),
  12748. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  12750. 1, 0, msm_routing_get_voice_stub_mixer,
  12751. msm_routing_put_voice_stub_mixer),
  12752. };
  12753. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  12754. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12755. MSM_BACKEND_DAI_EXTPROC_TX,
  12756. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12757. msm_routing_put_voice_stub_mixer),
  12758. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12759. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12760. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12761. msm_routing_put_voice_stub_mixer),
  12762. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12763. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12764. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12765. msm_routing_put_voice_stub_mixer),
  12766. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12767. MSM_BACKEND_DAI_AUXPCM_TX,
  12768. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12769. msm_routing_put_voice_stub_mixer),
  12770. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12771. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12772. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12773. msm_routing_put_voice_stub_mixer),
  12774. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12775. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12776. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12777. msm_routing_put_voice_stub_mixer),
  12778. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12779. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12780. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12781. msm_routing_put_voice_stub_mixer),
  12782. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12783. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12784. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12785. msm_routing_put_voice_stub_mixer),
  12786. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12787. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12788. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12789. msm_routing_put_voice_stub_mixer),
  12790. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12791. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12792. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12793. msm_routing_put_voice_stub_mixer),
  12794. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12795. MSM_BACKEND_DAI_AFE_PCM_TX,
  12796. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12797. msm_routing_put_voice_stub_mixer),
  12798. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12799. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12800. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12801. msm_routing_put_voice_stub_mixer),
  12802. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12803. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12804. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12805. msm_routing_put_voice_stub_mixer),
  12806. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12807. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12808. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12809. msm_routing_put_voice_stub_mixer),
  12810. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12811. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12812. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12813. msm_routing_put_voice_stub_mixer),
  12814. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12815. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12816. 1, 0, msm_routing_get_voice_stub_mixer,
  12817. msm_routing_put_voice_stub_mixer),
  12818. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12819. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12820. 1, 0, msm_routing_get_voice_stub_mixer,
  12821. msm_routing_put_voice_stub_mixer),
  12822. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12823. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12824. 1, 0, msm_routing_get_voice_stub_mixer,
  12825. msm_routing_put_voice_stub_mixer),
  12826. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12827. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12828. 1, 0, msm_routing_get_voice_stub_mixer,
  12829. msm_routing_put_voice_stub_mixer),
  12830. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12831. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  12832. 1, 0, msm_routing_get_voice_stub_mixer,
  12833. msm_routing_put_voice_stub_mixer),
  12834. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12835. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  12836. 1, 0, msm_routing_get_voice_stub_mixer,
  12837. msm_routing_put_voice_stub_mixer),
  12838. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12839. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  12840. 1, 0, msm_routing_get_voice_stub_mixer,
  12841. msm_routing_put_voice_stub_mixer),
  12842. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12843. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  12844. 1, 0, msm_routing_get_voice_stub_mixer,
  12845. msm_routing_put_voice_stub_mixer),
  12846. };
  12847. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  12848. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12849. MSM_BACKEND_DAI_EXTPROC_TX,
  12850. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12851. msm_routing_put_voice_stub_mixer),
  12852. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12853. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12854. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12855. msm_routing_put_voice_stub_mixer),
  12856. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12857. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12858. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12859. msm_routing_put_voice_stub_mixer),
  12860. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12861. MSM_BACKEND_DAI_AUXPCM_TX,
  12862. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12863. msm_routing_put_voice_stub_mixer),
  12864. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12865. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12866. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12867. msm_routing_put_voice_stub_mixer),
  12868. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12869. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12870. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12871. msm_routing_put_voice_stub_mixer),
  12872. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12873. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12874. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12875. msm_routing_put_voice_stub_mixer),
  12876. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12877. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12878. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12879. msm_routing_put_voice_stub_mixer),
  12880. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12881. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12882. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12883. msm_routing_put_voice_stub_mixer),
  12884. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12885. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12886. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12887. msm_routing_put_voice_stub_mixer),
  12888. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12889. MSM_BACKEND_DAI_AFE_PCM_TX,
  12890. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12891. msm_routing_put_voice_stub_mixer),
  12892. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12894. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12895. msm_routing_put_voice_stub_mixer),
  12896. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12897. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12898. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12899. msm_routing_put_voice_stub_mixer),
  12900. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12901. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12902. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12903. msm_routing_put_voice_stub_mixer),
  12904. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12905. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12906. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12907. msm_routing_put_voice_stub_mixer),
  12908. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12909. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12910. 1, 0, msm_routing_get_voice_stub_mixer,
  12911. msm_routing_put_voice_stub_mixer),
  12912. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12913. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12914. 1, 0, msm_routing_get_voice_stub_mixer,
  12915. msm_routing_put_voice_stub_mixer),
  12916. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12918. 1, 0, msm_routing_get_voice_stub_mixer,
  12919. msm_routing_put_voice_stub_mixer),
  12920. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12921. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12922. 1, 0, msm_routing_get_voice_stub_mixer,
  12923. msm_routing_put_voice_stub_mixer),
  12924. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12925. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  12926. 1, 0, msm_routing_get_voice_stub_mixer,
  12927. msm_routing_put_voice_stub_mixer),
  12928. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12929. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  12930. 1, 0, msm_routing_get_voice_stub_mixer,
  12931. msm_routing_put_voice_stub_mixer),
  12932. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12933. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  12934. 1, 0, msm_routing_get_voice_stub_mixer,
  12935. msm_routing_put_voice_stub_mixer),
  12936. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  12938. 1, 0, msm_routing_get_voice_stub_mixer,
  12939. msm_routing_put_voice_stub_mixer),
  12940. };
  12941. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  12942. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  12943. MSM_BACKEND_DAI_PRI_I2S_TX,
  12944. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12945. msm_routing_put_voice_mixer),
  12946. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  12947. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12948. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12949. msm_routing_put_voice_mixer),
  12950. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  12951. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12952. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  12953. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12954. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  12955. MSM_BACKEND_DAI_AFE_PCM_TX,
  12956. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12957. msm_routing_put_voice_mixer),
  12958. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12959. MSM_BACKEND_DAI_AUXPCM_TX,
  12960. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12961. msm_routing_put_voice_mixer),
  12962. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12963. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12964. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12965. msm_routing_put_voice_mixer),
  12966. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12967. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12968. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12969. msm_routing_put_voice_mixer),
  12970. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12971. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12972. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12973. msm_routing_put_voice_mixer),
  12974. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12975. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12976. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12977. msm_routing_put_voice_mixer),
  12978. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_MI2S_TX,
  12980. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12981. msm_routing_put_voice_mixer),
  12982. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12983. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12984. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12985. msm_routing_put_voice_mixer),
  12986. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12987. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12988. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12989. msm_routing_put_voice_mixer),
  12990. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12991. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12992. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12993. msm_routing_put_voice_mixer),
  12994. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  12995. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12996. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12997. msm_routing_put_voice_mixer),
  12998. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  12999. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13000. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13001. msm_routing_put_voice_mixer),
  13002. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  13003. MSM_BACKEND_DAI_USB_TX,
  13004. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13005. msm_routing_put_voice_mixer),
  13006. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13007. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13008. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13009. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13011. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13012. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13013. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13014. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13015. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13017. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  13019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  13020. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13021. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  13023. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13024. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  13025. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  13026. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13027. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  13029. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13030. };
  13031. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  13032. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13033. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13034. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13035. msm_routing_put_port_mixer),
  13036. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13037. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13038. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13039. msm_routing_put_port_mixer),
  13040. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13041. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13042. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13043. msm_routing_put_port_mixer),
  13044. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13045. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13046. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13047. msm_routing_put_port_mixer),
  13048. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13049. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13050. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13051. msm_routing_put_port_mixer),
  13052. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13053. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13054. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13055. msm_routing_put_port_mixer),
  13056. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13057. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13058. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13059. msm_routing_put_port_mixer),
  13060. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13061. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13062. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13063. msm_routing_put_port_mixer),
  13064. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13065. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13066. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13067. msm_routing_put_port_mixer),
  13068. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13069. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13070. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13071. msm_routing_put_port_mixer),
  13072. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13073. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13074. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13075. msm_routing_put_port_mixer),
  13076. };
  13077. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  13078. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13079. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13080. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13081. msm_routing_put_port_mixer),
  13082. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13084. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13085. msm_routing_put_port_mixer),
  13086. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13088. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13089. msm_routing_put_port_mixer),
  13090. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13092. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13093. msm_routing_put_port_mixer),
  13094. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13095. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13096. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13097. msm_routing_put_port_mixer),
  13098. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13099. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13100. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13101. msm_routing_put_port_mixer),
  13102. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13103. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13104. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13105. msm_routing_put_port_mixer),
  13106. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13107. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13108. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13109. msm_routing_put_port_mixer),
  13110. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13111. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13112. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13113. msm_routing_put_port_mixer),
  13114. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13115. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13116. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13117. msm_routing_put_port_mixer),
  13118. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13119. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13120. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13121. msm_routing_put_port_mixer),
  13122. };
  13123. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  13124. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13125. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13126. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  13127. msm_routing_put_port_mixer),
  13128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13129. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13130. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13131. msm_routing_put_port_mixer),
  13132. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13133. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13134. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13135. msm_routing_put_port_mixer),
  13136. };
  13137. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  13138. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13139. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13140. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13141. msm_routing_put_port_mixer),
  13142. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13143. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13144. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13145. msm_routing_put_port_mixer),
  13146. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13147. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13148. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13149. msm_routing_put_port_mixer),
  13150. };
  13151. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  13152. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13154. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13155. msm_routing_put_port_mixer),
  13156. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13158. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13159. msm_routing_put_port_mixer),
  13160. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13162. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13163. msm_routing_put_port_mixer),
  13164. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13165. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13166. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13167. msm_routing_put_port_mixer),
  13168. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13170. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13171. msm_routing_put_port_mixer),
  13172. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13173. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13174. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13175. msm_routing_put_port_mixer),
  13176. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13177. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13178. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13179. msm_routing_put_port_mixer),
  13180. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13181. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13182. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13183. msm_routing_put_port_mixer),
  13184. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13185. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13186. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13187. msm_routing_put_port_mixer),
  13188. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13190. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13191. msm_routing_put_port_mixer),
  13192. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13194. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13195. msm_routing_put_port_mixer),
  13196. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13197. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13198. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13199. msm_routing_put_port_mixer),
  13200. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13201. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13202. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13203. msm_routing_put_port_mixer),
  13204. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13205. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13206. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13207. msm_routing_put_port_mixer),
  13208. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13210. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13211. msm_routing_put_port_mixer),
  13212. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13214. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13215. msm_routing_put_port_mixer),
  13216. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13217. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13218. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13219. msm_routing_put_port_mixer),
  13220. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  13221. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13222. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13223. msm_routing_put_port_mixer),
  13224. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  13225. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13226. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13227. msm_routing_put_port_mixer),
  13228. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13230. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13231. msm_routing_put_port_mixer),
  13232. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  13233. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13234. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13235. msm_routing_put_port_mixer),
  13236. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  13237. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13238. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13239. msm_routing_put_port_mixer),
  13240. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13242. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13243. msm_routing_put_port_mixer),
  13244. };
  13245. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  13246. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13247. MSM_BACKEND_DAI_AUXPCM_RX,
  13248. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13249. msm_routing_put_port_mixer),
  13250. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13251. MSM_BACKEND_DAI_AUXPCM_RX,
  13252. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13253. msm_routing_put_port_mixer),
  13254. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13255. MSM_BACKEND_DAI_AUXPCM_RX,
  13256. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13257. msm_routing_put_port_mixer),
  13258. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13259. MSM_BACKEND_DAI_AUXPCM_RX,
  13260. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13261. msm_routing_put_port_mixer),
  13262. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13263. MSM_BACKEND_DAI_AUXPCM_RX,
  13264. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  13265. msm_routing_put_port_mixer),
  13266. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13267. MSM_BACKEND_DAI_AUXPCM_RX,
  13268. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13269. msm_routing_put_port_mixer),
  13270. };
  13271. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  13272. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13274. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13275. msm_routing_put_port_mixer),
  13276. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13277. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13278. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13279. msm_routing_put_port_mixer),
  13280. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13282. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13283. msm_routing_put_port_mixer),
  13284. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13286. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13287. msm_routing_put_port_mixer),
  13288. };
  13289. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  13290. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13291. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13292. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13293. msm_routing_put_port_mixer),
  13294. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13295. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13296. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13297. msm_routing_put_port_mixer),
  13298. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13299. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13300. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13301. msm_routing_put_port_mixer),
  13302. };
  13303. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  13304. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13305. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13306. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13307. msm_routing_put_port_mixer),
  13308. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13309. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13310. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13311. msm_routing_put_port_mixer),
  13312. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13314. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13315. msm_routing_put_port_mixer),
  13316. };
  13317. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  13318. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13319. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13320. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13321. msm_routing_put_port_mixer),
  13322. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13323. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13324. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13325. msm_routing_put_port_mixer),
  13326. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13327. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13328. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13329. msm_routing_put_port_mixer),
  13330. };
  13331. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  13332. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13333. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13334. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13335. msm_routing_put_port_mixer),
  13336. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13337. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13338. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  13339. msm_routing_put_port_mixer),
  13340. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13341. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13342. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13343. msm_routing_put_port_mixer),
  13344. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13345. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13346. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13347. msm_routing_put_port_mixer),
  13348. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13349. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13350. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13351. msm_routing_put_port_mixer),
  13352. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13353. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13354. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13355. msm_routing_put_port_mixer),
  13356. };
  13357. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  13358. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  13359. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13360. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  13361. msm_routing_put_port_mixer),
  13362. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13363. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13364. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13365. msm_routing_put_port_mixer),
  13366. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  13367. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13368. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  13369. msm_routing_put_port_mixer),
  13370. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  13371. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13372. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  13373. msm_routing_put_port_mixer),
  13374. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  13375. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13376. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  13377. msm_routing_put_port_mixer),
  13378. };
  13379. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  13380. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13381. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13382. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13383. msm_routing_put_port_mixer),
  13384. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13385. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13386. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13387. msm_routing_put_port_mixer),
  13388. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13389. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13390. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13391. msm_routing_put_port_mixer),
  13392. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13394. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13395. msm_routing_put_port_mixer),
  13396. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13398. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13399. msm_routing_put_port_mixer),
  13400. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13401. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13402. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13403. msm_routing_put_port_mixer),
  13404. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13405. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13406. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13407. msm_routing_put_port_mixer),
  13408. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13409. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13410. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13411. msm_routing_put_port_mixer),
  13412. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13413. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13414. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13415. msm_routing_put_port_mixer),
  13416. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13418. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13419. msm_routing_put_port_mixer),
  13420. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13421. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13422. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13423. msm_routing_put_port_mixer),
  13424. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13425. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13426. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13427. msm_routing_put_port_mixer),
  13428. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13429. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13430. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13431. msm_routing_put_port_mixer),
  13432. };
  13433. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  13434. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13435. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13436. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13437. msm_routing_put_port_mixer),
  13438. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13439. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13440. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13441. msm_routing_put_port_mixer),
  13442. };
  13443. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  13444. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13445. MSM_BACKEND_DAI_AFE_PCM_RX,
  13446. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13447. msm_routing_put_port_mixer),
  13448. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13449. MSM_BACKEND_DAI_AFE_PCM_RX,
  13450. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13451. msm_routing_put_port_mixer),
  13452. };
  13453. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  13454. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13455. MSM_BACKEND_DAI_HDMI_RX,
  13456. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13457. msm_routing_put_port_mixer),
  13458. };
  13459. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  13460. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13461. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13462. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13463. msm_routing_put_port_mixer),
  13464. };
  13465. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  13466. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13467. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13468. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13469. msm_routing_put_port_mixer),
  13470. };
  13471. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  13472. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13473. MSM_BACKEND_DAI_SEC_I2S_RX,
  13474. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13475. msm_routing_put_port_mixer),
  13476. };
  13477. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  13478. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13479. MSM_BACKEND_DAI_MI2S_RX,
  13480. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13481. msm_routing_put_port_mixer),
  13482. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13483. MSM_BACKEND_DAI_MI2S_RX,
  13484. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13485. msm_routing_put_port_mixer),
  13486. };
  13487. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  13488. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13489. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13490. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13491. msm_routing_put_port_mixer),
  13492. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13493. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13494. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13495. msm_routing_put_port_mixer),
  13496. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13497. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13498. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13499. msm_routing_put_port_mixer),
  13500. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13501. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13502. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13503. msm_routing_put_port_mixer),
  13504. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13505. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13506. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13507. msm_routing_put_port_mixer),
  13508. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13509. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13510. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13511. msm_routing_put_port_mixer),
  13512. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13513. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13514. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13515. msm_routing_put_port_mixer),
  13516. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13517. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13518. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13519. msm_routing_put_port_mixer),
  13520. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13521. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13522. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13523. msm_routing_put_port_mixer),
  13524. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13525. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13526. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13527. msm_routing_put_port_mixer),
  13528. };
  13529. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  13530. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13531. MSM_BACKEND_DAI_USB_RX,
  13532. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  13533. msm_routing_put_port_mixer),
  13534. };
  13535. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  13536. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13537. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13538. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13539. msm_routing_put_port_mixer),
  13540. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13541. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13542. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13543. msm_routing_put_port_mixer),
  13544. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13545. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13546. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13547. msm_routing_put_port_mixer),
  13548. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13549. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13550. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13551. msm_routing_put_port_mixer),
  13552. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13553. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13554. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13555. msm_routing_put_port_mixer),
  13556. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13557. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13558. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13559. msm_routing_put_port_mixer),
  13560. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13561. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13562. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13563. msm_routing_put_port_mixer),
  13564. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13565. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13566. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13567. msm_routing_put_port_mixer),
  13568. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13569. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13570. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13571. msm_routing_put_port_mixer),
  13572. };
  13573. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  13574. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13575. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13576. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13577. msm_routing_put_port_mixer),
  13578. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13579. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13580. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13581. msm_routing_put_port_mixer),
  13582. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13583. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13584. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13585. msm_routing_put_port_mixer),
  13586. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13587. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13588. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13589. msm_routing_put_port_mixer),
  13590. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13591. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13592. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13593. msm_routing_put_port_mixer),
  13594. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13595. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13596. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13597. msm_routing_put_port_mixer),
  13598. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13600. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13601. msm_routing_put_port_mixer),
  13602. };
  13603. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  13604. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13605. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13606. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13607. msm_routing_get_port_mixer,
  13608. msm_routing_put_port_mixer),
  13609. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13610. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13611. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13612. msm_routing_get_port_mixer,
  13613. msm_routing_put_port_mixer),
  13614. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13615. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13616. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13617. msm_routing_get_port_mixer,
  13618. msm_routing_put_port_mixer),
  13619. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13621. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13622. msm_routing_get_port_mixer,
  13623. msm_routing_put_port_mixer),
  13624. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13625. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13626. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13627. msm_routing_get_port_mixer,
  13628. msm_routing_put_port_mixer),
  13629. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13630. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13631. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13632. msm_routing_get_port_mixer,
  13633. msm_routing_put_port_mixer),
  13634. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13635. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13636. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13637. msm_routing_get_port_mixer,
  13638. msm_routing_put_port_mixer),
  13639. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13640. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13641. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13642. msm_routing_get_port_mixer,
  13643. msm_routing_put_port_mixer),
  13644. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13645. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13646. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13647. msm_routing_get_port_mixer,
  13648. msm_routing_put_port_mixer),
  13649. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13651. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13652. msm_routing_get_port_mixer,
  13653. msm_routing_put_port_mixer),
  13654. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13655. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13656. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13657. msm_routing_get_port_mixer,
  13658. msm_routing_put_port_mixer),
  13659. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13661. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13662. msm_routing_get_port_mixer,
  13663. msm_routing_put_port_mixer),
  13664. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13665. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13666. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13667. msm_routing_get_port_mixer,
  13668. msm_routing_put_port_mixer),
  13669. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13671. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13672. msm_routing_get_port_mixer,
  13673. msm_routing_put_port_mixer),
  13674. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13675. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13676. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13677. msm_routing_get_port_mixer,
  13678. msm_routing_put_port_mixer),
  13679. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13681. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13682. msm_routing_get_port_mixer,
  13683. msm_routing_put_port_mixer),
  13684. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13685. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13686. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13687. msm_routing_get_port_mixer,
  13688. msm_routing_put_port_mixer),
  13689. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13690. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13691. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13692. msm_routing_get_port_mixer,
  13693. msm_routing_put_port_mixer),
  13694. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13695. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13696. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13697. msm_routing_get_port_mixer,
  13698. msm_routing_put_port_mixer),
  13699. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13701. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13702. msm_routing_get_port_mixer,
  13703. msm_routing_put_port_mixer),
  13704. };
  13705. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  13706. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13707. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13708. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13709. msm_routing_get_port_mixer,
  13710. msm_routing_put_port_mixer),
  13711. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13713. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13714. msm_routing_get_port_mixer,
  13715. msm_routing_put_port_mixer),
  13716. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13718. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13719. msm_routing_get_port_mixer,
  13720. msm_routing_put_port_mixer),
  13721. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13722. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13723. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13724. msm_routing_get_port_mixer,
  13725. msm_routing_put_port_mixer),
  13726. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13727. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13728. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13729. msm_routing_get_port_mixer,
  13730. msm_routing_put_port_mixer),
  13731. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13732. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13733. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13734. msm_routing_get_port_mixer,
  13735. msm_routing_put_port_mixer),
  13736. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13737. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13738. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13739. msm_routing_get_port_mixer,
  13740. msm_routing_put_port_mixer),
  13741. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13743. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13744. msm_routing_get_port_mixer,
  13745. msm_routing_put_port_mixer),
  13746. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13747. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13748. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13749. msm_routing_get_port_mixer,
  13750. msm_routing_put_port_mixer),
  13751. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13753. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13754. msm_routing_get_port_mixer,
  13755. msm_routing_put_port_mixer),
  13756. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13757. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13758. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13759. msm_routing_get_port_mixer,
  13760. msm_routing_put_port_mixer),
  13761. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13763. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13764. msm_routing_get_port_mixer,
  13765. msm_routing_put_port_mixer),
  13766. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13767. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13768. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13769. msm_routing_get_port_mixer,
  13770. msm_routing_put_port_mixer),
  13771. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13773. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13774. msm_routing_get_port_mixer,
  13775. msm_routing_put_port_mixer),
  13776. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13777. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13778. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13779. msm_routing_get_port_mixer,
  13780. msm_routing_put_port_mixer),
  13781. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13782. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13783. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13784. msm_routing_get_port_mixer,
  13785. msm_routing_put_port_mixer),
  13786. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13787. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13788. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13789. msm_routing_get_port_mixer,
  13790. msm_routing_put_port_mixer),
  13791. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13793. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13794. msm_routing_get_port_mixer,
  13795. msm_routing_put_port_mixer),
  13796. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13797. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13798. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13799. msm_routing_get_port_mixer,
  13800. msm_routing_put_port_mixer),
  13801. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13802. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13803. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13804. msm_routing_get_port_mixer,
  13805. msm_routing_put_port_mixer),
  13806. };
  13807. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  13808. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13809. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13810. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13811. msm_routing_get_port_mixer,
  13812. msm_routing_put_port_mixer),
  13813. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13814. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13815. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13816. msm_routing_get_port_mixer,
  13817. msm_routing_put_port_mixer),
  13818. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13819. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13820. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13821. msm_routing_get_port_mixer,
  13822. msm_routing_put_port_mixer),
  13823. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13825. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13826. msm_routing_get_port_mixer,
  13827. msm_routing_put_port_mixer),
  13828. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13829. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13830. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13831. msm_routing_get_port_mixer,
  13832. msm_routing_put_port_mixer),
  13833. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13834. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13835. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13836. msm_routing_get_port_mixer,
  13837. msm_routing_put_port_mixer),
  13838. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13839. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13840. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13841. msm_routing_get_port_mixer,
  13842. msm_routing_put_port_mixer),
  13843. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13845. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13846. msm_routing_get_port_mixer,
  13847. msm_routing_put_port_mixer),
  13848. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13849. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13850. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13851. msm_routing_get_port_mixer,
  13852. msm_routing_put_port_mixer),
  13853. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13854. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13855. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13856. msm_routing_get_port_mixer,
  13857. msm_routing_put_port_mixer),
  13858. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13859. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13860. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13861. msm_routing_get_port_mixer,
  13862. msm_routing_put_port_mixer),
  13863. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13865. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13866. msm_routing_get_port_mixer,
  13867. msm_routing_put_port_mixer),
  13868. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13869. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13870. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13871. msm_routing_get_port_mixer,
  13872. msm_routing_put_port_mixer),
  13873. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13874. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13875. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13876. msm_routing_get_port_mixer,
  13877. msm_routing_put_port_mixer),
  13878. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13879. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13880. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13881. msm_routing_get_port_mixer,
  13882. msm_routing_put_port_mixer),
  13883. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13885. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13886. msm_routing_get_port_mixer,
  13887. msm_routing_put_port_mixer),
  13888. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13889. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13890. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13891. msm_routing_get_port_mixer,
  13892. msm_routing_put_port_mixer),
  13893. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13894. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13895. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13896. msm_routing_get_port_mixer,
  13897. msm_routing_put_port_mixer),
  13898. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13899. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13900. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13901. msm_routing_get_port_mixer,
  13902. msm_routing_put_port_mixer),
  13903. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13904. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13905. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13906. msm_routing_get_port_mixer,
  13907. msm_routing_put_port_mixer),
  13908. };
  13909. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  13910. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13911. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13912. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13913. msm_routing_get_port_mixer,
  13914. msm_routing_put_port_mixer),
  13915. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13916. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13917. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13918. msm_routing_get_port_mixer,
  13919. msm_routing_put_port_mixer),
  13920. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13921. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13922. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13923. msm_routing_get_port_mixer,
  13924. msm_routing_put_port_mixer),
  13925. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13926. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13927. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13928. msm_routing_get_port_mixer,
  13929. msm_routing_put_port_mixer),
  13930. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13931. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13932. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13933. msm_routing_get_port_mixer,
  13934. msm_routing_put_port_mixer),
  13935. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13936. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13937. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13938. msm_routing_get_port_mixer,
  13939. msm_routing_put_port_mixer),
  13940. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13941. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13942. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13943. msm_routing_get_port_mixer,
  13944. msm_routing_put_port_mixer),
  13945. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13946. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13947. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13948. msm_routing_get_port_mixer,
  13949. msm_routing_put_port_mixer),
  13950. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13951. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13952. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13953. msm_routing_get_port_mixer,
  13954. msm_routing_put_port_mixer),
  13955. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13956. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13957. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13958. msm_routing_get_port_mixer,
  13959. msm_routing_put_port_mixer),
  13960. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13961. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13962. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13963. msm_routing_get_port_mixer,
  13964. msm_routing_put_port_mixer),
  13965. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13966. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13967. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13968. msm_routing_get_port_mixer,
  13969. msm_routing_put_port_mixer),
  13970. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13971. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13972. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13973. msm_routing_get_port_mixer,
  13974. msm_routing_put_port_mixer),
  13975. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13976. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13977. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13978. msm_routing_get_port_mixer,
  13979. msm_routing_put_port_mixer),
  13980. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13981. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13982. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13983. msm_routing_get_port_mixer,
  13984. msm_routing_put_port_mixer),
  13985. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13986. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13987. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13988. msm_routing_get_port_mixer,
  13989. msm_routing_put_port_mixer),
  13990. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13991. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13992. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13993. msm_routing_get_port_mixer,
  13994. msm_routing_put_port_mixer),
  13995. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13996. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13997. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13998. msm_routing_get_port_mixer,
  13999. msm_routing_put_port_mixer),
  14000. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14001. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14002. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14003. msm_routing_get_port_mixer,
  14004. msm_routing_put_port_mixer),
  14005. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14007. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14008. msm_routing_get_port_mixer,
  14009. msm_routing_put_port_mixer),
  14010. };
  14011. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  14012. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14013. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14014. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14015. msm_routing_get_port_mixer,
  14016. msm_routing_put_port_mixer),
  14017. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14019. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14020. msm_routing_get_port_mixer,
  14021. msm_routing_put_port_mixer),
  14022. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14023. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14024. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14025. msm_routing_get_port_mixer,
  14026. msm_routing_put_port_mixer),
  14027. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14028. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14029. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14030. msm_routing_get_port_mixer,
  14031. msm_routing_put_port_mixer),
  14032. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14033. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14034. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14035. msm_routing_get_port_mixer,
  14036. msm_routing_put_port_mixer),
  14037. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14039. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14040. msm_routing_get_port_mixer,
  14041. msm_routing_put_port_mixer),
  14042. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14043. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14044. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14045. msm_routing_get_port_mixer,
  14046. msm_routing_put_port_mixer),
  14047. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14048. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14049. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14050. msm_routing_get_port_mixer,
  14051. msm_routing_put_port_mixer),
  14052. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14053. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14054. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14055. msm_routing_get_port_mixer,
  14056. msm_routing_put_port_mixer),
  14057. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14059. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14060. msm_routing_get_port_mixer,
  14061. msm_routing_put_port_mixer),
  14062. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14063. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14064. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14065. msm_routing_get_port_mixer,
  14066. msm_routing_put_port_mixer),
  14067. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14068. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14069. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14070. msm_routing_get_port_mixer,
  14071. msm_routing_put_port_mixer),
  14072. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14073. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14074. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14075. msm_routing_get_port_mixer,
  14076. msm_routing_put_port_mixer),
  14077. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14079. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14080. msm_routing_get_port_mixer,
  14081. msm_routing_put_port_mixer),
  14082. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14083. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14084. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14085. msm_routing_get_port_mixer,
  14086. msm_routing_put_port_mixer),
  14087. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14088. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14089. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14090. msm_routing_get_port_mixer,
  14091. msm_routing_put_port_mixer),
  14092. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14093. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14094. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14095. msm_routing_get_port_mixer,
  14096. msm_routing_put_port_mixer),
  14097. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14098. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14099. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14100. msm_routing_get_port_mixer,
  14101. msm_routing_put_port_mixer),
  14102. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14103. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14104. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14105. msm_routing_get_port_mixer,
  14106. msm_routing_put_port_mixer),
  14107. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14108. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14109. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14110. msm_routing_get_port_mixer,
  14111. msm_routing_put_port_mixer),
  14112. };
  14113. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  14114. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14116. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14117. msm_routing_get_port_mixer,
  14118. msm_routing_put_port_mixer),
  14119. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14121. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14122. msm_routing_get_port_mixer,
  14123. msm_routing_put_port_mixer),
  14124. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14125. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14126. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14127. msm_routing_get_port_mixer,
  14128. msm_routing_put_port_mixer),
  14129. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14131. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14132. msm_routing_get_port_mixer,
  14133. msm_routing_put_port_mixer),
  14134. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14135. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14136. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14137. msm_routing_get_port_mixer,
  14138. msm_routing_put_port_mixer),
  14139. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14140. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14141. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14142. msm_routing_get_port_mixer,
  14143. msm_routing_put_port_mixer),
  14144. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14145. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14146. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14147. msm_routing_get_port_mixer,
  14148. msm_routing_put_port_mixer),
  14149. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14151. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14152. msm_routing_get_port_mixer,
  14153. msm_routing_put_port_mixer),
  14154. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14155. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14156. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14157. msm_routing_get_port_mixer,
  14158. msm_routing_put_port_mixer),
  14159. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14160. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14161. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14162. msm_routing_get_port_mixer,
  14163. msm_routing_put_port_mixer),
  14164. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14165. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14166. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14167. msm_routing_get_port_mixer,
  14168. msm_routing_put_port_mixer),
  14169. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14170. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14171. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14172. msm_routing_get_port_mixer,
  14173. msm_routing_put_port_mixer),
  14174. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14175. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14176. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14177. msm_routing_get_port_mixer,
  14178. msm_routing_put_port_mixer),
  14179. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14180. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14181. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14182. msm_routing_get_port_mixer,
  14183. msm_routing_put_port_mixer),
  14184. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14185. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14186. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14187. msm_routing_get_port_mixer,
  14188. msm_routing_put_port_mixer),
  14189. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14190. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14191. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14192. msm_routing_get_port_mixer,
  14193. msm_routing_put_port_mixer),
  14194. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14195. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14196. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14197. msm_routing_get_port_mixer,
  14198. msm_routing_put_port_mixer),
  14199. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14200. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14201. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14202. msm_routing_get_port_mixer,
  14203. msm_routing_put_port_mixer),
  14204. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14205. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14206. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14207. msm_routing_get_port_mixer,
  14208. msm_routing_put_port_mixer),
  14209. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14211. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14212. msm_routing_get_port_mixer,
  14213. msm_routing_put_port_mixer),
  14214. };
  14215. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  14216. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14217. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14218. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14219. msm_routing_get_port_mixer,
  14220. msm_routing_put_port_mixer),
  14221. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14223. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14224. msm_routing_get_port_mixer,
  14225. msm_routing_put_port_mixer),
  14226. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14227. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14228. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14229. msm_routing_get_port_mixer,
  14230. msm_routing_put_port_mixer),
  14231. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14232. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14233. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14234. msm_routing_get_port_mixer,
  14235. msm_routing_put_port_mixer),
  14236. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14237. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14238. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14239. msm_routing_get_port_mixer,
  14240. msm_routing_put_port_mixer),
  14241. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14243. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14244. msm_routing_get_port_mixer,
  14245. msm_routing_put_port_mixer),
  14246. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14247. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14248. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14249. msm_routing_get_port_mixer,
  14250. msm_routing_put_port_mixer),
  14251. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14252. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14253. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14254. msm_routing_get_port_mixer,
  14255. msm_routing_put_port_mixer),
  14256. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14257. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14258. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14259. msm_routing_get_port_mixer,
  14260. msm_routing_put_port_mixer),
  14261. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14263. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14264. msm_routing_get_port_mixer,
  14265. msm_routing_put_port_mixer),
  14266. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14267. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14268. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14269. msm_routing_get_port_mixer,
  14270. msm_routing_put_port_mixer),
  14271. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14272. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14273. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14274. msm_routing_get_port_mixer,
  14275. msm_routing_put_port_mixer),
  14276. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14277. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14278. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14279. msm_routing_get_port_mixer,
  14280. msm_routing_put_port_mixer),
  14281. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14282. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14283. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14284. msm_routing_get_port_mixer,
  14285. msm_routing_put_port_mixer),
  14286. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14287. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14288. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14289. msm_routing_get_port_mixer,
  14290. msm_routing_put_port_mixer),
  14291. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14292. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14293. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14294. msm_routing_get_port_mixer,
  14295. msm_routing_put_port_mixer),
  14296. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14297. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14298. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14299. msm_routing_get_port_mixer,
  14300. msm_routing_put_port_mixer),
  14301. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14302. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14303. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14304. msm_routing_get_port_mixer,
  14305. msm_routing_put_port_mixer),
  14306. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14307. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14308. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14309. msm_routing_get_port_mixer,
  14310. msm_routing_put_port_mixer),
  14311. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14312. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14313. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14314. msm_routing_get_port_mixer,
  14315. msm_routing_put_port_mixer),
  14316. };
  14317. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  14318. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14319. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14320. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14321. msm_routing_get_port_mixer,
  14322. msm_routing_put_port_mixer),
  14323. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14324. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14325. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14326. msm_routing_get_port_mixer,
  14327. msm_routing_put_port_mixer),
  14328. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14329. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14330. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14331. msm_routing_get_port_mixer,
  14332. msm_routing_put_port_mixer),
  14333. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14334. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14335. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14336. msm_routing_get_port_mixer,
  14337. msm_routing_put_port_mixer),
  14338. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14339. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14340. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14341. msm_routing_get_port_mixer,
  14342. msm_routing_put_port_mixer),
  14343. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14344. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14345. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14346. msm_routing_get_port_mixer,
  14347. msm_routing_put_port_mixer),
  14348. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14349. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14350. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14351. msm_routing_get_port_mixer,
  14352. msm_routing_put_port_mixer),
  14353. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14354. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14355. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14356. msm_routing_get_port_mixer,
  14357. msm_routing_put_port_mixer),
  14358. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14359. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14360. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14361. msm_routing_get_port_mixer,
  14362. msm_routing_put_port_mixer),
  14363. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14364. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14365. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14366. msm_routing_get_port_mixer,
  14367. msm_routing_put_port_mixer),
  14368. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14369. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14370. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14371. msm_routing_get_port_mixer,
  14372. msm_routing_put_port_mixer),
  14373. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14374. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14375. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14376. msm_routing_get_port_mixer,
  14377. msm_routing_put_port_mixer),
  14378. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14379. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14380. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14381. msm_routing_get_port_mixer,
  14382. msm_routing_put_port_mixer),
  14383. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14384. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14385. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14386. msm_routing_get_port_mixer,
  14387. msm_routing_put_port_mixer),
  14388. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14389. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14390. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14391. msm_routing_get_port_mixer,
  14392. msm_routing_put_port_mixer),
  14393. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14394. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14395. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14396. msm_routing_get_port_mixer,
  14397. msm_routing_put_port_mixer),
  14398. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14399. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14400. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14401. msm_routing_get_port_mixer,
  14402. msm_routing_put_port_mixer),
  14403. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14404. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14405. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14406. msm_routing_get_port_mixer,
  14407. msm_routing_put_port_mixer),
  14408. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14409. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14410. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14411. msm_routing_get_port_mixer,
  14412. msm_routing_put_port_mixer),
  14413. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14414. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14415. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14416. msm_routing_get_port_mixer,
  14417. msm_routing_put_port_mixer),
  14418. };
  14419. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  14420. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14421. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14422. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14423. msm_routing_get_port_mixer,
  14424. msm_routing_put_port_mixer),
  14425. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14426. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14427. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14428. msm_routing_get_port_mixer,
  14429. msm_routing_put_port_mixer),
  14430. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14431. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14432. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14433. msm_routing_get_port_mixer,
  14434. msm_routing_put_port_mixer),
  14435. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14437. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14438. msm_routing_get_port_mixer,
  14439. msm_routing_put_port_mixer),
  14440. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14441. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14442. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14443. msm_routing_get_port_mixer,
  14444. msm_routing_put_port_mixer),
  14445. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14447. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14448. msm_routing_get_port_mixer,
  14449. msm_routing_put_port_mixer),
  14450. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14451. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14452. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14453. msm_routing_get_port_mixer,
  14454. msm_routing_put_port_mixer),
  14455. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14456. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14457. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14458. msm_routing_get_port_mixer,
  14459. msm_routing_put_port_mixer),
  14460. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14461. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14462. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14463. msm_routing_get_port_mixer,
  14464. msm_routing_put_port_mixer),
  14465. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14467. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14468. msm_routing_get_port_mixer,
  14469. msm_routing_put_port_mixer),
  14470. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14471. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14472. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14473. msm_routing_get_port_mixer,
  14474. msm_routing_put_port_mixer),
  14475. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14476. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14477. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14478. msm_routing_get_port_mixer,
  14479. msm_routing_put_port_mixer),
  14480. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14481. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14482. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14483. msm_routing_get_port_mixer,
  14484. msm_routing_put_port_mixer),
  14485. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14487. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14488. msm_routing_get_port_mixer,
  14489. msm_routing_put_port_mixer),
  14490. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14491. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14492. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14493. msm_routing_get_port_mixer,
  14494. msm_routing_put_port_mixer),
  14495. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14496. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14497. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14498. msm_routing_get_port_mixer,
  14499. msm_routing_put_port_mixer),
  14500. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14501. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14502. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14503. msm_routing_get_port_mixer,
  14504. msm_routing_put_port_mixer),
  14505. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14507. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14508. msm_routing_get_port_mixer,
  14509. msm_routing_put_port_mixer),
  14510. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14511. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14512. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14513. msm_routing_get_port_mixer,
  14514. msm_routing_put_port_mixer),
  14515. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14516. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14517. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14518. msm_routing_get_port_mixer,
  14519. msm_routing_put_port_mixer),
  14520. };
  14521. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  14522. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14523. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14524. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14525. msm_routing_get_port_mixer,
  14526. msm_routing_put_port_mixer),
  14527. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14528. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14529. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14530. msm_routing_get_port_mixer,
  14531. msm_routing_put_port_mixer),
  14532. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14533. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14534. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14535. msm_routing_get_port_mixer,
  14536. msm_routing_put_port_mixer),
  14537. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14538. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14539. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14540. msm_routing_get_port_mixer,
  14541. msm_routing_put_port_mixer),
  14542. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14543. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14544. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14545. msm_routing_get_port_mixer,
  14546. msm_routing_put_port_mixer),
  14547. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14549. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14550. msm_routing_get_port_mixer,
  14551. msm_routing_put_port_mixer),
  14552. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14553. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14554. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14555. msm_routing_get_port_mixer,
  14556. msm_routing_put_port_mixer),
  14557. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14558. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14559. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14560. msm_routing_get_port_mixer,
  14561. msm_routing_put_port_mixer),
  14562. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14563. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14564. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14565. msm_routing_get_port_mixer,
  14566. msm_routing_put_port_mixer),
  14567. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14568. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14569. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14570. msm_routing_get_port_mixer,
  14571. msm_routing_put_port_mixer),
  14572. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14573. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14574. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14575. msm_routing_get_port_mixer,
  14576. msm_routing_put_port_mixer),
  14577. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14578. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14579. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14580. msm_routing_get_port_mixer,
  14581. msm_routing_put_port_mixer),
  14582. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14583. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14584. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14585. msm_routing_get_port_mixer,
  14586. msm_routing_put_port_mixer),
  14587. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14588. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14589. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14590. msm_routing_get_port_mixer,
  14591. msm_routing_put_port_mixer),
  14592. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14593. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14594. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14595. msm_routing_get_port_mixer,
  14596. msm_routing_put_port_mixer),
  14597. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14598. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14599. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14600. msm_routing_get_port_mixer,
  14601. msm_routing_put_port_mixer),
  14602. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14603. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14604. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14605. msm_routing_get_port_mixer,
  14606. msm_routing_put_port_mixer),
  14607. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14609. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14610. msm_routing_get_port_mixer,
  14611. msm_routing_put_port_mixer),
  14612. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14613. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14614. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14615. msm_routing_get_port_mixer,
  14616. msm_routing_put_port_mixer),
  14617. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14619. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14620. msm_routing_get_port_mixer,
  14621. msm_routing_put_port_mixer),
  14622. };
  14623. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  14624. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14625. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14626. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14627. msm_routing_get_port_mixer,
  14628. msm_routing_put_port_mixer),
  14629. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14630. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14631. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14632. msm_routing_get_port_mixer,
  14633. msm_routing_put_port_mixer),
  14634. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14635. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14636. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14637. msm_routing_get_port_mixer,
  14638. msm_routing_put_port_mixer),
  14639. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14641. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14642. msm_routing_get_port_mixer,
  14643. msm_routing_put_port_mixer),
  14644. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14645. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14646. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14647. msm_routing_get_port_mixer,
  14648. msm_routing_put_port_mixer),
  14649. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14650. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14651. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14652. msm_routing_get_port_mixer,
  14653. msm_routing_put_port_mixer),
  14654. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14655. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14656. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14657. msm_routing_get_port_mixer,
  14658. msm_routing_put_port_mixer),
  14659. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14660. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14661. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14662. msm_routing_get_port_mixer,
  14663. msm_routing_put_port_mixer),
  14664. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14665. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14666. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14667. msm_routing_get_port_mixer,
  14668. msm_routing_put_port_mixer),
  14669. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14671. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14672. msm_routing_get_port_mixer,
  14673. msm_routing_put_port_mixer),
  14674. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14675. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14676. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14677. msm_routing_get_port_mixer,
  14678. msm_routing_put_port_mixer),
  14679. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14680. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14681. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14682. msm_routing_get_port_mixer,
  14683. msm_routing_put_port_mixer),
  14684. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14685. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14686. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14687. msm_routing_get_port_mixer,
  14688. msm_routing_put_port_mixer),
  14689. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14690. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14691. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14692. msm_routing_get_port_mixer,
  14693. msm_routing_put_port_mixer),
  14694. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14695. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14696. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14697. msm_routing_get_port_mixer,
  14698. msm_routing_put_port_mixer),
  14699. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14700. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14701. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14702. msm_routing_get_port_mixer,
  14703. msm_routing_put_port_mixer),
  14704. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14705. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14706. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14707. msm_routing_get_port_mixer,
  14708. msm_routing_put_port_mixer),
  14709. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14710. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14711. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14712. msm_routing_get_port_mixer,
  14713. msm_routing_put_port_mixer),
  14714. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14715. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14716. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14717. msm_routing_get_port_mixer,
  14718. msm_routing_put_port_mixer),
  14719. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14720. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14721. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14722. msm_routing_get_port_mixer,
  14723. msm_routing_put_port_mixer),
  14724. };
  14725. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  14726. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14727. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14728. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14729. msm_routing_get_port_mixer,
  14730. msm_routing_put_port_mixer),
  14731. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14732. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14733. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14734. msm_routing_get_port_mixer,
  14735. msm_routing_put_port_mixer),
  14736. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14737. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14738. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14739. msm_routing_get_port_mixer,
  14740. msm_routing_put_port_mixer),
  14741. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14742. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14743. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14744. msm_routing_get_port_mixer,
  14745. msm_routing_put_port_mixer),
  14746. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14747. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14748. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14749. msm_routing_get_port_mixer,
  14750. msm_routing_put_port_mixer),
  14751. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14752. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14753. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14754. msm_routing_get_port_mixer,
  14755. msm_routing_put_port_mixer),
  14756. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14757. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14758. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14759. msm_routing_get_port_mixer,
  14760. msm_routing_put_port_mixer),
  14761. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14763. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14764. msm_routing_get_port_mixer,
  14765. msm_routing_put_port_mixer),
  14766. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14767. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14768. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14769. msm_routing_get_port_mixer,
  14770. msm_routing_put_port_mixer),
  14771. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14773. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14774. msm_routing_get_port_mixer,
  14775. msm_routing_put_port_mixer),
  14776. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14777. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14778. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14779. msm_routing_get_port_mixer,
  14780. msm_routing_put_port_mixer),
  14781. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14782. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14783. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14784. msm_routing_get_port_mixer,
  14785. msm_routing_put_port_mixer),
  14786. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14787. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14788. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14789. msm_routing_get_port_mixer,
  14790. msm_routing_put_port_mixer),
  14791. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14793. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14794. msm_routing_get_port_mixer,
  14795. msm_routing_put_port_mixer),
  14796. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14797. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14798. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14799. msm_routing_get_port_mixer,
  14800. msm_routing_put_port_mixer),
  14801. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14803. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14804. msm_routing_get_port_mixer,
  14805. msm_routing_put_port_mixer),
  14806. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14807. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14808. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14809. msm_routing_get_port_mixer,
  14810. msm_routing_put_port_mixer),
  14811. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14812. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14813. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14814. msm_routing_get_port_mixer,
  14815. msm_routing_put_port_mixer),
  14816. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14817. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14818. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14819. msm_routing_get_port_mixer,
  14820. msm_routing_put_port_mixer),
  14821. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14822. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14823. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14824. msm_routing_get_port_mixer,
  14825. msm_routing_put_port_mixer),
  14826. };
  14827. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  14828. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14829. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14830. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14831. msm_routing_get_port_mixer,
  14832. msm_routing_put_port_mixer),
  14833. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14834. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14835. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14836. msm_routing_get_port_mixer,
  14837. msm_routing_put_port_mixer),
  14838. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14839. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14840. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14841. msm_routing_get_port_mixer,
  14842. msm_routing_put_port_mixer),
  14843. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14844. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14845. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14846. msm_routing_get_port_mixer,
  14847. msm_routing_put_port_mixer),
  14848. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14849. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14850. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14851. msm_routing_get_port_mixer,
  14852. msm_routing_put_port_mixer),
  14853. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14855. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14856. msm_routing_get_port_mixer,
  14857. msm_routing_put_port_mixer),
  14858. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14859. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14860. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14861. msm_routing_get_port_mixer,
  14862. msm_routing_put_port_mixer),
  14863. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14864. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14865. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14866. msm_routing_get_port_mixer,
  14867. msm_routing_put_port_mixer),
  14868. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14869. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14870. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14871. msm_routing_get_port_mixer,
  14872. msm_routing_put_port_mixer),
  14873. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14875. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14876. msm_routing_get_port_mixer,
  14877. msm_routing_put_port_mixer),
  14878. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14879. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14880. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14881. msm_routing_get_port_mixer,
  14882. msm_routing_put_port_mixer),
  14883. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14884. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14885. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14886. msm_routing_get_port_mixer,
  14887. msm_routing_put_port_mixer),
  14888. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14889. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14890. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14891. msm_routing_get_port_mixer,
  14892. msm_routing_put_port_mixer),
  14893. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14895. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14896. msm_routing_get_port_mixer,
  14897. msm_routing_put_port_mixer),
  14898. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14899. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14900. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14901. msm_routing_get_port_mixer,
  14902. msm_routing_put_port_mixer),
  14903. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14904. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14905. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14906. msm_routing_get_port_mixer,
  14907. msm_routing_put_port_mixer),
  14908. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14909. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14910. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14911. msm_routing_get_port_mixer,
  14912. msm_routing_put_port_mixer),
  14913. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14914. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14915. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14916. msm_routing_get_port_mixer,
  14917. msm_routing_put_port_mixer),
  14918. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14919. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14920. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14921. msm_routing_get_port_mixer,
  14922. msm_routing_put_port_mixer),
  14923. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14924. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14925. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14926. msm_routing_get_port_mixer,
  14927. msm_routing_put_port_mixer),
  14928. };
  14929. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  14930. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14931. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14932. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14933. msm_routing_get_port_mixer,
  14934. msm_routing_put_port_mixer),
  14935. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14937. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14938. msm_routing_get_port_mixer,
  14939. msm_routing_put_port_mixer),
  14940. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14941. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14942. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14943. msm_routing_get_port_mixer,
  14944. msm_routing_put_port_mixer),
  14945. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14946. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14947. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14948. msm_routing_get_port_mixer,
  14949. msm_routing_put_port_mixer),
  14950. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14951. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14952. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14953. msm_routing_get_port_mixer,
  14954. msm_routing_put_port_mixer),
  14955. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14957. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14958. msm_routing_get_port_mixer,
  14959. msm_routing_put_port_mixer),
  14960. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14961. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14962. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14963. msm_routing_get_port_mixer,
  14964. msm_routing_put_port_mixer),
  14965. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14966. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14967. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14968. msm_routing_get_port_mixer,
  14969. msm_routing_put_port_mixer),
  14970. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14971. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14972. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14973. msm_routing_get_port_mixer,
  14974. msm_routing_put_port_mixer),
  14975. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14976. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14977. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14978. msm_routing_get_port_mixer,
  14979. msm_routing_put_port_mixer),
  14980. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14981. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14982. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14983. msm_routing_get_port_mixer,
  14984. msm_routing_put_port_mixer),
  14985. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14986. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14987. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14988. msm_routing_get_port_mixer,
  14989. msm_routing_put_port_mixer),
  14990. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14991. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14992. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14993. msm_routing_get_port_mixer,
  14994. msm_routing_put_port_mixer),
  14995. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14997. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14998. msm_routing_get_port_mixer,
  14999. msm_routing_put_port_mixer),
  15000. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15001. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15002. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15003. msm_routing_get_port_mixer,
  15004. msm_routing_put_port_mixer),
  15005. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15006. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15007. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15008. msm_routing_get_port_mixer,
  15009. msm_routing_put_port_mixer),
  15010. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15011. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15012. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15013. msm_routing_get_port_mixer,
  15014. msm_routing_put_port_mixer),
  15015. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15016. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15017. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15018. msm_routing_get_port_mixer,
  15019. msm_routing_put_port_mixer),
  15020. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15021. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15022. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15023. msm_routing_get_port_mixer,
  15024. msm_routing_put_port_mixer),
  15025. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15027. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15028. msm_routing_get_port_mixer,
  15029. msm_routing_put_port_mixer),
  15030. };
  15031. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  15032. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15033. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15034. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15035. msm_routing_get_port_mixer,
  15036. msm_routing_put_port_mixer),
  15037. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15038. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15039. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15040. msm_routing_get_port_mixer,
  15041. msm_routing_put_port_mixer),
  15042. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15043. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15044. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15045. msm_routing_get_port_mixer,
  15046. msm_routing_put_port_mixer),
  15047. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15049. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15050. msm_routing_get_port_mixer,
  15051. msm_routing_put_port_mixer),
  15052. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15053. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15054. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15055. msm_routing_get_port_mixer,
  15056. msm_routing_put_port_mixer),
  15057. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15058. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15059. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15060. msm_routing_get_port_mixer,
  15061. msm_routing_put_port_mixer),
  15062. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15063. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15064. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15065. msm_routing_get_port_mixer,
  15066. msm_routing_put_port_mixer),
  15067. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15068. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15069. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15070. msm_routing_get_port_mixer,
  15071. msm_routing_put_port_mixer),
  15072. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15073. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15074. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15075. msm_routing_get_port_mixer,
  15076. msm_routing_put_port_mixer),
  15077. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15078. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15079. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15080. msm_routing_get_port_mixer,
  15081. msm_routing_put_port_mixer),
  15082. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15083. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15084. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15085. msm_routing_get_port_mixer,
  15086. msm_routing_put_port_mixer),
  15087. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15089. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15090. msm_routing_get_port_mixer,
  15091. msm_routing_put_port_mixer),
  15092. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15093. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15094. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15095. msm_routing_get_port_mixer,
  15096. msm_routing_put_port_mixer),
  15097. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15098. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15099. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15100. msm_routing_get_port_mixer,
  15101. msm_routing_put_port_mixer),
  15102. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15103. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15104. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15105. msm_routing_get_port_mixer,
  15106. msm_routing_put_port_mixer),
  15107. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15108. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15109. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15110. msm_routing_get_port_mixer,
  15111. msm_routing_put_port_mixer),
  15112. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15113. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15114. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15115. msm_routing_get_port_mixer,
  15116. msm_routing_put_port_mixer),
  15117. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15118. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15119. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15120. msm_routing_get_port_mixer,
  15121. msm_routing_put_port_mixer),
  15122. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15123. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15124. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15125. msm_routing_get_port_mixer,
  15126. msm_routing_put_port_mixer),
  15127. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15129. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15130. msm_routing_get_port_mixer,
  15131. msm_routing_put_port_mixer),
  15132. };
  15133. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  15134. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15135. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15136. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15137. msm_routing_get_port_mixer,
  15138. msm_routing_put_port_mixer),
  15139. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15140. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15141. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15142. msm_routing_get_port_mixer,
  15143. msm_routing_put_port_mixer),
  15144. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15145. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15146. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15147. msm_routing_get_port_mixer,
  15148. msm_routing_put_port_mixer),
  15149. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15150. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15151. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15152. msm_routing_get_port_mixer,
  15153. msm_routing_put_port_mixer),
  15154. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15155. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15156. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15157. msm_routing_get_port_mixer,
  15158. msm_routing_put_port_mixer),
  15159. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15161. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15162. msm_routing_get_port_mixer,
  15163. msm_routing_put_port_mixer),
  15164. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15165. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15166. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15167. msm_routing_get_port_mixer,
  15168. msm_routing_put_port_mixer),
  15169. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15170. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15171. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15172. msm_routing_get_port_mixer,
  15173. msm_routing_put_port_mixer),
  15174. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15175. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15176. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15177. msm_routing_get_port_mixer,
  15178. msm_routing_put_port_mixer),
  15179. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15180. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15181. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15182. msm_routing_get_port_mixer,
  15183. msm_routing_put_port_mixer),
  15184. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15185. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15186. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15187. msm_routing_get_port_mixer,
  15188. msm_routing_put_port_mixer),
  15189. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15190. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15191. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15192. msm_routing_get_port_mixer,
  15193. msm_routing_put_port_mixer),
  15194. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15195. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15196. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15197. msm_routing_get_port_mixer,
  15198. msm_routing_put_port_mixer),
  15199. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15200. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15201. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15202. msm_routing_get_port_mixer,
  15203. msm_routing_put_port_mixer),
  15204. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15205. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15206. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15207. msm_routing_get_port_mixer,
  15208. msm_routing_put_port_mixer),
  15209. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15210. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15211. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15212. msm_routing_get_port_mixer,
  15213. msm_routing_put_port_mixer),
  15214. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15215. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15216. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15217. msm_routing_get_port_mixer,
  15218. msm_routing_put_port_mixer),
  15219. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15220. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15221. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15222. msm_routing_get_port_mixer,
  15223. msm_routing_put_port_mixer),
  15224. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15225. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15226. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15227. msm_routing_get_port_mixer,
  15228. msm_routing_put_port_mixer),
  15229. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15230. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15231. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15232. msm_routing_get_port_mixer,
  15233. msm_routing_put_port_mixer),
  15234. };
  15235. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  15236. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15237. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15238. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15239. msm_routing_get_port_mixer,
  15240. msm_routing_put_port_mixer),
  15241. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15242. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15243. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15244. msm_routing_get_port_mixer,
  15245. msm_routing_put_port_mixer),
  15246. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15247. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15248. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15249. msm_routing_get_port_mixer,
  15250. msm_routing_put_port_mixer),
  15251. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15252. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15253. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15254. msm_routing_get_port_mixer,
  15255. msm_routing_put_port_mixer),
  15256. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15258. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15259. msm_routing_get_port_mixer,
  15260. msm_routing_put_port_mixer),
  15261. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15262. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15263. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15264. msm_routing_get_port_mixer,
  15265. msm_routing_put_port_mixer),
  15266. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15267. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15268. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15269. msm_routing_get_port_mixer,
  15270. msm_routing_put_port_mixer),
  15271. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15272. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15273. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15274. msm_routing_get_port_mixer,
  15275. msm_routing_put_port_mixer),
  15276. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15277. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15278. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15279. msm_routing_get_port_mixer,
  15280. msm_routing_put_port_mixer),
  15281. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15282. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15283. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15284. msm_routing_get_port_mixer,
  15285. msm_routing_put_port_mixer),
  15286. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15287. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15288. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15289. msm_routing_get_port_mixer,
  15290. msm_routing_put_port_mixer),
  15291. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15292. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15293. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15294. msm_routing_get_port_mixer,
  15295. msm_routing_put_port_mixer),
  15296. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15297. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15298. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15299. msm_routing_get_port_mixer,
  15300. msm_routing_put_port_mixer),
  15301. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15302. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15303. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15304. msm_routing_get_port_mixer,
  15305. msm_routing_put_port_mixer),
  15306. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15307. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15308. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15309. msm_routing_get_port_mixer,
  15310. msm_routing_put_port_mixer),
  15311. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15313. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15314. msm_routing_get_port_mixer,
  15315. msm_routing_put_port_mixer),
  15316. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15317. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15318. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15319. msm_routing_get_port_mixer,
  15320. msm_routing_put_port_mixer),
  15321. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15322. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15323. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15324. msm_routing_get_port_mixer,
  15325. msm_routing_put_port_mixer),
  15326. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15327. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15328. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15329. msm_routing_get_port_mixer,
  15330. msm_routing_put_port_mixer),
  15331. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15332. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15333. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15334. msm_routing_get_port_mixer,
  15335. msm_routing_put_port_mixer),
  15336. };
  15337. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  15338. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15339. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15340. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15341. msm_routing_get_port_mixer,
  15342. msm_routing_put_port_mixer),
  15343. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15345. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15346. msm_routing_get_port_mixer,
  15347. msm_routing_put_port_mixer),
  15348. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15349. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15350. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15351. msm_routing_get_port_mixer,
  15352. msm_routing_put_port_mixer),
  15353. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15354. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15355. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15356. msm_routing_get_port_mixer,
  15357. msm_routing_put_port_mixer),
  15358. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15360. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15361. msm_routing_get_port_mixer,
  15362. msm_routing_put_port_mixer),
  15363. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15365. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15366. msm_routing_get_port_mixer,
  15367. msm_routing_put_port_mixer),
  15368. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15369. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15370. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15371. msm_routing_get_port_mixer,
  15372. msm_routing_put_port_mixer),
  15373. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15374. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15375. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15376. msm_routing_get_port_mixer,
  15377. msm_routing_put_port_mixer),
  15378. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15379. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15380. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15381. msm_routing_get_port_mixer,
  15382. msm_routing_put_port_mixer),
  15383. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15384. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15385. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15386. msm_routing_get_port_mixer,
  15387. msm_routing_put_port_mixer),
  15388. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15389. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15390. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15391. msm_routing_get_port_mixer,
  15392. msm_routing_put_port_mixer),
  15393. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15394. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15395. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15396. msm_routing_get_port_mixer,
  15397. msm_routing_put_port_mixer),
  15398. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15400. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15401. msm_routing_get_port_mixer,
  15402. msm_routing_put_port_mixer),
  15403. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15404. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15405. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15406. msm_routing_get_port_mixer,
  15407. msm_routing_put_port_mixer),
  15408. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15409. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15410. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15411. msm_routing_get_port_mixer,
  15412. msm_routing_put_port_mixer),
  15413. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15414. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15415. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15416. msm_routing_get_port_mixer,
  15417. msm_routing_put_port_mixer),
  15418. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15419. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15420. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15421. msm_routing_get_port_mixer,
  15422. msm_routing_put_port_mixer),
  15423. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15424. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15425. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15426. msm_routing_get_port_mixer,
  15427. msm_routing_put_port_mixer),
  15428. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15430. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15431. msm_routing_get_port_mixer,
  15432. msm_routing_put_port_mixer),
  15433. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15434. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15435. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15436. msm_routing_get_port_mixer,
  15437. msm_routing_put_port_mixer),
  15438. };
  15439. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  15440. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15441. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15442. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15443. msm_routing_get_port_mixer,
  15444. msm_routing_put_port_mixer),
  15445. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15446. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15447. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15448. msm_routing_get_port_mixer,
  15449. msm_routing_put_port_mixer),
  15450. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15451. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15452. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15453. msm_routing_get_port_mixer,
  15454. msm_routing_put_port_mixer),
  15455. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15456. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15457. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15458. msm_routing_get_port_mixer,
  15459. msm_routing_put_port_mixer),
  15460. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15462. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15463. msm_routing_get_port_mixer,
  15464. msm_routing_put_port_mixer),
  15465. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15466. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15467. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15468. msm_routing_get_port_mixer,
  15469. msm_routing_put_port_mixer),
  15470. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15471. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15472. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15473. msm_routing_get_port_mixer,
  15474. msm_routing_put_port_mixer),
  15475. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15476. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15477. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15478. msm_routing_get_port_mixer,
  15479. msm_routing_put_port_mixer),
  15480. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15482. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15483. msm_routing_get_port_mixer,
  15484. msm_routing_put_port_mixer),
  15485. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15486. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15487. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15488. msm_routing_get_port_mixer,
  15489. msm_routing_put_port_mixer),
  15490. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15491. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15492. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15493. msm_routing_get_port_mixer,
  15494. msm_routing_put_port_mixer),
  15495. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15496. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15497. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15498. msm_routing_get_port_mixer,
  15499. msm_routing_put_port_mixer),
  15500. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15501. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15502. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15503. msm_routing_get_port_mixer,
  15504. msm_routing_put_port_mixer),
  15505. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15506. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15507. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15508. msm_routing_get_port_mixer,
  15509. msm_routing_put_port_mixer),
  15510. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15512. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15513. msm_routing_get_port_mixer,
  15514. msm_routing_put_port_mixer),
  15515. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15517. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15518. msm_routing_get_port_mixer,
  15519. msm_routing_put_port_mixer),
  15520. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15521. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15522. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15523. msm_routing_get_port_mixer,
  15524. msm_routing_put_port_mixer),
  15525. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15526. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15527. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15528. msm_routing_get_port_mixer,
  15529. msm_routing_put_port_mixer),
  15530. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15531. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15532. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15533. msm_routing_get_port_mixer,
  15534. msm_routing_put_port_mixer),
  15535. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15536. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15537. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15538. msm_routing_get_port_mixer,
  15539. msm_routing_put_port_mixer),
  15540. };
  15541. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  15542. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15543. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15544. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15545. msm_routing_get_port_mixer,
  15546. msm_routing_put_port_mixer),
  15547. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15548. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15549. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15550. msm_routing_get_port_mixer,
  15551. msm_routing_put_port_mixer),
  15552. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15553. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15554. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15555. msm_routing_get_port_mixer,
  15556. msm_routing_put_port_mixer),
  15557. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15558. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15559. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15560. msm_routing_get_port_mixer,
  15561. msm_routing_put_port_mixer),
  15562. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15564. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15565. msm_routing_get_port_mixer,
  15566. msm_routing_put_port_mixer),
  15567. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15568. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15569. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15570. msm_routing_get_port_mixer,
  15571. msm_routing_put_port_mixer),
  15572. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15573. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15574. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15575. msm_routing_get_port_mixer,
  15576. msm_routing_put_port_mixer),
  15577. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15578. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15579. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15580. msm_routing_get_port_mixer,
  15581. msm_routing_put_port_mixer),
  15582. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15583. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15584. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15585. msm_routing_get_port_mixer,
  15586. msm_routing_put_port_mixer),
  15587. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15588. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15589. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15590. msm_routing_get_port_mixer,
  15591. msm_routing_put_port_mixer),
  15592. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15594. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15595. msm_routing_get_port_mixer,
  15596. msm_routing_put_port_mixer),
  15597. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15598. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15599. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15600. msm_routing_get_port_mixer,
  15601. msm_routing_put_port_mixer),
  15602. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15603. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15604. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15605. msm_routing_get_port_mixer,
  15606. msm_routing_put_port_mixer),
  15607. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15608. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15609. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15610. msm_routing_get_port_mixer,
  15611. msm_routing_put_port_mixer),
  15612. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15613. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15614. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15615. msm_routing_get_port_mixer,
  15616. msm_routing_put_port_mixer),
  15617. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15618. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15619. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15620. msm_routing_get_port_mixer,
  15621. msm_routing_put_port_mixer),
  15622. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15623. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15624. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15625. msm_routing_get_port_mixer,
  15626. msm_routing_put_port_mixer),
  15627. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15628. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15629. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15630. msm_routing_get_port_mixer,
  15631. msm_routing_put_port_mixer),
  15632. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15634. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15635. msm_routing_get_port_mixer,
  15636. msm_routing_put_port_mixer),
  15637. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15639. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15640. msm_routing_get_port_mixer,
  15641. msm_routing_put_port_mixer),
  15642. };
  15643. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  15644. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15645. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15646. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15647. msm_routing_put_port_mixer),
  15648. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15649. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15650. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15651. msm_routing_put_port_mixer),
  15652. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15653. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15654. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15655. msm_routing_put_port_mixer),
  15656. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15657. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15658. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15659. msm_routing_put_port_mixer),
  15660. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15661. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15662. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15663. msm_routing_put_port_mixer),
  15664. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15665. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15666. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15667. msm_routing_put_port_mixer),
  15668. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15669. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15670. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15671. msm_routing_put_port_mixer),
  15672. };
  15673. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  15674. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15675. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15676. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15677. msm_routing_put_port_mixer),
  15678. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15679. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15680. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15681. msm_routing_put_port_mixer),
  15682. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15683. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15684. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15685. msm_routing_put_port_mixer),
  15686. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15687. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15688. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15689. msm_routing_put_port_mixer),
  15690. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15691. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15692. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15693. msm_routing_put_port_mixer),
  15694. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15695. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15696. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15697. msm_routing_put_port_mixer),
  15698. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15700. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15701. msm_routing_put_port_mixer),
  15702. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15703. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15704. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15705. msm_routing_put_port_mixer),
  15706. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15708. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15709. msm_routing_put_port_mixer),
  15710. };
  15711. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  15712. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15713. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15714. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15715. msm_routing_put_listen_mixer),
  15716. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15717. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15718. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15719. msm_routing_put_listen_mixer),
  15720. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15721. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15722. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15723. msm_routing_put_listen_mixer),
  15724. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15725. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15726. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15727. msm_routing_put_listen_mixer),
  15728. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15729. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15730. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15731. msm_routing_put_listen_mixer),
  15732. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15733. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15734. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15735. msm_routing_put_listen_mixer),
  15736. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15737. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15738. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15739. msm_routing_put_listen_mixer),
  15740. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15741. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15742. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15743. msm_routing_put_listen_mixer),
  15744. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15745. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15746. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15747. msm_routing_put_listen_mixer),
  15748. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15749. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15750. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15751. msm_routing_put_listen_mixer),
  15752. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15753. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15754. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15755. msm_routing_put_listen_mixer),
  15756. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15757. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15758. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15759. msm_routing_put_listen_mixer),
  15760. };
  15761. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  15762. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15763. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15764. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15765. msm_routing_put_listen_mixer),
  15766. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  15767. SND_SOC_NOPM,
  15768. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15769. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15770. msm_routing_put_listen_mixer),
  15771. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15772. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15773. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15774. msm_routing_put_listen_mixer),
  15775. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15776. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15777. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15778. msm_routing_put_listen_mixer),
  15779. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15780. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15781. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15782. msm_routing_put_listen_mixer),
  15783. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15784. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15785. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15786. msm_routing_put_listen_mixer),
  15787. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15788. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15789. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15790. msm_routing_put_listen_mixer),
  15791. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15792. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15793. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15794. msm_routing_put_listen_mixer),
  15795. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15796. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15797. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15798. msm_routing_put_listen_mixer),
  15799. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15800. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15801. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15802. msm_routing_put_listen_mixer),
  15803. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15804. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15805. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15806. msm_routing_put_listen_mixer),
  15807. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15809. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15810. msm_routing_put_listen_mixer),
  15811. };
  15812. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  15813. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15814. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15815. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15816. msm_routing_put_listen_mixer),
  15817. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15818. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15819. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15820. msm_routing_put_listen_mixer),
  15821. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15822. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15823. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15824. msm_routing_put_listen_mixer),
  15825. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15826. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15827. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15828. msm_routing_put_listen_mixer),
  15829. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15830. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15831. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15832. msm_routing_put_listen_mixer),
  15833. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15834. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15835. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15836. msm_routing_put_listen_mixer),
  15837. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15838. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15839. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15840. msm_routing_put_listen_mixer),
  15841. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15842. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15843. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15844. msm_routing_put_listen_mixer),
  15845. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15846. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15847. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15848. msm_routing_put_listen_mixer),
  15849. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15850. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15851. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15852. msm_routing_put_listen_mixer),
  15853. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15854. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15855. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15856. msm_routing_put_listen_mixer),
  15857. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15858. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15859. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15860. msm_routing_put_listen_mixer),
  15861. };
  15862. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  15863. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15864. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15865. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15866. msm_routing_put_listen_mixer),
  15867. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15868. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15869. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15870. msm_routing_put_listen_mixer),
  15871. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15872. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15873. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15874. msm_routing_put_listen_mixer),
  15875. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15876. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15877. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15878. msm_routing_put_listen_mixer),
  15879. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15880. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15881. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15882. msm_routing_put_listen_mixer),
  15883. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15884. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15885. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15886. msm_routing_put_listen_mixer),
  15887. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15888. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15889. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15890. msm_routing_put_listen_mixer),
  15891. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15892. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15893. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15894. msm_routing_put_listen_mixer),
  15895. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15896. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15897. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15898. msm_routing_put_listen_mixer),
  15899. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15901. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15902. msm_routing_put_listen_mixer),
  15903. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15904. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15905. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15906. msm_routing_put_listen_mixer),
  15907. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15908. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15909. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15910. msm_routing_put_listen_mixer),
  15911. };
  15912. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  15913. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15914. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15915. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15916. msm_routing_put_listen_mixer),
  15917. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15918. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15919. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15920. msm_routing_put_listen_mixer),
  15921. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15922. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15923. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15924. msm_routing_put_listen_mixer),
  15925. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15926. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15927. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15928. msm_routing_put_listen_mixer),
  15929. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15930. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15931. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15932. msm_routing_put_listen_mixer),
  15933. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15934. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15935. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15936. msm_routing_put_listen_mixer),
  15937. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15938. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15939. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15940. msm_routing_put_listen_mixer),
  15941. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15942. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15943. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15944. msm_routing_put_listen_mixer),
  15945. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15946. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15947. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15948. msm_routing_put_listen_mixer),
  15949. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15950. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15951. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15952. msm_routing_put_listen_mixer),
  15953. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15954. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15955. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15956. msm_routing_put_listen_mixer),
  15957. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15958. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15959. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15960. msm_routing_put_listen_mixer),
  15961. };
  15962. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  15963. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15964. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15965. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15966. msm_routing_put_listen_mixer),
  15967. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15968. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15969. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15970. msm_routing_put_listen_mixer),
  15971. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15972. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15973. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15974. msm_routing_put_listen_mixer),
  15975. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15976. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15977. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15978. msm_routing_put_listen_mixer),
  15979. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15980. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15981. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15982. msm_routing_put_listen_mixer),
  15983. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15984. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15985. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15986. msm_routing_put_listen_mixer),
  15987. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15988. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15989. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15990. msm_routing_put_listen_mixer),
  15991. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15992. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15993. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15994. msm_routing_put_listen_mixer),
  15995. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15996. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15997. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15998. msm_routing_put_listen_mixer),
  15999. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16000. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16001. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16002. msm_routing_put_listen_mixer),
  16003. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16004. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16005. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16006. msm_routing_put_listen_mixer),
  16007. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16008. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16009. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16010. msm_routing_put_listen_mixer),
  16011. };
  16012. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  16013. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16014. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16015. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16016. msm_routing_put_listen_mixer),
  16017. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16018. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16019. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16020. msm_routing_put_listen_mixer),
  16021. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16022. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16023. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16024. msm_routing_put_listen_mixer),
  16025. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16026. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16027. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16028. msm_routing_put_listen_mixer),
  16029. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16030. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16031. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16032. msm_routing_put_listen_mixer),
  16033. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16034. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16035. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16036. msm_routing_put_listen_mixer),
  16037. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16038. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16039. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16040. msm_routing_put_listen_mixer),
  16041. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16042. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16043. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16044. msm_routing_put_listen_mixer),
  16045. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16046. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16047. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16048. msm_routing_put_listen_mixer),
  16049. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16050. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16051. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16052. msm_routing_put_listen_mixer),
  16053. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16054. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16055. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16056. msm_routing_put_listen_mixer),
  16057. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16058. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16059. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16060. msm_routing_put_listen_mixer),
  16061. };
  16062. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  16063. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16064. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16065. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16066. msm_routing_put_listen_mixer),
  16067. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16068. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16069. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16070. msm_routing_put_listen_mixer),
  16071. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16072. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16073. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16074. msm_routing_put_listen_mixer),
  16075. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16076. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16077. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16078. msm_routing_put_listen_mixer),
  16079. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16080. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16081. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16082. msm_routing_put_listen_mixer),
  16083. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16084. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16085. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16086. msm_routing_put_listen_mixer),
  16087. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16088. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16089. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16090. msm_routing_put_listen_mixer),
  16091. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16092. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16093. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16094. msm_routing_put_listen_mixer),
  16095. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16096. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16097. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16098. msm_routing_put_listen_mixer),
  16099. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16100. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16101. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16102. msm_routing_put_listen_mixer),
  16103. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16104. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16105. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16106. msm_routing_put_listen_mixer),
  16107. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16108. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16109. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16110. msm_routing_put_listen_mixer),
  16111. };
  16112. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  16113. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16114. 0, 1, 0, msm_routing_get_switch_mixer,
  16115. msm_routing_put_switch_mixer);
  16116. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  16117. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16118. 0, 1, 0, msm_routing_get_switch_mixer,
  16119. msm_routing_put_switch_mixer);
  16120. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  16121. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16122. 0, 1, 0, msm_routing_get_switch_mixer,
  16123. msm_routing_put_switch_mixer);
  16124. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  16125. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16126. 0, 1, 0, msm_routing_get_switch_mixer,
  16127. msm_routing_put_switch_mixer);
  16128. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  16129. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16130. 0, 1, 0, msm_routing_get_switch_mixer,
  16131. msm_routing_put_switch_mixer);
  16132. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  16133. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16134. 0, 1, 0, msm_routing_get_switch_mixer,
  16135. msm_routing_put_switch_mixer);
  16136. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  16137. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16138. 0, 1, 0, msm_routing_get_switch_mixer,
  16139. msm_routing_put_switch_mixer);
  16140. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  16141. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16142. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  16143. msm_routing_put_fm_pcmrx_switch_mixer);
  16144. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  16145. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16146. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  16147. msm_routing_put_int0_mi2s_switch_mixer);
  16148. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  16149. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16150. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  16151. msm_routing_put_int4_mi2s_switch_mixer);
  16152. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  16153. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16154. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  16155. msm_routing_put_pri_mi2s_switch_mixer);
  16156. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  16157. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16158. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  16159. msm_routing_put_sec_mi2s_switch_mixer);
  16160. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  16161. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16162. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  16163. msm_routing_put_tert_mi2s_switch_mixer);
  16164. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  16165. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16166. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  16167. msm_routing_put_quat_mi2s_switch_mixer);
  16168. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  16169. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16170. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  16171. msm_routing_put_quin_mi2s_switch_mixer);
  16172. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  16173. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16174. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16175. msm_routing_put_hfp_switch_mixer);
  16176. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  16177. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16178. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16179. msm_routing_put_hfp_switch_mixer);
  16180. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  16181. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16182. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16183. msm_routing_put_hfp_switch_mixer);
  16184. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  16185. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16186. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16187. msm_routing_put_hfp_switch_mixer);
  16188. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  16189. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16190. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  16191. msm_routing_put_usb_switch_mixer);
  16192. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  16193. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16194. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  16195. msm_routing_a2dp_switch_mixer_put);
  16196. static const struct soc_enum lsm_port_enum =
  16197. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  16198. static const char * const lsm_func_text[] = {
  16199. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  16200. };
  16201. static const struct soc_enum lsm_func_enum =
  16202. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  16203. static const struct snd_kcontrol_new lsm_controls[] = {
  16204. /* kcontrol of lsm_function */
  16205. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16206. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16207. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16208. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16209. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16210. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16211. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16212. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16213. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16214. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16215. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16216. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16217. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16218. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16219. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16220. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16221. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16222. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16223. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16224. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16225. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16226. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16227. /* kcontrol of lsm_port */
  16228. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  16229. msm_routing_lsm_port_get,
  16230. msm_routing_lsm_port_put),
  16231. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  16232. msm_routing_lsm_port_get,
  16233. msm_routing_lsm_port_put),
  16234. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  16235. msm_routing_lsm_port_get,
  16236. msm_routing_lsm_port_put),
  16237. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  16238. msm_routing_lsm_port_get,
  16239. msm_routing_lsm_port_put),
  16240. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  16241. msm_routing_lsm_port_get,
  16242. msm_routing_lsm_port_put),
  16243. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  16244. msm_routing_lsm_port_get,
  16245. msm_routing_lsm_port_put),
  16246. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  16247. msm_routing_lsm_port_get,
  16248. msm_routing_lsm_port_put),
  16249. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  16250. msm_routing_lsm_port_get,
  16251. msm_routing_lsm_port_put),
  16252. };
  16253. static const char * const aanc_slim_0_rx_text[] = {
  16254. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  16255. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  16256. };
  16257. static const struct soc_enum aanc_slim_0_rx_enum =
  16258. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  16259. aanc_slim_0_rx_text);
  16260. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  16261. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  16262. msm_routing_slim_0_rx_aanc_mux_get,
  16263. msm_routing_slim_0_rx_aanc_mux_put)
  16264. };
  16265. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  16266. struct snd_ctl_elem_value *ucontrol)
  16267. {
  16268. ucontrol->value.integer.value[0] = aanc_level;
  16269. return 0;
  16270. }
  16271. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  16272. struct snd_ctl_elem_value *ucontrol)
  16273. {
  16274. int ret = 0;
  16275. mutex_lock(&routing_lock);
  16276. aanc_level = ucontrol->value.integer.value[0];
  16277. pr_debug("%s: value: %ld\n",
  16278. __func__, ucontrol->value.integer.value[0]);
  16279. ret = afe_set_aanc_noise_level(aanc_level);
  16280. mutex_unlock(&routing_lock);
  16281. return ret;
  16282. }
  16283. static const struct snd_kcontrol_new aanc_noise_level[] = {
  16284. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  16285. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  16286. };
  16287. static int msm_routing_get_stereo_to_custom_stereo_control(
  16288. struct snd_kcontrol *kcontrol,
  16289. struct snd_ctl_elem_value *ucontrol)
  16290. {
  16291. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  16292. return 0;
  16293. }
  16294. static int msm_routing_put_stereo_to_custom_stereo_control(
  16295. struct snd_kcontrol *kcontrol,
  16296. struct snd_ctl_elem_value *ucontrol)
  16297. {
  16298. int flag = 0, i = 0, rc = 0, idx = 0;
  16299. int be_index = 0, port_id, topo_id;
  16300. unsigned int session_id = 0;
  16301. uint16_t op_FL_ip_FL_weight = 0;
  16302. uint16_t op_FL_ip_FR_weight = 0;
  16303. uint16_t op_FR_ip_FL_weight = 0;
  16304. uint16_t op_FR_ip_FR_weight = 0;
  16305. flag = ucontrol->value.integer.value[0];
  16306. pr_debug("%s E flag %d\n", __func__, flag);
  16307. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  16308. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  16309. __func__, is_custom_stereo_on, flag);
  16310. return 0;
  16311. }
  16312. is_custom_stereo_on = flag ? true : false;
  16313. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  16314. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  16315. port_id = msm_bedais[be_index].port_id;
  16316. if (!msm_bedais[be_index].active)
  16317. continue;
  16318. if ((port_id != SLIMBUS_0_RX) &&
  16319. (port_id != RT_PROXY_PORT_001_RX) &&
  16320. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  16321. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  16322. continue;
  16323. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  16324. MSM_FRONTEND_DAI_MM_SIZE) {
  16325. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  16326. LEGACY_PCM_MODE)
  16327. goto skip_send_custom_stereo;
  16328. session_id =
  16329. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  16330. if (is_custom_stereo_on) {
  16331. op_FL_ip_FL_weight =
  16332. Q14_GAIN_ZERO_POINT_FIVE;
  16333. op_FL_ip_FR_weight =
  16334. Q14_GAIN_ZERO_POINT_FIVE;
  16335. op_FR_ip_FL_weight =
  16336. Q14_GAIN_ZERO_POINT_FIVE;
  16337. op_FR_ip_FR_weight =
  16338. Q14_GAIN_ZERO_POINT_FIVE;
  16339. } else {
  16340. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  16341. op_FL_ip_FR_weight = 0;
  16342. op_FR_ip_FL_weight = 0;
  16343. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  16344. }
  16345. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16346. unsigned long copp =
  16347. session_copp_map[i]
  16348. [SESSION_TYPE_RX][be_index];
  16349. if (!test_bit(idx, &copp))
  16350. goto skip_send_custom_stereo;
  16351. topo_id = adm_get_topology_for_port_copp_idx(
  16352. msm_bedais[be_index].port_id, idx);
  16353. if (topo_id < 0)
  16354. pr_debug("%s:Err:custom stereo topo %d",
  16355. __func__, topo_id);
  16356. pr_debug("idx %d\n", idx);
  16357. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  16358. rc = msm_ds2_dap_set_custom_stereo_onoff
  16359. (msm_bedais[be_index].port_id,
  16360. idx, is_custom_stereo_on);
  16361. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  16362. rc = dolby_dap_set_custom_stereo_onoff(
  16363. msm_bedais[be_index].port_id,
  16364. idx, is_custom_stereo_on);
  16365. else
  16366. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  16367. (msm_bedais[be_index].port_id,
  16368. idx, session_id,
  16369. op_FL_ip_FL_weight,
  16370. op_FL_ip_FR_weight,
  16371. op_FR_ip_FL_weight,
  16372. op_FR_ip_FR_weight);
  16373. if (rc < 0)
  16374. skip_send_custom_stereo:
  16375. pr_err("%s: err setting custom stereo\n",
  16376. __func__);
  16377. }
  16378. }
  16379. }
  16380. return 0;
  16381. }
  16382. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  16383. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  16384. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  16385. msm_routing_put_stereo_to_custom_stereo_control),
  16386. };
  16387. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16388. struct snd_ctl_elem_value *ucontrol)
  16389. {
  16390. return 0;
  16391. }
  16392. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16393. struct snd_ctl_elem_value *ucontrol)
  16394. {
  16395. int i = 0, j;
  16396. int num_app_types = ucontrol->value.integer.value[i++];
  16397. pr_debug("%s\n", __func__);
  16398. memset(app_type_cfg, 0, MAX_APP_TYPES*
  16399. sizeof(struct msm_pcm_routing_app_type_data));
  16400. if (num_app_types > MAX_APP_TYPES) {
  16401. pr_err("%s: number of app types exceed the max supported\n",
  16402. __func__);
  16403. return -EINVAL;
  16404. }
  16405. for (j = 0; j < num_app_types; j++) {
  16406. app_type_cfg[j].app_type =
  16407. ucontrol->value.integer.value[i++];
  16408. app_type_cfg[j].sample_rate =
  16409. ucontrol->value.integer.value[i++];
  16410. app_type_cfg[j].bit_width =
  16411. ucontrol->value.integer.value[i++];
  16412. }
  16413. return 0;
  16414. }
  16415. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  16416. struct snd_ctl_elem_value *ucontrol)
  16417. {
  16418. int j, fe_id, be_id, port_type;
  16419. int ret = 0;
  16420. unsigned long copp;
  16421. struct msm_pcm_routing_bdai_data *bedai;
  16422. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16423. SESSION_TYPE_RX;
  16424. int app_type = ucontrol->value.integer.value[1];
  16425. int gain = (ucontrol->value.integer.value[2] +
  16426. ucontrol->value.integer.value[3])/2;
  16427. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16428. MSM_AFE_PORT_TYPE_TX;
  16429. mutex_lock(&routing_lock);
  16430. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16431. if (is_be_dai_extproc(be_id))
  16432. continue;
  16433. bedai = &msm_bedais[be_id];
  16434. if (afe_get_port_type(bedai->port_id) != port_type)
  16435. continue;
  16436. if (!bedai->active)
  16437. continue;
  16438. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16439. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16440. continue;
  16441. if (app_type !=
  16442. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16443. continue;
  16444. copp = session_copp_map[fe_id][dir][be_id];
  16445. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  16446. if (!test_bit(j, &copp))
  16447. continue;
  16448. ret |= adm_set_volume(bedai->port_id, j, gain);
  16449. }
  16450. }
  16451. }
  16452. mutex_unlock(&routing_lock);
  16453. return ret ? -EINVAL : 0;
  16454. }
  16455. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  16456. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  16457. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  16458. msm_routing_put_app_type_cfg_control),
  16459. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  16460. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  16461. };
  16462. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  16463. struct snd_ctl_elem_value *ucontrol)
  16464. {
  16465. int copp_idx, fe_id, be_id, port_type;
  16466. int ret = 0;
  16467. unsigned long copp;
  16468. struct msm_pcm_routing_bdai_data *bedai;
  16469. u8 *packed_params = NULL;
  16470. struct param_hdr_v3 param_hdr;
  16471. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  16472. sizeof(uint32_t));
  16473. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16474. SESSION_TYPE_RX;
  16475. int app_type = ucontrol->value.integer.value[1];
  16476. int module_id = ucontrol->value.integer.value[2];
  16477. int instance_id = ucontrol->value.integer.value[3];
  16478. int param_id = ucontrol->value.integer.value[4];
  16479. int param_value = ucontrol->value.integer.value[5];
  16480. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16481. MSM_AFE_PORT_TYPE_TX;
  16482. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  16483. __func__, app_type, module_id,
  16484. instance_id, param_id, param_value);
  16485. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  16486. if (!packed_params)
  16487. return -ENOMEM;
  16488. memset(&param_hdr, 0, sizeof(param_hdr));
  16489. param_hdr.module_id = module_id;
  16490. param_hdr.instance_id = instance_id;
  16491. param_hdr.param_id = param_id;
  16492. param_hdr.param_size = sizeof(uint32_t);
  16493. packed_param_size = 0;
  16494. mutex_lock(&routing_lock);
  16495. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16496. if (is_be_dai_extproc(be_id))
  16497. continue;
  16498. bedai = &msm_bedais[be_id];
  16499. if (afe_get_port_type(bedai->port_id) != port_type)
  16500. continue;
  16501. if (!bedai->active)
  16502. continue;
  16503. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16504. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16505. continue;
  16506. if (app_type !=
  16507. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16508. continue;
  16509. copp = session_copp_map[fe_id][dir][be_id];
  16510. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  16511. copp_idx++) {
  16512. if (!test_bit(copp_idx, &copp))
  16513. continue;
  16514. ret = q6common_pack_pp_params(packed_params,
  16515. &param_hdr,
  16516. (u8 *) &param_value,
  16517. &packed_param_size);
  16518. if (ret) {
  16519. pr_err("%s: Failed to pack params, error %d\n",
  16520. __func__, ret);
  16521. goto done;
  16522. }
  16523. ret = adm_set_pp_params(bedai->port_id,
  16524. copp_idx, NULL,
  16525. packed_params,
  16526. packed_param_size);
  16527. if (ret) {
  16528. pr_err("%s: Setting param failed with err=%d\n",
  16529. __func__, ret);
  16530. ret = -EINVAL;
  16531. goto done;
  16532. }
  16533. }
  16534. }
  16535. }
  16536. done:
  16537. mutex_unlock(&routing_lock);
  16538. kfree(packed_params);
  16539. return ret;
  16540. }
  16541. static const struct snd_kcontrol_new module_cfg_controls[] = {
  16542. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  16543. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  16544. };
  16545. static int msm_routing_get_lsm_app_type_cfg_control(
  16546. struct snd_kcontrol *kcontrol,
  16547. struct snd_ctl_elem_value *ucontrol)
  16548. {
  16549. return 0;
  16550. }
  16551. static int msm_routing_put_lsm_app_type_cfg_control(
  16552. struct snd_kcontrol *kcontrol,
  16553. struct snd_ctl_elem_value *ucontrol)
  16554. {
  16555. int shift = ((struct soc_multi_mixer_control *)
  16556. kcontrol->private_value)->shift;
  16557. int i = 0, j;
  16558. int num_app_types = ucontrol->value.integer.value[i++];
  16559. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  16560. sizeof(struct msm_pcm_routing_app_type_data));
  16561. if (num_app_types > MAX_APP_TYPES) {
  16562. pr_err("%s: number of app types exceed the max supported\n",
  16563. __func__);
  16564. return -EINVAL;
  16565. }
  16566. for (j = 0; j < num_app_types; j++) {
  16567. lsm_app_type_cfg[j].app_type =
  16568. ucontrol->value.integer.value[i++];
  16569. lsm_app_type_cfg[j].sample_rate =
  16570. ucontrol->value.integer.value[i++];
  16571. lsm_app_type_cfg[j].bit_width =
  16572. ucontrol->value.integer.value[i++];
  16573. /* Shift of 1 indicates this is V2 mixer control */
  16574. if (shift == 1)
  16575. lsm_app_type_cfg[j].num_out_channels =
  16576. ucontrol->value.integer.value[i++];
  16577. }
  16578. return 0;
  16579. }
  16580. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  16581. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  16582. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16583. msm_routing_put_lsm_app_type_cfg_control),
  16584. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  16585. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16586. msm_routing_put_lsm_app_type_cfg_control),
  16587. };
  16588. static int msm_routing_get_use_ds1_or_ds2_control(
  16589. struct snd_kcontrol *kcontrol,
  16590. struct snd_ctl_elem_value *ucontrol)
  16591. {
  16592. ucontrol->value.integer.value[0] = is_ds2_on;
  16593. return 0;
  16594. }
  16595. static int msm_routing_put_use_ds1_or_ds2_control(
  16596. struct snd_kcontrol *kcontrol,
  16597. struct snd_ctl_elem_value *ucontrol)
  16598. {
  16599. is_ds2_on = ucontrol->value.integer.value[0];
  16600. return 0;
  16601. }
  16602. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  16603. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  16604. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  16605. msm_routing_put_use_ds1_or_ds2_control),
  16606. };
  16607. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  16608. struct snd_ctl_elem_value *ucontrol) {
  16609. int rc = 0;
  16610. int be_idx = 0;
  16611. char *param_value;
  16612. int *update_param_value;
  16613. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  16614. struct param_hdr_v3 param_hdr;
  16615. param_value = kzalloc(param_size, GFP_KERNEL);
  16616. if (!param_value)
  16617. return -ENOMEM;
  16618. memset(&param_hdr, 0, sizeof(param_hdr));
  16619. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  16620. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  16621. break;
  16622. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  16623. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  16624. param_hdr.instance_id = INSTANCE_ID_0;
  16625. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  16626. param_hdr.param_size = param_size;
  16627. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  16628. NULL, &param_hdr, (u8 *) param_value);
  16629. if (rc) {
  16630. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  16631. kfree(param_value);
  16632. return -EINVAL;
  16633. }
  16634. update_param_value = (int *)param_value;
  16635. ucontrol->value.integer.value[0] = update_param_value[0];
  16636. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  16637. __func__, update_param_value[0]);
  16638. }
  16639. kfree(param_value);
  16640. return 0;
  16641. }
  16642. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  16643. struct snd_ctl_elem_value *ucontrol)
  16644. {
  16645. voc_session_id = ucontrol->value.integer.value[0];
  16646. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  16647. return 0;
  16648. }
  16649. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  16650. struct snd_ctl_elem_value *ucontrol)
  16651. {
  16652. ucontrol->value.integer.value[0] = voc_session_id;
  16653. return 0;
  16654. }
  16655. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  16656. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  16657. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  16658. msm_voc_session_id_put),
  16659. };
  16660. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  16661. struct snd_ctl_elem_info *uinfo)
  16662. {
  16663. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16664. uinfo->count = sizeof(struct sound_focus_param);
  16665. return 0;
  16666. }
  16667. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  16668. struct snd_ctl_elem_value *ucontrol)
  16669. {
  16670. int ret = 0;
  16671. struct sound_focus_param soundFocusData;
  16672. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16673. sizeof(struct sound_focus_param));
  16674. ret = voc_set_sound_focus(soundFocusData);
  16675. if (ret) {
  16676. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16677. __func__, ret);
  16678. ret = -EINVAL;
  16679. }
  16680. return ret;
  16681. }
  16682. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  16683. struct snd_ctl_elem_value *ucontrol)
  16684. {
  16685. int ret = 0;
  16686. struct sound_focus_param soundFocusData;
  16687. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  16688. ret = voc_get_sound_focus(&soundFocusData);
  16689. if (ret) {
  16690. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  16691. __func__, ret);
  16692. ret = -EINVAL;
  16693. goto done;
  16694. }
  16695. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16696. sizeof(struct sound_focus_param));
  16697. done:
  16698. return ret;
  16699. }
  16700. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  16701. struct snd_ctl_elem_info *uinfo)
  16702. {
  16703. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16704. uinfo->count = sizeof(struct source_tracking_param);
  16705. return 0;
  16706. }
  16707. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  16708. struct snd_ctl_elem_value *ucontrol)
  16709. {
  16710. int ret = 0;
  16711. struct source_tracking_param sourceTrackingData;
  16712. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  16713. ret = voc_get_source_tracking(&sourceTrackingData);
  16714. if (ret) {
  16715. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  16716. __func__, ret);
  16717. ret = -EINVAL;
  16718. goto done;
  16719. }
  16720. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16721. sizeof(struct source_tracking_param));
  16722. done:
  16723. return ret;
  16724. }
  16725. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  16726. int *copp_idx)
  16727. {
  16728. int i, idx, be_idx;
  16729. int ret = 0;
  16730. unsigned long copp;
  16731. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  16732. ret = q6audio_validate_port(port_id);
  16733. if (ret < 0) {
  16734. pr_err("%s: port validation failed id 0x%x ret %d\n",
  16735. __func__, port_id, ret);
  16736. ret = -EINVAL;
  16737. goto done;
  16738. }
  16739. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16740. if (msm_bedais[be_idx].port_id == port_id)
  16741. break;
  16742. }
  16743. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16744. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  16745. ret = -EINVAL;
  16746. goto done;
  16747. }
  16748. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  16749. MSM_FRONTEND_DAI_MM_SIZE) {
  16750. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16751. copp = session_copp_map[i]
  16752. [session_type][be_idx];
  16753. if (test_bit(idx, &copp))
  16754. break;
  16755. }
  16756. if (idx >= MAX_COPPS_PER_PORT)
  16757. continue;
  16758. else
  16759. break;
  16760. }
  16761. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  16762. pr_debug("%s: Invalid FE, exiting\n", __func__);
  16763. ret = -EINVAL;
  16764. goto done;
  16765. }
  16766. *copp_idx = idx;
  16767. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  16768. done:
  16769. return ret;
  16770. }
  16771. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  16772. const char *prefix, int *port_id)
  16773. {
  16774. int ret = 0;
  16775. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  16776. /*
  16777. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  16778. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  16779. * and compare the string with the backend name to derive the port id.
  16780. */
  16781. if (!strcmp(kcontrol->id.name + strlen(prefix),
  16782. "SLIMBUS_0")) {
  16783. *port_id = SLIMBUS_0_TX;
  16784. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16785. "TERT_MI2S")) {
  16786. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  16787. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16788. "INT3_MI2S")) {
  16789. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  16790. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16791. "VA_CDC_DMA_TX_0")) {
  16792. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  16793. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16794. "TX_CDC_DMA_TX_3")) {
  16795. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  16796. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16797. "QUIN_TDM_TX_0")) {
  16798. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  16799. } else {
  16800. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  16801. __func__, kcontrol->id.name);
  16802. ret = -EINVAL;
  16803. goto done;
  16804. }
  16805. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  16806. __func__, kcontrol->id.name, *port_id);
  16807. done:
  16808. return ret;
  16809. }
  16810. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  16811. struct snd_ctl_elem_value *ucontrol)
  16812. {
  16813. int ret = 0;
  16814. struct sound_focus_param soundFocusData;
  16815. int port_id, copp_idx;
  16816. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16817. "Sound Focus Audio Tx ", &port_id);
  16818. if (ret != 0) {
  16819. pr_err("%s: Error in deriving port id, err=%d\n",
  16820. __func__, ret);
  16821. ret = -EINVAL;
  16822. goto done;
  16823. }
  16824. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16825. &copp_idx);
  16826. if (ret) {
  16827. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16828. __func__, port_id);
  16829. ret = -EINVAL;
  16830. goto done;
  16831. }
  16832. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16833. sizeof(struct sound_focus_param));
  16834. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  16835. if (ret) {
  16836. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16837. __func__, ret);
  16838. ret = -EINVAL;
  16839. goto done;
  16840. }
  16841. done:
  16842. return ret;
  16843. }
  16844. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  16845. struct snd_ctl_elem_value *ucontrol)
  16846. {
  16847. int ret = 0;
  16848. struct sound_focus_param soundFocusData;
  16849. int port_id, copp_idx;
  16850. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16851. "Sound Focus Audio Tx ", &port_id);
  16852. if (ret) {
  16853. pr_err("%s: Error in deriving port id, err=%d\n",
  16854. __func__, ret);
  16855. ret = -EINVAL;
  16856. goto done;
  16857. }
  16858. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16859. &copp_idx);
  16860. if (ret) {
  16861. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  16862. __func__, port_id);
  16863. ret = -EINVAL;
  16864. goto done;
  16865. }
  16866. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  16867. if (ret) {
  16868. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16869. __func__, ret);
  16870. ret = -EINVAL;
  16871. goto done;
  16872. }
  16873. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16874. sizeof(struct sound_focus_param));
  16875. done:
  16876. return ret;
  16877. }
  16878. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  16879. struct snd_ctl_elem_value *ucontrol)
  16880. {
  16881. int ret = 0;
  16882. struct source_tracking_param sourceTrackingData;
  16883. int port_id, copp_idx;
  16884. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16885. "Source Tracking Audio Tx ", &port_id);
  16886. if (ret) {
  16887. pr_err("%s: Error in deriving port id, err=%d\n",
  16888. __func__, ret);
  16889. ret = -EINVAL;
  16890. goto done;
  16891. }
  16892. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16893. &copp_idx);
  16894. if (ret) {
  16895. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  16896. __func__, port_id);
  16897. ret = -EINVAL;
  16898. goto done;
  16899. }
  16900. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  16901. if (ret) {
  16902. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  16903. __func__, ret);
  16904. ret = -EINVAL;
  16905. goto done;
  16906. }
  16907. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16908. sizeof(struct source_tracking_param));
  16909. done:
  16910. return ret;
  16911. }
  16912. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  16913. {
  16914. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16915. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16916. .name = "Sound Focus Voice Tx SLIMBUS_0",
  16917. .info = msm_sound_focus_info,
  16918. .get = msm_voice_sound_focus_get,
  16919. .put = msm_voice_sound_focus_put,
  16920. },
  16921. {
  16922. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16923. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16924. .name = "Source Tracking Voice Tx SLIMBUS_0",
  16925. .info = msm_source_tracking_info,
  16926. .get = msm_voice_source_tracking_get,
  16927. },
  16928. {
  16929. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16930. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16931. .name = "Sound Focus Audio Tx SLIMBUS_0",
  16932. .info = msm_sound_focus_info,
  16933. .get = msm_audio_sound_focus_get,
  16934. .put = msm_audio_sound_focus_put,
  16935. },
  16936. {
  16937. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16938. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16939. .name = "Source Tracking Audio Tx SLIMBUS_0",
  16940. .info = msm_source_tracking_info,
  16941. .get = msm_audio_source_tracking_get,
  16942. },
  16943. {
  16944. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16945. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16946. .name = "Sound Focus Voice Tx TERT_MI2S",
  16947. .info = msm_sound_focus_info,
  16948. .get = msm_voice_sound_focus_get,
  16949. .put = msm_voice_sound_focus_put,
  16950. },
  16951. {
  16952. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16953. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16954. .name = "Source Tracking Voice Tx TERT_MI2S",
  16955. .info = msm_source_tracking_info,
  16956. .get = msm_voice_source_tracking_get,
  16957. },
  16958. {
  16959. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16960. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16961. .name = "Sound Focus Audio Tx TERT_MI2S",
  16962. .info = msm_sound_focus_info,
  16963. .get = msm_audio_sound_focus_get,
  16964. .put = msm_audio_sound_focus_put,
  16965. },
  16966. {
  16967. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16968. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16969. .name = "Source Tracking Audio Tx TERT_MI2S",
  16970. .info = msm_source_tracking_info,
  16971. .get = msm_audio_source_tracking_get,
  16972. },
  16973. {
  16974. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16976. .name = "Sound Focus Voice Tx INT3_MI2S",
  16977. .info = msm_sound_focus_info,
  16978. .get = msm_voice_sound_focus_get,
  16979. .put = msm_voice_sound_focus_put,
  16980. },
  16981. {
  16982. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16983. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16984. .name = "Source Tracking Voice Tx INT3_MI2S",
  16985. .info = msm_source_tracking_info,
  16986. .get = msm_voice_source_tracking_get,
  16987. },
  16988. {
  16989. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16990. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16991. .name = "Sound Focus Audio Tx INT3_MI2S",
  16992. .info = msm_sound_focus_info,
  16993. .get = msm_audio_sound_focus_get,
  16994. .put = msm_audio_sound_focus_put,
  16995. },
  16996. {
  16997. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16998. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16999. .name = "Source Tracking Audio Tx INT3_MI2S",
  17000. .info = msm_source_tracking_info,
  17001. .get = msm_audio_source_tracking_get,
  17002. },
  17003. {
  17004. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17006. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  17007. .info = msm_sound_focus_info,
  17008. .get = msm_voice_sound_focus_get,
  17009. .put = msm_voice_sound_focus_put,
  17010. },
  17011. {
  17012. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17013. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17014. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  17015. .info = msm_source_tracking_info,
  17016. .get = msm_voice_source_tracking_get,
  17017. },
  17018. {
  17019. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17020. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17021. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  17022. .info = msm_sound_focus_info,
  17023. .get = msm_audio_sound_focus_get,
  17024. .put = msm_audio_sound_focus_put,
  17025. },
  17026. {
  17027. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17028. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17029. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  17030. .info = msm_source_tracking_info,
  17031. .get = msm_audio_source_tracking_get,
  17032. },
  17033. {
  17034. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17035. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17036. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  17037. .info = msm_sound_focus_info,
  17038. .get = msm_voice_sound_focus_get,
  17039. .put = msm_voice_sound_focus_put,
  17040. },
  17041. {
  17042. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17043. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17044. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  17045. .info = msm_source_tracking_info,
  17046. .get = msm_voice_source_tracking_get,
  17047. },
  17048. {
  17049. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17050. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17051. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  17052. .info = msm_sound_focus_info,
  17053. .get = msm_audio_sound_focus_get,
  17054. .put = msm_audio_sound_focus_put,
  17055. },
  17056. {
  17057. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17058. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17059. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  17060. .info = msm_source_tracking_info,
  17061. .get = msm_audio_source_tracking_get,
  17062. },
  17063. {
  17064. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17065. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17066. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  17067. .info = msm_sound_focus_info,
  17068. .get = msm_voice_sound_focus_get,
  17069. .put = msm_voice_sound_focus_put,
  17070. },
  17071. {
  17072. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17073. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17074. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  17075. .info = msm_source_tracking_info,
  17076. .get = msm_voice_source_tracking_get,
  17077. },
  17078. {
  17079. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17080. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17081. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  17082. .info = msm_sound_focus_info,
  17083. .get = msm_audio_sound_focus_get,
  17084. .put = msm_audio_sound_focus_put,
  17085. },
  17086. {
  17087. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17088. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17089. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  17090. .info = msm_source_tracking_info,
  17091. .get = msm_audio_source_tracking_get,
  17092. },
  17093. };
  17094. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  17095. struct snd_ctl_elem_value *ucontrol)
  17096. {
  17097. int ret = 0;
  17098. int item;
  17099. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17100. pr_debug("%s item is %d\n", __func__,
  17101. ucontrol->value.enumerated.item[0]);
  17102. mutex_lock(&routing_lock);
  17103. item = ucontrol->value.enumerated.item[0];
  17104. if (item < e->items) {
  17105. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17106. __func__, e->shift_l, e->values[item]);
  17107. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17108. e->values[item] < MSM_BACKEND_DAI_MAX)
  17109. /* Enable feedback TX path */
  17110. ret = afe_spk_prot_feed_back_cfg(
  17111. msm_bedais[e->values[item]].port_id,
  17112. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  17113. else {
  17114. pr_debug("%s values are out of range item %d\n",
  17115. __func__, e->values[item]);
  17116. /* Disable feedback TX path */
  17117. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17118. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  17119. else
  17120. ret = -EINVAL;
  17121. }
  17122. } else {
  17123. pr_err("%s item value is out of range item\n", __func__);
  17124. ret = -EINVAL;
  17125. }
  17126. mutex_unlock(&routing_lock);
  17127. return ret;
  17128. }
  17129. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  17130. struct snd_ctl_elem_value *ucontrol)
  17131. {
  17132. int ret = 0;
  17133. int item;
  17134. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17135. pr_debug("%s item is %d\n", __func__,
  17136. ucontrol->value.enumerated.item[0]);
  17137. mutex_lock(&routing_lock);
  17138. item = ucontrol->value.enumerated.item[0];
  17139. if (item < e->items) {
  17140. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17141. __func__, e->shift_l, e->values[item]);
  17142. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17143. e->values[item] < MSM_BACKEND_DAI_MAX)
  17144. /* Enable feedback TX path */
  17145. ret = afe_spk_prot_feed_back_cfg(
  17146. msm_bedais[e->values[item]].port_id,
  17147. msm_bedais[e->shift_l].port_id,
  17148. 1, 1, 1);
  17149. else {
  17150. pr_debug("%s values are out of range item %d\n",
  17151. __func__, e->values[item]);
  17152. /* Disable feedback TX path */
  17153. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17154. ret = afe_spk_prot_feed_back_cfg(0,
  17155. 0, 0, 0, 0);
  17156. else
  17157. ret = -EINVAL;
  17158. }
  17159. } else {
  17160. pr_err("%s item value is out of range item\n", __func__);
  17161. ret = -EINVAL;
  17162. }
  17163. mutex_unlock(&routing_lock);
  17164. return ret;
  17165. }
  17166. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  17167. struct snd_ctl_elem_value *ucontrol)
  17168. {
  17169. pr_debug("%s\n", __func__);
  17170. return 0;
  17171. }
  17172. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  17173. struct snd_ctl_elem_value *ucontrol)
  17174. {
  17175. pr_debug("%s\n", __func__);
  17176. ucontrol->value.enumerated.item[0] = 0;
  17177. return 0;
  17178. }
  17179. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  17180. "ZERO", "SLIM4_TX"
  17181. };
  17182. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  17183. "ZERO", "SLIM4_TX"
  17184. };
  17185. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  17186. "ZERO", "WSA_CDC_DMA_TX_0"
  17187. };
  17188. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  17189. "ZERO", "WSA_CDC_DMA_TX_0"
  17190. };
  17191. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  17192. "ZERO", "SENARY_TX"
  17193. };
  17194. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  17195. "ZERO", "INT5_MI2S_TX"
  17196. };
  17197. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  17198. "ZERO", "INT5_MI2S_TX"
  17199. };
  17200. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  17201. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17202. };
  17203. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  17204. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17205. };
  17206. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  17207. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17208. };
  17209. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  17210. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17211. };
  17212. static const int const mi2s_rx_vi_fb_tx_value[] = {
  17213. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  17214. };
  17215. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  17216. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17217. };
  17218. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  17219. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17220. };
  17221. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  17222. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17223. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  17224. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  17225. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  17226. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17227. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  17228. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  17229. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  17230. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17231. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  17232. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  17233. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  17234. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17235. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  17236. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  17237. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  17238. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  17239. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  17240. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  17241. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  17242. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17243. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  17244. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  17245. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  17246. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  17247. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17248. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  17249. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  17250. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  17251. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  17252. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  17253. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17254. spkr_prot_put_vi_lch_port);
  17255. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  17256. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  17257. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17258. spkr_prot_put_vi_rch_port);
  17259. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  17260. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  17261. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17262. spkr_prot_put_vi_lch_port);
  17263. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  17264. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  17265. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17266. spkr_prot_put_vi_rch_port);
  17267. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  17268. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  17269. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  17270. spkr_prot_put_vi_lch_port);
  17271. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  17272. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  17273. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  17274. spkr_prot_put_vi_lch_port);
  17275. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  17276. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  17277. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  17278. spkr_prot_put_vi_rch_port);
  17279. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  17280. /* Frontend AIF */
  17281. /* Widget name equals to Front-End DAI name<Need confirmation>,
  17282. * Stream name must contains substring of front-end dai name
  17283. */
  17284. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  17285. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  17286. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  17287. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  17288. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  17289. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  17290. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  17291. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  17292. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  17293. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  17294. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  17295. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  17296. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  17297. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  17298. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  17299. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  17300. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  17301. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  17302. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  17303. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  17304. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  17305. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  17306. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  17307. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  17308. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  17309. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  17310. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  17311. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  17312. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  17313. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  17314. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  17315. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  17316. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  17317. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  17318. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  17319. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  17320. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  17321. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  17322. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  17323. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  17324. "VoiceMMode1 Playback", 0, 0, 0, 0),
  17325. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  17326. "VoiceMMode1 Capture", 0, 0, 0, 0),
  17327. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  17328. "VoiceMMode2 Playback", 0, 0, 0, 0),
  17329. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  17330. "VoiceMMode2 Capture", 0, 0, 0, 0),
  17331. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  17332. 0, 0, 0, 0),
  17333. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  17334. 0, 0, 0, 0),
  17335. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  17336. 0, 0, 0, 0),
  17337. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  17338. 0, 0, 0, 0),
  17339. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  17340. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  17341. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  17342. 0, 0, 0, 0),
  17343. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  17344. 0, 0, 0, 0),
  17345. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  17346. 0, 0, 0, 0),
  17347. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  17348. 0, 0, 0, 0),
  17349. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  17350. 0, 0, 0, 0),
  17351. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  17352. 0, 0, 0, 0),
  17353. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  17354. 0, 0, 0, 0),
  17355. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  17356. 0, 0, 0, 0),
  17357. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  17358. 0, 0, 0, 0),
  17359. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  17360. 0, 0, 0, 0),
  17361. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  17362. 0, 0, 0, 0),
  17363. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  17364. 0, 0, 0, 0),
  17365. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  17366. 0, 0, 0, 0),
  17367. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  17368. 0, 0, 0, 0),
  17369. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  17370. 0, 0, 0, 0),
  17371. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  17372. 0, 0, 0, 0),
  17373. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  17374. 0, 0, 0, 0),
  17375. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  17376. 0, 0, 0, 0),
  17377. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  17378. 0, 0, 0, 0),
  17379. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  17380. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  17381. 0, 0, 0, 0),
  17382. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  17383. "INT0 MI2S_RX Hostless Playback",
  17384. 0, 0, 0, 0),
  17385. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  17386. "INT4 MI2S_RX Hostless Playback",
  17387. 0, 0, 0, 0),
  17388. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  17389. "Primary MI2S_RX Hostless Playback",
  17390. 0, 0, 0, 0),
  17391. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  17392. "Secondary MI2S_RX Hostless Playback",
  17393. 0, 0, 0, 0),
  17394. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  17395. "Tertiary MI2S_RX Hostless Playback",
  17396. 0, 0, 0, 0),
  17397. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  17398. "Quaternary MI2S_RX Hostless Playback",
  17399. 0, 0, 0, 0),
  17400. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  17401. "Quinary MI2S_RX Hostless Playback",
  17402. 0, 0, 0, 0),
  17403. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  17404. 0, 0, 0, 0),
  17405. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  17406. 0, 0, 0, 0),
  17407. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  17408. 0, 0, 0, 0),
  17409. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  17410. 0, 0, 0, 0),
  17411. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  17412. 0, 0, 0, 0),
  17413. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  17414. "INT3 MI2S_TX Hostless Capture",
  17415. 0, 0, 0, 0),
  17416. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  17417. "Tertiary MI2S_TX Hostless Capture",
  17418. 0, 0, 0, 0),
  17419. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  17420. "Secondary MI2S_TX Hostless Capture",
  17421. 0, 0, 0, 0),
  17422. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  17423. "Primary MI2S_TX Hostless Capture",
  17424. 0, 0, 0, 0),
  17425. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  17426. 0, 0, 0, 0),
  17427. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  17428. 0, 0, 0, 0),
  17429. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  17430. "Quaternary MI2S_TX Hostless Capture",
  17431. 0, 0, 0, 0),
  17432. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  17433. "Quinary MI2S_TX Hostless Capture",
  17434. 0, 0, 0, 0),
  17435. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  17436. "Primary TDM0 Hostless Playback",
  17437. 0, 0, 0, 0),
  17438. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  17439. "Primary TDM0 Hostless Capture",
  17440. 0, 0, 0, 0),
  17441. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  17442. "Primary TDM1 Hostless Playback",
  17443. 0, 0, 0, 0),
  17444. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  17445. "Primary TDM1 Hostless Capture",
  17446. 0, 0, 0, 0),
  17447. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  17448. "Primary TDM2 Hostless Playback",
  17449. 0, 0, 0, 0),
  17450. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  17451. "Primary TDM2 Hostless Capture",
  17452. 0, 0, 0, 0),
  17453. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  17454. "Primary TDM3 Hostless Playback",
  17455. 0, 0, 0, 0),
  17456. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  17457. "Primary TDM3 Hostless Capture",
  17458. 0, 0, 0, 0),
  17459. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  17460. "Primary TDM4 Hostless Playback",
  17461. 0, 0, 0, 0),
  17462. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  17463. "Primary TDM4 Hostless Capture",
  17464. 0, 0, 0, 0),
  17465. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  17466. "Primary TDM5 Hostless Playback",
  17467. 0, 0, 0, 0),
  17468. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  17469. "Primary TDM5 Hostless Capture",
  17470. 0, 0, 0, 0),
  17471. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  17472. "Primary TDM6 Hostless Playback",
  17473. 0, 0, 0, 0),
  17474. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  17475. "Primary TDM6 Hostless Capture",
  17476. 0, 0, 0, 0),
  17477. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  17478. "Primary TDM7 Hostless Playback",
  17479. 0, 0, 0, 0),
  17480. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  17481. "Primary TDM7 Hostless Capture",
  17482. 0, 0, 0, 0),
  17483. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  17484. "Secondary TDM0 Hostless Playback",
  17485. 0, 0, 0, 0),
  17486. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  17487. "Secondary TDM0 Hostless Capture",
  17488. 0, 0, 0, 0),
  17489. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  17490. "Secondary TDM1 Hostless Playback",
  17491. 0, 0, 0, 0),
  17492. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  17493. "Secondary TDM1 Hostless Capture",
  17494. 0, 0, 0, 0),
  17495. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  17496. "Secondary TDM2 Hostless Playback",
  17497. 0, 0, 0, 0),
  17498. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  17499. "Secondary TDM2 Hostless Capture",
  17500. 0, 0, 0, 0),
  17501. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  17502. "Secondary TDM3 Hostless Playback",
  17503. 0, 0, 0, 0),
  17504. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  17505. "Secondary TDM3 Hostless Capture",
  17506. 0, 0, 0, 0),
  17507. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  17508. "Secondary TDM4 Hostless Playback",
  17509. 0, 0, 0, 0),
  17510. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  17511. "Secondary TDM4 Hostless Capture",
  17512. 0, 0, 0, 0),
  17513. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  17514. "Secondary TDM5 Hostless Playback",
  17515. 0, 0, 0, 0),
  17516. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  17517. "Secondary TDM5 Hostless Capture",
  17518. 0, 0, 0, 0),
  17519. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  17520. "Secondary TDM6 Hostless Playback",
  17521. 0, 0, 0, 0),
  17522. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  17523. "Secondary TDM6 Hostless Capture",
  17524. 0, 0, 0, 0),
  17525. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  17526. "Secondary TDM7 Hostless Playback",
  17527. 0, 0, 0, 0),
  17528. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  17529. "Secondary TDM7 Hostless Capture",
  17530. 0, 0, 0, 0),
  17531. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  17532. "Tertiary TDM0 Hostless Playback",
  17533. 0, 0, 0, 0),
  17534. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  17535. "Tertiary TDM0 Hostless Capture",
  17536. 0, 0, 0, 0),
  17537. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  17538. "Tertiary TDM1 Hostless Playback",
  17539. 0, 0, 0, 0),
  17540. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  17541. "Tertiary TDM1 Hostless Capture",
  17542. 0, 0, 0, 0),
  17543. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  17544. "Tertiary TDM2 Hostless Playback",
  17545. 0, 0, 0, 0),
  17546. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  17547. "Tertiary TDM2 Hostless Capture",
  17548. 0, 0, 0, 0),
  17549. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  17550. "Tertiary TDM3 Hostless Playback",
  17551. 0, 0, 0, 0),
  17552. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  17553. "Tertiary TDM3 Hostless Capture",
  17554. 0, 0, 0, 0),
  17555. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  17556. "Tertiary TDM4 Hostless Playback",
  17557. 0, 0, 0, 0),
  17558. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  17559. "Tertiary TDM4 Hostless Capture",
  17560. 0, 0, 0, 0),
  17561. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  17562. "Tertiary TDM5 Hostless Playback",
  17563. 0, 0, 0, 0),
  17564. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  17565. "Tertiary TDM5 Hostless Capture",
  17566. 0, 0, 0, 0),
  17567. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  17568. "Tertiary TDM6 Hostless Playback",
  17569. 0, 0, 0, 0),
  17570. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  17571. "Tertiary TDM6 Hostless Capture",
  17572. 0, 0, 0, 0),
  17573. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  17574. "Tertiary TDM7 Hostless Playback",
  17575. 0, 0, 0, 0),
  17576. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  17577. "Tertiary TDM7 Hostless Capture",
  17578. 0, 0, 0, 0),
  17579. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  17580. "Quaternary TDM0 Hostless Playback",
  17581. 0, 0, 0, 0),
  17582. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  17583. "Quaternary TDM0 Hostless Capture",
  17584. 0, 0, 0, 0),
  17585. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  17586. "Quaternary TDM1 Hostless Playback",
  17587. 0, 0, 0, 0),
  17588. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  17589. "Quaternary TDM1 Hostless Capture",
  17590. 0, 0, 0, 0),
  17591. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  17592. "Quaternary TDM2 Hostless Playback",
  17593. 0, 0, 0, 0),
  17594. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  17595. "Quaternary TDM2 Hostless Capture",
  17596. 0, 0, 0, 0),
  17597. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  17598. "Quaternary TDM3 Hostless Playback",
  17599. 0, 0, 0, 0),
  17600. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  17601. "Quaternary TDM3 Hostless Capture",
  17602. 0, 0, 0, 0),
  17603. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  17604. "Quaternary TDM4 Hostless Playback",
  17605. 0, 0, 0, 0),
  17606. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  17607. "Quaternary TDM4 Hostless Capture",
  17608. 0, 0, 0, 0),
  17609. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  17610. "Quaternary TDM5 Hostless Playback",
  17611. 0, 0, 0, 0),
  17612. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  17613. "Quaternary TDM5 Hostless Capture",
  17614. 0, 0, 0, 0),
  17615. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  17616. "Quaternary TDM6 Hostless Playback",
  17617. 0, 0, 0, 0),
  17618. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  17619. "Quaternary TDM6 Hostless Capture",
  17620. 0, 0, 0, 0),
  17621. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  17622. "Quaternary TDM7 Hostless Playback",
  17623. 0, 0, 0, 0),
  17624. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  17625. "Quaternary TDM7 Hostless Capture",
  17626. 0, 0, 0, 0),
  17627. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  17628. "Quinary TDM0 Hostless Playback",
  17629. 0, 0, 0, 0),
  17630. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  17631. "Quinary TDM0 Hostless Capture",
  17632. 0, 0, 0, 0),
  17633. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  17634. "Quinary TDM1 Hostless Playback",
  17635. 0, 0, 0, 0),
  17636. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  17637. "Quinary TDM1 Hostless Capture",
  17638. 0, 0, 0, 0),
  17639. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  17640. "Quinary TDM2 Hostless Playback",
  17641. 0, 0, 0, 0),
  17642. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  17643. "Quinary TDM2 Hostless Capture",
  17644. 0, 0, 0, 0),
  17645. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  17646. "Quinary TDM3 Hostless Playback",
  17647. 0, 0, 0, 0),
  17648. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  17649. "Quinary TDM3 Hostless Capture",
  17650. 0, 0, 0, 0),
  17651. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  17652. "Quinary TDM4 Hostless Playback",
  17653. 0, 0, 0, 0),
  17654. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  17655. "Quinary TDM4 Hostless Capture",
  17656. 0, 0, 0, 0),
  17657. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  17658. "Quinary TDM5 Hostless Playback",
  17659. 0, 0, 0, 0),
  17660. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  17661. "Quinary TDM5 Hostless Capture",
  17662. 0, 0, 0, 0),
  17663. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  17664. "Quinary TDM6 Hostless Playback",
  17665. 0, 0, 0, 0),
  17666. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  17667. "Quinary TDM6 Hostless Capture",
  17668. 0, 0, 0, 0),
  17669. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  17670. "Quinary TDM7 Hostless Playback",
  17671. 0, 0, 0, 0),
  17672. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  17673. "Quinary TDM7 Hostless Capture",
  17674. 0, 0, 0, 0),
  17675. /* LSM */
  17676. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  17677. 0, 0, 0, 0),
  17678. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  17679. 0, 0, 0, 0),
  17680. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  17681. 0, 0, 0, 0),
  17682. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  17683. 0, 0, 0, 0),
  17684. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  17685. 0, 0, 0, 0),
  17686. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  17687. 0, 0, 0, 0),
  17688. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  17689. 0, 0, 0, 0),
  17690. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  17691. 0, 0, 0, 0),
  17692. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  17693. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  17694. /* Backend AIF */
  17695. /* Stream name equals to backend dai link stream name */
  17696. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  17697. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  17698. 0, 0, 0, 0),
  17699. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  17700. 0, 0, 0, 0),
  17701. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  17702. 0, 0, 0, 0),
  17703. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  17704. 0, 0, 0, 0),
  17705. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  17706. 0, 0, 0, 0),
  17707. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  17708. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  17709. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  17710. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  17711. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  17712. 0, 0, 0, 0),
  17713. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  17714. 0, 0, 0, 0),
  17715. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  17716. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  17717. 0, 0, 0, 0),
  17718. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  17719. 0, 0, 0, 0),
  17720. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  17721. 0, 0, 0, 0),
  17722. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  17723. "Secondary MI2S Playback SD1",
  17724. 0, 0, 0, 0),
  17725. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  17726. 0, 0, 0, 0),
  17727. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  17728. 0, 0, 0, 0),
  17729. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  17730. 0, 0, 0, 0),
  17731. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  17732. 0, 0, 0, 0),
  17733. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  17734. 0, 0, 0, 0),
  17735. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  17736. 0, 0, 0, 0),
  17737. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  17738. 0, 0, 0, 0),
  17739. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  17740. 0, 0, 0, 0),
  17741. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  17742. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  17743. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  17744. 0, 0, 0, 0),
  17745. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  17746. 0, 0, 0, 0),
  17747. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  17748. 0, 0, 0, 0),
  17749. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  17750. 0, 0, 0, 0),
  17751. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  17752. 0, 0, 0, 0),
  17753. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  17754. 0, 0, 0, 0),
  17755. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  17756. 0, 0, 0, 0),
  17757. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  17758. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  17759. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  17760. 0, 0, 0, 0),
  17761. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  17762. 0, 0, 0, 0),
  17763. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  17764. 0, 0, 0, 0),
  17765. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  17766. 0, 0, 0, 0),
  17767. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  17768. 0, 0, 0, 0),
  17769. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  17770. 0, 0, 0, 0),
  17771. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  17772. 0, 0, 0, 0),
  17773. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  17774. 0, 0, 0, 0),
  17775. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  17776. 0, 0, 0, 0),
  17777. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  17778. 0, 0, 0, 0),
  17779. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  17780. 0, 0, 0, 0),
  17781. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  17782. 0, 0, 0, 0),
  17783. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  17784. 0, 0, 0, 0),
  17785. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  17786. 0, 0, 0, 0),
  17787. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  17788. 0, 0, 0, 0),
  17789. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  17790. 0, 0, 0, 0),
  17791. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  17792. 0, 0, 0, 0),
  17793. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  17794. 0, 0, 0, 0),
  17795. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  17796. 0, 0, 0, 0),
  17797. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  17798. 0, 0, 0, 0),
  17799. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  17800. 0, 0, 0, 0),
  17801. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  17802. 0, 0, 0, 0),
  17803. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  17804. 0, 0, 0, 0),
  17805. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  17806. 0, 0, 0, 0),
  17807. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  17808. 0, 0, 0, 0),
  17809. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  17810. 0, 0, 0, 0),
  17811. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  17812. 0, 0, 0, 0),
  17813. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  17814. 0, 0, 0, 0),
  17815. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  17816. 0, 0, 0, 0),
  17817. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  17818. 0, 0, 0, 0),
  17819. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  17820. 0, 0, 0, 0),
  17821. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  17822. 0, 0, 0, 0),
  17823. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  17824. 0, 0, 0, 0),
  17825. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  17826. 0, 0, 0, 0),
  17827. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  17828. 0, 0, 0, 0),
  17829. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  17830. 0, 0, 0, 0),
  17831. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  17832. 0, 0, 0, 0),
  17833. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  17834. 0, 0, 0, 0),
  17835. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  17836. 0, 0, 0, 0),
  17837. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  17838. 0, 0, 0, 0),
  17839. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  17840. 0, 0, 0, 0),
  17841. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  17842. 0, 0, 0, 0),
  17843. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  17844. 0, 0, 0, 0),
  17845. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  17846. 0, 0, 0, 0),
  17847. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  17848. 0, 0, 0, 0),
  17849. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  17850. 0, 0, 0, 0),
  17851. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  17852. 0, 0, 0, 0),
  17853. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  17854. 0, 0, 0, 0),
  17855. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  17856. 0, 0, 0, 0),
  17857. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  17858. 0, 0, 0, 0),
  17859. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  17860. 0, 0, 0, 0),
  17861. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  17862. 0, 0, 0, 0),
  17863. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  17864. 0, 0, 0, 0),
  17865. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  17866. 0, 0, 0, 0),
  17867. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  17868. 0, 0, 0, 0),
  17869. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  17870. 0, 0, 0, 0),
  17871. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  17872. 0, 0, 0, 0),
  17873. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  17874. 0, 0, 0, 0),
  17875. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  17876. 0, 0, 0, 0),
  17877. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  17878. 0, 0, 0, 0),
  17879. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  17880. 0, 0, 0, 0),
  17881. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  17882. 0, 0, 0, 0),
  17883. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  17884. 0, 0, 0, 0),
  17885. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  17886. 0, 0, 0, 0),
  17887. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  17888. 0, 0, 0, 0),
  17889. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  17890. 0, 0, 0, 0),
  17891. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  17892. 0, 0, 0, 0),
  17893. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  17894. 0, 0, 0, 0),
  17895. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  17896. 0, 0, 0, 0),
  17897. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  17898. 0, 0, 0, 0),
  17899. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  17900. 0, 0, 0, 0),
  17901. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  17902. 0, 0, 0, 0),
  17903. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  17904. 0, 0, 0, 0),
  17905. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  17906. 0, 0, 0, 0),
  17907. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  17908. 0, 0, 0, 0),
  17909. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  17910. 0, 0, 0, 0),
  17911. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  17912. 0, 0, 0, 0),
  17913. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  17914. 0, 0, 0, 0),
  17915. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  17916. 0, 0, 0, 0),
  17917. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  17918. 0, 0, 0, 0),
  17919. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  17920. 0, 0, 0, 0),
  17921. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  17922. 0, 0, 0, 0),
  17923. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  17924. 0, 0, 0, 0),
  17925. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  17926. 0, 0, 0, 0),
  17927. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  17928. 0, 0, 0, 0),
  17929. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  17930. 0, 0, 0, 0),
  17931. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  17932. 0, 0, 0, 0),
  17933. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  17934. 0, 0, 0, 0),
  17935. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  17936. 0, 0, 0, 0),
  17937. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  17938. 0, 0, 0, 0),
  17939. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  17940. 0, 0, 0, 0),
  17941. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  17942. 0, 0, 0, 0),
  17943. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  17944. 0, 0, 0, 0),
  17945. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  17946. 0, 0, 0, 0),
  17947. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  17948. 0, 0, 0, 0),
  17949. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  17950. 0, 0, 0, 0),
  17951. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  17952. 0, 0, 0, 0),
  17953. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  17954. 0, 0, 0, 0),
  17955. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  17956. 0, 0, 0, 0),
  17957. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  17958. 0, 0, 0, 0),
  17959. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  17960. 0, 0, 0, 0),
  17961. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  17962. 0, 0, 0, 0),
  17963. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  17964. 0, 0, 0, 0),
  17965. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  17966. 0, 0, 0, 0),
  17967. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  17968. 0, 0, 0, 0),
  17969. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  17970. 0, 0, 0, 0),
  17971. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  17972. 0, 0, 0, 0),
  17973. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  17974. 0, 0, 0, 0),
  17975. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  17976. 0, 0, 0, 0),
  17977. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  17978. 0, 0, 0, 0),
  17979. /* incall */
  17980. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  17981. 0, 0, 0, 0),
  17982. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  17983. 0, 0, 0, 0),
  17984. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  17985. 0, 0, 0, 0),
  17986. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  17987. 0, 0, 0, 0),
  17988. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  17989. 0, 0, 0, 0),
  17990. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  17991. 0, 0, 0, 0),
  17992. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  17993. 0, 0, 0, 0),
  17994. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  17995. 0, 0, 0, 0),
  17996. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  17997. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  17998. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  17999. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  18000. 0, 0, 0, 0),
  18001. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  18002. 0, 0, 0, 0),
  18003. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  18004. 0, 0, 0, 0),
  18005. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  18006. 0, 0, 0, 0),
  18007. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  18008. 0, 0, 0, 0),
  18009. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  18010. 0, 0, 0, 0),
  18011. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  18012. 0, 0, 0, 0),
  18013. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  18014. 0, 0, 0, 0),
  18015. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  18016. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  18017. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  18018. 0, 0, 0, 0),
  18019. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  18020. 0, 0, 0, 0),
  18021. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  18022. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  18023. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  18024. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  18025. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  18026. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  18027. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  18028. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  18029. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  18030. /* In- call recording */
  18031. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  18032. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  18033. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  18034. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  18035. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  18036. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  18037. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  18038. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  18039. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  18040. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  18041. /* Switch Definitions */
  18042. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  18043. &slim_fm_switch_mixer_controls),
  18044. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  18045. &slim1_fm_switch_mixer_controls),
  18046. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  18047. &slim3_fm_switch_mixer_controls),
  18048. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  18049. &slim4_fm_switch_mixer_controls),
  18050. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  18051. &slim6_fm_switch_mixer_controls),
  18052. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18053. &pcm_rx_switch_mixer_controls),
  18054. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18055. &int0_mi2s_rx_switch_mixer_controls),
  18056. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18057. &int4_mi2s_rx_switch_mixer_controls),
  18058. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18059. &pri_mi2s_rx_switch_mixer_controls),
  18060. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18061. &sec_mi2s_rx_switch_mixer_controls),
  18062. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18063. &tert_mi2s_rx_switch_mixer_controls),
  18064. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18065. &quat_mi2s_rx_switch_mixer_controls),
  18066. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18067. &quin_mi2s_rx_switch_mixer_controls),
  18068. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18069. &hfp_pri_aux_switch_mixer_controls),
  18070. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18071. &hfp_aux_switch_mixer_controls),
  18072. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  18073. &hfp_int_switch_mixer_controls),
  18074. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18075. &hfp_slim7_switch_mixer_controls),
  18076. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  18077. &usb_switch_mixer_controls),
  18078. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18079. &a2dp_slim7_switch_mixer_controls),
  18080. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18081. &cdc_dma_wsa_switch_mixer_controls),
  18082. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18083. &cdc_dma_rx_switch_mixer_controls),
  18084. /* Mixer definitions */
  18085. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18086. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  18087. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18088. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  18089. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18090. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  18091. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18092. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  18093. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18094. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  18095. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18096. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  18097. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18098. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  18099. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  18100. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  18101. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  18102. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  18103. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  18104. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  18105. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18106. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  18107. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18108. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  18109. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18110. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  18111. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18112. quaternary_mi2s_rx_mixer_controls,
  18113. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  18114. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18115. tertiary_mi2s_rx_mixer_controls,
  18116. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  18117. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18118. secondary_mi2s_rx_mixer_controls,
  18119. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  18120. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18121. secondary_mi2s_rx2_mixer_controls,
  18122. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  18123. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18124. primary_mi2s_rx_mixer_controls,
  18125. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  18126. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18127. int0_mi2s_rx_mixer_controls,
  18128. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  18129. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18130. int4_mi2s_rx_mixer_controls,
  18131. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  18132. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18133. quinary_mi2s_rx_mixer_controls,
  18134. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  18135. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18136. pri_tdm_rx_0_mixer_controls,
  18137. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  18138. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18139. pri_tdm_rx_1_mixer_controls,
  18140. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  18141. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18142. pri_tdm_rx_2_mixer_controls,
  18143. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  18144. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18145. pri_tdm_rx_3_mixer_controls,
  18146. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  18147. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18148. pri_tdm_tx_0_mixer_controls,
  18149. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  18150. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18151. sec_tdm_rx_0_mixer_controls,
  18152. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  18153. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18154. sec_tdm_rx_1_mixer_controls,
  18155. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  18156. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18157. sec_tdm_rx_2_mixer_controls,
  18158. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  18159. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18160. sec_tdm_rx_3_mixer_controls,
  18161. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  18162. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18163. sec_tdm_tx_0_mixer_controls,
  18164. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  18165. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18166. tert_tdm_rx_0_mixer_controls,
  18167. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  18168. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18169. tert_tdm_tx_0_mixer_controls,
  18170. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  18171. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18172. tert_tdm_rx_1_mixer_controls,
  18173. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  18174. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18175. tert_tdm_rx_2_mixer_controls,
  18176. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  18177. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18178. tert_tdm_rx_3_mixer_controls,
  18179. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  18180. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18181. tert_tdm_rx_4_mixer_controls,
  18182. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  18183. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18184. quat_tdm_rx_0_mixer_controls,
  18185. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  18186. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18187. quat_tdm_tx_0_mixer_controls,
  18188. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  18189. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18190. quat_tdm_rx_1_mixer_controls,
  18191. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  18192. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18193. quat_tdm_rx_2_mixer_controls,
  18194. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  18195. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18196. quat_tdm_rx_3_mixer_controls,
  18197. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  18198. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18199. quin_tdm_rx_0_mixer_controls,
  18200. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  18201. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18202. quin_tdm_tx_0_mixer_controls,
  18203. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  18204. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18205. quin_tdm_rx_1_mixer_controls,
  18206. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  18207. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18208. quin_tdm_rx_2_mixer_controls,
  18209. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  18210. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18211. quin_tdm_rx_3_mixer_controls,
  18212. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  18213. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18214. wsa_cdc_dma_rx_0_mixer_controls,
  18215. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  18216. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18217. wsa_cdc_dma_rx_1_mixer_controls,
  18218. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  18219. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18220. rx_cdc_dma_rx_0_mixer_controls,
  18221. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  18222. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18223. rx_cdc_dma_rx_1_mixer_controls,
  18224. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  18225. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18226. rx_cdc_dma_rx_2_mixer_controls,
  18227. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  18228. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18229. rx_cdc_dma_rx_3_mixer_controls,
  18230. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  18231. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18232. rx_cdc_dma_rx_4_mixer_controls,
  18233. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  18234. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18235. rx_cdc_dma_rx_5_mixer_controls,
  18236. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  18237. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18238. rx_cdc_dma_rx_6_mixer_controls,
  18239. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  18240. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18241. rx_cdc_dma_rx_7_mixer_controls,
  18242. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  18243. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  18244. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  18245. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  18246. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  18247. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  18248. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  18249. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  18250. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  18251. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  18252. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  18253. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  18254. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  18255. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  18256. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  18257. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  18258. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  18259. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  18260. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  18261. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  18262. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  18263. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  18264. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  18265. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  18266. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  18267. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  18268. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  18269. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  18270. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  18271. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  18272. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  18273. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  18274. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  18275. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  18276. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  18277. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  18278. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  18279. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18280. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  18281. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18282. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  18283. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18284. tert_auxpcm_rx_mixer_controls,
  18285. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  18286. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18287. quat_auxpcm_rx_mixer_controls,
  18288. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  18289. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18290. quin_auxpcm_rx_mixer_controls,
  18291. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  18292. /* incall */
  18293. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  18294. incall_music_delivery_mixer_controls,
  18295. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  18296. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18297. incall_music2_delivery_mixer_controls,
  18298. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  18299. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18300. slimbus_4_rx_mixer_controls,
  18301. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  18302. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18303. slimbus_6_rx_mixer_controls,
  18304. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  18305. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18306. usb_audio_rx_mixer_controls,
  18307. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  18308. /* Voice Mixer */
  18309. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  18310. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  18311. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  18312. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  18313. SND_SOC_NOPM, 0, 0,
  18314. sec_i2s_rx_voice_mixer_controls,
  18315. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  18316. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  18317. SND_SOC_NOPM, 0, 0,
  18318. sec_mi2s_rx_voice_mixer_controls,
  18319. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  18320. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  18321. SND_SOC_NOPM, 0, 0,
  18322. slimbus_rx_voice_mixer_controls,
  18323. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  18324. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  18325. SND_SOC_NOPM, 0, 0,
  18326. bt_sco_rx_voice_mixer_controls,
  18327. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  18328. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  18329. SND_SOC_NOPM, 0, 0,
  18330. afe_pcm_rx_voice_mixer_controls,
  18331. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  18332. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  18333. SND_SOC_NOPM, 0, 0,
  18334. aux_pcm_rx_voice_mixer_controls,
  18335. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  18336. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  18337. SND_SOC_NOPM, 0, 0,
  18338. sec_aux_pcm_rx_voice_mixer_controls,
  18339. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  18340. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  18341. SND_SOC_NOPM, 0, 0,
  18342. tert_aux_pcm_rx_voice_mixer_controls,
  18343. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  18344. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  18345. SND_SOC_NOPM, 0, 0,
  18346. quat_aux_pcm_rx_voice_mixer_controls,
  18347. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  18348. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  18349. SND_SOC_NOPM, 0, 0,
  18350. quin_aux_pcm_rx_voice_mixer_controls,
  18351. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  18352. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  18353. SND_SOC_NOPM, 0, 0,
  18354. hdmi_rx_voice_mixer_controls,
  18355. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  18356. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  18357. SND_SOC_NOPM, 0, 0,
  18358. mi2s_rx_voice_mixer_controls,
  18359. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  18360. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  18361. SND_SOC_NOPM, 0, 0,
  18362. pri_mi2s_rx_voice_mixer_controls,
  18363. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  18364. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  18365. SND_SOC_NOPM, 0, 0,
  18366. int0_mi2s_rx_voice_mixer_controls,
  18367. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  18368. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  18369. SND_SOC_NOPM, 0, 0,
  18370. int4_mi2s_rx_voice_mixer_controls,
  18371. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  18372. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  18373. SND_SOC_NOPM, 0, 0,
  18374. tert_mi2s_rx_voice_mixer_controls,
  18375. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  18376. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  18377. SND_SOC_NOPM, 0, 0,
  18378. quat_mi2s_rx_voice_mixer_controls,
  18379. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  18380. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  18381. SND_SOC_NOPM, 0, 0,
  18382. quin_mi2s_rx_voice_mixer_controls,
  18383. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  18384. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  18385. SND_SOC_NOPM, 0, 0,
  18386. quat_tdm_rx_2_voice_mixer_controls,
  18387. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  18388. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  18389. SND_SOC_NOPM, 0, 0,
  18390. wsa_cdc_dma_rx_0_voice_mixer_controls,
  18391. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  18392. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  18393. SND_SOC_NOPM, 0, 0,
  18394. rx_cdc_dma_rx_0_voice_mixer_controls,
  18395. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  18396. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  18397. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  18398. ARRAY_SIZE(tx_voip_mixer_controls)),
  18399. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  18400. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  18401. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  18402. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  18403. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  18404. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  18405. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18406. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  18407. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18408. int_bt_a2dp_rx_mixer_controls,
  18409. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  18410. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18411. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  18412. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18413. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  18414. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18415. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  18416. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18417. tx_voice2_stub_mixer_controls,
  18418. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  18419. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18420. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  18421. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  18422. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  18423. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  18424. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  18425. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18426. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  18427. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  18428. SND_SOC_NOPM, 0, 0,
  18429. slimbus_6_rx_voice_mixer_controls,
  18430. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  18431. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18432. slimbus_7_rx_voice_mixer_controls,
  18433. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  18434. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18435. slimbus_8_rx_voice_mixer_controls,
  18436. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  18437. /* port mixer */
  18438. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  18439. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  18440. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  18441. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  18442. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  18443. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  18444. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  18445. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  18446. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  18447. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  18448. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  18449. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  18450. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  18451. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  18452. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  18453. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  18454. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  18455. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  18456. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18457. sbus_1_rx_port_mixer_controls,
  18458. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  18459. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18460. bt_sco_rx_port_mixer_controls,
  18461. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  18462. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  18463. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  18464. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  18465. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  18466. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  18467. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  18468. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  18469. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  18470. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  18471. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  18472. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  18473. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  18474. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  18475. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  18476. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  18477. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  18478. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  18479. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  18480. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  18481. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  18482. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  18483. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18484. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  18485. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18486. primary_mi2s_rx_port_mixer_controls,
  18487. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  18488. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18489. sec_mi2s_rx_port_mixer_controls,
  18490. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  18491. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18492. tert_mi2s_rx_port_mixer_controls,
  18493. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  18494. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18495. quat_mi2s_rx_port_mixer_controls,
  18496. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  18497. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18498. quin_mi2s_rx_port_mixer_controls,
  18499. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  18500. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18501. pri_tdm_rx_0_port_mixer_controls,
  18502. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  18503. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18504. pri_tdm_rx_1_port_mixer_controls,
  18505. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  18506. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18507. pri_tdm_rx_2_port_mixer_controls,
  18508. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  18509. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18510. pri_tdm_rx_3_port_mixer_controls,
  18511. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  18512. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18513. sec_tdm_rx_0_port_mixer_controls,
  18514. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  18515. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18516. sec_tdm_rx_1_port_mixer_controls,
  18517. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  18518. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18519. sec_tdm_rx_2_port_mixer_controls,
  18520. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  18521. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18522. sec_tdm_rx_3_port_mixer_controls,
  18523. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  18524. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18525. tert_tdm_rx_0_port_mixer_controls,
  18526. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  18527. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18528. tert_tdm_rx_1_port_mixer_controls,
  18529. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  18530. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18531. tert_tdm_rx_2_port_mixer_controls,
  18532. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  18533. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18534. tert_tdm_rx_3_port_mixer_controls,
  18535. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  18536. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18537. quat_tdm_rx_0_port_mixer_controls,
  18538. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  18539. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18540. quat_tdm_rx_1_port_mixer_controls,
  18541. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  18542. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18543. quat_tdm_rx_2_port_mixer_controls,
  18544. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  18545. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18546. quat_tdm_rx_3_port_mixer_controls,
  18547. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  18548. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18549. quin_tdm_rx_0_port_mixer_controls,
  18550. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  18551. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18552. quin_tdm_rx_1_port_mixer_controls,
  18553. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  18554. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18555. quin_tdm_rx_2_port_mixer_controls,
  18556. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  18557. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18558. quin_tdm_rx_3_port_mixer_controls,
  18559. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  18560. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18561. int0_mi2s_rx_port_mixer_controls,
  18562. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  18563. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18564. int4_mi2s_rx_port_mixer_controls,
  18565. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  18566. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18567. wsa_cdc_dma_rx_0_port_mixer_controls,
  18568. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  18569. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18570. rx_cdc_dma_rx_0_port_mixer_controls,
  18571. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  18572. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  18573. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  18574. ARRAY_SIZE(tx_qchat_mixer_controls)),
  18575. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  18576. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  18577. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  18578. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  18579. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  18580. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  18581. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  18582. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  18583. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  18584. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  18585. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  18586. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  18587. /* lsm mixer definitions */
  18588. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  18589. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  18590. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  18591. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  18592. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  18593. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  18594. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  18595. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  18596. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  18597. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  18598. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  18599. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  18600. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  18601. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  18602. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  18603. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  18604. /* Virtual Pins to force backends ON atm */
  18605. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  18606. SND_SOC_DAPM_INPUT("BE_IN"),
  18607. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18608. &slim0_rx_vi_fb_lch_mux),
  18609. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18610. &slim0_rx_vi_fb_rch_mux),
  18611. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18612. &wsa_rx_0_vi_fb_lch_mux),
  18613. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18614. &wsa_rx_0_vi_fb_rch_mux),
  18615. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  18616. &mi2s_rx_vi_fb_mux),
  18617. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18618. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  18619. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18620. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  18621. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  18622. &voc_ext_ec_mux),
  18623. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  18624. &ext_ec_ref_mux_ul1),
  18625. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  18626. &ext_ec_ref_mux_ul2),
  18627. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  18628. &ext_ec_ref_mux_ul3),
  18629. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  18630. &ext_ec_ref_mux_ul4),
  18631. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  18632. &ext_ec_ref_mux_ul5),
  18633. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  18634. &ext_ec_ref_mux_ul6),
  18635. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  18636. &ext_ec_ref_mux_ul8),
  18637. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  18638. &ext_ec_ref_mux_ul9),
  18639. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  18640. &ext_ec_ref_mux_ul10),
  18641. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  18642. &ext_ec_ref_mux_ul16),
  18643. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  18644. &ext_ec_ref_mux_ul17),
  18645. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  18646. &ext_ec_ref_mux_ul18),
  18647. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  18648. &ext_ec_ref_mux_ul19),
  18649. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  18650. &ext_ec_ref_mux_ul28),
  18651. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  18652. &ext_ec_ref_mux_ul29),
  18653. };
  18654. static const struct snd_soc_dapm_route intercon[] = {
  18655. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18656. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18657. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18658. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18659. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18660. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18661. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18662. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18663. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18664. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18665. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18666. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18667. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18668. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18669. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18670. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18671. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18672. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  18673. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18674. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18675. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18676. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18677. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18678. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18679. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18680. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18681. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18682. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18683. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18684. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18685. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18686. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18687. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18688. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18689. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18690. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  18691. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18692. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18693. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18694. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18695. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18696. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18697. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18698. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18699. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18700. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18701. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18702. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18703. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18704. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18705. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18706. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18707. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18708. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  18709. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18710. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18711. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18712. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18713. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18714. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18715. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18716. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18717. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18718. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18719. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18720. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18721. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18722. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18723. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18724. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18725. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18726. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  18727. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18728. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18729. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18730. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18731. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18732. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18733. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18734. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18735. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18736. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18737. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18738. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18739. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18740. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18741. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18742. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18743. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18744. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  18745. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18746. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18747. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18748. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18749. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18750. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18751. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18752. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18753. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18754. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18755. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18756. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18757. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18758. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18759. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18760. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18761. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18762. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  18763. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18764. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18765. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18766. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18767. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18768. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18769. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18770. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18771. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18772. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18773. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18774. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18775. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18776. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18777. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18778. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18779. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18780. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  18781. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18782. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18783. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18784. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18785. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18786. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18787. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18788. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18789. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18790. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18791. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18792. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18793. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18794. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18795. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18796. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18797. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18798. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  18799. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18800. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18801. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18802. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18803. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18804. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18805. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18806. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18807. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18808. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18809. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18810. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18811. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18812. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18813. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18814. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18815. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18816. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  18817. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18818. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18819. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18820. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18821. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18822. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18823. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18824. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18825. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18826. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18827. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18828. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18829. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18830. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18831. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18832. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18833. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18834. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  18835. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18836. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18837. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18838. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18839. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18840. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18841. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18842. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18843. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18844. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18845. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18846. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18847. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18848. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18849. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18850. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18851. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18852. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  18853. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18854. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18855. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18856. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18857. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18858. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18859. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18860. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18861. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18862. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18863. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18864. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18865. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18866. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18867. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18868. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18869. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18870. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  18871. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18872. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18873. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18874. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18875. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18876. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18877. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18878. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18879. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18880. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18881. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18882. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18883. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18884. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18885. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18886. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18887. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18888. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  18889. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18890. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18891. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18892. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18893. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18894. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18895. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18896. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18897. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18898. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18899. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18900. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18901. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18902. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18903. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18904. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18905. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18906. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  18907. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18908. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18909. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18910. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18911. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18912. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18913. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18914. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18915. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18916. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18917. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18918. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18919. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18920. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18921. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18922. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18923. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18924. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  18925. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  18926. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  18927. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  18928. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  18929. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  18930. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  18931. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  18932. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  18933. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  18934. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  18935. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  18936. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  18937. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  18938. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  18939. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  18940. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  18941. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  18942. {"HDMI", NULL, "HDMI Mixer"},
  18943. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  18944. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  18945. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  18946. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  18947. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  18948. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  18949. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  18950. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  18951. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  18952. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  18953. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  18954. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  18955. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  18956. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  18957. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  18958. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  18959. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  18960. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  18961. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  18962. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  18963. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  18964. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  18965. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  18966. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  18967. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  18968. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  18969. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  18970. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  18971. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  18972. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  18973. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  18974. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  18975. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  18976. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  18977. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  18978. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  18979. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18980. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18981. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18982. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18983. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18984. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18985. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18986. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18987. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18988. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18989. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18990. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18991. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18992. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18993. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18994. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18995. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18996. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  18997. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18998. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18999. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19000. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19001. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19002. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19003. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19004. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19005. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19006. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19007. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19008. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19009. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19010. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19011. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19012. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19013. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19014. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  19015. /* incall */
  19016. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  19017. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  19018. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  19019. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  19020. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  19021. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19022. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19023. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19024. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19025. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  19026. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19027. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19028. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19029. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19030. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  19031. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19032. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19033. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19034. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19035. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19036. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19037. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19038. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19039. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19040. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19041. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19042. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19043. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19044. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19045. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19046. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19047. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19048. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  19049. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19050. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19051. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19052. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19053. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19054. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19055. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19056. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19057. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19058. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19059. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19060. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19061. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19062. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19063. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19064. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19065. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19066. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  19067. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19068. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19069. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19070. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19071. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19072. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19073. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19074. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19075. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19076. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19077. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19078. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19079. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19080. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19081. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19082. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19083. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19084. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  19085. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19086. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19087. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19088. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19089. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19090. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19091. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19092. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19093. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19094. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19095. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19096. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19097. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19098. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19099. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19100. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19101. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19102. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  19103. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19104. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19105. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19106. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19107. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19108. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19109. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  19110. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19111. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19112. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19113. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19114. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19115. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19116. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19117. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19118. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19119. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19120. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19121. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19122. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19123. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19124. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19125. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19126. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19127. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19128. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19129. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19130. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19131. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19132. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19133. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19134. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19135. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19136. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19137. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19138. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19139. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19140. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19141. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19142. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19143. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19144. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19145. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19146. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19147. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19148. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19149. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19150. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19151. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19152. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19153. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19154. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19155. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19156. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19157. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19158. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19159. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19160. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19161. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19162. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19163. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19164. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19165. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19166. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19167. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19168. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19169. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19170. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19171. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19172. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  19173. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19174. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19175. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19176. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19177. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19178. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19179. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19180. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19181. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19182. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19183. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19184. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19185. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19186. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19187. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19188. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19189. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  19190. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19191. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19192. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19193. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19194. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19195. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19196. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19197. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19198. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19199. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19200. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19201. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19202. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19203. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19204. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19205. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  19206. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19207. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19208. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19209. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19210. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19211. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19212. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19213. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19214. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19215. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19216. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19217. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19218. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19219. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19220. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19221. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  19222. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19223. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  19224. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19225. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19226. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19227. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19228. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19229. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19230. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19231. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19232. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19233. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19234. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19235. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19236. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19237. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19238. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19239. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19240. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19241. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19242. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  19243. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19244. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19245. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19246. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19247. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19248. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19249. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19250. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19251. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19252. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19253. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19254. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19255. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19256. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19257. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19258. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  19259. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19260. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19261. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19262. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19263. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19264. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19265. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19266. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19267. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19268. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19269. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19270. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19271. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19272. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19273. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19274. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  19275. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19276. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19277. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19278. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19279. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19280. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19281. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19282. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19283. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19284. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19285. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19286. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19287. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19288. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19289. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19290. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19291. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19292. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  19293. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19294. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19295. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19296. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19297. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19298. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19299. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19300. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19301. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19302. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19303. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19304. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19305. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19306. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19307. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19308. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19309. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19310. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  19311. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19312. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19313. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19314. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19315. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19316. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19317. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19318. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19319. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19320. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19321. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19322. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19323. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19324. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19325. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19326. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19327. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19328. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  19329. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19330. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19331. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19332. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19333. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19334. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19335. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19336. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19337. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19338. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19339. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19340. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19341. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19342. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19343. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19344. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19345. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19346. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  19347. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19348. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19349. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19350. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19351. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19352. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19353. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19354. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19355. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19356. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19357. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19358. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19359. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19360. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19361. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19362. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19363. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19364. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  19365. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19366. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19367. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19368. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19369. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19370. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19371. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19372. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19373. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19374. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19375. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19376. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19377. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19378. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19379. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19380. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19381. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  19382. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19383. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19384. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19385. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19386. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19387. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19388. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19389. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19390. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19391. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19392. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19393. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19394. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19395. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19396. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19397. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19398. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19399. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  19400. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19401. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19402. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19403. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19404. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19405. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19406. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19407. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19408. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19409. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19410. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19411. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19412. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19413. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19414. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19415. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19416. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19417. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  19418. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19419. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19420. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19421. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19422. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19423. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19424. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19425. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19426. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19427. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19428. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19429. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19430. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19431. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19432. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19433. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19434. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19435. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  19436. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19437. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19438. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19439. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19440. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19441. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19442. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19443. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19444. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19445. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19446. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19447. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19448. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19449. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19450. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19451. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19452. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19453. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  19454. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19455. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19456. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19457. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19458. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19459. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19460. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19461. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19462. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19463. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19464. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19465. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19466. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19467. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19468. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19469. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19470. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  19471. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19472. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19473. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19474. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19475. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19476. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19477. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19478. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19479. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19480. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19481. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19482. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19483. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19484. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19485. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19486. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19487. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19488. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  19489. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19490. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19491. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19492. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19493. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19494. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19495. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19496. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19497. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19498. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19499. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19500. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19501. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19502. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19503. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19504. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19505. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  19506. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19507. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19508. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19509. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19510. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19511. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19512. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19513. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19514. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19515. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19516. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19517. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19518. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19519. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19520. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19521. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19522. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19523. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  19524. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19525. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19526. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19527. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19528. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19529. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19530. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19531. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19532. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19533. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19534. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19535. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19536. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19537. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19538. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19539. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19540. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19541. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  19542. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19543. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19544. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19545. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19546. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19547. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19548. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19549. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19550. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19551. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19552. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19553. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19554. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19555. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19556. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19557. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19558. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19559. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  19560. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19561. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19562. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19563. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19564. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19565. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19566. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19567. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19568. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19569. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19570. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19571. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19572. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19573. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19574. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19575. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19576. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19577. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  19578. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19579. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19580. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19581. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19582. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19583. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19584. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19585. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19586. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19587. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19588. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19589. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19590. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19591. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19592. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19593. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19594. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19595. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19596. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  19597. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19598. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19599. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19600. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19601. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19602. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19603. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19604. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19605. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19606. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19607. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19608. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19609. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19610. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19611. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19612. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19613. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  19614. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19615. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19616. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19617. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19618. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19619. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19620. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19621. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19622. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19623. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19624. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19625. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19626. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19627. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19628. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19629. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19630. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19631. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19632. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  19633. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19634. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19635. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19636. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19637. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19638. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19639. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19640. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19641. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19642. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19643. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19644. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19645. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19646. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19647. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19648. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19649. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19650. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19651. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  19652. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19653. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19654. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19655. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19656. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19657. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19658. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19659. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19660. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19661. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19662. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19663. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19664. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19665. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19666. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19667. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19668. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19669. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19670. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  19671. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19672. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19673. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19674. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19675. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19676. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19677. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19678. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19679. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19680. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19681. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19682. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19683. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19684. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19685. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19686. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19687. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19688. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19689. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  19690. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19691. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19692. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19693. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19694. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19695. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19696. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19697. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19698. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19699. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19700. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19701. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19702. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19703. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19704. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19705. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19706. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  19707. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19708. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19709. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19710. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19711. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19712. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19713. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19714. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19715. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19716. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19717. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19718. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19719. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19720. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19721. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19722. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19723. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19724. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19725. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  19726. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19727. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19728. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19729. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19730. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19731. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19732. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19733. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19734. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19735. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19736. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19737. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19738. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19739. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19740. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19741. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19742. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19743. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19744. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  19745. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19746. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19747. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19748. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19749. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19750. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19751. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19752. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19753. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19754. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19755. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19756. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19757. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19758. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19759. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19760. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19761. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19762. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19763. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  19764. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  19765. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  19766. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  19767. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  19768. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  19769. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  19770. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  19771. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19772. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19773. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19774. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19775. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19776. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19777. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19778. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19779. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19780. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19781. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19782. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19783. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19784. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19785. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19786. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19787. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19788. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19789. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19790. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19791. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19792. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19793. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  19794. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19795. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19796. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19797. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  19798. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19799. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19800. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19801. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19802. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  19803. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19804. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19805. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19806. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19807. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19808. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19809. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19810. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19811. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19812. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19813. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19814. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19815. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19816. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19817. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19818. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19819. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19820. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19821. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19822. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19823. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19824. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19825. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19826. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19827. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19828. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19829. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19830. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19831. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19832. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19833. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19834. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19835. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19836. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19837. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19838. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19839. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19840. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19841. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19842. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19843. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19844. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19845. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19846. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19847. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19848. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19849. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19850. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19851. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19852. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19853. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19854. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19855. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19856. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19857. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19858. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19859. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19860. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19861. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19862. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19863. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19864. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19865. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19866. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19867. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19868. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19869. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19870. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19871. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19872. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19873. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19874. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19875. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19876. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19877. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19878. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19879. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19880. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19881. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19882. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19883. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19884. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19885. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19886. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19887. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19888. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19889. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19890. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19891. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19892. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19893. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19894. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19895. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19896. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19897. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19898. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19899. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19900. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19901. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19902. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19903. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19904. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19905. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19906. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19907. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19908. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19909. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19910. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19911. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19912. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19913. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19914. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19915. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19916. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19917. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19918. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19919. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19920. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19921. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19922. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19923. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19924. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19925. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19926. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19927. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19928. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19929. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19930. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19931. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19932. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19933. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19934. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19935. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19936. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19937. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19938. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19939. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19940. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19941. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19942. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19943. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19944. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19945. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19946. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19947. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19948. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19949. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19950. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19951. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19952. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19953. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19954. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19955. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19956. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19957. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19958. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19959. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19960. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19961. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19962. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19963. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19964. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19965. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19966. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19967. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19968. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19969. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19970. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19971. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19972. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19973. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19974. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19975. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19976. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19977. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19978. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19979. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19980. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19981. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19982. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19983. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19984. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19985. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19986. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19987. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19988. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19989. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19990. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19991. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19992. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19993. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19994. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19995. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19996. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19997. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19998. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19999. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20000. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20001. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20002. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20003. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20004. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20005. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20006. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20007. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20008. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20009. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20010. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20011. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20012. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20013. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20014. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20015. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20016. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20017. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20018. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20019. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20020. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20021. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20022. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20023. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20024. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20025. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20026. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20027. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20028. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20029. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20030. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20031. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20032. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20033. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20034. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20035. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20036. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20037. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20038. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20039. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20040. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20041. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20042. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20043. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20044. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20045. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20046. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20047. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20048. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20049. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20050. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20051. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20052. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20053. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20054. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20055. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20056. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20057. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20058. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20059. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20060. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20061. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20062. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20063. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20064. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20065. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20066. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20067. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20068. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20069. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20070. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20071. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20072. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20073. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20074. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20075. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20076. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20077. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20078. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20079. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20080. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20081. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20082. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20083. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20084. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20085. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20086. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20087. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20088. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20089. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20090. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20091. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20092. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20093. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20094. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20095. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20096. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20097. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20098. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20099. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20100. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20101. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20102. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20103. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20104. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20105. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20106. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20107. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20108. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20109. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20110. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20111. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20112. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20113. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20114. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20115. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20116. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20117. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20118. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20119. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20120. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20121. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20122. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20123. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20124. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20125. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20126. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20127. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20128. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20129. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20130. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20131. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20132. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20133. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20134. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20135. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20136. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20137. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20138. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20139. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20140. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20141. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20142. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20143. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20144. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20145. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20146. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20147. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20148. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20149. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20150. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20151. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20152. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20153. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20154. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20155. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20156. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20157. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20158. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20159. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20160. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20161. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20162. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20163. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20164. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20165. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20166. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20167. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20168. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20169. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20170. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20171. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20172. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20173. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20174. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20175. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20176. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20177. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20178. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20179. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20180. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20181. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  20182. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20183. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  20184. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20185. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20186. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20187. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20188. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20189. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20190. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20191. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20192. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20193. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20194. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20195. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20196. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20197. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20198. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20199. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20200. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20201. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20202. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20203. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20204. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20205. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20206. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20207. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20208. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20209. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20210. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20211. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20212. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20213. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20214. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20215. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20216. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20217. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20218. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20219. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20220. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20221. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20222. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20223. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20224. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20225. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20226. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20227. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20228. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20229. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20230. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20231. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20232. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20233. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20234. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20235. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20236. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20237. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20238. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20239. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20240. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20241. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20242. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20243. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20244. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20245. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20246. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20247. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20248. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20249. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20250. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20251. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20252. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20253. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20254. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20255. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20256. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20257. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20258. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20259. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20260. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20261. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20262. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20263. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20264. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20265. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20266. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20267. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20268. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20269. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20270. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20271. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20272. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20273. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20274. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20275. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  20276. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20277. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20278. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20279. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20280. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20281. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20282. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20283. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20284. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20285. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20286. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20287. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20288. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20289. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20290. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20291. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20292. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20293. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  20294. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20295. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20296. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20297. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20298. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20299. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20300. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20301. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20302. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20303. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20304. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20305. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20306. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20307. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20308. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20309. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20310. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  20311. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20312. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20313. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20314. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20315. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20316. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20317. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20318. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20319. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20320. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20321. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20322. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20323. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20324. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20325. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20326. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20327. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  20328. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20329. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20330. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20331. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20332. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20333. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20334. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20335. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20336. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20337. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20338. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20339. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20340. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20341. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20342. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20343. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20344. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20345. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20346. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20347. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20348. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20349. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20350. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20351. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20352. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20353. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20354. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20355. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20356. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20357. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20358. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20359. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20360. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20361. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20362. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20363. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  20364. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20365. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  20366. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  20367. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  20368. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  20369. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  20370. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  20371. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  20372. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  20373. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  20374. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  20375. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  20376. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  20377. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  20378. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  20379. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  20380. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  20381. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  20382. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20383. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20384. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20385. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20386. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20387. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20388. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20389. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20390. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20391. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20392. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20393. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20394. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20395. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20396. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20397. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20398. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20399. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  20400. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20401. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20402. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20403. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20404. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20405. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20406. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20407. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20408. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20409. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20410. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20411. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20412. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20413. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20414. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20415. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20416. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20417. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  20418. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20419. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20420. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20421. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20422. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20423. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20424. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20425. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20426. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20427. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20428. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20429. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20430. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20431. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20432. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20433. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20434. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  20435. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20436. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20437. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20438. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20439. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20440. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20441. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20442. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20443. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20444. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20445. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20446. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20447. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20448. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20449. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20450. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20451. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  20452. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20453. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20454. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20455. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20456. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20457. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20458. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20459. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20460. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20461. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20462. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20463. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20464. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20465. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20466. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20467. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20468. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  20469. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20470. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20471. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20472. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20473. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20474. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  20475. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20476. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20477. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20478. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  20479. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20480. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20481. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20482. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20483. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20484. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  20485. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20486. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20487. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20488. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20489. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20490. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  20491. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20492. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20493. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20494. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20495. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20496. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  20497. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20498. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20499. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20500. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20501. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20502. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  20503. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20504. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20505. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20506. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20507. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20508. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  20509. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  20510. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20511. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20512. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20513. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20514. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  20515. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20516. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20517. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20518. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20519. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20520. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  20521. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20522. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20523. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20524. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20525. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20526. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  20527. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20528. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20529. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20530. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20531. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20532. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  20533. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20534. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20535. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20536. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20537. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20538. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  20539. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20540. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20541. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20542. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20543. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20544. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  20545. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20546. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20547. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20548. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20549. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20550. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  20551. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20552. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20553. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20554. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20555. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20556. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  20557. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20558. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20559. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20560. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20561. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20562. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  20563. {"HDMI", NULL, "HDMI_DL_HL"},
  20564. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20565. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20566. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20567. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20568. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20569. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  20570. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20571. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20572. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20573. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20574. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20575. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  20576. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20577. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20578. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20579. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20580. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20581. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  20582. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20583. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20584. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20585. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20586. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20587. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  20588. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20589. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20590. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20591. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20592. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20593. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  20594. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20595. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20596. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20597. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20598. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  20599. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20600. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20601. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20602. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20603. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  20604. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20605. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  20606. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20607. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20608. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  20609. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20610. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20611. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  20612. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20613. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20614. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20615. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20616. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20617. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20618. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  20619. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  20620. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  20621. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  20622. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20623. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20624. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20625. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20626. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20627. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20628. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20629. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20630. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20631. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20632. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20633. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20634. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20635. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20636. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20637. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20638. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20639. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20640. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20641. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20642. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20643. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20644. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20645. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20646. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20647. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20648. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20649. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20650. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20651. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20652. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20653. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20654. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20655. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20656. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20657. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20658. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20659. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20660. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20661. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20662. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20663. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20664. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20665. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20666. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20667. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20668. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20669. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20670. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20671. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20672. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20673. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20674. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20675. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20676. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20677. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20678. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20679. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20680. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20681. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20682. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20683. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20684. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20685. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20686. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20687. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20688. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20689. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20690. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20691. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20692. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20693. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20694. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20695. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20696. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20697. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20698. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20699. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20700. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20701. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20702. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20703. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  20704. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  20705. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  20706. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  20707. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  20708. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  20709. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  20710. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  20711. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  20712. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  20713. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  20714. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  20715. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  20716. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  20717. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  20718. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  20719. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  20720. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  20721. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  20722. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  20723. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  20724. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  20725. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  20726. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  20727. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  20728. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  20729. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  20730. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  20731. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  20732. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  20733. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  20734. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  20735. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  20736. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  20737. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  20738. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  20739. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  20740. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  20741. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  20742. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  20743. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  20744. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  20745. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  20746. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  20747. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  20748. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  20749. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  20750. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  20751. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  20752. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  20753. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  20754. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  20755. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  20756. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  20757. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  20758. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  20759. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  20760. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  20761. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  20762. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  20763. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  20764. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  20765. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  20766. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  20767. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  20768. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  20769. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  20770. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  20771. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  20772. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  20773. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  20774. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  20775. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  20776. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  20777. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  20778. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  20779. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  20780. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  20781. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  20782. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  20783. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  20784. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  20785. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  20786. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  20787. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  20788. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  20789. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  20790. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  20791. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  20792. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  20793. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  20794. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  20795. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  20796. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20797. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  20798. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  20799. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20800. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  20801. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  20802. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20803. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20804. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20805. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20806. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20807. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20808. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20809. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20810. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20811. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20812. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20813. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20814. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  20815. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20816. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20817. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20818. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20819. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20820. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20821. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20822. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20823. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20824. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20825. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20826. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20827. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  20828. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20829. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20830. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20831. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20832. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20833. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20834. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20835. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20836. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20837. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20838. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20839. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20840. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  20841. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20842. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20843. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20844. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20845. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20846. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20847. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20848. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20849. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20850. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20851. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20852. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20853. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  20854. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20855. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20856. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20857. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20858. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20859. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20860. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20861. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20862. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20863. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20864. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20865. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20866. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  20867. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20868. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20869. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20870. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20871. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20872. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20873. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20874. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20875. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20876. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20877. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  20878. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20879. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20880. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20881. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20882. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20883. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20884. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20885. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20886. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20887. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20888. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  20889. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20890. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20891. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20892. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20893. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20894. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20895. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20896. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20897. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20898. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20899. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  20900. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  20901. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  20902. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  20903. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  20904. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  20905. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  20906. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  20907. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  20908. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  20909. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  20910. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  20911. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  20912. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  20913. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  20914. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  20915. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  20916. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  20917. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  20918. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  20919. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  20920. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  20921. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  20922. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  20923. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  20924. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  20925. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  20926. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  20927. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20928. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  20929. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  20930. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  20931. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20932. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  20933. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  20934. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  20935. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  20936. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  20937. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  20938. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  20939. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  20940. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20941. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  20942. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20943. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  20944. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  20945. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  20946. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  20947. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  20948. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  20949. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  20950. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  20951. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  20952. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  20953. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  20954. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20955. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  20956. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20957. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  20958. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  20959. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  20960. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  20961. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  20962. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  20963. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  20964. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  20965. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  20966. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  20967. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  20968. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  20969. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  20970. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  20971. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  20972. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  20973. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  20974. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  20975. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  20976. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  20977. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  20978. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  20979. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  20980. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  20981. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  20982. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  20983. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  20984. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  20985. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  20986. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  20987. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  20988. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  20989. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  20990. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  20991. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  20992. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  20993. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  20994. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  20995. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  20996. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  20997. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  20998. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  20999. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  21000. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  21001. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  21002. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  21003. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  21004. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21005. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21006. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21007. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21008. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21009. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21010. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21011. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21012. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21013. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21014. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21015. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21016. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21017. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21018. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21019. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21020. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21021. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21022. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21023. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21024. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  21025. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21026. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21027. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21028. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21029. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21030. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21031. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21032. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21033. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21034. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21035. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21036. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21037. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21038. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21039. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21040. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21041. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21042. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21043. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21044. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21045. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  21046. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21047. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21048. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21049. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21050. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21051. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21052. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21053. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21054. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21055. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21056. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21057. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21058. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21059. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21060. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21061. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21062. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21063. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21064. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21065. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21066. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  21067. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21068. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21069. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21070. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21071. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21072. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21073. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21074. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21075. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21076. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21077. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21078. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21079. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21080. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21081. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21082. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21083. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21084. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21085. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21086. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21087. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  21088. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21089. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21090. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21091. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21092. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21093. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21094. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21095. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21096. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21097. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21098. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21099. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21100. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21101. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21102. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21103. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21104. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21105. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21106. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21107. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21108. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  21109. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21110. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21111. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21112. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21113. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21114. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21115. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21116. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21117. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21118. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21119. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21120. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21121. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21122. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21123. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21124. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21125. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21126. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21127. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21128. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21129. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  21130. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21131. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21132. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21133. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21134. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21135. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21136. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21137. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21138. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21139. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21140. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21141. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21142. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21143. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21144. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21145. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21146. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21147. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21148. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21149. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21150. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  21151. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21152. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21153. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21154. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21155. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21156. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21157. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21158. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21159. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21160. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21161. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21162. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21163. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21164. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21165. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21166. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21167. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21168. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21169. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21170. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21171. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  21172. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21173. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21174. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21175. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21176. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21177. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21178. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21179. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21180. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21181. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21182. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21183. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21184. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21185. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21186. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21187. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21188. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21189. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21190. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21191. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21192. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  21193. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21194. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21195. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21196. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21197. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21198. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21199. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21200. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21201. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21202. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21203. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21204. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21205. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21206. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21207. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21208. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21209. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21210. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21211. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21212. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21213. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  21214. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21215. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21216. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21217. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21218. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21219. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21220. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21221. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21222. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21223. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21224. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21225. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21226. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21227. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21228. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21229. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21230. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21231. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21232. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21233. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21234. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  21235. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21236. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21237. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21238. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21239. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21240. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21241. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21242. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21243. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21244. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21245. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21246. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21247. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21248. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21249. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21250. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21251. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21252. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21253. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21254. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21255. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  21256. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21257. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21258. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21259. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21260. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21261. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21262. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21263. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21264. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21265. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21266. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21267. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21268. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21269. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21270. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21271. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21272. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21273. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21274. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21275. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21276. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  21277. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21278. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21279. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21280. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21281. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21282. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21283. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21284. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21285. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21286. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21287. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21288. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21289. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21290. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21291. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21292. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21293. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21294. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21295. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21296. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21297. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  21298. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21299. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21300. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21301. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21302. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21303. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21304. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21305. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21306. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21307. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21308. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21309. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21310. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21311. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21312. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21313. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21314. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21315. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21316. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21317. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21318. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  21319. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21320. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21321. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21322. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21323. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21324. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21325. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21326. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21327. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21328. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21329. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21330. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21331. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21332. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21333. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21334. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21335. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21336. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21337. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21338. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21339. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  21340. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21341. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21342. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21343. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21344. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21345. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21346. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21347. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21348. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21349. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21350. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21351. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21352. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21353. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21354. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21355. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21356. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21357. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21358. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21359. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21360. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  21361. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21362. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21363. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21364. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21365. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21366. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21367. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21368. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21369. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21370. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21371. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21372. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21373. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21374. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21375. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21376. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21377. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21378. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21379. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21380. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21381. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  21382. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21383. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21384. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21385. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21386. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21387. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21388. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21389. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21390. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21391. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21392. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21393. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21394. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21395. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21396. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21397. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21398. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21399. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21400. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21401. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21402. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  21403. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21404. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21405. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21406. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21407. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21408. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21409. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21410. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21411. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21412. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21413. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21414. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21415. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21416. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21417. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21418. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21419. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21420. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21421. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21422. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21423. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  21424. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21425. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21426. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21427. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21428. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21429. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21430. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21431. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21432. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21433. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21434. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21435. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  21436. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21437. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21438. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21439. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21440. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21441. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21442. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21443. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21444. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21445. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21446. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21447. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  21448. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21449. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21450. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21451. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21452. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21453. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21454. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21455. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21456. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21457. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21458. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21459. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21460. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21461. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21462. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21463. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21464. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21465. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21466. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21467. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21468. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21469. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21470. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21471. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  21472. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21473. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21474. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  21475. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21476. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  21477. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  21478. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  21479. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  21480. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21481. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21482. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21483. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21484. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21485. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21486. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  21487. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21488. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21489. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21490. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21491. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  21492. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21493. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21494. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21495. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  21496. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21497. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21498. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21499. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  21500. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21501. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21502. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21503. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  21504. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21505. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21506. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21507. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21508. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21509. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21510. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21511. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21512. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21513. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  21514. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21515. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21516. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21517. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21518. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21519. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21520. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21521. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21522. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21523. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  21524. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21525. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21526. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21527. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21528. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21529. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21530. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21531. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21532. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21533. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21534. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21535. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  21536. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21537. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21538. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21539. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21540. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21541. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21542. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21543. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21544. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21545. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21546. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21547. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  21548. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21549. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21550. {"STUB_RX", NULL, "STUB_RX Mixer"},
  21551. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21552. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21553. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  21554. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21555. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21556. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  21557. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21558. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21559. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21560. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21561. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21562. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  21563. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21564. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21565. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21566. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21567. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21568. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  21569. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21570. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21571. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21572. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  21573. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21574. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21575. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  21576. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  21577. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21578. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  21579. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  21580. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  21581. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  21582. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21583. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21584. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21585. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21586. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21587. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21588. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21589. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21590. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21591. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21592. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21593. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21594. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21595. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  21596. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21597. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  21598. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21599. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  21600. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  21601. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  21602. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21603. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  21604. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21605. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21606. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  21607. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21608. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21609. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21610. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21611. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21612. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21613. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21614. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21615. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21616. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21617. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  21618. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21619. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21620. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21621. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21622. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21623. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21624. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21625. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21626. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21627. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  21628. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21629. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21630. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21631. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21632. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21633. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21634. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21635. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  21636. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21637. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21638. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21639. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21640. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21641. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21642. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21643. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21644. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21645. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  21646. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21647. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21648. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21649. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21650. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21651. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21652. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21653. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  21654. /* Backend Enablement */
  21655. {"BE_OUT", NULL, "PRI_I2S_RX"},
  21656. {"BE_OUT", NULL, "SEC_I2S_RX"},
  21657. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  21658. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  21659. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  21660. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21661. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  21662. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  21663. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  21664. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  21665. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  21666. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  21667. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  21668. {"BE_OUT", NULL, "HDMI"},
  21669. {"BE_OUT", NULL, "DISPLAY_PORT"},
  21670. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  21671. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  21672. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  21673. {"BE_OUT", NULL, "MI2S_RX"},
  21674. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  21675. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  21676. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  21677. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  21678. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  21679. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  21680. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  21681. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  21682. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  21683. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  21684. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  21685. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21686. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  21687. {"BE_OUT", NULL, "INT_FM_RX"},
  21688. {"BE_OUT", NULL, "PCM_RX"},
  21689. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21690. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21691. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  21692. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  21693. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  21694. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  21695. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21696. {"BE_OUT", NULL, "INT_FM_RX"},
  21697. {"BE_OUT", NULL, "PCM_RX"},
  21698. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21699. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  21700. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  21701. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  21702. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  21703. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  21704. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  21705. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  21706. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  21707. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  21708. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  21709. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  21710. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  21711. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  21712. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  21713. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  21714. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  21715. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  21716. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  21717. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  21718. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  21719. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  21720. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  21721. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  21722. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  21723. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  21724. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  21725. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  21726. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  21727. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  21728. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  21729. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  21730. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  21731. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  21732. {"PRI_I2S_TX", NULL, "BE_IN"},
  21733. {"MI2S_TX", NULL, "BE_IN"},
  21734. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  21735. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  21736. {"PRI_MI2S_TX", NULL, "BE_IN"},
  21737. {"TERT_MI2S_TX", NULL, "BE_IN"},
  21738. {"INT0_MI2S_TX", NULL, "BE_IN"},
  21739. {"INT2_MI2S_TX", NULL, "BE_IN"},
  21740. {"INT3_MI2S_TX", NULL, "BE_IN"},
  21741. {"INT4_MI2S_TX", NULL, "BE_IN"},
  21742. {"INT5_MI2S_TX", NULL, "BE_IN"},
  21743. {"SEC_MI2S_TX", NULL, "BE_IN"},
  21744. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  21745. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  21746. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  21747. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  21748. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  21749. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  21750. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  21751. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  21752. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  21753. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  21754. {"USB_AUDIO_TX", NULL, "BE_IN" },
  21755. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  21756. {"INT_FM_TX", NULL, "BE_IN"},
  21757. {"PCM_TX", NULL, "BE_IN"},
  21758. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21759. {"BE_OUT", NULL, "STUB_RX"},
  21760. {"STUB_TX", NULL, "BE_IN"},
  21761. {"STUB_1_TX", NULL, "BE_IN"},
  21762. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21763. {"AUX_PCM_TX", NULL, "BE_IN"},
  21764. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  21765. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  21766. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  21767. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  21768. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  21769. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  21770. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21771. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21772. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21773. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21774. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  21775. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21776. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21777. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  21778. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  21779. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  21780. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  21781. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  21782. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  21783. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  21784. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  21785. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  21786. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  21787. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  21788. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  21789. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  21790. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  21791. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  21792. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  21793. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  21794. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  21795. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  21796. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  21797. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  21798. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  21799. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  21800. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  21801. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  21802. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  21803. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  21804. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21805. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21806. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  21807. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21808. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21809. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  21810. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  21811. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  21812. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  21813. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  21814. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  21815. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  21816. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  21817. };
  21818. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  21819. struct snd_pcm_hw_params *params)
  21820. {
  21821. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21822. unsigned int be_id = rtd->dai_link->id;
  21823. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21824. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21825. return -EINVAL;
  21826. }
  21827. mutex_lock(&routing_lock);
  21828. msm_bedais[be_id].sample_rate = params_rate(params);
  21829. msm_bedais[be_id].channel = params_channels(params);
  21830. msm_bedais[be_id].format = params_format(params);
  21831. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  21832. __func__, msm_bedais[be_id].sample_rate,
  21833. msm_bedais[be_id].format, be_id);
  21834. mutex_unlock(&routing_lock);
  21835. return 0;
  21836. }
  21837. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  21838. {
  21839. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21840. unsigned int be_id = rtd->dai_link->id;
  21841. int i, session_type, path_type, topology;
  21842. struct msm_pcm_routing_bdai_data *bedai;
  21843. struct msm_pcm_routing_fdai_data *fdai;
  21844. pr_debug("%s: substream->pcm->id:%s\n",
  21845. __func__, substream->pcm->id);
  21846. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21847. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21848. return -EINVAL;
  21849. }
  21850. bedai = &msm_bedais[be_id];
  21851. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  21852. 0 : 1);
  21853. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21854. path_type = ADM_PATH_PLAYBACK;
  21855. else
  21856. path_type = ADM_PATH_LIVE_REC;
  21857. mutex_lock(&routing_lock);
  21858. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21859. if (!is_mm_lsm_fe_id(i))
  21860. continue;
  21861. fdai = &fe_dai_map[i][session_type];
  21862. if (fdai->strm_id != INVALID_SESSION) {
  21863. int idx;
  21864. int port_id;
  21865. unsigned long copp =
  21866. session_copp_map[i][session_type][be_id];
  21867. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  21868. if (test_bit(idx, &copp))
  21869. break;
  21870. fdai->be_srate = bedai->sample_rate;
  21871. port_id = bedai->port_id;
  21872. topology = adm_get_topology_for_port_copp_idx(port_id,
  21873. idx);
  21874. msm_routing_unload_topology(topology);
  21875. adm_close(bedai->port_id, fdai->perf_mode, idx);
  21876. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  21877. __func__, copp, i, session_type, be_id,
  21878. topology);
  21879. clear_bit(idx,
  21880. &session_copp_map[i][session_type][be_id]);
  21881. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  21882. (fdai->passthr_mode == LEGACY_PCM))
  21883. msm_pcm_routing_deinit_pp(bedai->port_id,
  21884. topology);
  21885. }
  21886. }
  21887. bedai->active = 0;
  21888. bedai->sample_rate = 0;
  21889. bedai->channel = 0;
  21890. mutex_unlock(&routing_lock);
  21891. return 0;
  21892. }
  21893. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  21894. {
  21895. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21896. unsigned int be_id = rtd->dai_link->id;
  21897. int i, path_type, topology;
  21898. int session_type = INVALID_SESSION;
  21899. struct msm_pcm_routing_bdai_data *bedai;
  21900. u32 channels, sample_rate;
  21901. uint16_t bits_per_sample = 16, voc_path_type;
  21902. struct msm_pcm_routing_fdai_data *fdai;
  21903. u32 session_id;
  21904. struct media_format_info voc_be_media_format;
  21905. bool is_lsm;
  21906. pr_debug("%s: substream->pcm->id:%s\n",
  21907. __func__, substream->pcm->id);
  21908. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21909. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21910. return -EINVAL;
  21911. }
  21912. bedai = &msm_bedais[be_id];
  21913. mutex_lock(&routing_lock);
  21914. if (bedai->active == 1)
  21915. goto done; /* Ignore prepare if back-end already active */
  21916. /* AFE port is not active at this point. However, still
  21917. * go ahead setting active flag under the notion that
  21918. * QDSP6 is able to handle ADM starting before AFE port
  21919. * is started.
  21920. */
  21921. bedai->active = 1;
  21922. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21923. if (!(is_mm_lsm_fe_id(i) &&
  21924. route_check_fe_id_adm_support(i)))
  21925. continue;
  21926. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  21927. SESSION_TYPE_RX : SESSION_TYPE_TX;
  21928. fdai = &fe_dai_map[i][session_type];
  21929. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  21930. if (fdai->passthr_mode != LEGACY_PCM)
  21931. path_type = ADM_PATH_COMPRESSED_RX;
  21932. else
  21933. path_type = ADM_PATH_PLAYBACK;
  21934. } else {
  21935. if ((fdai->passthr_mode != LEGACY_PCM) &&
  21936. (fdai->passthr_mode != LISTEN))
  21937. path_type = ADM_PATH_COMPRESSED_TX;
  21938. else
  21939. path_type = ADM_PATH_LIVE_REC;
  21940. }
  21941. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  21942. (i <= MSM_FRONTEND_DAI_LSM8);
  21943. if (fdai->strm_id != INVALID_SESSION) {
  21944. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  21945. if (session_type == SESSION_TYPE_TX &&
  21946. fdai->be_srate &&
  21947. (fdai->be_srate != bedai->sample_rate)) {
  21948. pr_debug("%s: flush strm %d diff BE rates\n",
  21949. __func__,
  21950. fdai->strm_id);
  21951. if (fdai->event_info.event_func)
  21952. fdai->event_info.event_func(
  21953. MSM_PCM_RT_EVT_BUF_RECFG,
  21954. fdai->event_info.priv_data);
  21955. fdai->be_srate = 0; /* might not need it */
  21956. }
  21957. bits_per_sample = msm_routing_get_bit_width(
  21958. bedai->format);
  21959. app_type =
  21960. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  21961. if (app_type && is_lsm) {
  21962. app_type_idx =
  21963. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  21964. sample_rate =
  21965. fe_dai_app_type_cfg[i][session_type][be_id]
  21966. .sample_rate;
  21967. bits_per_sample =
  21968. lsm_app_type_cfg[app_type_idx].bit_width;
  21969. } else if (app_type) {
  21970. app_type_idx =
  21971. msm_pcm_routing_get_app_type_idx(app_type);
  21972. sample_rate =
  21973. fe_dai_app_type_cfg[i][session_type]
  21974. [be_id].sample_rate;
  21975. bits_per_sample =
  21976. app_type_cfg[app_type_idx].bit_width;
  21977. } else
  21978. sample_rate = bedai->sample_rate;
  21979. /*
  21980. * check if ADM needs to be configured with different
  21981. * channel mapping than backend
  21982. */
  21983. if (!bedai->adm_override_ch)
  21984. channels = bedai->channel;
  21985. else
  21986. channels = bedai->adm_override_ch;
  21987. acdb_dev_id =
  21988. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  21989. topology = msm_routing_get_adm_topology(i, session_type,
  21990. be_id);
  21991. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  21992. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  21993. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  21994. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  21995. copp_idx = adm_open(bedai->port_id, path_type,
  21996. sample_rate, channels, topology,
  21997. fdai->perf_mode, bits_per_sample,
  21998. app_type, acdb_dev_id);
  21999. if ((copp_idx < 0) ||
  22000. (copp_idx >= MAX_COPPS_PER_PORT)) {
  22001. pr_err("%s: adm open failed\n", __func__);
  22002. mutex_unlock(&routing_lock);
  22003. return -EINVAL;
  22004. }
  22005. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  22006. __func__, i, session_type, be_id);
  22007. set_bit(copp_idx,
  22008. &session_copp_map[i][session_type][be_id]);
  22009. if (msm_is_resample_needed(
  22010. sample_rate,
  22011. bedai->sample_rate))
  22012. adm_copp_mfc_cfg(
  22013. bedai->port_id, copp_idx,
  22014. bedai->sample_rate);
  22015. msm_pcm_routing_build_matrix(i, session_type, path_type,
  22016. fdai->perf_mode, fdai->passthr_mode);
  22017. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22018. (fdai->passthr_mode == LEGACY_PCM))
  22019. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  22020. topology, channels);
  22021. }
  22022. }
  22023. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22024. session_id = msm_pcm_routing_get_voc_sessionid(i);
  22025. if (session_id) {
  22026. pr_debug("%s voice session_id: 0x%x\n", __func__,
  22027. session_id);
  22028. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  22029. voc_path_type = RX_PATH;
  22030. else
  22031. voc_path_type = TX_PATH;
  22032. voc_set_route_flag(session_id, voc_path_type, 1);
  22033. memset(&voc_be_media_format, 0,
  22034. sizeof(struct media_format_info));
  22035. voc_be_media_format.port_id = bedai->port_id;
  22036. voc_be_media_format.num_channels = bedai->channel;
  22037. voc_be_media_format.sample_rate = bedai->sample_rate;
  22038. voc_be_media_format.bits_per_sample = bedai->format;
  22039. /* Defaulting this to 1 for voice call usecases */
  22040. voc_be_media_format.channel_mapping[0] = 1;
  22041. voc_set_device_config(session_id, voc_path_type,
  22042. &voc_be_media_format);
  22043. if (voc_get_route_flag(session_id, RX_PATH) &&
  22044. voc_get_route_flag(session_id, TX_PATH))
  22045. voc_enable_device(session_id);
  22046. }
  22047. }
  22048. /* Check if backend is an external ec ref port and set as needed */
  22049. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  22050. memset(&voc_be_media_format, 0,
  22051. sizeof(struct media_format_info));
  22052. /* Get format info for ec ref port from msm_bedais[] */
  22053. voc_be_media_format.port_id = bedai->port_id;
  22054. voc_be_media_format.num_channels = bedai->channel;
  22055. voc_be_media_format.bits_per_sample = bedai->format;
  22056. voc_be_media_format.sample_rate = bedai->sample_rate;
  22057. /* Defaulting this to 1 for voice call usecases */
  22058. voc_be_media_format.channel_mapping[0] = 1;
  22059. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  22060. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  22061. __func__, voc_be_media_format.port_id,
  22062. voc_be_media_format.num_channels,
  22063. voc_be_media_format.bits_per_sample,
  22064. voc_be_media_format.sample_rate);
  22065. }
  22066. done:
  22067. mutex_unlock(&routing_lock);
  22068. return 0;
  22069. }
  22070. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  22071. int fe_id)
  22072. {
  22073. int index, topo_id, be_idx;
  22074. unsigned long pp_config = 0;
  22075. bool mute_on;
  22076. int latency, session_type;
  22077. bool compr_passthr_mode = true;
  22078. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  22079. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  22080. pr_err("%s: Device pp params on invalid port %d\n",
  22081. __func__, port_id);
  22082. return -EINVAL;
  22083. }
  22084. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22085. if (port_id == msm_bedais[be_idx].port_id)
  22086. break;
  22087. }
  22088. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22089. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22090. return -EINVAL;
  22091. }
  22092. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22093. if (msm_bedais_pp_params[index].port_id == port_id)
  22094. break;
  22095. }
  22096. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22097. pr_err("%s: Invalid backend pp params index %d\n",
  22098. __func__, index);
  22099. return -EINVAL;
  22100. }
  22101. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  22102. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  22103. pr_err("%s: Invalid passthrough topology 0x%x\n",
  22104. __func__, topo_id);
  22105. return -EINVAL;
  22106. }
  22107. session_type =
  22108. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22109. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22110. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  22111. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  22112. compr_passthr_mode = false;
  22113. pp_config = msm_bedais_pp_params[index].pp_params_config;
  22114. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  22115. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22116. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  22117. mute_on = msm_bedais_pp_params[index].mute_on;
  22118. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22119. adm_send_compressed_device_mute(port_id,
  22120. copp_idx,
  22121. mute_on);
  22122. }
  22123. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  22124. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22125. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  22126. &pp_config);
  22127. latency = msm_bedais_pp_params[index].latency;
  22128. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22129. adm_send_compressed_device_latency(port_id,
  22130. copp_idx,
  22131. latency);
  22132. }
  22133. return 0;
  22134. }
  22135. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  22136. {
  22137. uint32_t topology = NULL_COPP_TOPOLOGY;
  22138. void *cal_info = NULL;
  22139. uint32_t size = 0;
  22140. /* Retrieve cal_info size from cal data*/
  22141. size = data_size - sizeof(struct audio_cal_type_basic);
  22142. cal_info = kzalloc(size, GFP_KERNEL);
  22143. if (!cal_info)
  22144. goto done;
  22145. memcpy(cal_info,
  22146. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  22147. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  22148. kfree(cal_info);
  22149. cal_info = NULL;
  22150. done:
  22151. pr_debug("%s: Using topology %d\n", __func__, topology);
  22152. return topology;
  22153. }
  22154. static void msm_routing_load_topology(size_t data_size, void *data)
  22155. {
  22156. uint32_t topology_id;
  22157. int ret = -EINVAL;
  22158. topology_id = msm_routing_get_topology(data_size, data);
  22159. if (topology_id != NULL_COPP_TOPOLOGY)
  22160. ret = q6core_load_unload_topo_modules(topology_id,
  22161. CORE_LOAD_TOPOLOGY);
  22162. if (ret < 0)
  22163. pr_debug("%s %d load topology failed\n",
  22164. __func__, topology_id);
  22165. }
  22166. static void msm_routing_unload_topology(uint32_t topology_id)
  22167. {
  22168. int ret = -EINVAL;
  22169. if (topology_id != NULL_COPP_TOPOLOGY)
  22170. ret = q6core_load_unload_topo_modules(topology_id,
  22171. CORE_UNLOAD_TOPOLOGY);
  22172. if (ret < 0)
  22173. pr_debug("%s %d unload topology failed\n",
  22174. __func__, topology_id);
  22175. }
  22176. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22177. struct snd_ctl_elem_value *ucontrol)
  22178. {
  22179. int pp_id = ucontrol->value.integer.value[0];
  22180. int port_id = 0;
  22181. int index, be_idx, i, topo_id, idx;
  22182. bool mute;
  22183. int latency, session_type;
  22184. bool compr_passthr_mode = true;
  22185. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  22186. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22187. port_id = msm_bedais[be_idx].port_id;
  22188. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  22189. break;
  22190. }
  22191. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22192. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22193. return -EINVAL;
  22194. }
  22195. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22196. if (msm_bedais_pp_params[index].port_id == port_id)
  22197. break;
  22198. }
  22199. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22200. pr_err("%s: Invalid pp params backend index %d\n",
  22201. __func__, index);
  22202. return -EINVAL;
  22203. }
  22204. session_type =
  22205. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22206. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22207. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22208. MSM_FRONTEND_DAI_MM_SIZE) {
  22209. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  22210. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  22211. compr_passthr_mode = false;
  22212. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22213. unsigned long copp =
  22214. session_copp_map[i]
  22215. [SESSION_TYPE_RX][be_idx];
  22216. if (!test_bit(idx, &copp))
  22217. continue;
  22218. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  22219. idx);
  22220. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  22221. continue;
  22222. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  22223. __func__, port_id, copp, msm_bedais[be_idx].active,
  22224. fe_dai_map[i][session_type].passthr_mode);
  22225. switch (pp_id) {
  22226. case ADM_PP_PARAM_MUTE_ID:
  22227. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22228. mute = ucontrol->value.integer.value[1] ? true : false;
  22229. msm_bedais_pp_params[index].mute_on = mute;
  22230. set_bit(ADM_PP_PARAM_MUTE_BIT,
  22231. &msm_bedais_pp_params[index].pp_params_config);
  22232. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22233. adm_send_compressed_device_mute(port_id,
  22234. idx, mute);
  22235. break;
  22236. case ADM_PP_PARAM_LATENCY_ID:
  22237. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22238. msm_bedais_pp_params[index].latency =
  22239. ucontrol->value.integer.value[1];
  22240. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  22241. &msm_bedais_pp_params[index].pp_params_config);
  22242. latency = msm_bedais_pp_params[index].latency =
  22243. ucontrol->value.integer.value[1];
  22244. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22245. adm_send_compressed_device_latency(port_id,
  22246. idx, latency);
  22247. break;
  22248. default:
  22249. pr_info("%s, device pp param %d not supported\n",
  22250. __func__, pp_id);
  22251. break;
  22252. }
  22253. }
  22254. }
  22255. return 0;
  22256. }
  22257. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22258. struct snd_ctl_elem_value *ucontrol)
  22259. {
  22260. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  22261. return 0;
  22262. }
  22263. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  22264. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  22265. 0, 3, msm_routing_get_device_pp_params_mixer,
  22266. msm_routing_put_device_pp_params_mixer),
  22267. };
  22268. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  22269. struct snd_ctl_elem_value *ucontrol)
  22270. {
  22271. ucontrol->value.integer.value[0] =
  22272. core_get_license_status(ASM_MEDIA_FMT_APTX);
  22273. pr_debug("%s: status %ld\n", __func__,
  22274. ucontrol->value.integer.value[0]);
  22275. return 0;
  22276. }
  22277. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  22278. struct snd_ctl_elem_value *ucontrol)
  22279. {
  22280. int32_t status = 0;
  22281. status = core_set_license(ucontrol->value.integer.value[0],
  22282. APTX_CLASSIC_DEC_LICENSE_ID);
  22283. pr_debug("%s: status %d\n", __func__, status);
  22284. return status;
  22285. }
  22286. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  22287. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  22288. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  22289. msm_aptx_dec_license_control_put),
  22290. };
  22291. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  22292. struct snd_ctl_elem_info *uinfo)
  22293. {
  22294. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22295. uinfo->count = sizeof(be_dai_name_table);
  22296. return 0;
  22297. }
  22298. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  22299. unsigned int __user *bytes,
  22300. unsigned int size)
  22301. {
  22302. int i;
  22303. int ret = 0;
  22304. if (size < sizeof(be_dai_name_table)) {
  22305. pr_err("%s: invalid size %d requested, returning\n",
  22306. __func__, size);
  22307. ret = -EINVAL;
  22308. goto done;
  22309. }
  22310. /*
  22311. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  22312. * needed when adding new backends
  22313. */
  22314. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22315. be_dai_name_table[i].be_id = i;
  22316. strlcpy(be_dai_name_table[i].be_name,
  22317. msm_bedais[i].name,
  22318. LPASS_BE_NAME_MAX_LENGTH);
  22319. }
  22320. ret = copy_to_user(bytes, &be_dai_name_table,
  22321. sizeof(be_dai_name_table));
  22322. if (ret) {
  22323. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  22324. ret = -EFAULT;
  22325. }
  22326. done:
  22327. return ret;
  22328. }
  22329. static const struct snd_kcontrol_new
  22330. msm_routing_be_dai_name_table_mixer_controls[] = {
  22331. {
  22332. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  22333. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  22334. .info = msm_routing_be_dai_name_table_info,
  22335. .name = "Backend DAI Name Table",
  22336. .tlv.c = snd_soc_bytes_tlv_callback,
  22337. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  22338. .max = sizeof(be_dai_name_table),
  22339. .get = msm_routing_be_dai_name_table_tlv_get,
  22340. }
  22341. },
  22342. };
  22343. static int msm_routing_stereo_channel_reverse_control_get(
  22344. struct snd_kcontrol *kcontrol,
  22345. struct snd_ctl_elem_value *ucontrol)
  22346. {
  22347. ucontrol->value.integer.value[0] = swap_ch;
  22348. pr_debug("%s: Swap channel value: %ld\n", __func__,
  22349. ucontrol->value.integer.value[0]);
  22350. return 0;
  22351. }
  22352. static int msm_routing_stereo_channel_reverse_control_put(
  22353. struct snd_kcontrol *kcontrol,
  22354. struct snd_ctl_elem_value *ucontrol)
  22355. {
  22356. int i, idx, be_index, port_id;
  22357. int ret = 0;
  22358. unsigned long copp;
  22359. pr_debug("%s Swap channel value:%ld\n", __func__,
  22360. ucontrol->value.integer.value[0]);
  22361. swap_ch = ucontrol->value.integer.value[0];
  22362. mutex_lock(&routing_lock);
  22363. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  22364. port_id = msm_bedais[be_index].port_id;
  22365. if (!msm_bedais[be_index].active)
  22366. continue;
  22367. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  22368. MSM_FRONTEND_DAI_MM_SIZE) {
  22369. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  22370. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22371. if (!test_bit(idx, &copp))
  22372. continue;
  22373. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  22374. __func__, port_id, idx);
  22375. ret = adm_swap_speaker_channels(
  22376. port_id, idx,
  22377. msm_bedais[be_index].sample_rate,
  22378. swap_ch);
  22379. if (ret) {
  22380. pr_err("%s:Swap_channel failed, err=%d\n",
  22381. __func__, ret);
  22382. goto done;
  22383. }
  22384. }
  22385. }
  22386. }
  22387. done:
  22388. mutex_unlock(&routing_lock);
  22389. return ret;
  22390. }
  22391. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  22392. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  22393. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  22394. msm_routing_stereo_channel_reverse_control_put),
  22395. };
  22396. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  22397. struct snd_ctl_elem_info *uinfo)
  22398. {
  22399. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  22400. uinfo->count = 1;
  22401. return 0;
  22402. }
  22403. static int msm_routing_instance_id_support_put(
  22404. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22405. {
  22406. bool supported = ucontrol->value.integer.value[0] ? true : false;
  22407. q6common_update_instance_id_support(supported);
  22408. return 0;
  22409. }
  22410. static int msm_routing_instance_id_support_get(
  22411. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22412. {
  22413. bool supported = false;
  22414. supported = q6common_is_instance_id_supported();
  22415. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  22416. return 0;
  22417. }
  22418. static const struct snd_kcontrol_new
  22419. msm_routing_feature_support_mixer_controls[] = {
  22420. {
  22421. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  22422. SNDRV_CTL_ELEM_ACCESS_WRITE,
  22423. .info = msm_routing_instance_id_support_info,
  22424. .name = "Instance ID Support",
  22425. .put = msm_routing_instance_id_support_put,
  22426. .get = msm_routing_instance_id_support_get,
  22427. },
  22428. };
  22429. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  22430. .hw_params = msm_pcm_routing_hw_params,
  22431. .close = msm_pcm_routing_close,
  22432. .prepare = msm_pcm_routing_prepare,
  22433. };
  22434. /* Not used but frame seems to require it */
  22435. static int msm_routing_probe(struct snd_soc_platform *platform)
  22436. {
  22437. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  22438. ARRAY_SIZE(msm_qdsp6_widgets));
  22439. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  22440. ARRAY_SIZE(intercon));
  22441. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  22442. snd_soc_add_platform_controls(platform, lsm_controls,
  22443. ARRAY_SIZE(lsm_controls));
  22444. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  22445. ARRAY_SIZE(aanc_slim_0_rx_mux));
  22446. snd_soc_add_platform_controls(platform, aanc_noise_level,
  22447. ARRAY_SIZE(aanc_noise_level));
  22448. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  22449. ARRAY_SIZE(msm_voc_session_controls));
  22450. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  22451. ARRAY_SIZE(app_type_cfg_controls));
  22452. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  22453. ARRAY_SIZE(lsm_app_type_cfg_controls));
  22454. snd_soc_add_platform_controls(platform, module_cfg_controls,
  22455. ARRAY_SIZE(module_cfg_controls));
  22456. snd_soc_add_platform_controls(platform,
  22457. stereo_to_custom_stereo_controls,
  22458. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  22459. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  22460. ARRAY_SIZE(ec_ref_param_controls));
  22461. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  22462. ARRAY_SIZE(channel_mixer_controls));
  22463. msm_qti_pp_add_controls(platform);
  22464. msm_dts_srs_tm_add_controls(platform);
  22465. msm_dolby_dap_add_controls(platform);
  22466. snd_soc_add_platform_controls(platform,
  22467. use_ds1_or_ds2_controls,
  22468. ARRAY_SIZE(use_ds1_or_ds2_controls));
  22469. snd_soc_add_platform_controls(platform,
  22470. device_pp_params_mixer_controls,
  22471. ARRAY_SIZE(device_pp_params_mixer_controls));
  22472. snd_soc_add_platform_controls(platform,
  22473. msm_routing_be_dai_name_table_mixer_controls,
  22474. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  22475. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  22476. ARRAY_SIZE(msm_source_tracking_controls));
  22477. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  22478. ARRAY_SIZE(adm_channel_config_controls));
  22479. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  22480. ARRAY_SIZE(aptx_dec_license_controls));
  22481. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  22482. ARRAY_SIZE(stereo_channel_reverse_control));
  22483. snd_soc_add_platform_controls(
  22484. platform, msm_routing_feature_support_mixer_controls,
  22485. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  22486. return 0;
  22487. }
  22488. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  22489. {
  22490. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  22491. }
  22492. void msm_routing_pcm_free(struct snd_pcm *pcm)
  22493. {
  22494. msm_pcm_routing_hwdep_free(pcm);
  22495. }
  22496. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  22497. .ops = &msm_routing_pcm_ops,
  22498. .probe = msm_routing_probe,
  22499. .pcm_new = msm_routing_pcm_new,
  22500. .pcm_free = msm_routing_pcm_free,
  22501. };
  22502. static int msm_routing_pcm_probe(struct platform_device *pdev)
  22503. {
  22504. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  22505. return snd_soc_register_platform(&pdev->dev,
  22506. &msm_soc_routing_platform);
  22507. }
  22508. static int msm_routing_pcm_remove(struct platform_device *pdev)
  22509. {
  22510. snd_soc_unregister_platform(&pdev->dev);
  22511. return 0;
  22512. }
  22513. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  22514. {.compatible = "qcom,msm-pcm-routing"},
  22515. {}
  22516. };
  22517. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  22518. static struct platform_driver msm_routing_pcm_driver = {
  22519. .driver = {
  22520. .name = "msm-pcm-routing",
  22521. .owner = THIS_MODULE,
  22522. .of_match_table = msm_pcm_routing_dt_match,
  22523. },
  22524. .probe = msm_routing_pcm_probe,
  22525. .remove = msm_routing_pcm_remove,
  22526. };
  22527. int msm_routing_check_backend_enabled(int fedai_id)
  22528. {
  22529. int i;
  22530. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  22531. /* bad ID assigned in machine driver */
  22532. pr_err("%s: bad MM ID\n", __func__);
  22533. return 0;
  22534. }
  22535. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22536. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  22537. return msm_bedais[i].active;
  22538. }
  22539. return 0;
  22540. }
  22541. static int get_cal_type_index(int32_t cal_type)
  22542. {
  22543. int ret = -EINVAL;
  22544. switch (cal_type) {
  22545. case ADM_TOPOLOGY_CAL_TYPE:
  22546. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  22547. break;
  22548. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  22549. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  22550. break;
  22551. default:
  22552. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  22553. }
  22554. return ret;
  22555. }
  22556. static int msm_routing_set_cal(int32_t cal_type,
  22557. size_t data_size, void *data)
  22558. {
  22559. int ret = 0;
  22560. int cal_index;
  22561. pr_debug("%s\n", __func__);
  22562. cal_index = get_cal_type_index(cal_type);
  22563. if (cal_index < 0) {
  22564. pr_err("%s: Could not get cal index %d\n",
  22565. __func__, cal_index);
  22566. ret = -EINVAL;
  22567. goto done;
  22568. }
  22569. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  22570. if (ret < 0) {
  22571. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  22572. __func__, ret, cal_type);
  22573. ret = -EINVAL;
  22574. goto done;
  22575. }
  22576. /* Pre-load if it is ADM topology */
  22577. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  22578. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  22579. msm_routing_load_topology(data_size, data);
  22580. }
  22581. done:
  22582. return ret;
  22583. }
  22584. static void msm_routing_delete_cal_data(void)
  22585. {
  22586. pr_debug("%s\n", __func__);
  22587. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  22588. }
  22589. static int msm_routing_init_cal_data(void)
  22590. {
  22591. int ret = 0;
  22592. struct cal_type_info cal_type_info[] = {
  22593. {{ADM_TOPOLOGY_CAL_TYPE,
  22594. {NULL, NULL, NULL,
  22595. msm_routing_set_cal, NULL, NULL} },
  22596. {NULL, NULL, cal_utils_match_buf_num} },
  22597. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  22598. {NULL, NULL, NULL,
  22599. msm_routing_set_cal, NULL, NULL} },
  22600. {NULL, NULL, cal_utils_match_buf_num} },
  22601. };
  22602. pr_debug("%s\n", __func__);
  22603. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  22604. &cal_type_info[0]);
  22605. if (ret < 0) {
  22606. pr_err("%s: could not create cal type!\n",
  22607. __func__);
  22608. ret = -EINVAL;
  22609. goto err;
  22610. }
  22611. return ret;
  22612. err:
  22613. msm_routing_delete_cal_data();
  22614. return ret;
  22615. }
  22616. int __init msm_soc_routing_platform_init(void)
  22617. {
  22618. mutex_init(&routing_lock);
  22619. if (msm_routing_init_cal_data())
  22620. pr_err("%s: could not init cal data!\n", __func__);
  22621. afe_set_routing_callback(
  22622. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  22623. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22624. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  22625. return platform_driver_register(&msm_routing_pcm_driver);
  22626. }
  22627. void msm_soc_routing_platform_exit(void)
  22628. {
  22629. msm_routing_delete_cal_data();
  22630. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22631. mutex_destroy(&routing_lock);
  22632. platform_driver_unregister(&msm_routing_pcm_driver);
  22633. }
  22634. MODULE_DESCRIPTION("MSM routing platform driver");
  22635. MODULE_LICENSE("GPL v2");