msm-pcm-routing-v2.c 911 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043
  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 LSM_FUNCTION_TEXT "LSM Function"
  106. static const char * const lsm_port_text[] = {
  107. "None",
  108. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  109. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  110. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  111. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT
  112. };
  113. struct msm_pcm_route_bdai_pp_params {
  114. u16 port_id; /* AFE port ID */
  115. unsigned long pp_params_config;
  116. bool mute_on;
  117. int latency;
  118. };
  119. static struct msm_pcm_route_bdai_pp_params
  120. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  121. {HDMI_RX, 0, 0, 0},
  122. {DISPLAY_PORT_RX, 0, 0, 0},
  123. };
  124. /*
  125. * The be_dai_name_table is passed to HAL so that it can specify the
  126. * BE ID for the BE it wants to enable based on the name. Thus there
  127. * is a matching table and structure in HAL that need to be updated
  128. * if any changes to these are made.
  129. */
  130. struct msm_pcm_route_bdai_name {
  131. unsigned int be_id;
  132. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  133. };
  134. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  135. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  136. int fe_id);
  137. static void msm_routing_load_topology(size_t data_size, void *data);
  138. static void msm_routing_unload_topology(uint32_t topology_id);
  139. static int msm_routing_get_bit_width(unsigned int format)
  140. {
  141. int bit_width;
  142. switch (format) {
  143. case SNDRV_PCM_FORMAT_S32_LE:
  144. bit_width = 32;
  145. break;
  146. case SNDRV_PCM_FORMAT_S24_LE:
  147. case SNDRV_PCM_FORMAT_S24_3LE:
  148. bit_width = 24;
  149. break;
  150. case SNDRV_PCM_FORMAT_S16_LE:
  151. default:
  152. bit_width = 16;
  153. }
  154. return bit_width;
  155. }
  156. static bool msm_is_resample_needed(int input_sr, int output_sr)
  157. {
  158. bool rc = false;
  159. if (input_sr != output_sr)
  160. rc = true;
  161. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  162. (rc ? "oh yes" : "not really"),
  163. input_sr, output_sr);
  164. return rc;
  165. }
  166. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  167. int channels)
  168. {
  169. int rc = 0;
  170. switch (topology) {
  171. case SRS_TRUMEDIA_TOPOLOGY_ID:
  172. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  173. msm_dts_srs_tm_init(port_id, copp_idx);
  174. break;
  175. case DS2_ADM_COPP_TOPOLOGY_ID:
  176. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  177. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  178. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  179. is_custom_stereo_on);
  180. if (rc < 0)
  181. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  182. __func__, topology, port_id,
  183. is_custom_stereo_on, rc);
  184. break;
  185. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  186. if (is_ds2_on) {
  187. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  192. __func__, topology, port_id, rc);
  193. } else {
  194. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  195. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  196. is_custom_stereo_on);
  197. if (rc < 0)
  198. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  199. __func__, topology, port_id, rc);
  200. }
  201. break;
  202. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  203. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  204. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  205. if (rc < 0)
  206. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  207. __func__, topology, port_id, copp_idx, rc);
  208. break;
  209. default:
  210. /* custom topology specific feature param handlers */
  211. break;
  212. }
  213. }
  214. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  215. {
  216. switch (topology) {
  217. case SRS_TRUMEDIA_TOPOLOGY_ID:
  218. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  219. msm_dts_srs_tm_deinit(port_id);
  220. break;
  221. case DS2_ADM_COPP_TOPOLOGY_ID:
  222. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  223. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  224. msm_ds2_dap_deinit(port_id);
  225. break;
  226. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  227. if (is_ds2_on) {
  228. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  229. msm_ds2_dap_deinit(port_id);
  230. } else {
  231. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  232. msm_dolby_dap_deinit(port_id);
  233. }
  234. break;
  235. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  236. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  237. msm_qti_pp_asphere_deinit(port_id);
  238. break;
  239. default:
  240. /* custom topology specific feature deinit handlers */
  241. break;
  242. }
  243. }
  244. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  245. int path_type, int perf_mode)
  246. {
  247. int itr = 0, rc = 0;
  248. if ((path_type == ADM_PATH_PLAYBACK) &&
  249. (perf_mode == LEGACY_PCM_MODE) &&
  250. is_custom_stereo_on) {
  251. for (itr = 0; itr < payload.num_copps; itr++) {
  252. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  253. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  254. continue;
  255. }
  256. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  257. payload.port_id[itr],
  258. payload.copp_idx[itr],
  259. payload.session_id,
  260. Q14_GAIN_ZERO_POINT_FIVE,
  261. Q14_GAIN_ZERO_POINT_FIVE,
  262. Q14_GAIN_ZERO_POINT_FIVE,
  263. Q14_GAIN_ZERO_POINT_FIVE);
  264. if (rc < 0)
  265. pr_err("%s: err setting custom stereo\n",
  266. __func__);
  267. }
  268. }
  269. }
  270. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  271. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  272. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  273. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  274. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  275. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  276. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  277. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  278. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  279. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  280. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  281. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  282. LPASS_BE_AFE_PCM_RX},
  283. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  284. LPASS_BE_AFE_PCM_TX},
  285. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  286. LPASS_BE_AUXPCM_RX},
  287. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  288. LPASS_BE_AUXPCM_TX},
  289. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  290. LPASS_BE_VOICE_PLAYBACK_TX},
  291. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  292. LPASS_BE_VOICE2_PLAYBACK_TX},
  293. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  294. LPASS_BE_INCALL_RECORD_RX},
  295. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  296. LPASS_BE_INCALL_RECORD_TX},
  297. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  298. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  299. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  300. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  301. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  302. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  303. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  304. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  305. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  306. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  307. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  308. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  309. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  310. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  311. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  312. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  313. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  314. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  315. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  316. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  317. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  318. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  319. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  320. LPASS_BE_QUAT_MI2S_RX},
  321. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  322. LPASS_BE_QUAT_MI2S_TX},
  323. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  324. LPASS_BE_SEC_MI2S_RX},
  325. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  326. LPASS_BE_SEC_MI2S_TX},
  327. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  328. LPASS_BE_PRI_MI2S_RX},
  329. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  330. LPASS_BE_PRI_MI2S_TX},
  331. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  332. LPASS_BE_TERT_MI2S_RX},
  333. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  334. LPASS_BE_TERT_MI2S_TX},
  335. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  336. LPASS_BE_AUDIO_I2S_RX},
  337. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  338. LPASS_BE_SEC_AUXPCM_RX},
  339. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  340. LPASS_BE_SEC_AUXPCM_TX},
  341. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  342. LPASS_BE_PRI_SPDIF_RX},
  343. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  344. LPASS_BE_SEC_MI2S_RX_SD1},
  345. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  346. LPASS_BE_QUIN_MI2S_RX},
  347. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  348. LPASS_BE_QUIN_MI2S_TX},
  349. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  350. LPASS_BE_SENARY_MI2S_TX},
  351. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  352. LPASS_BE_PRI_TDM_RX_0},
  353. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  354. LPASS_BE_PRI_TDM_TX_0},
  355. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  356. LPASS_BE_PRI_TDM_RX_1},
  357. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  358. LPASS_BE_PRI_TDM_TX_1},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  360. LPASS_BE_PRI_TDM_RX_2},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  362. LPASS_BE_PRI_TDM_TX_2},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  364. LPASS_BE_PRI_TDM_RX_3},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  366. LPASS_BE_PRI_TDM_TX_3},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  368. LPASS_BE_PRI_TDM_RX_4},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  370. LPASS_BE_PRI_TDM_TX_4},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  372. LPASS_BE_PRI_TDM_RX_5},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  374. LPASS_BE_PRI_TDM_TX_5},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  376. LPASS_BE_PRI_TDM_RX_6},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  378. LPASS_BE_PRI_TDM_TX_6},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  380. LPASS_BE_PRI_TDM_RX_7},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  382. LPASS_BE_PRI_TDM_TX_7},
  383. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  384. LPASS_BE_SEC_TDM_RX_0},
  385. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  386. LPASS_BE_SEC_TDM_TX_0},
  387. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  388. LPASS_BE_SEC_TDM_RX_1},
  389. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  390. LPASS_BE_SEC_TDM_TX_1},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  392. LPASS_BE_SEC_TDM_RX_2},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  394. LPASS_BE_SEC_TDM_TX_2},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  396. LPASS_BE_SEC_TDM_RX_3},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  398. LPASS_BE_SEC_TDM_TX_3},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  400. LPASS_BE_SEC_TDM_RX_4},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  402. LPASS_BE_SEC_TDM_TX_4},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  404. LPASS_BE_SEC_TDM_RX_5},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  406. LPASS_BE_SEC_TDM_TX_5},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  408. LPASS_BE_SEC_TDM_RX_6},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  410. LPASS_BE_SEC_TDM_TX_6},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  412. LPASS_BE_SEC_TDM_RX_7},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  414. LPASS_BE_SEC_TDM_TX_7},
  415. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  416. LPASS_BE_TERT_TDM_RX_0},
  417. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  418. LPASS_BE_TERT_TDM_TX_0},
  419. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  420. LPASS_BE_TERT_TDM_RX_1},
  421. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  422. LPASS_BE_TERT_TDM_TX_1},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  424. LPASS_BE_TERT_TDM_RX_2},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  426. LPASS_BE_TERT_TDM_TX_2},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  428. LPASS_BE_TERT_TDM_RX_3},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  430. LPASS_BE_TERT_TDM_TX_3},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  432. LPASS_BE_TERT_TDM_RX_4},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  434. LPASS_BE_TERT_TDM_TX_4},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  436. LPASS_BE_TERT_TDM_RX_5},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  438. LPASS_BE_TERT_TDM_TX_5},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  440. LPASS_BE_TERT_TDM_RX_6},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  442. LPASS_BE_TERT_TDM_TX_6},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  444. LPASS_BE_TERT_TDM_RX_7},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  446. LPASS_BE_TERT_TDM_TX_7},
  447. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  448. LPASS_BE_QUAT_TDM_RX_0},
  449. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  450. LPASS_BE_QUAT_TDM_TX_0},
  451. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  452. LPASS_BE_QUAT_TDM_RX_1},
  453. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  454. LPASS_BE_QUAT_TDM_TX_1},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  456. LPASS_BE_QUAT_TDM_RX_2},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  458. LPASS_BE_QUAT_TDM_TX_2},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  460. LPASS_BE_QUAT_TDM_RX_3},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  462. LPASS_BE_QUAT_TDM_TX_3},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  464. LPASS_BE_QUAT_TDM_RX_4},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  466. LPASS_BE_QUAT_TDM_TX_4},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  468. LPASS_BE_QUAT_TDM_RX_5},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  470. LPASS_BE_QUAT_TDM_TX_5},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  472. LPASS_BE_QUAT_TDM_RX_6},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  474. LPASS_BE_QUAT_TDM_TX_6},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  476. LPASS_BE_QUAT_TDM_RX_7},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  478. LPASS_BE_QUAT_TDM_TX_7},
  479. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  480. LPASS_BE_QUIN_TDM_RX_0},
  481. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  482. LPASS_BE_QUIN_TDM_TX_0},
  483. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  484. LPASS_BE_QUIN_TDM_RX_1},
  485. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  486. LPASS_BE_QUIN_TDM_TX_1},
  487. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  488. LPASS_BE_QUIN_TDM_RX_2},
  489. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  490. LPASS_BE_QUIN_TDM_TX_2},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  492. LPASS_BE_QUIN_TDM_RX_3},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  494. LPASS_BE_QUIN_TDM_TX_3},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  496. LPASS_BE_QUIN_TDM_RX_4},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  498. LPASS_BE_QUIN_TDM_TX_4},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  500. LPASS_BE_QUIN_TDM_RX_5},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  502. LPASS_BE_QUIN_TDM_TX_5},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  504. LPASS_BE_QUIN_TDM_RX_6},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  506. LPASS_BE_QUIN_TDM_TX_6},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  508. LPASS_BE_QUIN_TDM_RX_7},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  510. LPASS_BE_QUIN_TDM_TX_7},
  511. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  512. LPASS_BE_INT_BT_A2DP_RX},
  513. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  514. LPASS_BE_USB_AUDIO_RX},
  515. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  516. LPASS_BE_USB_AUDIO_TX},
  517. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  518. LPASS_BE_DISPLAY_PORT},
  519. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  520. LPASS_BE_DISPLAY_PORT1},
  521. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  522. LPASS_BE_TERT_AUXPCM_RX},
  523. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  524. LPASS_BE_TERT_AUXPCM_TX},
  525. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  526. LPASS_BE_QUAT_AUXPCM_RX},
  527. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  528. LPASS_BE_QUAT_AUXPCM_TX},
  529. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  530. LPASS_BE_QUIN_AUXPCM_RX},
  531. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  532. LPASS_BE_QUIN_AUXPCM_TX},
  533. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  534. LPASS_BE_INT0_MI2S_RX},
  535. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  536. LPASS_BE_INT0_MI2S_TX},
  537. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  538. LPASS_BE_INT1_MI2S_RX},
  539. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  540. LPASS_BE_INT1_MI2S_TX},
  541. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  542. LPASS_BE_INT2_MI2S_RX},
  543. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  544. LPASS_BE_INT2_MI2S_TX},
  545. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  546. LPASS_BE_INT3_MI2S_RX},
  547. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  548. LPASS_BE_INT3_MI2S_TX},
  549. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  550. LPASS_BE_INT4_MI2S_RX},
  551. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  552. LPASS_BE_INT4_MI2S_TX},
  553. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  554. LPASS_BE_INT5_MI2S_RX},
  555. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  556. LPASS_BE_INT5_MI2S_TX},
  557. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  558. LPASS_BE_INT6_MI2S_RX},
  559. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  560. LPASS_BE_INT6_MI2S_TX},
  561. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  562. LPASS_BE_WSA_CDC_DMA_RX_0},
  563. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  564. LPASS_BE_WSA_CDC_DMA_TX_0},
  565. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  566. LPASS_BE_WSA_CDC_DMA_RX_1},
  567. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  568. LPASS_BE_WSA_CDC_DMA_TX_1},
  569. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  570. LPASS_BE_WSA_CDC_DMA_TX_2},
  571. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  572. LPASS_BE_VA_CDC_DMA_TX_0},
  573. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  574. LPASS_BE_VA_CDC_DMA_TX_1},
  575. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  576. LPASS_BE_RX_CDC_DMA_RX_0},
  577. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  578. LPASS_BE_TX_CDC_DMA_TX_0},
  579. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  580. LPASS_BE_RX_CDC_DMA_RX_1},
  581. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  582. LPASS_BE_TX_CDC_DMA_TX_1},
  583. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  584. LPASS_BE_RX_CDC_DMA_RX_2},
  585. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  586. LPASS_BE_TX_CDC_DMA_TX_2},
  587. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  588. LPASS_BE_RX_CDC_DMA_RX_3},
  589. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  590. LPASS_BE_TX_CDC_DMA_TX_3},
  591. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  592. LPASS_BE_RX_CDC_DMA_RX_4},
  593. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  594. LPASS_BE_TX_CDC_DMA_TX_4},
  595. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  596. LPASS_BE_RX_CDC_DMA_RX_5},
  597. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  598. LPASS_BE_TX_CDC_DMA_TX_5},
  599. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  600. LPASS_BE_RX_CDC_DMA_RX_6},
  601. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  602. LPASS_BE_RX_CDC_DMA_RX_7},
  603. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  604. LPASS_BE_PRI_SPDIF_TX},
  605. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  606. LPASS_BE_SEC_SPDIF_RX},
  607. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  608. LPASS_BE_SEC_SPDIF_TX},
  609. };
  610. /* Track ASM playback & capture sessions of DAI
  611. * Track LSM listen sessions
  612. */
  613. static struct msm_pcm_routing_fdai_data
  614. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  615. /* MULTIMEDIA1 */
  616. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  617. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  618. /* MULTIMEDIA2 */
  619. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  620. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  621. /* MULTIMEDIA3 */
  622. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  623. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  624. /* MULTIMEDIA4 */
  625. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  626. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  627. /* MULTIMEDIA5 */
  628. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  629. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  630. /* MULTIMEDIA6 */
  631. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  632. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  633. /* MULTIMEDIA7*/
  634. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  635. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  636. /* MULTIMEDIA8 */
  637. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  638. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  639. /* MULTIMEDIA9 */
  640. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  641. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  642. /* MULTIMEDIA10 */
  643. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  644. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  645. /* MULTIMEDIA11 */
  646. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  647. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  648. /* MULTIMEDIA12 */
  649. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  650. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  651. /* MULTIMEDIA13 */
  652. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  653. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  654. /* MULTIMEDIA14 */
  655. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  656. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  657. /* MULTIMEDIA15 */
  658. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  659. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  660. /* MULTIMEDIA16 */
  661. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  662. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  663. /* MULTIMEDIA17 */
  664. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  665. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  666. /* MULTIMEDIA18 */
  667. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  668. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  669. /* MULTIMEDIA19 */
  670. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  671. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  672. /* MULTIMEDIA20 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  675. /* MULTIMEDIA21 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  678. /* MULTIMEDIA28 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  681. /* MULTIMEDIA29 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  684. /* VOIP */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  687. /* AFE_RX */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  690. /* AFE_TX */
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  693. /* VOICE_STUB */
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  696. /* DTMF_RX */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  699. /* QCHAT */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  702. /* VOLTE_STUB */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  705. /* LSM1 */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  708. /* LSM2 */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  711. /* LSM3 */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  714. /* LSM4 */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  717. /* LSM5 */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  720. /* LSM6 */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  723. /* LSM7 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  726. /* LSM8 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  729. /* VOICE2_STUB */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  732. /* VOICEMMODE1 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  735. /* VOICEMMODE2 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  738. };
  739. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  740. [MSM_BACKEND_DAI_MAX];
  741. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  742. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  743. static struct msm_pcm_stream_app_type_cfg
  744. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  745. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  746. /* The caller of this should aqcuire routing lock */
  747. void msm_pcm_routing_get_bedai_info(int be_idx,
  748. struct msm_pcm_routing_bdai_data *be_dai)
  749. {
  750. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  751. memcpy(be_dai, &msm_bedais[be_idx],
  752. sizeof(struct msm_pcm_routing_bdai_data));
  753. }
  754. /* The caller of this should aqcuire routing lock */
  755. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  756. struct msm_pcm_routing_fdai_data *fe_dai)
  757. {
  758. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  759. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  760. sizeof(struct msm_pcm_routing_fdai_data));
  761. }
  762. void msm_pcm_routing_acquire_lock(void)
  763. {
  764. mutex_lock(&routing_lock);
  765. }
  766. void msm_pcm_routing_release_lock(void)
  767. {
  768. mutex_unlock(&routing_lock);
  769. }
  770. static int msm_pcm_routing_get_app_type_idx(int app_type)
  771. {
  772. int idx;
  773. pr_debug("%s: app_type: %d\n", __func__, app_type);
  774. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  775. if (app_type_cfg[idx].app_type == app_type)
  776. return idx;
  777. }
  778. pr_info("%s: App type not available, fallback to default\n", __func__);
  779. return 0;
  780. }
  781. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  782. {
  783. int idx;
  784. pr_debug("%s: app_type: %d\n", __func__, app_type);
  785. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  786. if (lsm_app_type_cfg[idx].app_type == app_type)
  787. return idx;
  788. }
  789. pr_debug("%s: App type not available, fallback to default\n", __func__);
  790. return 0;
  791. }
  792. static bool is_mm_lsm_fe_id(int fe_id)
  793. {
  794. bool rc = true;
  795. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  796. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  797. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  798. rc = false;
  799. }
  800. return rc;
  801. }
  802. /*
  803. * msm_pcm_routing_send_chmix_cfg:
  804. * send the channel mixer command to mix the input channels
  805. * into output channels.
  806. *
  807. * @fe_id: front end id
  808. * @ip_channel_cnt: input channel count
  809. * @op_channel_cnt: output channel count
  810. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  811. * @session_type: indicates session is of type TX or RX
  812. * @stream_type: indicates either Audio or Listen stream type
  813. */
  814. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  815. int op_channel_cnt, int *ch_wght_coeff,
  816. int session_type, int stream_type)
  817. {
  818. int rc = 0, idx = 0;
  819. int be_index = 0, port_id;
  820. unsigned int session_id = 0;
  821. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  822. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  823. stream_type);
  824. if (!is_mm_lsm_fe_id(fe_id)) {
  825. /* bad ID assigned in machine driver */
  826. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  827. return -EINVAL;
  828. }
  829. if (ch_wght_coeff == NULL) {
  830. pr_err("%s: Null channel weightage coefficients passed\n",
  831. __func__);
  832. return -EINVAL;
  833. }
  834. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  835. port_id = msm_bedais[be_index].port_id;
  836. if (!msm_bedais[be_index].active ||
  837. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  838. continue;
  839. session_id = fe_dai_map[fe_id][session_type].strm_id;
  840. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  841. unsigned long copp =
  842. session_copp_map[fe_id][session_type][be_index];
  843. if (!test_bit(idx, &copp))
  844. continue;
  845. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  846. session_id, ip_channel_cnt,
  847. op_channel_cnt, ch_wght_coeff,
  848. session_type, stream_type);
  849. if (rc < 0)
  850. pr_err("%s: err setting channel mix config\n",
  851. __func__);
  852. }
  853. }
  854. return 0;
  855. }
  856. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  857. int msm_pcm_routing_reg_stream_app_type_cfg(
  858. int fedai_id, int session_type, int be_id,
  859. struct msm_pcm_stream_app_type_cfg *cfg_data)
  860. {
  861. int ret = 0;
  862. if (cfg_data == NULL) {
  863. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  864. ret = -EINVAL;
  865. goto done;
  866. }
  867. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  868. __func__, fedai_id, session_type, be_id,
  869. cfg_data->app_type, cfg_data->acdb_dev_id,
  870. cfg_data->sample_rate);
  871. if (!is_mm_lsm_fe_id(fedai_id)) {
  872. pr_err("%s: Invalid machine driver ID %d\n",
  873. __func__, fedai_id);
  874. ret = -EINVAL;
  875. goto done;
  876. }
  877. if (session_type != SESSION_TYPE_RX &&
  878. session_type != SESSION_TYPE_TX) {
  879. pr_err("%s: Invalid session type %d\n",
  880. __func__, session_type);
  881. ret = -EINVAL;
  882. goto done;
  883. }
  884. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  885. pr_err("%s: Received out of bounds be_id %d\n",
  886. __func__, be_id);
  887. ret = -EINVAL;
  888. goto done;
  889. }
  890. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  891. /*
  892. * Store the BE ID of the configuration information set as the latest so
  893. * the get mixer control knows what to return.
  894. */
  895. last_be_id_configured[fedai_id][session_type] = be_id;
  896. done:
  897. return ret;
  898. }
  899. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  900. /**
  901. * msm_pcm_routing_get_stream_app_type_cfg
  902. *
  903. * Receives fedai_id, session_type, be_id, and populates app_type,
  904. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  905. * -EINVAL and does not alter passed values.
  906. *
  907. * fedai_id - Passed value, front end ID for which app type config is wanted
  908. * session_type - Passed value, session type for which app type config
  909. * is wanted
  910. * be_id - Returned value, back end device id the app type config data is for
  911. * cfg_data - Returned value, configuration data used by app type config
  912. */
  913. int msm_pcm_routing_get_stream_app_type_cfg(
  914. int fedai_id, int session_type, int *bedai_id,
  915. struct msm_pcm_stream_app_type_cfg *cfg_data)
  916. {
  917. int be_id;
  918. int ret = 0;
  919. if (bedai_id == NULL) {
  920. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  921. ret = -EINVAL;
  922. goto done;
  923. } else if (cfg_data == NULL) {
  924. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  925. ret = -EINVAL;
  926. goto done;
  927. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  928. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  929. ret = -EINVAL;
  930. goto done;
  931. } else if (session_type != SESSION_TYPE_RX &&
  932. session_type != SESSION_TYPE_TX) {
  933. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  934. ret = -EINVAL;
  935. goto done;
  936. }
  937. be_id = last_be_id_configured[fedai_id][session_type];
  938. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  939. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  940. ret = -EINVAL;
  941. goto done;
  942. }
  943. *bedai_id = be_id;
  944. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  945. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  946. __func__, fedai_id, session_type, *bedai_id,
  947. cfg_data->app_type, cfg_data->acdb_dev_id,
  948. cfg_data->sample_rate);
  949. done:
  950. return ret;
  951. }
  952. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  953. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  954. int cal_index)
  955. {
  956. struct list_head *ptr, *next;
  957. struct cal_block_data *cal_block = NULL;
  958. pr_debug("%s\n", __func__);
  959. list_for_each_safe(ptr, next,
  960. &cal_data[cal_index]->cal_blocks) {
  961. cal_block = list_entry(ptr,
  962. struct cal_block_data, list);
  963. if (cal_utils_is_cal_stale(cal_block))
  964. continue;
  965. if (((struct audio_cal_info_adm_top *)cal_block
  966. ->cal_info)->path == path) {
  967. return cal_block;
  968. }
  969. }
  970. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  971. return NULL;
  972. }
  973. static struct cal_block_data *msm_routing_find_topology(int path,
  974. int app_type,
  975. int acdb_id,
  976. int cal_index)
  977. {
  978. struct list_head *ptr, *next;
  979. struct cal_block_data *cal_block = NULL;
  980. struct audio_cal_info_adm_top *cal_info;
  981. pr_debug("%s\n", __func__);
  982. list_for_each_safe(ptr, next,
  983. &cal_data[cal_index]->cal_blocks) {
  984. cal_block = list_entry(ptr,
  985. struct cal_block_data, list);
  986. if (cal_utils_is_cal_stale(cal_block))
  987. continue;
  988. cal_info = (struct audio_cal_info_adm_top *)
  989. cal_block->cal_info;
  990. if ((cal_info->path == path) &&
  991. (cal_info->app_type == app_type) &&
  992. (cal_info->acdb_id == acdb_id)) {
  993. return cal_block;
  994. }
  995. }
  996. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  997. __func__, path, app_type, acdb_id);
  998. return msm_routing_find_topology_by_path(path, cal_index);
  999. }
  1000. /*
  1001. * Retrieving cal_block will mark cal_block as stale.
  1002. * Hence it cannot be reused or resent unless the flag
  1003. * is reset.
  1004. */
  1005. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1006. int be_id)
  1007. {
  1008. int topology = NULL_COPP_TOPOLOGY;
  1009. struct cal_block_data *cal_block = NULL;
  1010. int app_type = 0, acdb_dev_id = 0;
  1011. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1012. __func__, fedai_id, session_type, be_id);
  1013. if (cal_data == NULL)
  1014. goto done;
  1015. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1016. acdb_dev_id =
  1017. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1018. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1019. cal_block = msm_routing_find_topology(session_type, app_type,
  1020. acdb_dev_id,
  1021. ADM_TOPOLOGY_CAL_TYPE_IDX);
  1022. if (cal_block != NULL) {
  1023. topology = ((struct audio_cal_info_adm_top *)
  1024. cal_block->cal_info)->topology;
  1025. cal_utils_mark_cal_used(cal_block);
  1026. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1027. } else {
  1028. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1029. pr_debug("%s: Check for LSM topology\n", __func__);
  1030. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1031. cal_block = msm_routing_find_topology(session_type, app_type,
  1032. acdb_dev_id,
  1033. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1034. if (cal_block != NULL) {
  1035. topology = ((struct audio_cal_info_adm_top *)
  1036. cal_block->cal_info)->topology;
  1037. cal_utils_mark_cal_used(cal_block);
  1038. }
  1039. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1040. }
  1041. done:
  1042. pr_debug("%s: Using topology %d\n", __func__, topology);
  1043. return topology;
  1044. }
  1045. static uint8_t is_be_dai_extproc(int be_dai)
  1046. {
  1047. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1048. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1049. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1050. return 1;
  1051. else
  1052. return 0;
  1053. }
  1054. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1055. int path_type, int perf_mode,
  1056. uint32_t passthr_mode)
  1057. {
  1058. int i, port_type, j, num_copps = 0;
  1059. struct route_payload payload;
  1060. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1061. path_type == ADM_PATH_COMPRESSED_RX) ?
  1062. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1063. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1064. if (!is_be_dai_extproc(i) &&
  1065. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1066. (msm_bedais[i].active) &&
  1067. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1068. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1069. unsigned long copp =
  1070. session_copp_map[fedai_id][sess_type][i];
  1071. if (test_bit(j, &copp)) {
  1072. payload.port_id[num_copps] =
  1073. msm_bedais[i].port_id;
  1074. payload.copp_idx[num_copps] = j;
  1075. payload.app_type[num_copps] =
  1076. fe_dai_app_type_cfg
  1077. [fedai_id][sess_type][i]
  1078. .app_type;
  1079. payload.acdb_dev_id[num_copps] =
  1080. fe_dai_app_type_cfg
  1081. [fedai_id][sess_type][i]
  1082. .acdb_dev_id;
  1083. payload.sample_rate[num_copps] =
  1084. fe_dai_app_type_cfg
  1085. [fedai_id][sess_type][i]
  1086. .sample_rate;
  1087. num_copps++;
  1088. }
  1089. }
  1090. }
  1091. }
  1092. if (num_copps) {
  1093. payload.num_copps = num_copps;
  1094. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1095. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1096. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1097. }
  1098. }
  1099. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1100. int stream_type)
  1101. {
  1102. int i, session_type, path_type, port_type;
  1103. u32 mode = 0;
  1104. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1105. /* bad ID assigned in machine driver */
  1106. pr_err("%s: bad MM ID\n", __func__);
  1107. return;
  1108. }
  1109. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1110. session_type = SESSION_TYPE_RX;
  1111. path_type = ADM_PATH_PLAYBACK;
  1112. port_type = MSM_AFE_PORT_TYPE_RX;
  1113. } else {
  1114. session_type = SESSION_TYPE_TX;
  1115. path_type = ADM_PATH_LIVE_REC;
  1116. port_type = MSM_AFE_PORT_TYPE_TX;
  1117. }
  1118. mutex_lock(&routing_lock);
  1119. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1120. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1121. if (!is_be_dai_extproc(i) &&
  1122. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1123. (msm_bedais[i].active) &&
  1124. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1125. mode = afe_get_port_type(msm_bedais[i].port_id);
  1126. adm_connect_afe_port(mode, dspst_id,
  1127. msm_bedais[i].port_id);
  1128. break;
  1129. }
  1130. }
  1131. mutex_unlock(&routing_lock);
  1132. }
  1133. static bool route_check_fe_id_adm_support(int fe_id)
  1134. {
  1135. bool rc = true;
  1136. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1137. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1138. /* fe id is listen while port is set to afe */
  1139. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1140. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1141. __func__, fe_id, lsm_port_index);
  1142. rc = false;
  1143. }
  1144. }
  1145. return rc;
  1146. }
  1147. /*
  1148. * msm_pcm_routing_get_pp_ch_cnt:
  1149. * Read the processed channel count
  1150. *
  1151. * @fe_id: Front end ID
  1152. * @session_type: Inidicates RX or TX session type
  1153. */
  1154. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1155. {
  1156. struct msm_pcm_stream_app_type_cfg cfg_data;
  1157. int be_id = 0, app_type_idx = 0, app_type = 0;
  1158. int ret = -EINVAL;
  1159. memset(&cfg_data, 0, sizeof(cfg_data));
  1160. if (!is_mm_lsm_fe_id(fe_id)) {
  1161. pr_err("%s: bad MM ID\n", __func__);
  1162. return -EINVAL;
  1163. }
  1164. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1165. &be_id, &cfg_data);
  1166. if (ret) {
  1167. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1168. return ret;
  1169. }
  1170. app_type = cfg_data.app_type;
  1171. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1172. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1173. }
  1174. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1175. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1176. int dspst_id, int stream_type,
  1177. uint32_t passthr_mode)
  1178. {
  1179. int i, j, session_type, path_type, port_type, topology;
  1180. int num_copps = 0;
  1181. struct route_payload payload;
  1182. u32 channels, sample_rate;
  1183. u16 bit_width = 16;
  1184. bool is_lsm;
  1185. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1186. __func__, fe_id, perf_mode, dspst_id,
  1187. stream_type, passthr_mode);
  1188. if (!is_mm_lsm_fe_id(fe_id)) {
  1189. /* bad ID assigned in machine driver */
  1190. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1191. return -EINVAL;
  1192. }
  1193. if (!route_check_fe_id_adm_support(fe_id)) {
  1194. /* ignore adm open if not supported for fe_id */
  1195. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1196. return 0;
  1197. }
  1198. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1199. session_type = SESSION_TYPE_RX;
  1200. if (passthr_mode != LEGACY_PCM)
  1201. path_type = ADM_PATH_COMPRESSED_RX;
  1202. else
  1203. path_type = ADM_PATH_PLAYBACK;
  1204. port_type = MSM_AFE_PORT_TYPE_RX;
  1205. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1206. session_type = SESSION_TYPE_TX;
  1207. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1208. path_type = ADM_PATH_COMPRESSED_TX;
  1209. else
  1210. path_type = ADM_PATH_LIVE_REC;
  1211. port_type = MSM_AFE_PORT_TYPE_TX;
  1212. } else {
  1213. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1214. return -EINVAL;
  1215. }
  1216. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1217. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1218. mutex_lock(&routing_lock);
  1219. payload.num_copps = 0; /* only RX needs to use payload */
  1220. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1221. /* re-enable EQ if active */
  1222. msm_qti_pp_send_eq_values(fe_id);
  1223. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1224. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1225. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1226. if (!is_be_dai_extproc(i) &&
  1227. (afe_get_port_type(msm_bedais[i].port_id) ==
  1228. port_type) &&
  1229. (msm_bedais[i].active) &&
  1230. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1231. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1232. /*
  1233. * check if ADM needs to be configured with different
  1234. * channel mapping than backend
  1235. */
  1236. if (!msm_bedais[i].adm_override_ch)
  1237. channels = msm_bedais[i].channel;
  1238. else
  1239. channels = msm_bedais[i].adm_override_ch;
  1240. bit_width = msm_routing_get_bit_width(
  1241. msm_bedais[i].format);
  1242. app_type =
  1243. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1244. if (app_type && is_lsm) {
  1245. app_type_idx =
  1246. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1247. sample_rate =
  1248. fe_dai_app_type_cfg[fe_id][session_type][i]
  1249. .sample_rate;
  1250. bit_width =
  1251. lsm_app_type_cfg[app_type_idx].bit_width;
  1252. } else if (app_type) {
  1253. app_type_idx =
  1254. msm_pcm_routing_get_app_type_idx(
  1255. app_type);
  1256. sample_rate =
  1257. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1258. bit_width =
  1259. app_type_cfg[app_type_idx].bit_width;
  1260. } else {
  1261. sample_rate = msm_bedais[i].sample_rate;
  1262. }
  1263. acdb_dev_id =
  1264. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1265. topology = msm_routing_get_adm_topology(fe_id,
  1266. session_type,
  1267. i);
  1268. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1269. || (passthr_mode ==
  1270. COMPRESSED_PASSTHROUGH_GEN)
  1271. || (passthr_mode ==
  1272. COMPRESSED_PASSTHROUGH_IEC61937))
  1273. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1274. pr_debug("%s: Before adm open topology %d\n", __func__,
  1275. topology);
  1276. copp_idx =
  1277. adm_open(msm_bedais[i].port_id,
  1278. path_type, sample_rate, channels,
  1279. topology, perf_mode, bit_width,
  1280. app_type, acdb_dev_id);
  1281. if ((copp_idx < 0) ||
  1282. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1283. pr_err("%s:adm open failed coppid:%d\n",
  1284. __func__, copp_idx);
  1285. mutex_unlock(&routing_lock);
  1286. return -EINVAL;
  1287. }
  1288. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1289. __func__, fe_id, session_type, i);
  1290. set_bit(copp_idx,
  1291. &session_copp_map[fe_id][session_type][i]);
  1292. if (msm_is_resample_needed(
  1293. sample_rate,
  1294. msm_bedais[i].sample_rate))
  1295. adm_copp_mfc_cfg(
  1296. msm_bedais[i].port_id, copp_idx,
  1297. msm_bedais[i].sample_rate);
  1298. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1299. unsigned long copp =
  1300. session_copp_map[fe_id][session_type][i];
  1301. if (test_bit(j, &copp)) {
  1302. payload.port_id[num_copps] =
  1303. msm_bedais[i].port_id;
  1304. payload.copp_idx[num_copps] = j;
  1305. payload.app_type[num_copps] =
  1306. fe_dai_app_type_cfg
  1307. [fe_id][session_type][i]
  1308. .app_type;
  1309. payload.acdb_dev_id[num_copps] =
  1310. fe_dai_app_type_cfg
  1311. [fe_id][session_type][i]
  1312. .acdb_dev_id;
  1313. payload.sample_rate[num_copps] =
  1314. fe_dai_app_type_cfg
  1315. [fe_id][session_type][i]
  1316. .sample_rate;
  1317. num_copps++;
  1318. }
  1319. }
  1320. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1321. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1322. && passthr_mode !=
  1323. COMPRESSED_PASSTHROUGH_IEC61937)
  1324. msm_routing_send_device_pp_params(
  1325. msm_bedais[i].port_id,
  1326. copp_idx, fe_id);
  1327. }
  1328. }
  1329. if (num_copps) {
  1330. payload.num_copps = num_copps;
  1331. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1332. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1333. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1334. }
  1335. mutex_unlock(&routing_lock);
  1336. return 0;
  1337. }
  1338. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1339. {
  1340. u32 session_id;
  1341. switch (val) {
  1342. case MSM_FRONTEND_DAI_QCHAT:
  1343. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1344. break;
  1345. case MSM_FRONTEND_DAI_VOIP:
  1346. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1347. break;
  1348. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1349. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1350. break;
  1351. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1352. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1353. break;
  1354. default:
  1355. session_id = 0;
  1356. }
  1357. pr_debug("%s session_id 0x%x", __func__, session_id);
  1358. return session_id;
  1359. }
  1360. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1361. int dspst_id, int stream_type)
  1362. {
  1363. int copp_idx = 0;
  1364. int sess_type = 0;
  1365. int i = 0, j = 0, be_id;
  1366. int ret = 0;
  1367. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1368. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1369. return 0;
  1370. }
  1371. if (!(channel_mixer[fe_id].enable)) {
  1372. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1373. __func__, fe_id);
  1374. return 0;
  1375. }
  1376. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1377. sess_type = SESSION_TYPE_RX;
  1378. else
  1379. sess_type = SESSION_TYPE_TX;
  1380. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1381. ++i) {
  1382. be_id = channel_input[fe_id][i] - 1;
  1383. channel_mixer[fe_id].input_channels[i] =
  1384. msm_bedais[be_id].channel;
  1385. if ((msm_bedais[be_id].active) &&
  1386. test_bit(fe_id,
  1387. &msm_bedais[be_id].fe_sessions[0])) {
  1388. unsigned long copp =
  1389. session_copp_map[fe_id][sess_type][be_id];
  1390. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1391. if (test_bit(j, &copp)) {
  1392. copp_idx = j;
  1393. break;
  1394. }
  1395. }
  1396. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1397. __func__,
  1398. fe_id, be_id, msm_bedais[be_id].channel,
  1399. copp_idx);
  1400. ret = adm_programable_channel_mixer(
  1401. msm_bedais[be_id].port_id,
  1402. copp_idx, dspst_id, sess_type,
  1403. channel_mixer + fe_id, i);
  1404. }
  1405. }
  1406. return ret;
  1407. }
  1408. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1409. int dspst_id, int stream_type)
  1410. {
  1411. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1412. struct route_payload payload;
  1413. u32 channels, sample_rate;
  1414. uint16_t bits_per_sample = 16;
  1415. uint32_t passthr_mode = LEGACY_PCM;
  1416. int ret = 0;
  1417. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1418. /* bad ID assigned in machine driver */
  1419. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1420. return -EINVAL;
  1421. }
  1422. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1423. session_type = SESSION_TYPE_RX;
  1424. path_type = ADM_PATH_PLAYBACK;
  1425. port_type = MSM_AFE_PORT_TYPE_RX;
  1426. } else {
  1427. session_type = SESSION_TYPE_TX;
  1428. path_type = ADM_PATH_LIVE_REC;
  1429. port_type = MSM_AFE_PORT_TYPE_TX;
  1430. }
  1431. mutex_lock(&routing_lock);
  1432. payload.num_copps = 0; /* only RX needs to use payload */
  1433. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1434. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1435. /* re-enable EQ if active */
  1436. msm_qti_pp_send_eq_values(fedai_id);
  1437. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1438. if (!is_be_dai_extproc(i) &&
  1439. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1440. (msm_bedais[i].active) &&
  1441. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1442. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1443. /*
  1444. * check if ADM needs to be configured with different
  1445. * channel mapping than backend
  1446. */
  1447. if (!msm_bedais[i].adm_override_ch)
  1448. channels = msm_bedais[i].channel;
  1449. else
  1450. channels = msm_bedais[i].adm_override_ch;
  1451. msm_bedais[i].passthr_mode[fedai_id] =
  1452. LEGACY_PCM;
  1453. bits_per_sample = msm_routing_get_bit_width(
  1454. msm_bedais[i].format);
  1455. app_type =
  1456. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1457. if (app_type) {
  1458. app_type_idx =
  1459. msm_pcm_routing_get_app_type_idx(app_type);
  1460. sample_rate =
  1461. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1462. .sample_rate;
  1463. bits_per_sample =
  1464. app_type_cfg[app_type_idx].bit_width;
  1465. } else
  1466. sample_rate = msm_bedais[i].sample_rate;
  1467. acdb_dev_id =
  1468. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1469. .acdb_dev_id;
  1470. topology = msm_routing_get_adm_topology(fedai_id,
  1471. session_type,
  1472. i);
  1473. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1474. sample_rate, channels, topology,
  1475. perf_mode, bits_per_sample,
  1476. app_type, acdb_dev_id);
  1477. if ((copp_idx < 0) ||
  1478. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1479. pr_err("%s: adm open failed copp_idx:%d\n",
  1480. __func__, copp_idx);
  1481. mutex_unlock(&routing_lock);
  1482. return -EINVAL;
  1483. }
  1484. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1485. __func__, fedai_id, session_type, i);
  1486. set_bit(copp_idx,
  1487. &session_copp_map[fedai_id][session_type][i]);
  1488. if (msm_is_resample_needed(
  1489. sample_rate,
  1490. msm_bedais[i].sample_rate))
  1491. adm_copp_mfc_cfg(
  1492. msm_bedais[i].port_id, copp_idx,
  1493. msm_bedais[i].sample_rate);
  1494. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1495. unsigned long copp =
  1496. session_copp_map[fedai_id][session_type][i];
  1497. if (test_bit(j, &copp)) {
  1498. payload.port_id[num_copps] =
  1499. msm_bedais[i].port_id;
  1500. payload.copp_idx[num_copps] = j;
  1501. payload.app_type[num_copps] =
  1502. fe_dai_app_type_cfg
  1503. [fedai_id][session_type]
  1504. [i].app_type;
  1505. payload.acdb_dev_id[num_copps] =
  1506. fe_dai_app_type_cfg
  1507. [fedai_id][session_type]
  1508. [i].acdb_dev_id;
  1509. payload.sample_rate[num_copps] =
  1510. fe_dai_app_type_cfg
  1511. [fedai_id][session_type]
  1512. [i].sample_rate;
  1513. num_copps++;
  1514. }
  1515. }
  1516. if ((perf_mode == LEGACY_PCM_MODE) &&
  1517. (msm_bedais[i].passthr_mode[fedai_id] ==
  1518. LEGACY_PCM))
  1519. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1520. copp_idx, topology,
  1521. channels);
  1522. }
  1523. }
  1524. if (num_copps) {
  1525. payload.num_copps = num_copps;
  1526. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1527. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1528. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1529. }
  1530. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1531. dspst_id, stream_type);
  1532. mutex_unlock(&routing_lock);
  1533. return ret;
  1534. }
  1535. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1536. int dspst_id, int stream_type,
  1537. struct msm_pcm_routing_evt event_info)
  1538. {
  1539. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1540. stream_type)) {
  1541. pr_err("%s: failed to reg phy stream\n", __func__);
  1542. return -EINVAL;
  1543. }
  1544. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1545. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1546. else
  1547. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1548. return 0;
  1549. }
  1550. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1551. {
  1552. int i, port_type, session_type, path_type, topology;
  1553. struct msm_pcm_routing_fdai_data *fdai;
  1554. if (!is_mm_lsm_fe_id(fedai_id)) {
  1555. /* bad ID assigned in machine driver */
  1556. pr_err("%s: bad MM ID\n", __func__);
  1557. return;
  1558. }
  1559. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1560. port_type = MSM_AFE_PORT_TYPE_RX;
  1561. session_type = SESSION_TYPE_RX;
  1562. path_type = ADM_PATH_PLAYBACK;
  1563. } else {
  1564. port_type = MSM_AFE_PORT_TYPE_TX;
  1565. session_type = SESSION_TYPE_TX;
  1566. path_type = ADM_PATH_LIVE_REC;
  1567. }
  1568. mutex_lock(&routing_lock);
  1569. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1570. if (!is_be_dai_extproc(i) &&
  1571. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1572. (msm_bedais[i].active) &&
  1573. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1574. int idx;
  1575. unsigned long copp =
  1576. session_copp_map[fedai_id][session_type][i];
  1577. fdai = &fe_dai_map[fedai_id][session_type];
  1578. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1579. if (test_bit(idx, &copp))
  1580. break;
  1581. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1582. pr_debug("%s: copp idx is invalid, exiting\n",
  1583. __func__);
  1584. continue;
  1585. }
  1586. topology = adm_get_topology_for_port_copp_idx(
  1587. msm_bedais[i].port_id, idx);
  1588. msm_routing_unload_topology(topology);
  1589. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1590. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1591. __func__, copp, fedai_id, session_type, i);
  1592. clear_bit(idx,
  1593. &session_copp_map[fedai_id][session_type][i]);
  1594. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1595. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1596. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1597. (msm_bedais[i].passthr_mode[fedai_id] ==
  1598. LEGACY_PCM))
  1599. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1600. topology);
  1601. }
  1602. }
  1603. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1604. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1605. mutex_unlock(&routing_lock);
  1606. }
  1607. /* Check if FE/BE route is set */
  1608. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1609. {
  1610. bool rc = false;
  1611. if (!is_mm_lsm_fe_id(fe_id)) {
  1612. /* recheck FE ID in the mixer control defined in this file */
  1613. pr_err("%s: bad MM ID\n", __func__);
  1614. return rc;
  1615. }
  1616. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1617. rc = true;
  1618. return rc;
  1619. }
  1620. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1621. {
  1622. int session_type, path_type, topology;
  1623. u32 channels, sample_rate;
  1624. uint16_t bits_per_sample = 16;
  1625. struct msm_pcm_routing_fdai_data *fdai;
  1626. uint32_t passthr_mode;
  1627. bool is_lsm;
  1628. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1629. if (!is_mm_lsm_fe_id(val)) {
  1630. /* recheck FE ID in the mixer control defined in this file */
  1631. pr_err("%s: bad MM ID\n", __func__);
  1632. return;
  1633. }
  1634. if (!route_check_fe_id_adm_support(val)) {
  1635. /* ignore adm open if not supported for fe_id */
  1636. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1637. return;
  1638. }
  1639. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1640. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1641. MSM_AFE_PORT_TYPE_RX) {
  1642. session_type = SESSION_TYPE_RX;
  1643. if (passthr_mode != LEGACY_PCM)
  1644. path_type = ADM_PATH_COMPRESSED_RX;
  1645. else
  1646. path_type = ADM_PATH_PLAYBACK;
  1647. } else {
  1648. session_type = SESSION_TYPE_TX;
  1649. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1650. path_type = ADM_PATH_COMPRESSED_TX;
  1651. else
  1652. path_type = ADM_PATH_LIVE_REC;
  1653. }
  1654. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1655. (val <= MSM_FRONTEND_DAI_LSM8);
  1656. mutex_lock(&routing_lock);
  1657. if (set) {
  1658. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1659. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1660. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1661. voc_start_playback(set, msm_bedais[reg].port_id);
  1662. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1663. fdai = &fe_dai_map[val][session_type];
  1664. if (msm_bedais[reg].active && fdai->strm_id !=
  1665. INVALID_SESSION) {
  1666. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1667. /*
  1668. * check if ADM needs to be configured with different
  1669. * channel mapping than backend
  1670. */
  1671. if (!msm_bedais[reg].adm_override_ch)
  1672. channels = msm_bedais[reg].channel;
  1673. else
  1674. channels = msm_bedais[reg].adm_override_ch;
  1675. if (session_type == SESSION_TYPE_TX &&
  1676. fdai->be_srate &&
  1677. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1678. pr_debug("%s: flush strm %d diff BE rates\n",
  1679. __func__, fdai->strm_id);
  1680. if (fdai->event_info.event_func)
  1681. fdai->event_info.event_func(
  1682. MSM_PCM_RT_EVT_BUF_RECFG,
  1683. fdai->event_info.priv_data);
  1684. fdai->be_srate = 0; /* might not need it */
  1685. }
  1686. bits_per_sample = msm_routing_get_bit_width(
  1687. msm_bedais[reg].format);
  1688. app_type =
  1689. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1690. if (app_type && is_lsm) {
  1691. app_type_idx =
  1692. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1693. sample_rate =
  1694. fe_dai_app_type_cfg[val][session_type][reg]
  1695. .sample_rate;
  1696. bits_per_sample =
  1697. lsm_app_type_cfg[app_type_idx].bit_width;
  1698. } else if (app_type) {
  1699. app_type_idx =
  1700. msm_pcm_routing_get_app_type_idx(app_type);
  1701. sample_rate =
  1702. fe_dai_app_type_cfg[val][session_type][reg]
  1703. .sample_rate;
  1704. bits_per_sample =
  1705. app_type_cfg[app_type_idx].bit_width;
  1706. } else
  1707. sample_rate = msm_bedais[reg].sample_rate;
  1708. topology = msm_routing_get_adm_topology(val,
  1709. session_type,
  1710. reg);
  1711. acdb_dev_id =
  1712. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1713. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1714. sample_rate, channels, topology,
  1715. fdai->perf_mode, bits_per_sample,
  1716. app_type, acdb_dev_id);
  1717. if ((copp_idx < 0) ||
  1718. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1719. pr_err("%s: adm open failed\n", __func__);
  1720. mutex_unlock(&routing_lock);
  1721. return;
  1722. }
  1723. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1724. __func__, val, session_type, reg);
  1725. set_bit(copp_idx,
  1726. &session_copp_map[val][session_type][reg]);
  1727. if (msm_is_resample_needed(
  1728. sample_rate,
  1729. msm_bedais[reg].sample_rate))
  1730. adm_copp_mfc_cfg(
  1731. msm_bedais[reg].port_id, copp_idx,
  1732. msm_bedais[reg].sample_rate);
  1733. if (session_type == SESSION_TYPE_RX &&
  1734. fdai->event_info.event_func)
  1735. fdai->event_info.event_func(
  1736. MSM_PCM_RT_EVT_DEVSWITCH,
  1737. fdai->event_info.priv_data);
  1738. msm_pcm_routing_build_matrix(val, session_type,
  1739. path_type,
  1740. fdai->perf_mode,
  1741. passthr_mode);
  1742. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1743. (passthr_mode == LEGACY_PCM))
  1744. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1745. copp_idx, topology,
  1746. channels);
  1747. }
  1748. } else {
  1749. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1750. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1751. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1752. voc_start_playback(set, msm_bedais[reg].port_id);
  1753. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1754. fdai = &fe_dai_map[val][session_type];
  1755. if (msm_bedais[reg].active && fdai->strm_id !=
  1756. INVALID_SESSION) {
  1757. int idx;
  1758. int port_id;
  1759. unsigned long copp =
  1760. session_copp_map[val][session_type][reg];
  1761. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1762. if (test_bit(idx, &copp))
  1763. break;
  1764. port_id = msm_bedais[reg].port_id;
  1765. topology = adm_get_topology_for_port_copp_idx(port_id,
  1766. idx);
  1767. msm_routing_unload_topology(topology);
  1768. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1769. idx);
  1770. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1771. __func__, copp, val, session_type, reg,
  1772. topology);
  1773. clear_bit(idx,
  1774. &session_copp_map[val][session_type][reg]);
  1775. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1776. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1777. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1778. (passthr_mode == LEGACY_PCM))
  1779. msm_pcm_routing_deinit_pp(
  1780. msm_bedais[reg].port_id,
  1781. topology);
  1782. msm_pcm_routing_build_matrix(val, session_type,
  1783. path_type,
  1784. fdai->perf_mode,
  1785. passthr_mode);
  1786. }
  1787. }
  1788. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1789. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1790. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1791. mutex_unlock(&routing_lock);
  1792. }
  1793. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1794. struct snd_ctl_elem_value *ucontrol)
  1795. {
  1796. struct soc_mixer_control *mc =
  1797. (struct soc_mixer_control *)kcontrol->private_value;
  1798. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1799. ucontrol->value.integer.value[0] = 1;
  1800. else
  1801. ucontrol->value.integer.value[0] = 0;
  1802. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1803. ucontrol->value.integer.value[0]);
  1804. return 0;
  1805. }
  1806. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1807. struct snd_ctl_elem_value *ucontrol)
  1808. {
  1809. struct snd_soc_dapm_widget *widget =
  1810. snd_soc_dapm_kcontrol_widget(kcontrol);
  1811. struct soc_mixer_control *mc =
  1812. (struct soc_mixer_control *)kcontrol->private_value;
  1813. struct snd_soc_dapm_update *update = NULL;
  1814. if (ucontrol->value.integer.value[0] &&
  1815. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1816. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1817. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1818. update);
  1819. } else if (!ucontrol->value.integer.value[0] &&
  1820. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1821. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1822. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1823. update);
  1824. }
  1825. return 1;
  1826. }
  1827. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1828. struct snd_ctl_elem_value *ucontrol)
  1829. {
  1830. struct soc_mixer_control *mc =
  1831. (struct soc_mixer_control *)kcontrol->private_value;
  1832. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1833. ucontrol->value.integer.value[0] = 1;
  1834. else
  1835. ucontrol->value.integer.value[0] = 0;
  1836. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1837. ucontrol->value.integer.value[0]);
  1838. return 0;
  1839. }
  1840. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1841. struct snd_ctl_elem_value *ucontrol)
  1842. {
  1843. struct snd_soc_dapm_widget *widget =
  1844. snd_soc_dapm_kcontrol_widget(kcontrol);
  1845. struct soc_mixer_control *mc =
  1846. (struct soc_mixer_control *)kcontrol->private_value;
  1847. struct snd_soc_dapm_update *update = NULL;
  1848. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1849. ucontrol->value.integer.value[0]);
  1850. if (ucontrol->value.integer.value[0]) {
  1851. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1852. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1853. snd_soc_dapm_mixer_update_power(widget->dapm,
  1854. kcontrol, 1, update);
  1855. } else if (!ucontrol->value.integer.value[0]) {
  1856. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1857. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1858. snd_soc_dapm_mixer_update_power(widget->dapm,
  1859. kcontrol, 0, update);
  1860. }
  1861. return 1;
  1862. }
  1863. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1864. {
  1865. u32 session_id = 0;
  1866. u16 path_type;
  1867. struct media_format_info voc_be_media_format;
  1868. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1869. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1870. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1871. __func__, val, session_id);
  1872. mutex_lock(&routing_lock);
  1873. if (set)
  1874. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1875. else
  1876. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1877. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1878. afe_get_port_type(msm_bedais[reg].port_id) ==
  1879. MSM_AFE_PORT_TYPE_RX) {
  1880. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1881. __func__, set, msm_bedais[reg].port_id);
  1882. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1883. }
  1884. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1885. MSM_AFE_PORT_TYPE_RX)
  1886. path_type = RX_PATH;
  1887. else
  1888. path_type = TX_PATH;
  1889. if (set) {
  1890. if (msm_bedais[reg].active) {
  1891. voc_set_route_flag(session_id, path_type, 1);
  1892. memset(&voc_be_media_format, 0,
  1893. sizeof(struct media_format_info));
  1894. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1895. voc_be_media_format.num_channels =
  1896. msm_bedais[reg].channel;
  1897. voc_be_media_format.sample_rate =
  1898. msm_bedais[reg].sample_rate;
  1899. voc_be_media_format.bits_per_sample =
  1900. msm_bedais[reg].format;
  1901. /* Defaulting this to 1 for voice call usecases */
  1902. voc_be_media_format.channel_mapping[0] = 1;
  1903. voc_set_device_config(session_id, path_type,
  1904. &voc_be_media_format);
  1905. if (voc_get_route_flag(session_id, TX_PATH) &&
  1906. voc_get_route_flag(session_id, RX_PATH))
  1907. voc_enable_device(session_id);
  1908. } else {
  1909. pr_debug("%s BE is not active\n", __func__);
  1910. }
  1911. } else {
  1912. voc_set_route_flag(session_id, path_type, 0);
  1913. voc_disable_device(session_id);
  1914. }
  1915. mutex_unlock(&routing_lock);
  1916. }
  1917. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1918. struct snd_ctl_elem_value *ucontrol)
  1919. {
  1920. struct soc_mixer_control *mc =
  1921. (struct soc_mixer_control *)kcontrol->private_value;
  1922. mutex_lock(&routing_lock);
  1923. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1924. ucontrol->value.integer.value[0] = 1;
  1925. else
  1926. ucontrol->value.integer.value[0] = 0;
  1927. mutex_unlock(&routing_lock);
  1928. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1929. ucontrol->value.integer.value[0]);
  1930. return 0;
  1931. }
  1932. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1933. struct snd_ctl_elem_value *ucontrol)
  1934. {
  1935. struct snd_soc_dapm_widget *widget =
  1936. snd_soc_dapm_kcontrol_widget(kcontrol);
  1937. struct soc_mixer_control *mc =
  1938. (struct soc_mixer_control *)kcontrol->private_value;
  1939. struct snd_soc_dapm_update *update = NULL;
  1940. if (ucontrol->value.integer.value[0]) {
  1941. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1942. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1943. update);
  1944. } else {
  1945. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1946. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1947. update);
  1948. }
  1949. return 1;
  1950. }
  1951. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1952. struct snd_ctl_elem_value *ucontrol)
  1953. {
  1954. struct soc_mixer_control *mc =
  1955. (struct soc_mixer_control *)kcontrol->private_value;
  1956. mutex_lock(&routing_lock);
  1957. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1958. ucontrol->value.integer.value[0] = 1;
  1959. else
  1960. ucontrol->value.integer.value[0] = 0;
  1961. mutex_unlock(&routing_lock);
  1962. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1963. ucontrol->value.integer.value[0]);
  1964. return 0;
  1965. }
  1966. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1967. struct snd_ctl_elem_value *ucontrol)
  1968. {
  1969. struct snd_soc_dapm_widget *widget =
  1970. snd_soc_dapm_kcontrol_widget(kcontrol);
  1971. struct soc_mixer_control *mc =
  1972. (struct soc_mixer_control *)kcontrol->private_value;
  1973. struct snd_soc_dapm_update *update = NULL;
  1974. if (ucontrol->value.integer.value[0]) {
  1975. mutex_lock(&routing_lock);
  1976. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1977. mutex_unlock(&routing_lock);
  1978. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1979. update);
  1980. } else {
  1981. mutex_lock(&routing_lock);
  1982. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1983. mutex_unlock(&routing_lock);
  1984. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1985. update);
  1986. }
  1987. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1988. ucontrol->value.integer.value[0]);
  1989. return 1;
  1990. }
  1991. /*
  1992. * Return the mapping between port ID and backend ID to enable the AFE callback
  1993. * to determine the acdb_dev_id from the port id
  1994. */
  1995. int msm_pcm_get_be_id_from_port_id(int port_id)
  1996. {
  1997. int i;
  1998. int be_id = -EINVAL;
  1999. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2000. if (msm_bedais[i].port_id == port_id) {
  2001. be_id = i;
  2002. break;
  2003. }
  2004. }
  2005. return be_id;
  2006. }
  2007. /*
  2008. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2009. * correct AFE calibration information by comparing the header information.
  2010. */
  2011. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2012. {
  2013. int acdb_id = -EINVAL;
  2014. int i = 0;
  2015. int session;
  2016. int port_type = afe_get_port_type(port_id);
  2017. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2018. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2019. __func__, port_id, be_id, port_type);
  2020. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2021. session = SESSION_TYPE_TX;
  2022. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2023. session = SESSION_TYPE_RX;
  2024. } else {
  2025. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2026. acdb_id = -EINVAL;
  2027. goto exit;
  2028. }
  2029. if (be_id < 0) {
  2030. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2031. goto exit;
  2032. }
  2033. mutex_lock(&routing_lock);
  2034. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2035. MSM_FRONTEND_DAI_MAX);
  2036. if (i < MSM_FRONTEND_DAI_MAX)
  2037. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2038. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2039. __func__, i, session, be_id, acdb_id);
  2040. mutex_unlock(&routing_lock);
  2041. exit:
  2042. return acdb_id;
  2043. }
  2044. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2045. struct snd_ctl_elem_value *ucontrol)
  2046. {
  2047. ucontrol->value.integer.value[0] = fm_switch_enable;
  2048. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2049. ucontrol->value.integer.value[0]);
  2050. return 0;
  2051. }
  2052. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2053. struct snd_ctl_elem_value *ucontrol)
  2054. {
  2055. struct snd_soc_dapm_widget *widget =
  2056. snd_soc_dapm_kcontrol_widget(kcontrol);
  2057. struct snd_soc_dapm_update *update = NULL;
  2058. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2059. ucontrol->value.integer.value[0]);
  2060. if (ucontrol->value.integer.value[0])
  2061. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2062. update);
  2063. else
  2064. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2065. update);
  2066. fm_switch_enable = ucontrol->value.integer.value[0];
  2067. return 1;
  2068. }
  2069. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2070. struct snd_ctl_elem_value *ucontrol)
  2071. {
  2072. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2073. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2074. ucontrol->value.integer.value[0]);
  2075. return 0;
  2076. }
  2077. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2078. struct snd_ctl_elem_value *ucontrol)
  2079. {
  2080. struct snd_soc_dapm_widget *widget =
  2081. snd_soc_dapm_kcontrol_widget(kcontrol);
  2082. struct snd_soc_dapm_update *update = NULL;
  2083. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2084. ucontrol->value.integer.value[0]);
  2085. if (ucontrol->value.integer.value[0])
  2086. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2087. 1, update);
  2088. else
  2089. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2090. 0, update);
  2091. hfp_switch_enable = ucontrol->value.integer.value[0];
  2092. return 1;
  2093. }
  2094. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2095. struct snd_ctl_elem_value *ucontrol)
  2096. {
  2097. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2098. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2099. ucontrol->value.integer.value[0]);
  2100. return 0;
  2101. }
  2102. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2103. struct snd_ctl_elem_value *ucontrol)
  2104. {
  2105. struct snd_soc_dapm_widget *widget =
  2106. snd_soc_dapm_kcontrol_widget(kcontrol);
  2107. struct snd_soc_dapm_update *update = NULL;
  2108. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2109. ucontrol->value.integer.value[0]);
  2110. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2111. if (a2dp_switch_enable)
  2112. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2113. 1, update);
  2114. else
  2115. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2116. 0, update);
  2117. return 1;
  2118. }
  2119. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2120. struct snd_ctl_elem_value *ucontrol)
  2121. {
  2122. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2123. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2124. ucontrol->value.integer.value[0]);
  2125. return 0;
  2126. }
  2127. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2128. struct snd_ctl_elem_value *ucontrol)
  2129. {
  2130. struct snd_soc_dapm_widget *widget =
  2131. snd_soc_dapm_kcontrol_widget(kcontrol);
  2132. struct snd_soc_dapm_update *update = NULL;
  2133. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2134. ucontrol->value.integer.value[0]);
  2135. if (ucontrol->value.integer.value[0])
  2136. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2137. update);
  2138. else
  2139. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2140. update);
  2141. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2142. return 1;
  2143. }
  2144. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2145. struct snd_ctl_elem_value *ucontrol)
  2146. {
  2147. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2148. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2149. ucontrol->value.integer.value[0]);
  2150. return 0;
  2151. }
  2152. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2153. struct snd_ctl_elem_value *ucontrol)
  2154. {
  2155. struct snd_soc_dapm_widget *widget =
  2156. snd_soc_dapm_kcontrol_widget(kcontrol);
  2157. struct snd_soc_dapm_update *update = NULL;
  2158. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2159. ucontrol->value.integer.value[0]);
  2160. if (ucontrol->value.integer.value[0])
  2161. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2162. update);
  2163. else
  2164. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2165. update);
  2166. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2167. return 1;
  2168. }
  2169. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2170. struct snd_ctl_elem_value *ucontrol)
  2171. {
  2172. ucontrol->value.integer.value[0] = usb_switch_enable;
  2173. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2174. ucontrol->value.integer.value[0]);
  2175. return 0;
  2176. }
  2177. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2178. struct snd_ctl_elem_value *ucontrol)
  2179. {
  2180. struct snd_soc_dapm_widget *widget =
  2181. snd_soc_dapm_kcontrol_widget(kcontrol);
  2182. struct snd_soc_dapm_update *update = NULL;
  2183. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2184. ucontrol->value.integer.value[0]);
  2185. if (ucontrol->value.integer.value[0])
  2186. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2187. 1, update);
  2188. else
  2189. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2190. 0, update);
  2191. usb_switch_enable = ucontrol->value.integer.value[0];
  2192. return 1;
  2193. }
  2194. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2195. struct snd_ctl_elem_value *ucontrol)
  2196. {
  2197. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2198. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2199. ucontrol->value.integer.value[0]);
  2200. return 0;
  2201. }
  2202. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2203. struct snd_ctl_elem_value *ucontrol)
  2204. {
  2205. struct snd_soc_dapm_widget *widget =
  2206. snd_soc_dapm_kcontrol_widget(kcontrol);
  2207. struct snd_soc_dapm_update *update = NULL;
  2208. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2209. ucontrol->value.integer.value[0]);
  2210. if (ucontrol->value.integer.value[0])
  2211. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2212. update);
  2213. else
  2214. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2215. update);
  2216. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2217. return 1;
  2218. }
  2219. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2220. struct snd_ctl_elem_value *ucontrol)
  2221. {
  2222. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2223. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2224. ucontrol->value.integer.value[0]);
  2225. return 0;
  2226. }
  2227. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2228. struct snd_ctl_elem_value *ucontrol)
  2229. {
  2230. struct snd_soc_dapm_widget *widget =
  2231. snd_soc_dapm_kcontrol_widget(kcontrol);
  2232. struct snd_soc_dapm_update *update = NULL;
  2233. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2234. ucontrol->value.integer.value[0]);
  2235. if (ucontrol->value.integer.value[0])
  2236. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2237. update);
  2238. else
  2239. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2240. update);
  2241. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2242. return 1;
  2243. }
  2244. static int msm_routing_get_tert_mi2s_switch_mixer(
  2245. struct snd_kcontrol *kcontrol,
  2246. struct snd_ctl_elem_value *ucontrol)
  2247. {
  2248. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2249. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2250. ucontrol->value.integer.value[0]);
  2251. return 0;
  2252. }
  2253. static int msm_routing_put_tert_mi2s_switch_mixer(
  2254. struct snd_kcontrol *kcontrol,
  2255. struct snd_ctl_elem_value *ucontrol)
  2256. {
  2257. struct snd_soc_dapm_widget *widget =
  2258. snd_soc_dapm_kcontrol_widget(kcontrol);
  2259. struct snd_soc_dapm_update *update = NULL;
  2260. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2261. ucontrol->value.integer.value[0]);
  2262. if (ucontrol->value.integer.value[0])
  2263. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2264. update);
  2265. else
  2266. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2267. update);
  2268. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2269. return 1;
  2270. }
  2271. static int msm_routing_get_quat_mi2s_switch_mixer(
  2272. struct snd_kcontrol *kcontrol,
  2273. struct snd_ctl_elem_value *ucontrol)
  2274. {
  2275. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2276. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2277. ucontrol->value.integer.value[0]);
  2278. return 0;
  2279. }
  2280. static int msm_routing_put_quat_mi2s_switch_mixer(
  2281. struct snd_kcontrol *kcontrol,
  2282. struct snd_ctl_elem_value *ucontrol)
  2283. {
  2284. struct snd_soc_dapm_widget *widget =
  2285. snd_soc_dapm_kcontrol_widget(kcontrol);
  2286. struct snd_soc_dapm_update *update = NULL;
  2287. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2288. ucontrol->value.integer.value[0]);
  2289. if (ucontrol->value.integer.value[0])
  2290. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2291. update);
  2292. else
  2293. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2294. update);
  2295. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2296. return 1;
  2297. }
  2298. static int msm_routing_get_quin_mi2s_switch_mixer(
  2299. struct snd_kcontrol *kcontrol,
  2300. struct snd_ctl_elem_value *ucontrol)
  2301. {
  2302. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2303. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2304. ucontrol->value.integer.value[0]);
  2305. return 0;
  2306. }
  2307. static int msm_routing_put_quin_mi2s_switch_mixer(
  2308. struct snd_kcontrol *kcontrol,
  2309. struct snd_ctl_elem_value *ucontrol)
  2310. {
  2311. struct snd_soc_dapm_widget *widget =
  2312. snd_soc_dapm_kcontrol_widget(kcontrol);
  2313. struct snd_soc_dapm_update *update = NULL;
  2314. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2315. ucontrol->value.integer.value[0]);
  2316. if (ucontrol->value.integer.value[0])
  2317. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2318. update);
  2319. else
  2320. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2321. update);
  2322. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2323. return 1;
  2324. }
  2325. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2326. struct snd_ctl_elem_value *ucontrol)
  2327. {
  2328. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2329. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2330. ucontrol->value.integer.value[0]);
  2331. return 0;
  2332. }
  2333. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2334. struct snd_ctl_elem_value *ucontrol)
  2335. {
  2336. struct snd_soc_dapm_widget *widget =
  2337. snd_soc_dapm_kcontrol_widget(kcontrol);
  2338. struct snd_soc_dapm_update *update = NULL;
  2339. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2340. ucontrol->value.integer.value[0]);
  2341. if (ucontrol->value.integer.value[0])
  2342. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2343. update);
  2344. else
  2345. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2346. update);
  2347. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2348. return 1;
  2349. }
  2350. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2351. struct snd_ctl_elem_value *ucontrol)
  2352. {
  2353. ucontrol->value.integer.value[0] = lsm_port_index;
  2354. return 0;
  2355. }
  2356. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2357. struct snd_ctl_elem_value *ucontrol)
  2358. {
  2359. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2360. int mux = ucontrol->value.enumerated.item[0];
  2361. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2362. if (mux >= e->items) {
  2363. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2364. return -EINVAL;
  2365. }
  2366. pr_debug("%s: LSM enable %ld\n", __func__,
  2367. ucontrol->value.integer.value[0]);
  2368. switch (ucontrol->value.integer.value[0]) {
  2369. case 1:
  2370. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2371. break;
  2372. case 2:
  2373. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2374. break;
  2375. case 3:
  2376. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2377. break;
  2378. case 4:
  2379. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2380. break;
  2381. case 5:
  2382. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2383. break;
  2384. case 6:
  2385. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2386. break;
  2387. case 7:
  2388. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2389. break;
  2390. case 8:
  2391. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2392. break;
  2393. case 9:
  2394. lsm_port = ADM_LSM_PORT_ID;
  2395. break;
  2396. case 10:
  2397. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2398. break;
  2399. case 11:
  2400. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2401. break;
  2402. case 12:
  2403. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2404. break;
  2405. default:
  2406. pr_err("Default lsm port");
  2407. break;
  2408. }
  2409. set_lsm_port(lsm_port);
  2410. lsm_port_index = ucontrol->value.integer.value[0];
  2411. return 0;
  2412. }
  2413. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2414. struct snd_ctl_elem_value *ucontrol)
  2415. {
  2416. int i;
  2417. u16 port_id;
  2418. enum afe_mad_type mad_type;
  2419. pr_debug("%s: enter\n", __func__);
  2420. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2421. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2422. strlen(lsm_port_text[i])))
  2423. break;
  2424. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2425. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2426. return -EINVAL;
  2427. }
  2428. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2429. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2430. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2431. strlen(lsm_port_text[7])))
  2432. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2433. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2434. strlen(lsm_port_text[8])))
  2435. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2436. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2437. strlen(lsm_port_text[10])))
  2438. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2439. mad_type = afe_port_get_mad_type(port_id);
  2440. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2441. mad_type);
  2442. switch (mad_type) {
  2443. case MAD_HW_NONE:
  2444. ucontrol->value.integer.value[0] = MADNONE;
  2445. break;
  2446. case MAD_HW_AUDIO:
  2447. ucontrol->value.integer.value[0] = MADAUDIO;
  2448. break;
  2449. case MAD_HW_BEACON:
  2450. ucontrol->value.integer.value[0] = MADBEACON;
  2451. break;
  2452. case MAD_HW_ULTRASOUND:
  2453. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2454. break;
  2455. case MAD_SW_AUDIO:
  2456. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2457. break;
  2458. default:
  2459. WARN(1, "Unknown\n");
  2460. return -EINVAL;
  2461. }
  2462. return 0;
  2463. }
  2464. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2465. struct snd_ctl_elem_value *ucontrol)
  2466. {
  2467. int i;
  2468. u16 port_id;
  2469. enum afe_mad_type mad_type;
  2470. pr_debug("%s: enter\n", __func__);
  2471. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2472. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2473. strlen(lsm_port_text[i])))
  2474. break;
  2475. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2476. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2477. return -EINVAL;
  2478. }
  2479. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2480. switch (ucontrol->value.integer.value[0]) {
  2481. case MADNONE:
  2482. mad_type = MAD_HW_NONE;
  2483. break;
  2484. case MADAUDIO:
  2485. mad_type = MAD_HW_AUDIO;
  2486. break;
  2487. case MADBEACON:
  2488. mad_type = MAD_HW_BEACON;
  2489. break;
  2490. case MADULTRASOUND:
  2491. mad_type = MAD_HW_ULTRASOUND;
  2492. break;
  2493. case MADSWAUDIO:
  2494. mad_type = MAD_SW_AUDIO;
  2495. break;
  2496. default:
  2497. WARN(1, "Unknown\n");
  2498. return -EINVAL;
  2499. }
  2500. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2501. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2502. strlen(lsm_port_text[7])))
  2503. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2504. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2505. strlen(lsm_port_text[8])))
  2506. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2507. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2508. strlen(lsm_port_text[10])))
  2509. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2510. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2511. mad_type);
  2512. return afe_port_set_mad_type(port_id, mad_type);
  2513. }
  2514. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2515. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2516. adm_override_chs_text);
  2517. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2518. {
  2519. int backend_id;
  2520. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2521. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2522. } else {
  2523. pr_err("%s: unsupported backend id: %s",
  2524. __func__, kcontrol->id.name);
  2525. return -EINVAL;
  2526. }
  2527. return backend_id;
  2528. }
  2529. static int msm_routing_adm_channel_config_get(
  2530. struct snd_kcontrol *kcontrol,
  2531. struct snd_ctl_elem_value *ucontrol)
  2532. {
  2533. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2534. if (backend_id >= 0) {
  2535. mutex_lock(&routing_lock);
  2536. ucontrol->value.integer.value[0] =
  2537. msm_bedais[backend_id].adm_override_ch;
  2538. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2539. ucontrol->value.integer.value[0], backend_id);
  2540. mutex_unlock(&routing_lock);
  2541. }
  2542. return 0;
  2543. }
  2544. static int msm_routing_adm_channel_config_put(
  2545. struct snd_kcontrol *kcontrol,
  2546. struct snd_ctl_elem_value *ucontrol)
  2547. {
  2548. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2549. if (backend_id >= 0) {
  2550. mutex_lock(&routing_lock);
  2551. msm_bedais[backend_id].adm_override_ch =
  2552. ucontrol->value.integer.value[0];
  2553. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2554. __func__, backend_id,
  2555. msm_bedais[backend_id].adm_override_ch);
  2556. mutex_unlock(&routing_lock);
  2557. }
  2558. return 0;
  2559. }
  2560. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2561. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2562. msm_routing_adm_channel_config_get,
  2563. msm_routing_adm_channel_config_put),
  2564. };
  2565. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2566. struct snd_ctl_elem_value *ucontrol)
  2567. {
  2568. mutex_lock(&routing_lock);
  2569. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2570. mutex_unlock(&routing_lock);
  2571. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2572. ucontrol->value.integer.value[0]);
  2573. return 0;
  2574. };
  2575. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2576. struct snd_ctl_elem_value *ucontrol)
  2577. {
  2578. struct aanc_data aanc_info;
  2579. mutex_lock(&routing_lock);
  2580. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2581. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2582. ucontrol->value.integer.value[0]);
  2583. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2584. if (ucontrol->value.integer.value[0] == 0) {
  2585. aanc_info.aanc_active = false;
  2586. aanc_info.aanc_tx_port = 0;
  2587. aanc_info.aanc_rx_port = 0;
  2588. } else {
  2589. aanc_info.aanc_active = true;
  2590. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2591. aanc_info.aanc_tx_port =
  2592. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2593. }
  2594. afe_set_aanc_info(&aanc_info);
  2595. mutex_unlock(&routing_lock);
  2596. return 0;
  2597. };
  2598. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2599. struct snd_ctl_elem_value *ucontrol)
  2600. {
  2601. int idx = 0, shift = 0;
  2602. struct soc_mixer_control *mc =
  2603. (struct soc_mixer_control *)kcontrol->private_value;
  2604. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2605. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2606. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2607. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2608. return -EINVAL;
  2609. }
  2610. if (test_bit(shift,
  2611. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2612. ucontrol->value.integer.value[0] = 1;
  2613. else
  2614. ucontrol->value.integer.value[0] = 0;
  2615. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2616. ucontrol->value.integer.value[0]);
  2617. return 0;
  2618. }
  2619. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2620. struct snd_ctl_elem_value *ucontrol)
  2621. {
  2622. int idx = 0, shift = 0;
  2623. struct soc_mixer_control *mc =
  2624. (struct soc_mixer_control *)kcontrol->private_value;
  2625. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2626. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2627. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2628. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2629. return -EINVAL;
  2630. }
  2631. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2632. __func__, mc->shift, mc->rshift,
  2633. ucontrol->value.integer.value[0], idx, shift);
  2634. if (ucontrol->value.integer.value[0]) {
  2635. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2636. msm_bedais[mc->rshift].port_id);
  2637. set_bit(shift,
  2638. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2639. } else {
  2640. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2641. msm_bedais[mc->rshift].port_id);
  2642. clear_bit(shift,
  2643. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2644. }
  2645. return 1;
  2646. }
  2647. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2648. struct snd_ctl_elem_value *ucontrol)
  2649. {
  2650. u16 fe_id = 0;
  2651. fe_id = ((struct soc_mixer_control *)
  2652. kcontrol->private_value)->shift;
  2653. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2654. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2655. return -EINVAL;
  2656. }
  2657. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2658. return 0;
  2659. }
  2660. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2661. struct snd_ctl_elem_value *ucontrol)
  2662. {
  2663. u16 fe_id = 0;
  2664. fe_id = ((struct soc_mixer_control *)
  2665. kcontrol->private_value)->shift;
  2666. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2667. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2668. return -EINVAL;
  2669. }
  2670. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2671. return 1;
  2672. }
  2673. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2674. struct snd_ctl_elem_value *ucontrol)
  2675. {
  2676. u16 fe_id = 0;
  2677. fe_id = ((struct soc_multi_mixer_control *)
  2678. kcontrol->private_value)->shift;
  2679. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2680. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2681. return -EINVAL;
  2682. }
  2683. ucontrol->value.integer.value[0] =
  2684. channel_mixer[fe_id].output_channel;
  2685. return 0;
  2686. }
  2687. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2688. struct snd_ctl_elem_value *ucontrol)
  2689. {
  2690. u16 fe_id = 0;
  2691. fe_id = ((struct soc_multi_mixer_control *)
  2692. kcontrol->private_value)->shift;
  2693. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2694. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2695. return -EINVAL;
  2696. }
  2697. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2698. fe_id,
  2699. (unsigned int)(ucontrol->value.integer.value[0]));
  2700. channel_mixer[fe_id].output_channel =
  2701. (unsigned int)(ucontrol->value.integer.value[0]);
  2702. return 1;
  2703. }
  2704. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2705. /* If new backend is added, need update this array */
  2706. static const char *const be_name[] = {
  2707. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2708. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2709. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2710. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2711. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2712. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2713. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2714. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2715. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2716. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2717. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2718. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2719. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2720. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2721. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2722. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2723. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2724. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2725. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2726. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2727. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2728. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2729. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2730. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2731. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2732. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2733. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2734. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2735. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2736. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2737. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2738. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2739. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2740. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2741. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2742. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2743. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2744. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2745. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2746. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2747. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2748. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2749. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1",
  2750. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2751. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2752. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2753. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2754. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2755. };
  2756. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2757. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2758. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2759. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2760. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2761. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2762. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2763. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2764. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2765. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2766. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2767. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2768. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2769. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2770. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2771. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2772. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2773. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2774. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2775. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2776. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2777. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2778. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2779. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2780. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2781. unsigned int channels,
  2782. unsigned int items, const char *const names[])
  2783. {
  2784. if (uinfo->value.enumerated.item >= items)
  2785. uinfo->value.enumerated.item = items - 1;
  2786. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2787. sizeof(uinfo->value.enumerated.name),
  2788. "ALSA: too long item name '%s'\n",
  2789. names[uinfo->value.enumerated.item]);
  2790. strlcpy(uinfo->value.enumerated.name,
  2791. names[uinfo->value.enumerated.item],
  2792. sizeof(uinfo->value.enumerated.name));
  2793. return 0;
  2794. }
  2795. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2796. struct snd_ctl_elem_info *uinfo)
  2797. {
  2798. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2799. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2800. uinfo->count = 1;
  2801. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2802. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2803. return 0;
  2804. }
  2805. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2806. struct snd_ctl_elem_value *ucontrol)
  2807. {
  2808. u16 fe_id = 0;
  2809. fe_id = ((struct soc_enum *)
  2810. kcontrol->private_value)->shift_l;
  2811. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2812. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2813. return -EINVAL;
  2814. }
  2815. pr_debug("%s: FE %d %s\n", __func__,
  2816. fe_id,
  2817. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2818. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2819. return 0;
  2820. }
  2821. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2822. struct snd_ctl_elem_value *ucontrol)
  2823. {
  2824. u16 fe_id = 0;
  2825. fe_id = ((struct soc_enum *)
  2826. kcontrol->private_value)->shift_l;
  2827. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2828. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2829. return -EINVAL;
  2830. }
  2831. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2832. pr_debug("%s: %s FE %d\n", __func__,
  2833. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2834. fe_id);
  2835. return 0;
  2836. }
  2837. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2838. struct snd_ctl_elem_info *uinfo)
  2839. {
  2840. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2841. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2842. uinfo->count = 1;
  2843. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2844. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2845. return 0;
  2846. }
  2847. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2848. struct snd_ctl_elem_value *ucontrol)
  2849. {
  2850. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2851. u16 fe_id = 0, in_ch = 0;
  2852. fe_id = e->shift_l;
  2853. in_ch = e->shift_r;
  2854. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2855. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2856. return -EINVAL;
  2857. }
  2858. if (in_ch >= ADM_MAX_CHANNELS) {
  2859. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2860. return -EINVAL;
  2861. }
  2862. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2863. return 1;
  2864. }
  2865. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2866. struct snd_ctl_elem_value *ucontrol)
  2867. {
  2868. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2869. u16 fe_id = 0, in_ch = 0;
  2870. fe_id = e->shift_l;
  2871. in_ch = e->shift_r;
  2872. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2873. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2874. return -EINVAL;
  2875. }
  2876. if (in_ch >= ADM_MAX_CHANNELS) {
  2877. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2878. return -EINVAL;
  2879. }
  2880. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2881. return 1;
  2882. }
  2883. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2884. struct snd_ctl_elem_info *uinfo)
  2885. {
  2886. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2887. uinfo->count = ADM_MAX_CHANNELS;
  2888. uinfo->value.integer.min = 0;
  2889. uinfo->value.integer.max = WEIGHT_0_DB;
  2890. return 0;
  2891. }
  2892. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2893. struct snd_ctl_elem_value *ucontrol)
  2894. {
  2895. u16 fe_id = 0, out_ch = 0;
  2896. int i, weight;
  2897. fe_id = ((struct soc_multi_mixer_control *)
  2898. kcontrol->private_value)->shift;
  2899. out_ch = ((struct soc_multi_mixer_control *)
  2900. kcontrol->private_value)->rshift;
  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 (out_ch >= ADM_MAX_CHANNELS) {
  2906. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2907. return -EINVAL;
  2908. }
  2909. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2910. __func__, fe_id,
  2911. ucontrol->value.integer.value[0],
  2912. ucontrol->value.integer.value[1],
  2913. ucontrol->value.integer.value[2],
  2914. ucontrol->value.integer.value[3],
  2915. ucontrol->value.integer.value[4],
  2916. ucontrol->value.integer.value[5],
  2917. ucontrol->value.integer.value[6],
  2918. ucontrol->value.integer.value[7]);
  2919. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2920. weight = ucontrol->value.integer.value[i];
  2921. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2922. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2923. __func__, fe_id, out_ch, i,
  2924. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2925. }
  2926. return 0;
  2927. }
  2928. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2929. struct snd_ctl_elem_value *ucontrol)
  2930. {
  2931. u16 fe_id = 0, out_ch = 0;
  2932. int i;
  2933. fe_id = ((struct soc_multi_mixer_control *)
  2934. kcontrol->private_value)->shift;
  2935. out_ch = ((struct soc_multi_mixer_control *)
  2936. kcontrol->private_value)->rshift;
  2937. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2938. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2939. return -EINVAL;
  2940. }
  2941. if (out_ch >= ADM_MAX_CHANNELS) {
  2942. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2943. return -EINVAL;
  2944. }
  2945. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2946. ucontrol->value.integer.value[i] =
  2947. channel_mixer[fe_id].channel_weight[out_ch][i];
  2948. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2949. __func__, fe_id,
  2950. ucontrol->value.integer.value[0],
  2951. ucontrol->value.integer.value[1],
  2952. ucontrol->value.integer.value[2],
  2953. ucontrol->value.integer.value[3],
  2954. ucontrol->value.integer.value[4],
  2955. ucontrol->value.integer.value[5],
  2956. ucontrol->value.integer.value[6],
  2957. ucontrol->value.integer.value[7]);
  2958. return 0;
  2959. }
  2960. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2961. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2962. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2963. msm_pcm_get_channel_rule_index,
  2964. msm_pcm_put_channel_rule_index),
  2965. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2966. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2967. msm_pcm_get_channel_rule_index,
  2968. msm_pcm_put_channel_rule_index),
  2969. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2970. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2971. msm_pcm_get_channel_rule_index,
  2972. msm_pcm_put_channel_rule_index),
  2973. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2974. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2975. msm_pcm_get_channel_rule_index,
  2976. msm_pcm_put_channel_rule_index),
  2977. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2978. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2979. msm_pcm_get_channel_rule_index,
  2980. msm_pcm_put_channel_rule_index),
  2981. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2982. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2983. msm_pcm_get_channel_rule_index,
  2984. msm_pcm_put_channel_rule_index),
  2985. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2986. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2987. msm_pcm_get_out_chs,
  2988. msm_pcm_put_out_chs),
  2989. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2990. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2991. msm_pcm_get_out_chs,
  2992. msm_pcm_put_out_chs),
  2993. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2994. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2995. msm_pcm_get_out_chs,
  2996. msm_pcm_put_out_chs),
  2997. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2998. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2999. msm_pcm_get_out_chs,
  3000. msm_pcm_put_out_chs),
  3001. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3002. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3003. msm_pcm_get_out_chs,
  3004. msm_pcm_put_out_chs),
  3005. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3006. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3007. msm_pcm_get_out_chs,
  3008. msm_pcm_put_out_chs),
  3009. {
  3010. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3011. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3012. .name = "MultiMedia1 Channel Mixer",
  3013. .info = msm_pcm_channel_mixer_info,
  3014. .get = msm_pcm_channel_mixer_get,
  3015. .put = msm_pcm_channel_mixer_put,
  3016. .private_value = (unsigned long)&(mm1_channel_mux)
  3017. },
  3018. {
  3019. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3021. .name = "MultiMedia2 Channel Mixer",
  3022. .info = msm_pcm_channel_mixer_info,
  3023. .get = msm_pcm_channel_mixer_get,
  3024. .put = msm_pcm_channel_mixer_put,
  3025. .private_value = (unsigned long)&(mm2_channel_mux)
  3026. },
  3027. {
  3028. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3029. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3030. .name = "MultiMedia3 Channel Mixer",
  3031. .info = msm_pcm_channel_mixer_info,
  3032. .get = msm_pcm_channel_mixer_get,
  3033. .put = msm_pcm_channel_mixer_put,
  3034. .private_value = (unsigned long)&(mm3_channel_mux)
  3035. },
  3036. {
  3037. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3038. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3039. .name = "MultiMedia4 Channel Mixer",
  3040. .info = msm_pcm_channel_mixer_info,
  3041. .get = msm_pcm_channel_mixer_get,
  3042. .put = msm_pcm_channel_mixer_put,
  3043. .private_value = (unsigned long)&(mm4_channel_mux)
  3044. },
  3045. {
  3046. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3047. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3048. .name = "MultiMedia1 Output Channel1",
  3049. .info = msm_pcm_channel_weight_info,
  3050. .get = msm_pcm_channel_weight_get,
  3051. .put = msm_pcm_channel_weight_put,
  3052. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3053. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3054. },
  3055. {
  3056. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3057. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3058. .name = "MultiMedia1 Output Channel2",
  3059. .info = msm_pcm_channel_weight_info,
  3060. .get = msm_pcm_channel_weight_get,
  3061. .put = msm_pcm_channel_weight_put,
  3062. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3063. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3064. },
  3065. {
  3066. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3067. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3068. .name = "MultiMedia1 Output Channel3",
  3069. .info = msm_pcm_channel_weight_info,
  3070. .get = msm_pcm_channel_weight_get,
  3071. .put = msm_pcm_channel_weight_put,
  3072. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3073. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3074. },
  3075. {
  3076. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3077. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3078. .name = "MultiMedia1 Output Channel4",
  3079. .info = msm_pcm_channel_weight_info,
  3080. .get = msm_pcm_channel_weight_get,
  3081. .put = msm_pcm_channel_weight_put,
  3082. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3083. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3084. },
  3085. {
  3086. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3087. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3088. .name = "MultiMedia1 Output Channel5",
  3089. .info = msm_pcm_channel_weight_info,
  3090. .get = msm_pcm_channel_weight_get,
  3091. .put = msm_pcm_channel_weight_put,
  3092. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3093. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3094. },
  3095. {
  3096. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3097. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3098. .name = "MultiMedia1 Output Channel6",
  3099. .info = msm_pcm_channel_weight_info,
  3100. .get = msm_pcm_channel_weight_get,
  3101. .put = msm_pcm_channel_weight_put,
  3102. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3103. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3104. },
  3105. {
  3106. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3107. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3108. .name = "MultiMedia1 Output Channel7",
  3109. .info = msm_pcm_channel_weight_info,
  3110. .get = msm_pcm_channel_weight_get,
  3111. .put = msm_pcm_channel_weight_put,
  3112. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3113. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3114. },
  3115. {
  3116. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3117. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3118. .name = "MultiMedia1 Output Channel8",
  3119. .info = msm_pcm_channel_weight_info,
  3120. .get = msm_pcm_channel_weight_get,
  3121. .put = msm_pcm_channel_weight_put,
  3122. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3123. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3124. },
  3125. {
  3126. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3127. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3128. .name = "MultiMedia2 Output Channel1",
  3129. .info = msm_pcm_channel_weight_info,
  3130. .get = msm_pcm_channel_weight_get,
  3131. .put = msm_pcm_channel_weight_put,
  3132. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3133. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3134. },
  3135. {
  3136. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3137. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3138. .name = "MultiMedia2 Output Channel2",
  3139. .info = msm_pcm_channel_weight_info,
  3140. .get = msm_pcm_channel_weight_get,
  3141. .put = msm_pcm_channel_weight_put,
  3142. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3143. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3144. },
  3145. {
  3146. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3147. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3148. .name = "MultiMedia2 Output Channel3",
  3149. .info = msm_pcm_channel_weight_info,
  3150. .get = msm_pcm_channel_weight_get,
  3151. .put = msm_pcm_channel_weight_put,
  3152. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3153. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3154. },
  3155. {
  3156. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3157. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3158. .name = "MultiMedia3 Output Channel1",
  3159. .info = msm_pcm_channel_weight_info,
  3160. .get = msm_pcm_channel_weight_get,
  3161. .put = msm_pcm_channel_weight_put,
  3162. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3163. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3164. },
  3165. {
  3166. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3167. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3168. .name = "MultiMedia3 Output Channel2",
  3169. .info = msm_pcm_channel_weight_info,
  3170. .get = msm_pcm_channel_weight_get,
  3171. .put = msm_pcm_channel_weight_put,
  3172. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3173. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3174. },
  3175. {
  3176. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3177. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3178. .name = "MultiMedia1 Channel1",
  3179. .info = msm_pcm_channel_input_be_info,
  3180. .get = msm_pcm_channel_input_be_get,
  3181. .put = msm_pcm_channel_input_be_put,
  3182. .private_value = (unsigned long)&(mm1_ch1_enum)
  3183. },
  3184. {
  3185. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3186. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3187. .name = "MultiMedia1 Channel2",
  3188. .info = msm_pcm_channel_input_be_info,
  3189. .get = msm_pcm_channel_input_be_get,
  3190. .put = msm_pcm_channel_input_be_put,
  3191. .private_value = (unsigned long)&(mm1_ch2_enum)
  3192. },
  3193. {
  3194. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3195. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3196. .name = "MultiMedia1 Channel3",
  3197. .info = msm_pcm_channel_input_be_info,
  3198. .get = msm_pcm_channel_input_be_get,
  3199. .put = msm_pcm_channel_input_be_put,
  3200. .private_value = (unsigned long)&(mm1_ch3_enum)
  3201. },
  3202. {
  3203. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3204. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3205. .name = "MultiMedia1 Channel4",
  3206. .info = msm_pcm_channel_input_be_info,
  3207. .get = msm_pcm_channel_input_be_get,
  3208. .put = msm_pcm_channel_input_be_put,
  3209. .private_value = (unsigned long)&(mm1_ch4_enum)
  3210. },
  3211. {
  3212. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3213. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3214. .name = "MultiMedia1 Channel5",
  3215. .info = msm_pcm_channel_input_be_info,
  3216. .get = msm_pcm_channel_input_be_get,
  3217. .put = msm_pcm_channel_input_be_put,
  3218. .private_value = (unsigned long)&(mm1_ch5_enum)
  3219. },
  3220. {
  3221. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3222. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3223. .name = "MultiMedia1 Channel6",
  3224. .info = msm_pcm_channel_input_be_info,
  3225. .get = msm_pcm_channel_input_be_get,
  3226. .put = msm_pcm_channel_input_be_put,
  3227. .private_value = (unsigned long)&(mm1_ch6_enum)
  3228. },
  3229. {
  3230. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3231. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3232. .name = "MultiMedia1 Channel7",
  3233. .info = msm_pcm_channel_input_be_info,
  3234. .get = msm_pcm_channel_input_be_get,
  3235. .put = msm_pcm_channel_input_be_put,
  3236. .private_value = (unsigned long)&(mm1_ch7_enum)
  3237. },
  3238. {
  3239. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3240. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3241. .name = "MultiMedia1 Channel8",
  3242. .info = msm_pcm_channel_input_be_info,
  3243. .get = msm_pcm_channel_input_be_get,
  3244. .put = msm_pcm_channel_input_be_put,
  3245. .private_value = (unsigned long)&(mm1_ch8_enum)
  3246. },
  3247. };
  3248. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3249. struct snd_ctl_elem_value *ucontrol)
  3250. {
  3251. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3252. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3253. ucontrol->value.integer.value[0]);
  3254. return 0;
  3255. }
  3256. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3257. struct snd_ctl_elem_value *ucontrol)
  3258. {
  3259. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3260. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3261. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3262. return 0;
  3263. }
  3264. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3265. "Four", "Five", "Six", "Seven", "Eight"};
  3266. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3267. struct snd_ctl_elem_value *ucontrol)
  3268. {
  3269. switch (msm_ec_ref_bit_format) {
  3270. case SNDRV_PCM_FORMAT_S24_LE:
  3271. ucontrol->value.integer.value[0] = 2;
  3272. break;
  3273. case SNDRV_PCM_FORMAT_S16_LE:
  3274. ucontrol->value.integer.value[0] = 1;
  3275. break;
  3276. default:
  3277. ucontrol->value.integer.value[0] = 0;
  3278. break;
  3279. }
  3280. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3281. __func__, ucontrol->value.integer.value[0]);
  3282. return 0;
  3283. }
  3284. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3285. struct snd_ctl_elem_value *ucontrol)
  3286. {
  3287. u16 bit_width = 0;
  3288. switch (ucontrol->value.integer.value[0]) {
  3289. case 2:
  3290. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3291. break;
  3292. case 1:
  3293. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3294. break;
  3295. default:
  3296. msm_ec_ref_bit_format = 0;
  3297. break;
  3298. }
  3299. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3300. bit_width = 16;
  3301. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3302. bit_width = 24;
  3303. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3304. __func__, msm_ec_ref_bit_format);
  3305. adm_ec_ref_rx_bit_width(bit_width);
  3306. return 0;
  3307. }
  3308. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3309. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3310. struct snd_ctl_elem_value *ucontrol)
  3311. {
  3312. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3313. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3314. __func__, ucontrol->value.integer.value[0]);
  3315. return 0;
  3316. }
  3317. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3318. struct snd_ctl_elem_value *ucontrol)
  3319. {
  3320. switch (ucontrol->value.integer.value[0]) {
  3321. case 0:
  3322. msm_ec_ref_sampling_rate = 0;
  3323. break;
  3324. case 1:
  3325. msm_ec_ref_sampling_rate = 8000;
  3326. break;
  3327. case 2:
  3328. msm_ec_ref_sampling_rate = 16000;
  3329. break;
  3330. case 3:
  3331. msm_ec_ref_sampling_rate = 32000;
  3332. break;
  3333. case 4:
  3334. msm_ec_ref_sampling_rate = 44100;
  3335. break;
  3336. case 5:
  3337. msm_ec_ref_sampling_rate = 48000;
  3338. break;
  3339. case 6:
  3340. msm_ec_ref_sampling_rate = 96000;
  3341. break;
  3342. case 7:
  3343. msm_ec_ref_sampling_rate = 192000;
  3344. break;
  3345. case 8:
  3346. msm_ec_ref_sampling_rate = 384000;
  3347. break;
  3348. default:
  3349. msm_ec_ref_sampling_rate = 48000;
  3350. break;
  3351. }
  3352. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3353. __func__, msm_ec_ref_sampling_rate);
  3354. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3355. return 0;
  3356. }
  3357. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3358. "32000", "44100", "48000", "96000", "192000", "384000"};
  3359. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3360. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3361. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3362. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3363. };
  3364. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3365. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3366. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3367. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3368. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3369. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3370. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3371. };
  3372. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3373. struct snd_ctl_elem_value *ucontrol)
  3374. {
  3375. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3376. mutex_lock(&routing_lock);
  3377. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3378. mutex_unlock(&routing_lock);
  3379. return 0;
  3380. }
  3381. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3382. struct snd_ctl_elem_value *ucontrol)
  3383. {
  3384. int ec_ref_port_id;
  3385. struct snd_soc_dapm_widget *widget =
  3386. snd_soc_dapm_kcontrol_widget(kcontrol);
  3387. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3388. struct snd_soc_dapm_update *update = NULL;
  3389. mutex_lock(&routing_lock);
  3390. switch (ucontrol->value.integer.value[0]) {
  3391. case 0:
  3392. msm_route_ec_ref_rx = 0;
  3393. ec_ref_port_id = AFE_PORT_INVALID;
  3394. break;
  3395. case 1:
  3396. msm_route_ec_ref_rx = 1;
  3397. ec_ref_port_id = SLIMBUS_0_RX;
  3398. break;
  3399. case 2:
  3400. msm_route_ec_ref_rx = 2;
  3401. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3402. break;
  3403. case 3:
  3404. msm_route_ec_ref_rx = 3;
  3405. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3406. break;
  3407. case 4:
  3408. msm_route_ec_ref_rx = 4;
  3409. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3410. break;
  3411. case 5:
  3412. msm_route_ec_ref_rx = 5;
  3413. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3414. break;
  3415. case 6:
  3416. msm_route_ec_ref_rx = 6;
  3417. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3418. break;
  3419. case 7:
  3420. msm_route_ec_ref_rx = 7;
  3421. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3422. break;
  3423. case 9:
  3424. msm_route_ec_ref_rx = 9;
  3425. ec_ref_port_id = SLIMBUS_5_RX;
  3426. break;
  3427. case 10:
  3428. msm_route_ec_ref_rx = 10;
  3429. ec_ref_port_id = SLIMBUS_1_TX;
  3430. break;
  3431. case 11:
  3432. msm_route_ec_ref_rx = 11;
  3433. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3434. break;
  3435. case 12:
  3436. msm_route_ec_ref_rx = 12;
  3437. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3438. break;
  3439. case 13:
  3440. msm_route_ec_ref_rx = 13;
  3441. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3442. break;
  3443. case 14:
  3444. msm_route_ec_ref_rx = 14;
  3445. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3446. break;
  3447. case 15:
  3448. msm_route_ec_ref_rx = 15;
  3449. ec_ref_port_id = SLIMBUS_6_RX;
  3450. break;
  3451. case 16:
  3452. msm_route_ec_ref_rx = 16;
  3453. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3454. break;
  3455. case 17:
  3456. msm_route_ec_ref_rx = 17;
  3457. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3458. break;
  3459. case 18:
  3460. msm_route_ec_ref_rx = 18;
  3461. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3462. break;
  3463. case 19:
  3464. msm_route_ec_ref_rx = 19;
  3465. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3466. break;
  3467. case 20:
  3468. msm_route_ec_ref_rx = 20;
  3469. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3470. break;
  3471. case 21:
  3472. msm_route_ec_ref_rx = 21;
  3473. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3474. break;
  3475. case 22:
  3476. msm_route_ec_ref_rx = 22;
  3477. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3478. break;
  3479. case 23:
  3480. msm_route_ec_ref_rx = 23;
  3481. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3482. break;
  3483. case 24:
  3484. msm_route_ec_ref_rx = 24;
  3485. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3486. break;
  3487. case 25:
  3488. msm_route_ec_ref_rx = 25;
  3489. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3490. break;
  3491. case 26:
  3492. msm_route_ec_ref_rx = 26;
  3493. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3494. break;
  3495. case 27:
  3496. msm_route_ec_ref_rx = 27;
  3497. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3498. break;
  3499. case 28:
  3500. msm_route_ec_ref_rx = 28;
  3501. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3502. break;
  3503. case 29:
  3504. msm_route_ec_ref_rx = 29;
  3505. ec_ref_port_id = SLIMBUS_7_RX;
  3506. break;
  3507. case 30:
  3508. msm_route_ec_ref_rx = 30;
  3509. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3510. break;
  3511. case 31:
  3512. msm_route_ec_ref_rx = 31;
  3513. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3514. break;
  3515. case 32:
  3516. msm_route_ec_ref_rx = 32;
  3517. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3518. break;
  3519. case 33:
  3520. msm_route_ec_ref_rx = 33;
  3521. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3522. break;
  3523. case 34:
  3524. msm_route_ec_ref_rx = 34;
  3525. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3526. break;
  3527. default:
  3528. msm_route_ec_ref_rx = 0; /* NONE */
  3529. pr_err("%s EC ref rx %ld not valid\n",
  3530. __func__, ucontrol->value.integer.value[0]);
  3531. ec_ref_port_id = AFE_PORT_INVALID;
  3532. break;
  3533. }
  3534. adm_ec_ref_rx_id(ec_ref_port_id);
  3535. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3536. __func__, msm_route_ec_ref_rx);
  3537. mutex_unlock(&routing_lock);
  3538. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3539. msm_route_ec_ref_rx, e, update);
  3540. return 0;
  3541. }
  3542. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3543. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3544. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3545. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3546. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3547. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3548. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3549. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3550. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3551. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3552. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0",
  3553. };
  3554. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3555. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3556. };
  3557. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3558. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3559. msm_route_ec_ref_rx_enum[0],
  3560. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3561. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3562. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3563. msm_route_ec_ref_rx_enum[0],
  3564. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3565. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3566. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3567. msm_route_ec_ref_rx_enum[0],
  3568. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3569. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3570. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3571. msm_route_ec_ref_rx_enum[0],
  3572. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3573. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3574. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3575. msm_route_ec_ref_rx_enum[0],
  3576. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3577. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3578. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3579. msm_route_ec_ref_rx_enum[0],
  3580. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3581. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3582. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3583. msm_route_ec_ref_rx_enum[0],
  3584. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3585. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3586. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3587. msm_route_ec_ref_rx_enum[0],
  3588. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3589. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3590. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3591. msm_route_ec_ref_rx_enum[0],
  3592. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3593. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3594. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3595. msm_route_ec_ref_rx_enum[0],
  3596. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3597. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3598. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3599. msm_route_ec_ref_rx_enum[0],
  3600. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3601. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3602. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3603. msm_route_ec_ref_rx_enum[0],
  3604. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3605. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3606. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3607. msm_route_ec_ref_rx_enum[0],
  3608. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3609. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3610. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3611. msm_route_ec_ref_rx_enum[0],
  3612. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3613. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3614. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3615. msm_route_ec_ref_rx_enum[0],
  3616. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3617. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3618. struct snd_ctl_elem_value *ucontrol)
  3619. {
  3620. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3621. mutex_lock(&routing_lock);
  3622. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3623. mutex_unlock(&routing_lock);
  3624. return 0;
  3625. }
  3626. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3627. struct snd_ctl_elem_value *ucontrol)
  3628. {
  3629. struct snd_soc_dapm_widget *widget =
  3630. snd_soc_dapm_kcontrol_widget(kcontrol);
  3631. int mux = ucontrol->value.enumerated.item[0];
  3632. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3633. int ret = 1;
  3634. bool state = true;
  3635. uint16_t ext_ec_ref_port_id;
  3636. struct snd_soc_dapm_update *update = NULL;
  3637. if (mux >= e->items) {
  3638. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3639. return -EINVAL;
  3640. }
  3641. mutex_lock(&routing_lock);
  3642. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3643. switch (msm_route_ext_ec_ref) {
  3644. case EXT_EC_REF_PRI_MI2S_TX:
  3645. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3646. break;
  3647. case EXT_EC_REF_SEC_MI2S_TX:
  3648. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3649. break;
  3650. case EXT_EC_REF_TERT_MI2S_TX:
  3651. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3652. break;
  3653. case EXT_EC_REF_QUAT_MI2S_TX:
  3654. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3655. break;
  3656. case EXT_EC_REF_QUIN_MI2S_TX:
  3657. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3658. break;
  3659. case EXT_EC_REF_SLIM_1_TX:
  3660. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3661. break;
  3662. case EXT_EC_REF_SEC_TDM_TX:
  3663. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3664. break;
  3665. case EXT_EC_REF_NONE:
  3666. default:
  3667. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3668. state = false;
  3669. break;
  3670. }
  3671. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3672. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3673. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3674. mutex_unlock(&routing_lock);
  3675. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3676. update);
  3677. } else {
  3678. ret = -EINVAL;
  3679. mutex_unlock(&routing_lock);
  3680. }
  3681. return ret;
  3682. }
  3683. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3684. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3685. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3686. "SLIM_1_TX", "SEC_TDM_TX"};
  3687. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3688. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3689. };
  3690. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3691. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3692. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3693. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3694. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3695. MSM_BACKEND_DAI_PRI_I2S_RX,
  3696. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3697. msm_routing_put_audio_mixer),
  3698. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3699. MSM_BACKEND_DAI_PRI_I2S_RX,
  3700. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3701. msm_routing_put_audio_mixer),
  3702. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3703. MSM_BACKEND_DAI_PRI_I2S_RX,
  3704. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3705. msm_routing_put_audio_mixer),
  3706. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3707. MSM_BACKEND_DAI_PRI_I2S_RX,
  3708. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3709. msm_routing_put_audio_mixer),
  3710. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3711. MSM_BACKEND_DAI_PRI_I2S_RX,
  3712. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3713. msm_routing_put_audio_mixer),
  3714. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3715. MSM_BACKEND_DAI_PRI_I2S_RX,
  3716. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3717. msm_routing_put_audio_mixer),
  3718. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3719. MSM_BACKEND_DAI_PRI_I2S_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3723. MSM_BACKEND_DAI_PRI_I2S_RX,
  3724. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3725. msm_routing_put_audio_mixer),
  3726. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3727. MSM_BACKEND_DAI_PRI_I2S_RX,
  3728. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3729. msm_routing_put_audio_mixer),
  3730. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3731. MSM_BACKEND_DAI_PRI_I2S_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3735. MSM_BACKEND_DAI_PRI_I2S_RX,
  3736. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3737. msm_routing_put_audio_mixer),
  3738. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3739. MSM_BACKEND_DAI_PRI_I2S_RX,
  3740. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3741. msm_routing_put_audio_mixer),
  3742. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3743. MSM_BACKEND_DAI_PRI_I2S_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3747. MSM_BACKEND_DAI_PRI_I2S_RX,
  3748. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3749. msm_routing_put_audio_mixer),
  3750. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3751. MSM_BACKEND_DAI_PRI_I2S_RX,
  3752. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3753. msm_routing_put_audio_mixer),
  3754. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3755. MSM_BACKEND_DAI_PRI_I2S_RX,
  3756. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3757. msm_routing_put_audio_mixer),
  3758. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3759. MSM_BACKEND_DAI_PRI_I2S_RX,
  3760. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3761. msm_routing_put_audio_mixer),
  3762. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3763. MSM_BACKEND_DAI_PRI_I2S_RX,
  3764. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3765. msm_routing_put_audio_mixer),
  3766. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3767. MSM_BACKEND_DAI_PRI_I2S_RX,
  3768. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3769. msm_routing_put_audio_mixer),
  3770. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3771. MSM_BACKEND_DAI_PRI_I2S_RX,
  3772. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3773. msm_routing_put_audio_mixer),
  3774. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3775. MSM_BACKEND_DAI_PRI_I2S_RX,
  3776. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3777. msm_routing_put_audio_mixer),
  3778. };
  3779. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3780. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3781. MSM_BACKEND_DAI_SEC_I2S_RX,
  3782. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3783. msm_routing_put_audio_mixer),
  3784. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3785. MSM_BACKEND_DAI_SEC_I2S_RX,
  3786. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3787. msm_routing_put_audio_mixer),
  3788. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3789. MSM_BACKEND_DAI_SEC_I2S_RX,
  3790. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3791. msm_routing_put_audio_mixer),
  3792. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3793. MSM_BACKEND_DAI_SEC_I2S_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3797. MSM_BACKEND_DAI_SEC_I2S_RX,
  3798. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3799. msm_routing_put_audio_mixer),
  3800. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3801. MSM_BACKEND_DAI_SEC_I2S_RX,
  3802. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3803. msm_routing_put_audio_mixer),
  3804. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3805. MSM_BACKEND_DAI_SEC_I2S_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3809. MSM_BACKEND_DAI_SEC_I2S_RX,
  3810. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3811. msm_routing_put_audio_mixer),
  3812. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3813. MSM_BACKEND_DAI_SEC_I2S_RX,
  3814. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3815. msm_routing_put_audio_mixer),
  3816. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3817. MSM_BACKEND_DAI_SEC_I2S_RX,
  3818. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3819. msm_routing_put_audio_mixer),
  3820. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3821. MSM_BACKEND_DAI_SEC_I2S_RX,
  3822. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3823. msm_routing_put_audio_mixer),
  3824. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3825. MSM_BACKEND_DAI_SEC_I2S_RX,
  3826. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3827. msm_routing_put_audio_mixer),
  3828. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3829. MSM_BACKEND_DAI_SEC_I2S_RX,
  3830. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3831. msm_routing_put_audio_mixer),
  3832. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3833. MSM_BACKEND_DAI_SEC_I2S_RX,
  3834. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3835. msm_routing_put_audio_mixer),
  3836. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3837. MSM_BACKEND_DAI_SEC_I2S_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3841. MSM_BACKEND_DAI_SEC_I2S_RX,
  3842. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3843. msm_routing_put_audio_mixer),
  3844. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3845. MSM_BACKEND_DAI_SEC_I2S_RX,
  3846. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3847. msm_routing_put_audio_mixer),
  3848. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3849. MSM_BACKEND_DAI_SEC_I2S_RX,
  3850. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3851. msm_routing_put_audio_mixer),
  3852. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3853. MSM_BACKEND_DAI_SEC_I2S_RX,
  3854. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3855. msm_routing_put_audio_mixer),
  3856. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3857. MSM_BACKEND_DAI_SEC_I2S_RX,
  3858. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3859. msm_routing_put_audio_mixer),
  3860. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3861. MSM_BACKEND_DAI_SEC_I2S_RX,
  3862. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3863. msm_routing_put_audio_mixer),
  3864. };
  3865. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  3866. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3867. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3868. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3869. msm_routing_put_audio_mixer),
  3870. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3871. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3872. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3873. msm_routing_put_audio_mixer),
  3874. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3875. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3876. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3877. msm_routing_put_audio_mixer),
  3878. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3879. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3880. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3881. msm_routing_put_audio_mixer),
  3882. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3883. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3884. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3885. msm_routing_put_audio_mixer),
  3886. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3887. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3888. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3889. msm_routing_put_audio_mixer),
  3890. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3891. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3892. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3893. msm_routing_put_audio_mixer),
  3894. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3895. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3896. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3897. msm_routing_put_audio_mixer),
  3898. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3899. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3903. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3904. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3905. msm_routing_put_audio_mixer),
  3906. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3907. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3908. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3909. msm_routing_put_audio_mixer),
  3910. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3911. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3912. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3913. msm_routing_put_audio_mixer),
  3914. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3915. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3916. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3917. msm_routing_put_audio_mixer),
  3918. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3919. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3920. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3921. msm_routing_put_audio_mixer),
  3922. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3923. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3924. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3925. msm_routing_put_audio_mixer),
  3926. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3927. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3928. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3929. msm_routing_put_audio_mixer),
  3930. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3931. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3932. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3933. msm_routing_put_audio_mixer),
  3934. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3935. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3936. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3937. msm_routing_put_audio_mixer),
  3938. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3939. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3940. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3941. msm_routing_put_audio_mixer),
  3942. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3943. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3944. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3945. msm_routing_put_audio_mixer),
  3946. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3947. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3948. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3949. msm_routing_put_audio_mixer),
  3950. };
  3951. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  3952. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3953. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3954. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3955. msm_routing_put_audio_mixer),
  3956. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3957. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3958. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3959. msm_routing_put_audio_mixer),
  3960. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3961. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3965. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3966. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3967. msm_routing_put_audio_mixer),
  3968. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3969. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3970. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3971. msm_routing_put_audio_mixer),
  3972. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3973. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3977. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3978. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3979. msm_routing_put_audio_mixer),
  3980. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3981. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3982. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3983. msm_routing_put_audio_mixer),
  3984. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3985. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3986. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3987. msm_routing_put_audio_mixer),
  3988. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3989. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3990. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3991. msm_routing_put_audio_mixer),
  3992. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3993. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3994. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3995. msm_routing_put_audio_mixer),
  3996. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3997. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3998. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3999. msm_routing_put_audio_mixer),
  4000. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4001. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4002. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4003. msm_routing_put_audio_mixer),
  4004. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4005. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4006. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4007. msm_routing_put_audio_mixer),
  4008. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4009. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4010. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4011. msm_routing_put_audio_mixer),
  4012. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4013. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4014. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4015. msm_routing_put_audio_mixer),
  4016. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4017. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4018. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4019. msm_routing_put_audio_mixer),
  4020. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4021. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4022. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4023. msm_routing_put_audio_mixer),
  4024. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4025. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4026. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4027. msm_routing_put_audio_mixer),
  4028. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4029. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4030. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4031. msm_routing_put_audio_mixer),
  4032. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4033. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4034. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4035. msm_routing_put_audio_mixer),
  4036. };
  4037. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4038. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4039. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4040. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4041. msm_routing_put_audio_mixer),
  4042. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4043. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4047. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4048. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4049. msm_routing_put_audio_mixer),
  4050. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4051. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4052. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4053. msm_routing_put_audio_mixer),
  4054. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4055. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4056. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4057. msm_routing_put_audio_mixer),
  4058. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4059. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4060. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4061. msm_routing_put_audio_mixer),
  4062. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4063. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4064. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4065. msm_routing_put_audio_mixer),
  4066. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4067. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4068. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4069. msm_routing_put_audio_mixer),
  4070. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4071. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4072. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4073. msm_routing_put_audio_mixer),
  4074. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4075. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4076. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4077. msm_routing_put_audio_mixer),
  4078. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4079. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4080. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4081. msm_routing_put_audio_mixer),
  4082. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4083. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4084. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4085. msm_routing_put_audio_mixer),
  4086. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4087. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4091. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4092. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4093. msm_routing_put_audio_mixer),
  4094. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4095. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4096. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4097. msm_routing_put_audio_mixer),
  4098. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4099. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. };
  4103. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4104. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4105. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4106. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4107. msm_routing_put_audio_mixer),
  4108. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4109. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4110. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4111. msm_routing_put_audio_mixer),
  4112. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4113. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4114. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4115. msm_routing_put_audio_mixer),
  4116. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4117. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4121. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4122. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4123. msm_routing_put_audio_mixer),
  4124. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4125. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4129. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4130. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4131. msm_routing_put_audio_mixer),
  4132. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4133. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4134. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4135. msm_routing_put_audio_mixer),
  4136. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4137. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4141. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4142. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4143. msm_routing_put_audio_mixer),
  4144. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4145. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4146. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4147. msm_routing_put_audio_mixer),
  4148. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4149. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4153. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4154. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4155. msm_routing_put_audio_mixer),
  4156. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4157. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4158. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4159. msm_routing_put_audio_mixer),
  4160. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4161. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4165. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4166. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4167. msm_routing_put_audio_mixer),
  4168. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4169. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4170. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4171. msm_routing_put_audio_mixer),
  4172. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4173. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4174. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4175. msm_routing_put_audio_mixer),
  4176. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4177. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4178. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4179. msm_routing_put_audio_mixer),
  4180. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4181. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4185. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4186. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4187. msm_routing_put_audio_mixer),
  4188. };
  4189. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4190. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4191. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4192. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4193. msm_routing_put_audio_mixer),
  4194. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4195. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4196. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4197. msm_routing_put_audio_mixer),
  4198. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4199. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4203. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4204. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4205. msm_routing_put_audio_mixer),
  4206. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4207. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4208. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4209. msm_routing_put_audio_mixer),
  4210. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4211. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4215. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4216. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4217. msm_routing_put_audio_mixer),
  4218. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4219. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4220. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4221. msm_routing_put_audio_mixer),
  4222. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4223. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4227. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4228. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4229. msm_routing_put_audio_mixer),
  4230. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4231. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4235. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4236. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4237. msm_routing_put_audio_mixer),
  4238. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4239. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4240. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4241. msm_routing_put_audio_mixer),
  4242. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4243. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4244. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4245. msm_routing_put_audio_mixer),
  4246. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4247. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4248. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4249. msm_routing_put_audio_mixer),
  4250. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4251. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4252. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4253. msm_routing_put_audio_mixer),
  4254. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4255. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4256. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4257. msm_routing_put_audio_mixer),
  4258. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4259. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4260. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4261. msm_routing_put_audio_mixer),
  4262. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4263. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4264. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4265. msm_routing_put_audio_mixer),
  4266. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4267. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4271. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4272. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4273. msm_routing_put_audio_mixer),
  4274. };
  4275. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4276. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4277. MSM_BACKEND_DAI_MI2S_RX,
  4278. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4279. msm_routing_put_audio_mixer),
  4280. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4281. MSM_BACKEND_DAI_MI2S_RX,
  4282. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4283. msm_routing_put_audio_mixer),
  4284. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4285. MSM_BACKEND_DAI_MI2S_RX,
  4286. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4287. msm_routing_put_audio_mixer),
  4288. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4289. MSM_BACKEND_DAI_MI2S_RX,
  4290. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4291. msm_routing_put_audio_mixer),
  4292. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4293. MSM_BACKEND_DAI_MI2S_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4297. MSM_BACKEND_DAI_MI2S_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4301. MSM_BACKEND_DAI_MI2S_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4305. MSM_BACKEND_DAI_MI2S_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4309. MSM_BACKEND_DAI_MI2S_RX,
  4310. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4311. msm_routing_put_audio_mixer),
  4312. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4313. MSM_BACKEND_DAI_MI2S_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4317. MSM_BACKEND_DAI_MI2S_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4321. MSM_BACKEND_DAI_MI2S_RX,
  4322. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4323. msm_routing_put_audio_mixer),
  4324. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4325. MSM_BACKEND_DAI_MI2S_RX,
  4326. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4327. msm_routing_put_audio_mixer),
  4328. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4329. MSM_BACKEND_DAI_MI2S_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4333. MSM_BACKEND_DAI_MI2S_RX,
  4334. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4335. msm_routing_put_audio_mixer),
  4336. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4337. MSM_BACKEND_DAI_MI2S_RX,
  4338. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4339. msm_routing_put_audio_mixer),
  4340. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4341. MSM_BACKEND_DAI_MI2S_RX,
  4342. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4343. msm_routing_put_audio_mixer),
  4344. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4345. MSM_BACKEND_DAI_MI2S_RX,
  4346. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4347. msm_routing_put_audio_mixer),
  4348. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4349. MSM_BACKEND_DAI_MI2S_RX,
  4350. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4351. msm_routing_put_audio_mixer),
  4352. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4353. MSM_BACKEND_DAI_MI2S_RX,
  4354. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4355. msm_routing_put_audio_mixer),
  4356. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4357. MSM_BACKEND_DAI_MI2S_RX,
  4358. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4359. msm_routing_put_audio_mixer),
  4360. };
  4361. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4362. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4363. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4364. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4365. msm_routing_put_audio_mixer),
  4366. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4367. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4368. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4369. msm_routing_put_audio_mixer),
  4370. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4371. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4372. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4373. msm_routing_put_audio_mixer),
  4374. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4375. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4376. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4377. msm_routing_put_audio_mixer),
  4378. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4379. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4383. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4387. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4388. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4389. msm_routing_put_audio_mixer),
  4390. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4391. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4392. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4393. msm_routing_put_audio_mixer),
  4394. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4395. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4399. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4400. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4401. msm_routing_put_audio_mixer),
  4402. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4403. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4404. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4405. msm_routing_put_audio_mixer),
  4406. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4407. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4411. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4412. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4413. msm_routing_put_audio_mixer),
  4414. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4415. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4416. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4417. msm_routing_put_audio_mixer),
  4418. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4419. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4423. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4424. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4425. msm_routing_put_audio_mixer),
  4426. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4427. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4431. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4432. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4433. msm_routing_put_audio_mixer),
  4434. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4435. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4436. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4437. msm_routing_put_audio_mixer),
  4438. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4439. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4443. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4444. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4445. msm_routing_put_audio_mixer),
  4446. };
  4447. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4448. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4449. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4450. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4451. msm_routing_put_audio_mixer),
  4452. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4453. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4454. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4455. msm_routing_put_audio_mixer),
  4456. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4457. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4461. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4462. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4463. msm_routing_put_audio_mixer),
  4464. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4465. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4466. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4467. msm_routing_put_audio_mixer),
  4468. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4469. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4470. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4471. msm_routing_put_audio_mixer),
  4472. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4473. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4474. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4475. msm_routing_put_audio_mixer),
  4476. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4477. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4478. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4479. msm_routing_put_audio_mixer),
  4480. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4481. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4482. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4483. msm_routing_put_audio_mixer),
  4484. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4485. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4486. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4487. msm_routing_put_audio_mixer),
  4488. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4489. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4490. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4491. msm_routing_put_audio_mixer),
  4492. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4493. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4494. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4495. msm_routing_put_audio_mixer),
  4496. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4497. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4498. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4499. msm_routing_put_audio_mixer),
  4500. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4501. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4502. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4503. msm_routing_put_audio_mixer),
  4504. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4505. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4506. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4507. msm_routing_put_audio_mixer),
  4508. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4509. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4510. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4511. msm_routing_put_audio_mixer),
  4512. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4513. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4514. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4515. msm_routing_put_audio_mixer),
  4516. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4517. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4518. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4519. msm_routing_put_audio_mixer),
  4520. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4521. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4522. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4523. msm_routing_put_audio_mixer),
  4524. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4525. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4526. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4527. msm_routing_put_audio_mixer),
  4528. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4529. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4530. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4531. msm_routing_put_audio_mixer),
  4532. };
  4533. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4534. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4535. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4536. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4537. msm_routing_put_audio_mixer),
  4538. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4539. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4543. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4544. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4545. msm_routing_put_audio_mixer),
  4546. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4547. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4548. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4549. msm_routing_put_audio_mixer),
  4550. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4551. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4552. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4553. msm_routing_put_audio_mixer),
  4554. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4555. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4556. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4557. msm_routing_put_audio_mixer),
  4558. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4559. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4560. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4561. msm_routing_put_audio_mixer),
  4562. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4563. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4564. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4565. msm_routing_put_audio_mixer),
  4566. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4567. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4568. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4569. msm_routing_put_audio_mixer),
  4570. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4571. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4572. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4573. msm_routing_put_audio_mixer),
  4574. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4575. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4576. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4577. msm_routing_put_audio_mixer),
  4578. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4579. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4580. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4581. msm_routing_put_audio_mixer),
  4582. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4583. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4584. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4585. msm_routing_put_audio_mixer),
  4586. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4587. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4588. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4589. msm_routing_put_audio_mixer),
  4590. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4591. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4592. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4593. msm_routing_put_audio_mixer),
  4594. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4595. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4596. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4597. msm_routing_put_audio_mixer),
  4598. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4599. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4600. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4601. msm_routing_put_audio_mixer),
  4602. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4603. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4604. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4605. msm_routing_put_audio_mixer),
  4606. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4607. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4608. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4609. msm_routing_put_audio_mixer),
  4610. };
  4611. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4612. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4613. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. };
  4617. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4618. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4619. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4623. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4624. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4625. msm_routing_put_audio_mixer),
  4626. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4627. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4628. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4629. msm_routing_put_audio_mixer),
  4630. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4631. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4632. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4633. msm_routing_put_audio_mixer),
  4634. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4635. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4636. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4637. msm_routing_put_audio_mixer),
  4638. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4639. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4643. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4644. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4645. msm_routing_put_audio_mixer),
  4646. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4647. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4648. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4649. msm_routing_put_audio_mixer),
  4650. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4651. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4655. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4656. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4657. msm_routing_put_audio_mixer),
  4658. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4659. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4663. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4667. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4668. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4669. msm_routing_put_audio_mixer),
  4670. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4671. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4672. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4673. msm_routing_put_audio_mixer),
  4674. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4675. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4679. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4680. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4681. msm_routing_put_audio_mixer),
  4682. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4683. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4684. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4685. msm_routing_put_audio_mixer),
  4686. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4687. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4691. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4692. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4693. msm_routing_put_audio_mixer),
  4694. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4695. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4696. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4697. msm_routing_put_audio_mixer),
  4698. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4699. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4700. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4701. msm_routing_put_audio_mixer),
  4702. };
  4703. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4704. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4705. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4706. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4707. msm_routing_put_audio_mixer),
  4708. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4709. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4710. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4711. msm_routing_put_audio_mixer),
  4712. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4713. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4717. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4718. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4719. msm_routing_put_audio_mixer),
  4720. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4721. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4722. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4723. msm_routing_put_audio_mixer),
  4724. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4725. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4729. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4730. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4731. msm_routing_put_audio_mixer),
  4732. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4733. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4734. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4735. msm_routing_put_audio_mixer),
  4736. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4737. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4741. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4742. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4743. msm_routing_put_audio_mixer),
  4744. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4745. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4746. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4747. msm_routing_put_audio_mixer),
  4748. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4749. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4753. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4754. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4755. msm_routing_put_audio_mixer),
  4756. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4757. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4761. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4762. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4763. msm_routing_put_audio_mixer),
  4764. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4765. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4766. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4767. msm_routing_put_audio_mixer),
  4768. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4769. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4770. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4771. msm_routing_put_audio_mixer),
  4772. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4773. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4774. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4775. msm_routing_put_audio_mixer),
  4776. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4777. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4778. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4779. msm_routing_put_audio_mixer),
  4780. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4781. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4782. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4783. msm_routing_put_audio_mixer),
  4784. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4785. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4786. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4787. msm_routing_put_audio_mixer),
  4788. };
  4789. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4790. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4791. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4792. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4793. msm_routing_put_audio_mixer),
  4794. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4795. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4796. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4797. msm_routing_put_audio_mixer),
  4798. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4799. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4803. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4804. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4805. msm_routing_put_audio_mixer),
  4806. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4807. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4809. msm_routing_put_audio_mixer),
  4810. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4811. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4812. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4813. msm_routing_put_audio_mixer),
  4814. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4815. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4816. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4817. msm_routing_put_audio_mixer),
  4818. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4819. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4823. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4824. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4825. msm_routing_put_audio_mixer),
  4826. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4827. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4828. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4829. msm_routing_put_audio_mixer),
  4830. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4831. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4835. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4836. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4837. msm_routing_put_audio_mixer),
  4838. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4839. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4840. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4841. msm_routing_put_audio_mixer),
  4842. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4843. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4847. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4848. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4849. msm_routing_put_audio_mixer),
  4850. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4851. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4852. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4853. msm_routing_put_audio_mixer),
  4854. };
  4855. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4856. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4857. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4858. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4859. msm_routing_put_audio_mixer),
  4860. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4861. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4865. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4866. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4867. msm_routing_put_audio_mixer),
  4868. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4869. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4870. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4871. msm_routing_put_audio_mixer),
  4872. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4873. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4874. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4875. msm_routing_put_audio_mixer),
  4876. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4877. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4878. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4879. msm_routing_put_audio_mixer),
  4880. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4881. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4882. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4883. msm_routing_put_audio_mixer),
  4884. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4885. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4886. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4887. msm_routing_put_audio_mixer),
  4888. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4889. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4890. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4891. msm_routing_put_audio_mixer),
  4892. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4893. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4894. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4895. msm_routing_put_audio_mixer),
  4896. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4897. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4898. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4899. msm_routing_put_audio_mixer),
  4900. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4901. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4902. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4903. msm_routing_put_audio_mixer),
  4904. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4905. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4906. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4907. msm_routing_put_audio_mixer),
  4908. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4909. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4910. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4911. msm_routing_put_audio_mixer),
  4912. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4913. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4914. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4915. msm_routing_put_audio_mixer),
  4916. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4917. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4918. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4919. msm_routing_put_audio_mixer),
  4920. };
  4921. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4922. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4923. MSM_BACKEND_DAI_HDMI_RX,
  4924. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4925. msm_routing_put_audio_mixer),
  4926. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4927. MSM_BACKEND_DAI_HDMI_RX,
  4928. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4929. msm_routing_put_audio_mixer),
  4930. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4931. MSM_BACKEND_DAI_HDMI_RX,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4935. MSM_BACKEND_DAI_HDMI_RX,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4939. MSM_BACKEND_DAI_HDMI_RX,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4943. MSM_BACKEND_DAI_HDMI_RX,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4947. MSM_BACKEND_DAI_HDMI_RX,
  4948. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4949. msm_routing_put_audio_mixer),
  4950. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4951. MSM_BACKEND_DAI_HDMI_RX,
  4952. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4953. msm_routing_put_audio_mixer),
  4954. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4955. MSM_BACKEND_DAI_HDMI_RX,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4959. MSM_BACKEND_DAI_HDMI_RX,
  4960. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4961. msm_routing_put_audio_mixer),
  4962. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4963. MSM_BACKEND_DAI_HDMI_RX,
  4964. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4965. msm_routing_put_audio_mixer),
  4966. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4967. MSM_BACKEND_DAI_HDMI_RX,
  4968. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4969. msm_routing_put_audio_mixer),
  4970. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4971. MSM_BACKEND_DAI_HDMI_RX,
  4972. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4973. msm_routing_put_audio_mixer),
  4974. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4975. MSM_BACKEND_DAI_HDMI_RX,
  4976. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4977. msm_routing_put_audio_mixer),
  4978. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4979. MSM_BACKEND_DAI_HDMI_RX,
  4980. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4981. msm_routing_put_audio_mixer),
  4982. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4983. MSM_BACKEND_DAI_HDMI_RX,
  4984. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4985. msm_routing_put_audio_mixer),
  4986. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4987. MSM_BACKEND_DAI_HDMI_RX,
  4988. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4989. msm_routing_put_audio_mixer),
  4990. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4991. MSM_BACKEND_DAI_HDMI_RX,
  4992. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4993. msm_routing_put_audio_mixer),
  4994. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4995. MSM_BACKEND_DAI_HDMI_RX,
  4996. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4997. msm_routing_put_audio_mixer),
  4998. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4999. MSM_BACKEND_DAI_HDMI_RX,
  5000. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5001. msm_routing_put_audio_mixer),
  5002. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5003. MSM_BACKEND_DAI_HDMI_RX,
  5004. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5005. msm_routing_put_audio_mixer),
  5006. };
  5007. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5008. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5009. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5010. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5011. msm_routing_put_audio_mixer),
  5012. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5013. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5014. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5015. msm_routing_put_audio_mixer),
  5016. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5017. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5018. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5019. msm_routing_put_audio_mixer),
  5020. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5021. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5022. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5023. msm_routing_put_audio_mixer),
  5024. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5025. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5026. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5027. msm_routing_put_audio_mixer),
  5028. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5029. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5030. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5031. msm_routing_put_audio_mixer),
  5032. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5033. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5034. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5035. msm_routing_put_audio_mixer),
  5036. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5037. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5038. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5039. msm_routing_put_audio_mixer),
  5040. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5041. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5042. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5043. msm_routing_put_audio_mixer),
  5044. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5045. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5046. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5047. msm_routing_put_audio_mixer),
  5048. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5049. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5050. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5051. msm_routing_put_audio_mixer),
  5052. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5053. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5054. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5055. msm_routing_put_audio_mixer),
  5056. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5057. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5058. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5059. msm_routing_put_audio_mixer),
  5060. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5061. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5062. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5063. msm_routing_put_audio_mixer),
  5064. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5065. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5066. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5067. msm_routing_put_audio_mixer),
  5068. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5069. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5070. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5071. msm_routing_put_audio_mixer),
  5072. };
  5073. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5074. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5075. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5079. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5080. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5081. msm_routing_put_audio_mixer),
  5082. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5083. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5084. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5085. msm_routing_put_audio_mixer),
  5086. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5087. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5088. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5089. msm_routing_put_audio_mixer),
  5090. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5091. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5092. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5093. msm_routing_put_audio_mixer),
  5094. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5095. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5096. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5097. msm_routing_put_audio_mixer),
  5098. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5099. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5100. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5101. msm_routing_put_audio_mixer),
  5102. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5103. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5104. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5105. msm_routing_put_audio_mixer),
  5106. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5107. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5108. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5109. msm_routing_put_audio_mixer),
  5110. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5111. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5112. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5113. msm_routing_put_audio_mixer),
  5114. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5115. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5116. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5117. msm_routing_put_audio_mixer),
  5118. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5119. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5120. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5121. msm_routing_put_audio_mixer),
  5122. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5123. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5124. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5125. msm_routing_put_audio_mixer),
  5126. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5127. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5128. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5129. msm_routing_put_audio_mixer),
  5130. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5131. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5135. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5136. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5137. msm_routing_put_audio_mixer),
  5138. };
  5139. /* incall music delivery mixer */
  5140. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5141. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5142. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5146. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5150. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5152. msm_routing_put_audio_mixer),
  5153. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5154. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5156. msm_routing_put_audio_mixer),
  5157. };
  5158. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5159. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5160. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5161. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5162. msm_routing_put_audio_mixer),
  5163. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5164. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5165. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5166. msm_routing_put_audio_mixer),
  5167. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5168. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5169. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5170. msm_routing_put_audio_mixer),
  5171. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5172. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. };
  5176. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5177. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5178. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5179. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5180. msm_routing_put_audio_mixer),
  5181. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5182. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5183. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5184. msm_routing_put_audio_mixer),
  5185. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5186. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5187. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5188. msm_routing_put_audio_mixer),
  5189. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5190. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5192. msm_routing_put_audio_mixer),
  5193. };
  5194. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5195. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5200. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5204. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5208. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5212. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5216. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5220. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5224. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5228. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5232. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5233. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5234. msm_routing_put_audio_mixer),
  5235. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5236. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5237. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5238. msm_routing_put_audio_mixer),
  5239. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5240. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5241. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5242. msm_routing_put_audio_mixer),
  5243. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5244. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5245. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5246. msm_routing_put_audio_mixer),
  5247. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5248. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5249. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5250. msm_routing_put_audio_mixer),
  5251. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5252. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5253. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5254. msm_routing_put_audio_mixer),
  5255. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5256. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5257. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5258. msm_routing_put_audio_mixer),
  5259. };
  5260. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5261. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5262. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5264. msm_routing_put_audio_mixer),
  5265. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5266. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5268. msm_routing_put_audio_mixer),
  5269. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5270. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5271. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5272. msm_routing_put_audio_mixer),
  5273. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5274. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5275. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5276. msm_routing_put_audio_mixer),
  5277. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5278. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5282. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5283. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5284. msm_routing_put_audio_mixer),
  5285. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5286. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5287. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5288. msm_routing_put_audio_mixer),
  5289. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5290. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5291. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5292. msm_routing_put_audio_mixer),
  5293. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5294. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5296. msm_routing_put_audio_mixer),
  5297. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5298. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5300. msm_routing_put_audio_mixer),
  5301. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5302. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5303. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5304. msm_routing_put_audio_mixer),
  5305. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5306. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5307. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5308. msm_routing_put_audio_mixer),
  5309. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5310. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5311. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5312. msm_routing_put_audio_mixer),
  5313. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5314. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5315. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5316. msm_routing_put_audio_mixer),
  5317. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5318. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5319. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5320. msm_routing_put_audio_mixer),
  5321. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5322. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5323. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5324. msm_routing_put_audio_mixer),
  5325. };
  5326. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5327. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5328. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5332. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5333. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5334. msm_routing_put_audio_mixer),
  5335. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5336. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5337. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5338. msm_routing_put_audio_mixer),
  5339. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5340. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5341. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5342. msm_routing_put_audio_mixer),
  5343. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5344. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5345. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5346. msm_routing_put_audio_mixer),
  5347. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5348. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5349. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5350. msm_routing_put_audio_mixer),
  5351. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5352. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5356. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5357. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5358. msm_routing_put_audio_mixer),
  5359. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5360. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5361. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5362. msm_routing_put_audio_mixer),
  5363. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5364. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5366. msm_routing_put_audio_mixer),
  5367. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5368. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5369. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5370. msm_routing_put_audio_mixer),
  5371. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5372. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5373. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5374. msm_routing_put_audio_mixer),
  5375. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5376. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5377. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5378. msm_routing_put_audio_mixer),
  5379. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5380. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5381. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5382. msm_routing_put_audio_mixer),
  5383. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5384. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5385. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5386. msm_routing_put_audio_mixer),
  5387. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5388. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5389. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5390. msm_routing_put_audio_mixer),
  5391. };
  5392. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5393. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5394. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5398. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5402. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5406. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5410. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5411. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5412. msm_routing_put_audio_mixer),
  5413. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5414. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5418. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5422. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5426. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5427. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5428. msm_routing_put_audio_mixer),
  5429. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5430. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5431. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5432. msm_routing_put_audio_mixer),
  5433. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5434. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5438. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5439. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5440. msm_routing_put_audio_mixer),
  5441. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5442. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5443. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5444. msm_routing_put_audio_mixer),
  5445. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5446. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5450. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5451. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5452. msm_routing_put_audio_mixer),
  5453. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5454. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5455. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5456. msm_routing_put_audio_mixer),
  5457. };
  5458. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5459. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5460. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5461. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5462. msm_routing_put_audio_mixer),
  5463. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5468. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5472. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5476. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5477. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5478. msm_routing_put_audio_mixer),
  5479. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5480. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5484. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5488. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5492. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5496. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5504. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5508. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5512. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5513. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5514. msm_routing_put_audio_mixer),
  5515. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5516. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5517. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5518. msm_routing_put_audio_mixer),
  5519. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5520. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5521. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5522. msm_routing_put_audio_mixer),
  5523. };
  5524. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5525. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5538. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5539. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5540. msm_routing_put_audio_mixer),
  5541. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5542. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5546. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5550. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5554. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5558. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5562. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5566. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5570. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5574. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5578. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5582. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5583. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5584. msm_routing_put_audio_mixer),
  5585. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5586. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. };
  5590. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5591. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5593. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5594. msm_routing_put_audio_mixer),
  5595. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5600. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5632. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5636. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5640. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5644. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5648. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5652. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. };
  5656. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  5657. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5666. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5667. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5668. msm_routing_put_audio_mixer),
  5669. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5670. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5671. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5672. msm_routing_put_audio_mixer),
  5673. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5674. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5678. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5682. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5683. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5684. msm_routing_put_audio_mixer),
  5685. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5686. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5718. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. };
  5722. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  5723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5724. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5726. msm_routing_put_audio_mixer),
  5727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5728. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5732. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5734. msm_routing_put_audio_mixer),
  5735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5736. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5738. msm_routing_put_audio_mixer),
  5739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5740. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5744. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5746. msm_routing_put_audio_mixer),
  5747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5748. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5750. msm_routing_put_audio_mixer),
  5751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5752. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5756. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5760. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5762. msm_routing_put_audio_mixer),
  5763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5764. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. };
  5788. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  5789. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5790. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5791. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5792. msm_routing_put_audio_mixer),
  5793. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5794. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5795. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5796. msm_routing_put_audio_mixer),
  5797. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5798. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5799. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5800. msm_routing_put_audio_mixer),
  5801. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5802. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5806. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5807. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5808. msm_routing_put_audio_mixer),
  5809. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5810. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5811. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5812. msm_routing_put_audio_mixer),
  5813. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5814. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5818. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5822. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5826. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5827. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5828. msm_routing_put_audio_mixer),
  5829. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5830. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5842. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5846. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5850. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. };
  5854. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  5855. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5856. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5860. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5861. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5862. msm_routing_put_audio_mixer),
  5863. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5864. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5865. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5866. msm_routing_put_audio_mixer),
  5867. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5868. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5869. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5870. msm_routing_put_audio_mixer),
  5871. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5872. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5873. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5874. msm_routing_put_audio_mixer),
  5875. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5876. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5877. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5878. msm_routing_put_audio_mixer),
  5879. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5880. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5881. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5882. msm_routing_put_audio_mixer),
  5883. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5884. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5885. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5886. msm_routing_put_audio_mixer),
  5887. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5888. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5889. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5890. msm_routing_put_audio_mixer),
  5891. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5892. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5893. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5894. msm_routing_put_audio_mixer),
  5895. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5896. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5904. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5916. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. };
  5920. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  5921. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5922. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5924. msm_routing_put_audio_mixer),
  5925. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5926. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5928. msm_routing_put_audio_mixer),
  5929. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5930. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5931. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5932. msm_routing_put_audio_mixer),
  5933. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5934. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5938. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5940. msm_routing_put_audio_mixer),
  5941. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5942. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5944. msm_routing_put_audio_mixer),
  5945. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5946. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5947. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5948. msm_routing_put_audio_mixer),
  5949. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5950. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5951. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5952. msm_routing_put_audio_mixer),
  5953. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5954. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5955. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5956. msm_routing_put_audio_mixer),
  5957. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5958. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5960. msm_routing_put_audio_mixer),
  5961. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5962. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5963. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5964. msm_routing_put_audio_mixer),
  5965. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5966. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5967. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5968. msm_routing_put_audio_mixer),
  5969. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5970. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5974. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5978. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5982. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. };
  5986. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5987. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5988. MSM_BACKEND_DAI_USB_RX,
  5989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5990. msm_routing_put_audio_mixer),
  5991. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5992. MSM_BACKEND_DAI_USB_RX,
  5993. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5994. msm_routing_put_audio_mixer),
  5995. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5996. MSM_BACKEND_DAI_USB_RX,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6000. MSM_BACKEND_DAI_USB_RX,
  6001. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6002. msm_routing_put_audio_mixer),
  6003. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6004. MSM_BACKEND_DAI_USB_RX,
  6005. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6006. msm_routing_put_audio_mixer),
  6007. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6008. MSM_BACKEND_DAI_USB_RX,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6012. MSM_BACKEND_DAI_USB_RX,
  6013. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6014. msm_routing_put_audio_mixer),
  6015. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6016. MSM_BACKEND_DAI_USB_RX,
  6017. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6018. msm_routing_put_audio_mixer),
  6019. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6020. MSM_BACKEND_DAI_USB_RX,
  6021. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6022. msm_routing_put_audio_mixer),
  6023. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6024. MSM_BACKEND_DAI_USB_RX,
  6025. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6026. msm_routing_put_audio_mixer),
  6027. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6028. MSM_BACKEND_DAI_USB_RX,
  6029. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6030. msm_routing_put_audio_mixer),
  6031. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6032. MSM_BACKEND_DAI_USB_RX,
  6033. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6034. msm_routing_put_audio_mixer),
  6035. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6036. MSM_BACKEND_DAI_USB_RX,
  6037. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6038. msm_routing_put_audio_mixer),
  6039. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6040. MSM_BACKEND_DAI_USB_RX,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6044. MSM_BACKEND_DAI_USB_RX,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6048. MSM_BACKEND_DAI_USB_RX,
  6049. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6050. msm_routing_put_audio_mixer),
  6051. };
  6052. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6053. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6062. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6066. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6070. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6074. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6075. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6076. msm_routing_put_audio_mixer),
  6077. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6078. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6079. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6080. msm_routing_put_audio_mixer),
  6081. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6082. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6083. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6084. msm_routing_put_audio_mixer),
  6085. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6086. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6087. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6088. msm_routing_put_audio_mixer),
  6089. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6090. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6091. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6092. msm_routing_put_audio_mixer),
  6093. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6094. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6095. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6096. msm_routing_put_audio_mixer),
  6097. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6098. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6099. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6100. msm_routing_put_audio_mixer),
  6101. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6102. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6106. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6110. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6111. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6112. msm_routing_put_audio_mixer),
  6113. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6114. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6118. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6122. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6123. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6124. msm_routing_put_audio_mixer),
  6125. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6126. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6130. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. };
  6138. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6139. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6140. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6144. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6146. msm_routing_put_audio_mixer),
  6147. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6148. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6152. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6156. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6157. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6158. msm_routing_put_audio_mixer),
  6159. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6160. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6164. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6168. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6169. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6170. msm_routing_put_audio_mixer),
  6171. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6172. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6174. msm_routing_put_audio_mixer),
  6175. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6176. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6177. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6178. msm_routing_put_audio_mixer),
  6179. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6180. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6181. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6182. msm_routing_put_audio_mixer),
  6183. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6184. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6188. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6189. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6190. msm_routing_put_audio_mixer),
  6191. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6192. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6193. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6194. msm_routing_put_audio_mixer),
  6195. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6196. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6200. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. };
  6204. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6205. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6206. MSM_BACKEND_DAI_INT_FM_RX,
  6207. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6208. msm_routing_put_audio_mixer),
  6209. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6210. MSM_BACKEND_DAI_INT_FM_RX,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6214. MSM_BACKEND_DAI_INT_FM_RX,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6218. MSM_BACKEND_DAI_INT_FM_RX,
  6219. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6220. msm_routing_put_audio_mixer),
  6221. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6222. MSM_BACKEND_DAI_INT_FM_RX,
  6223. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6224. msm_routing_put_audio_mixer),
  6225. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6226. MSM_BACKEND_DAI_INT_FM_RX,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6230. MSM_BACKEND_DAI_INT_FM_RX,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6234. MSM_BACKEND_DAI_INT_FM_RX,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6238. MSM_BACKEND_DAI_INT_FM_RX,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6242. MSM_BACKEND_DAI_INT_FM_RX,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6246. MSM_BACKEND_DAI_INT_FM_RX,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6250. MSM_BACKEND_DAI_INT_FM_RX,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_INT_FM_RX,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6258. MSM_BACKEND_DAI_INT_FM_RX,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6262. MSM_BACKEND_DAI_INT_FM_RX,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6266. MSM_BACKEND_DAI_INT_FM_RX,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6270. MSM_BACKEND_DAI_INT_FM_RX,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6274. MSM_BACKEND_DAI_INT_FM_RX,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6278. MSM_BACKEND_DAI_INT_FM_RX,
  6279. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6280. msm_routing_put_audio_mixer),
  6281. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6282. MSM_BACKEND_DAI_INT_FM_RX,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6286. MSM_BACKEND_DAI_INT_FM_RX,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. };
  6290. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6291. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6292. MSM_BACKEND_DAI_AFE_PCM_RX,
  6293. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6294. msm_routing_put_audio_mixer),
  6295. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6296. MSM_BACKEND_DAI_AFE_PCM_RX,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6300. MSM_BACKEND_DAI_AFE_PCM_RX,
  6301. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6302. msm_routing_put_audio_mixer),
  6303. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6304. MSM_BACKEND_DAI_AFE_PCM_RX,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6308. MSM_BACKEND_DAI_AFE_PCM_RX,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6312. MSM_BACKEND_DAI_AFE_PCM_RX,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6316. MSM_BACKEND_DAI_AFE_PCM_RX,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6320. MSM_BACKEND_DAI_AFE_PCM_RX,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_AFE_PCM_RX,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_AFE_PCM_RX,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_AFE_PCM_RX,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_AFE_PCM_RX,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_AFE_PCM_RX,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_AFE_PCM_RX,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_AFE_PCM_RX,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_AFE_PCM_RX,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6356. MSM_BACKEND_DAI_AFE_PCM_RX,
  6357. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6358. msm_routing_put_audio_mixer),
  6359. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6360. MSM_BACKEND_DAI_AFE_PCM_RX,
  6361. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6362. msm_routing_put_audio_mixer),
  6363. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6364. MSM_BACKEND_DAI_AFE_PCM_RX,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6368. MSM_BACKEND_DAI_AFE_PCM_RX,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6372. MSM_BACKEND_DAI_AFE_PCM_RX,
  6373. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6374. msm_routing_put_audio_mixer),
  6375. };
  6376. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6377. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6378. MSM_BACKEND_DAI_AUXPCM_RX,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_AUXPCM_RX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_AUXPCM_RX,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_AUXPCM_RX,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_AUXPCM_RX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_AUXPCM_RX,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_AUXPCM_RX,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_AUXPCM_RX,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_AUXPCM_RX,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_AUXPCM_RX,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_AUXPCM_RX,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_AUXPCM_RX,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_AUXPCM_RX,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_AUXPCM_RX,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_AUXPCM_RX,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_AUXPCM_RX,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6442. MSM_BACKEND_DAI_AUXPCM_RX,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6446. MSM_BACKEND_DAI_AUXPCM_RX,
  6447. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6448. msm_routing_put_audio_mixer),
  6449. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6450. MSM_BACKEND_DAI_AUXPCM_RX,
  6451. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6452. msm_routing_put_audio_mixer),
  6453. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6454. MSM_BACKEND_DAI_AUXPCM_RX,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6458. MSM_BACKEND_DAI_AUXPCM_RX,
  6459. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6460. msm_routing_put_audio_mixer),
  6461. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6462. MSM_BACKEND_DAI_AUXPCM_RX,
  6463. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6464. msm_routing_put_audio_mixer),
  6465. };
  6466. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6467. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6516. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6520. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6524. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6528. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6532. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6533. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6534. msm_routing_put_audio_mixer),
  6535. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6536. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6537. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6538. msm_routing_put_audio_mixer),
  6539. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6540. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6541. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6542. msm_routing_put_audio_mixer),
  6543. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6544. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6545. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6546. msm_routing_put_audio_mixer),
  6547. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6548. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6549. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6550. msm_routing_put_audio_mixer),
  6551. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6552. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. };
  6556. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  6557. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6558. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6562. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6582. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6586. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6590. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6594. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6598. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6602. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6606. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6607. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6608. msm_routing_put_audio_mixer),
  6609. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6610. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6614. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6618. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6619. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6620. msm_routing_put_audio_mixer),
  6621. };
  6622. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  6623. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6624. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6625. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6626. msm_routing_put_audio_mixer),
  6627. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6632. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6636. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6640. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6644. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6648. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6649. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6650. msm_routing_put_audio_mixer),
  6651. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6652. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6653. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6654. msm_routing_put_audio_mixer),
  6655. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6656. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6660. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6661. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6662. msm_routing_put_audio_mixer),
  6663. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6664. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6668. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6669. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6670. msm_routing_put_audio_mixer),
  6671. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6672. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6673. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6674. msm_routing_put_audio_mixer),
  6675. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6676. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6677. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6678. msm_routing_put_audio_mixer),
  6679. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6680. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6681. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6682. msm_routing_put_audio_mixer),
  6683. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6684. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6686. msm_routing_put_audio_mixer),
  6687. };
  6688. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6689. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6690. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6691. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6692. msm_routing_put_audio_mixer),
  6693. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6694. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6698. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6702. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6722. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6723. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6724. msm_routing_put_audio_mixer),
  6725. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6726. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6727. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6728. msm_routing_put_audio_mixer),
  6729. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6730. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6734. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6735. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6736. msm_routing_put_audio_mixer),
  6737. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6738. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6739. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6740. msm_routing_put_audio_mixer),
  6741. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6742. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6743. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6744. msm_routing_put_audio_mixer),
  6745. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6746. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6747. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6748. msm_routing_put_audio_mixer),
  6749. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6750. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6751. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6752. msm_routing_put_audio_mixer),
  6753. };
  6754. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  6755. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6756. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6760. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6764. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6768. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6772. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6776. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6780. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6781. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6782. msm_routing_put_audio_mixer),
  6783. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6784. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6788. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6792. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6796. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6800. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6801. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6802. msm_routing_put_audio_mixer),
  6803. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6804. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6808. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6809. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6810. msm_routing_put_audio_mixer),
  6811. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6812. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6813. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6814. msm_routing_put_audio_mixer),
  6815. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6816. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6820. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6821. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6822. msm_routing_put_audio_mixer),
  6823. };
  6824. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  6825. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6846. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6850. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6854. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6858. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6862. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6864. msm_routing_put_audio_mixer),
  6865. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6866. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6867. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6868. msm_routing_put_audio_mixer),
  6869. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6870. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6871. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6872. msm_routing_put_audio_mixer),
  6873. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6874. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6875. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6876. msm_routing_put_audio_mixer),
  6877. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6878. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6879. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6880. msm_routing_put_audio_mixer),
  6881. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6882. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6883. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6884. msm_routing_put_audio_mixer),
  6885. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6886. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6888. msm_routing_put_audio_mixer),
  6889. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6890. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6891. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6892. msm_routing_put_audio_mixer),
  6893. };
  6894. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  6895. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6896. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6900. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6912. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6913. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6914. msm_routing_put_audio_mixer),
  6915. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6932. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6936. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6937. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6938. msm_routing_put_audio_mixer),
  6939. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6940. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6941. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6942. msm_routing_put_audio_mixer),
  6943. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6944. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6948. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6949. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6950. msm_routing_put_audio_mixer),
  6951. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6952. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6953. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6954. msm_routing_put_audio_mixer),
  6955. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6956. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6957. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6958. msm_routing_put_audio_mixer),
  6959. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6960. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6961. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6962. msm_routing_put_audio_mixer),
  6963. };
  6964. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  6965. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7002. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7006. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7010. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7014. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7022. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7026. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7030. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. };
  7034. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7035. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7044. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7072. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7076. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7080. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. };
  7100. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7101. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7114. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7134. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. };
  7170. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7176. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7180. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7184. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7186. msm_routing_put_audio_mixer),
  7187. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7188. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7192. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7204. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7208. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7212. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7216. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. };
  7240. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7241. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7254. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7258. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7259. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7260. msm_routing_put_audio_mixer),
  7261. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7262. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7270. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7274. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7278. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7279. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7280. msm_routing_put_audio_mixer),
  7281. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7282. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7283. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7284. msm_routing_put_audio_mixer),
  7285. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7286. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7290. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. };
  7310. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7311. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7340. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7344. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7345. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7346. msm_routing_put_audio_mixer),
  7347. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7348. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7352. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7353. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7354. msm_routing_put_audio_mixer),
  7355. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7356. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7357. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7358. msm_routing_put_audio_mixer),
  7359. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7360. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. };
  7380. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7381. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7398. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7414. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7418. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7422. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7423. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7424. msm_routing_put_audio_mixer),
  7425. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7426. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7430. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. };
  7446. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7447. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7484. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7488. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7492. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7493. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7494. msm_routing_put_audio_mixer),
  7495. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. };
  7516. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  7517. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. };
  7582. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  7583. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7624. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7625. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7626. msm_routing_put_audio_mixer),
  7627. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7633. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7634. msm_routing_put_audio_mixer),
  7635. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. };
  7652. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  7653. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. };
  7722. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. };
  7792. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  7793. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7834. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7835. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7836. msm_routing_put_audio_mixer),
  7837. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7838. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7839. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7840. msm_routing_put_audio_mixer),
  7841. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7843. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7844. msm_routing_put_audio_mixer),
  7845. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7850. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7851. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7852. msm_routing_put_audio_mixer),
  7853. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. };
  7862. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  7863. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. };
  7936. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  7937. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. };
  8002. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8003. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. };
  8076. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8077. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. };
  8150. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8151. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8156. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8157. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8158. msm_routing_put_audio_mixer),
  8159. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8160. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8161. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8162. msm_routing_put_audio_mixer),
  8163. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8168. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8169. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8170. msm_routing_put_audio_mixer),
  8171. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. };
  8224. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8225. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8238. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8239. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8240. msm_routing_put_audio_mixer),
  8241. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8278. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8279. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8280. msm_routing_put_audio_mixer),
  8281. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8282. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8283. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8284. msm_routing_put_audio_mixer),
  8285. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. };
  8298. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8299. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8348. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8349. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8350. msm_routing_put_audio_mixer),
  8351. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8352. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8353. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8354. msm_routing_put_audio_mixer),
  8355. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8356. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8357. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8358. msm_routing_put_audio_mixer),
  8359. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8360. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8361. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8362. msm_routing_put_audio_mixer),
  8363. };
  8364. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8365. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8426. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8427. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8428. msm_routing_put_audio_mixer),
  8429. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. };
  8438. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8439. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. };
  8512. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  8513. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. };
  8586. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  8587. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_PRI_I2S_TX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_MI2S_TX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_AUXPCM_TX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_INT_FM_TX,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_AFE_PCM_TX,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8740. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8741. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8742. msm_routing_put_audio_mixer),
  8743. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8744. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8745. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8746. msm_routing_put_audio_mixer),
  8747. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8748. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8749. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8750. msm_routing_put_audio_mixer),
  8751. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8752. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8753. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8754. msm_routing_put_audio_mixer),
  8755. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_USB_TX,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. };
  8820. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  8821. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_INT_FM_TX,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_MI2S_TX,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8850. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8851. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8852. msm_routing_put_audio_mixer),
  8853. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_USB_TX,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. };
  9010. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  9011. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9012. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9013. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9014. msm_routing_put_audio_mixer),
  9015. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9016. MSM_BACKEND_DAI_INT_FM_TX,
  9017. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9018. msm_routing_put_audio_mixer),
  9019. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9020. MSM_BACKEND_DAI_MI2S_TX,
  9021. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9022. msm_routing_put_audio_mixer),
  9023. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_AFE_PCM_TX,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_AUXPCM_TX,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9156. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9157. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9158. msm_routing_put_audio_mixer),
  9159. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. };
  9200. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9201. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_INT_FM_TX,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_AFE_PCM_TX,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9231. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9232. msm_routing_put_audio_mixer),
  9233. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9234. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9235. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9236. msm_routing_put_audio_mixer),
  9237. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_USB_TX,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9334. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9336. msm_routing_put_audio_mixer),
  9337. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9366. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9367. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9368. msm_routing_put_audio_mixer),
  9369. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9370. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9372. msm_routing_put_audio_mixer),
  9373. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9374. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9375. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9376. msm_routing_put_audio_mixer),
  9377. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9378. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9379. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9380. msm_routing_put_audio_mixer),
  9381. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9382. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9383. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9384. msm_routing_put_audio_mixer),
  9385. };
  9386. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9387. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_INT_FM_TX,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_MI2S_TX,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_AFE_PCM_TX,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_AUXPCM_TX,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9428. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9429. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9430. msm_routing_put_audio_mixer),
  9431. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9432. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9433. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9434. msm_routing_put_audio_mixer),
  9435. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9436. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9437. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9438. msm_routing_put_audio_mixer),
  9439. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9440. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9441. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9442. msm_routing_put_audio_mixer),
  9443. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9444. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9445. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9446. msm_routing_put_audio_mixer),
  9447. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9449. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9450. msm_routing_put_audio_mixer),
  9451. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9453. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9454. msm_routing_put_audio_mixer),
  9455. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9456. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9457. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9458. msm_routing_put_audio_mixer),
  9459. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9461. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9462. msm_routing_put_audio_mixer),
  9463. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_USB_TX,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9572. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9573. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9574. msm_routing_put_audio_mixer),
  9575. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9576. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9577. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9578. msm_routing_put_audio_mixer),
  9579. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9580. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9581. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9582. msm_routing_put_audio_mixer),
  9583. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9584. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9586. msm_routing_put_audio_mixer),
  9587. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9588. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9590. msm_routing_put_audio_mixer),
  9591. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9592. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9593. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9594. msm_routing_put_audio_mixer),
  9595. };
  9596. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  9597. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_INT_FM_TX,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_AUXPCM_TX,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9670. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9671. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9672. msm_routing_put_audio_mixer),
  9673. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9678. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9680. msm_routing_put_audio_mixer),
  9681. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_USB_TX,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. };
  9786. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  9787. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_INT_FM_TX,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_AFE_PCM_TX,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9869. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9870. msm_routing_put_audio_mixer),
  9871. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9877. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9878. msm_routing_put_audio_mixer),
  9879. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9882. msm_routing_put_audio_mixer),
  9883. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9885. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9886. msm_routing_put_audio_mixer),
  9887. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9909. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9910. msm_routing_put_audio_mixer),
  9911. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9912. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9913. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9914. msm_routing_put_audio_mixer),
  9915. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9917. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9918. msm_routing_put_audio_mixer),
  9919. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9922. msm_routing_put_audio_mixer),
  9923. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_USB_TX,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9974. msm_routing_put_audio_mixer),
  9975. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9977. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9978. msm_routing_put_audio_mixer),
  9979. };
  9980. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  9981. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_INT_FM_TX,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_AFE_PCM_TX,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10051. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10052. msm_routing_put_audio_mixer),
  10053. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10056. msm_routing_put_audio_mixer),
  10057. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10063. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10064. msm_routing_put_audio_mixer),
  10065. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10067. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10068. msm_routing_put_audio_mixer),
  10069. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10070. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10071. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10072. msm_routing_put_audio_mixer),
  10073. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10075. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10076. msm_routing_put_audio_mixer),
  10077. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10079. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10080. msm_routing_put_audio_mixer),
  10081. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_USB_TX,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_MI2S_TX,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_AUXPCM_TX,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10144. msm_routing_get_audio_mixer,
  10145. msm_routing_put_audio_mixer),
  10146. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10148. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10149. msm_routing_get_audio_mixer,
  10150. msm_routing_put_audio_mixer),
  10151. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10153. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10154. msm_routing_get_audio_mixer,
  10155. msm_routing_put_audio_mixer),
  10156. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10157. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10158. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10159. msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10164. msm_routing_get_audio_mixer,
  10165. msm_routing_put_audio_mixer),
  10166. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10168. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10169. msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. };
  10180. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10181. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_INT_FM_TX,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10198. MSM_BACKEND_DAI_AFE_PCM_TX,
  10199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10200. msm_routing_put_audio_mixer),
  10201. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10202. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10204. msm_routing_put_audio_mixer),
  10205. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10206. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10207. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10208. msm_routing_put_audio_mixer),
  10209. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10210. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10211. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10212. msm_routing_put_audio_mixer),
  10213. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10214. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10215. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10216. msm_routing_put_audio_mixer),
  10217. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10218. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10219. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10220. msm_routing_put_audio_mixer),
  10221. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10223. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10224. msm_routing_put_audio_mixer),
  10225. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10227. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10228. msm_routing_put_audio_mixer),
  10229. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10231. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10232. msm_routing_put_audio_mixer),
  10233. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10235. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10236. msm_routing_put_audio_mixer),
  10237. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10240. msm_routing_put_audio_mixer),
  10241. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10243. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10244. msm_routing_put_audio_mixer),
  10245. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. };
  10314. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10315. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_INT_FM_TX,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_AFE_PCM_TX,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_USB_TX,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_MI2S_TX,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_AUXPCM_TX,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10421. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10422. msm_routing_put_audio_mixer),
  10423. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10424. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10425. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10426. msm_routing_put_audio_mixer),
  10427. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10428. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10429. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10430. msm_routing_put_audio_mixer),
  10431. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10432. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10433. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10434. msm_routing_put_audio_mixer),
  10435. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10436. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10437. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10438. msm_routing_put_audio_mixer),
  10439. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10440. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10441. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10442. msm_routing_get_audio_mixer,
  10443. msm_routing_put_audio_mixer),
  10444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10446. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10447. msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10452. msm_routing_get_audio_mixer,
  10453. msm_routing_put_audio_mixer),
  10454. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10455. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10456. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10457. msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10462. msm_routing_get_audio_mixer,
  10463. msm_routing_put_audio_mixer),
  10464. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10466. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10467. msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. };
  10478. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  10479. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10481. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10482. msm_routing_put_audio_mixer),
  10483. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10485. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10486. msm_routing_put_audio_mixer),
  10487. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10489. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10490. msm_routing_put_audio_mixer),
  10491. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_INT_FM_TX,
  10493. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10494. msm_routing_put_audio_mixer),
  10495. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_AFE_PCM_TX,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10542. msm_routing_get_audio_mixer,
  10543. msm_routing_put_audio_mixer),
  10544. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10545. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10546. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10547. msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10552. msm_routing_get_audio_mixer,
  10553. msm_routing_put_audio_mixer),
  10554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10556. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10557. msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10562. msm_routing_get_audio_mixer,
  10563. msm_routing_put_audio_mixer),
  10564. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10565. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10566. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10567. msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. };
  10578. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  10579. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10580. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10581. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10582. msm_routing_put_audio_mixer),
  10583. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10584. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10585. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10586. msm_routing_put_audio_mixer),
  10587. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10588. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10589. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10590. msm_routing_put_audio_mixer),
  10591. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10592. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10593. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10594. msm_routing_put_audio_mixer),
  10595. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10596. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10597. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10598. msm_routing_put_audio_mixer),
  10599. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10600. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10601. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10602. msm_routing_put_audio_mixer),
  10603. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10604. MSM_BACKEND_DAI_INT_FM_TX,
  10605. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10606. msm_routing_put_audio_mixer),
  10607. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10608. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10609. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10610. msm_routing_put_audio_mixer),
  10611. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10612. MSM_BACKEND_DAI_AFE_PCM_TX,
  10613. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10614. msm_routing_put_audio_mixer),
  10615. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10616. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10617. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10618. msm_routing_put_audio_mixer),
  10619. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10621. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10622. msm_routing_put_audio_mixer),
  10623. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10646. msm_routing_get_audio_mixer,
  10647. msm_routing_put_audio_mixer),
  10648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10650. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10651. msm_routing_get_audio_mixer,
  10652. msm_routing_put_audio_mixer),
  10653. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10655. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10656. msm_routing_get_audio_mixer,
  10657. msm_routing_put_audio_mixer),
  10658. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10659. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10660. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10661. msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10666. msm_routing_get_audio_mixer,
  10667. msm_routing_put_audio_mixer),
  10668. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10669. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10670. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10671. msm_routing_get_audio_mixer,
  10672. msm_routing_put_audio_mixer),
  10673. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10675. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10676. msm_routing_put_audio_mixer),
  10677. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10679. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10680. msm_routing_put_audio_mixer),
  10681. };
  10682. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  10683. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_INT_FM_TX,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_AFE_PCM_TX,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10726. msm_routing_put_audio_mixer),
  10727. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10729. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10730. msm_routing_put_audio_mixer),
  10731. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10733. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10734. msm_routing_put_audio_mixer),
  10735. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10737. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10738. msm_routing_put_audio_mixer),
  10739. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10741. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10742. msm_routing_put_audio_mixer),
  10743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10746. msm_routing_get_audio_mixer,
  10747. msm_routing_put_audio_mixer),
  10748. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10749. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10750. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10751. msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10756. msm_routing_get_audio_mixer,
  10757. msm_routing_put_audio_mixer),
  10758. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10759. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10760. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10761. msm_routing_get_audio_mixer,
  10762. msm_routing_put_audio_mixer),
  10763. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10765. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10766. msm_routing_get_audio_mixer,
  10767. msm_routing_put_audio_mixer),
  10768. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10769. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10770. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10771. msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. };
  10782. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  10783. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10786. msm_routing_put_audio_mixer),
  10787. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. };
  10884. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  10885. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_AUXPCM_TX,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10976. msm_routing_put_audio_mixer),
  10977. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10979. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10980. msm_routing_put_audio_mixer),
  10981. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  10996. msm_routing_get_audio_mixer,
  10997. msm_routing_put_audio_mixer),
  10998. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10999. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11000. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  11001. msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  11006. msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  11011. msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  11016. msm_routing_get_audio_mixer,
  11017. msm_routing_put_audio_mixer),
  11018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11020. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  11021. msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. };
  11032. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  11033. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_INT_FM_TX,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_AFE_PCM_TX,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11075. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11079. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11080. msm_routing_put_audio_mixer),
  11081. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11082. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11083. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11084. msm_routing_put_audio_mixer),
  11085. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11086. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11087. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11088. msm_routing_put_audio_mixer),
  11089. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11090. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11091. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11092. msm_routing_put_audio_mixer),
  11093. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11095. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11096. msm_routing_get_audio_mixer,
  11097. msm_routing_put_audio_mixer),
  11098. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11099. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11100. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11101. msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11106. msm_routing_get_audio_mixer,
  11107. msm_routing_put_audio_mixer),
  11108. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11109. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11110. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11111. msm_routing_get_audio_mixer,
  11112. msm_routing_put_audio_mixer),
  11113. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11114. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11115. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11116. msm_routing_get_audio_mixer,
  11117. msm_routing_put_audio_mixer),
  11118. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11119. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11120. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11121. msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. };
  11132. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  11133. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_INT_FM_TX,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_AFE_PCM_TX,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11191. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11196. msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11201. msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11206. msm_routing_get_audio_mixer,
  11207. msm_routing_put_audio_mixer),
  11208. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11209. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11210. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11211. msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11216. msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11221. msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. };
  11232. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  11233. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_PRI_I2S_RX,
  11235. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11236. msm_routing_put_voice_mixer),
  11237. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_PRI_I2S_RX,
  11239. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11240. msm_routing_put_voice_mixer),
  11241. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_PRI_I2S_RX,
  11243. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11244. msm_routing_put_voice_mixer),
  11245. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_PRI_I2S_RX,
  11247. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11248. msm_routing_put_voice_mixer),
  11249. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_PRI_I2S_RX,
  11251. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11252. msm_routing_put_voice_mixer),
  11253. };
  11254. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  11255. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_SEC_I2S_RX,
  11257. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11258. msm_routing_put_voice_mixer),
  11259. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_SEC_I2S_RX,
  11261. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11262. msm_routing_put_voice_mixer),
  11263. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_SEC_I2S_RX,
  11265. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11266. msm_routing_put_voice_mixer),
  11267. };
  11268. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  11269. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11271. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11272. msm_routing_put_voice_mixer),
  11273. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11275. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11276. msm_routing_put_voice_mixer),
  11277. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11279. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11280. msm_routing_put_voice_mixer),
  11281. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11283. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11284. msm_routing_put_voice_mixer),
  11285. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11287. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11288. msm_routing_put_voice_mixer),
  11289. };
  11290. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  11291. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11293. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11294. msm_routing_put_voice_mixer),
  11295. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11297. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11298. msm_routing_put_voice_mixer),
  11299. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11301. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11302. msm_routing_put_voice_mixer),
  11303. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11305. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11306. msm_routing_put_voice_mixer),
  11307. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11309. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11310. msm_routing_put_voice_mixer),
  11311. };
  11312. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  11313. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11315. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11316. msm_routing_put_voice_mixer),
  11317. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11319. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11320. msm_routing_put_voice_mixer),
  11321. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11323. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11324. msm_routing_put_voice_mixer),
  11325. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11327. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11328. msm_routing_put_voice_mixer),
  11329. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11331. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11332. msm_routing_put_voice_mixer),
  11333. };
  11334. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  11335. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_USB_RX,
  11337. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11338. msm_routing_put_voice_mixer),
  11339. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_USB_RX,
  11341. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11342. msm_routing_put_voice_mixer),
  11343. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_USB_RX,
  11345. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11346. msm_routing_put_voice_mixer),
  11347. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_USB_RX,
  11349. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11350. msm_routing_put_voice_mixer),
  11351. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_USB_RX,
  11353. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11354. msm_routing_put_voice_mixer),
  11355. };
  11356. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  11357. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11359. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11360. msm_routing_put_voice_mixer),
  11361. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11363. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11364. msm_routing_put_voice_mixer),
  11365. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11367. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11368. msm_routing_put_voice_mixer),
  11369. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11371. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11372. msm_routing_put_voice_mixer),
  11373. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11375. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11376. msm_routing_put_voice_mixer),
  11377. };
  11378. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  11379. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11381. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11382. msm_routing_put_voice_mixer),
  11383. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11385. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11386. msm_routing_put_voice_mixer),
  11387. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11389. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11390. msm_routing_put_voice_mixer),
  11391. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11393. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11394. msm_routing_put_voice_mixer),
  11395. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11397. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11398. msm_routing_put_voice_mixer),
  11399. };
  11400. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  11401. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11403. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11404. msm_routing_put_voice_mixer),
  11405. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11407. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11408. msm_routing_put_voice_mixer),
  11409. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11411. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11412. msm_routing_put_voice_mixer),
  11413. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11415. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11416. msm_routing_put_voice_mixer),
  11417. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11419. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11420. msm_routing_put_voice_mixer),
  11421. };
  11422. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  11423. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_MI2S_RX,
  11425. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11426. msm_routing_put_voice_mixer),
  11427. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11428. MSM_BACKEND_DAI_MI2S_RX,
  11429. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11430. msm_routing_put_voice_mixer),
  11431. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11432. MSM_BACKEND_DAI_MI2S_RX,
  11433. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11434. msm_routing_put_voice_mixer),
  11435. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_MI2S_RX,
  11437. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11438. msm_routing_put_voice_mixer),
  11439. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_MI2S_RX,
  11441. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11442. msm_routing_put_voice_mixer),
  11443. };
  11444. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  11445. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11447. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11448. msm_routing_put_voice_mixer),
  11449. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11451. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11452. msm_routing_put_voice_mixer),
  11453. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11455. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11456. msm_routing_put_voice_mixer),
  11457. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11459. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11460. msm_routing_put_voice_mixer),
  11461. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11463. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11464. msm_routing_put_voice_mixer),
  11465. };
  11466. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  11467. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11469. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11470. msm_routing_put_voice_mixer),
  11471. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11473. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11474. msm_routing_put_voice_mixer),
  11475. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11477. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11478. msm_routing_put_voice_mixer),
  11479. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11481. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11482. msm_routing_put_voice_mixer),
  11483. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11485. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11486. msm_routing_put_voice_mixer),
  11487. };
  11488. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  11489. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11491. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11492. msm_routing_put_voice_mixer),
  11493. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11495. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11496. msm_routing_put_voice_mixer),
  11497. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11499. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11500. msm_routing_put_voice_mixer),
  11501. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11502. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11503. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11504. msm_routing_put_voice_mixer),
  11505. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11506. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11507. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11508. msm_routing_put_voice_mixer),
  11509. };
  11510. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  11511. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11513. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11514. msm_routing_put_voice_mixer),
  11515. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11517. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11518. msm_routing_put_voice_mixer),
  11519. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11521. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11522. msm_routing_put_voice_mixer),
  11523. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11525. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11526. msm_routing_put_voice_mixer),
  11527. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11529. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11530. msm_routing_put_voice_mixer),
  11531. };
  11532. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  11533. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11535. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11536. msm_routing_put_voice_mixer),
  11537. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11539. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11540. msm_routing_put_voice_mixer),
  11541. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11543. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11544. msm_routing_put_voice_mixer),
  11545. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11547. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11548. msm_routing_put_voice_mixer),
  11549. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11551. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11552. msm_routing_put_voice_mixer),
  11553. };
  11554. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  11555. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11557. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11558. msm_routing_put_voice_mixer),
  11559. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11561. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11562. msm_routing_put_voice_mixer),
  11563. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11565. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11566. msm_routing_put_voice_mixer),
  11567. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11569. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11570. msm_routing_put_voice_mixer),
  11571. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11573. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11574. msm_routing_put_voice_mixer),
  11575. };
  11576. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  11577. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_AFE_PCM_RX,
  11579. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11580. msm_routing_put_voice_mixer),
  11581. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_AFE_PCM_RX,
  11583. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11584. msm_routing_put_voice_mixer),
  11585. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_AFE_PCM_RX,
  11587. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11588. msm_routing_put_voice_mixer),
  11589. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_AFE_PCM_RX,
  11591. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11592. msm_routing_put_voice_mixer),
  11593. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_AFE_PCM_RX,
  11595. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11596. msm_routing_put_voice_mixer),
  11597. };
  11598. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  11599. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_AUXPCM_RX,
  11601. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11602. msm_routing_put_voice_mixer),
  11603. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_AUXPCM_RX,
  11605. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11606. msm_routing_put_voice_mixer),
  11607. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_AUXPCM_RX,
  11609. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11610. msm_routing_put_voice_mixer),
  11611. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_AUXPCM_RX,
  11613. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11614. msm_routing_put_voice_mixer),
  11615. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_AUXPCM_RX,
  11617. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11618. msm_routing_put_voice_mixer),
  11619. };
  11620. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  11621. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11623. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11624. msm_routing_put_voice_mixer),
  11625. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11627. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11628. msm_routing_put_voice_mixer),
  11629. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11631. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11632. msm_routing_put_voice_mixer),
  11633. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11635. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11636. msm_routing_put_voice_mixer),
  11637. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11639. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11640. msm_routing_put_voice_mixer),
  11641. };
  11642. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  11643. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11645. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11646. msm_routing_put_voice_mixer),
  11647. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11649. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11650. msm_routing_put_voice_mixer),
  11651. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11652. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11653. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11654. msm_routing_put_voice_mixer),
  11655. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11656. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11657. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11658. msm_routing_put_voice_mixer),
  11659. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11660. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11661. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11662. msm_routing_put_voice_mixer),
  11663. };
  11664. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  11665. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11667. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11668. msm_routing_put_voice_mixer),
  11669. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11671. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11672. msm_routing_put_voice_mixer),
  11673. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11675. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11676. msm_routing_put_voice_mixer),
  11677. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11679. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11680. msm_routing_put_voice_mixer),
  11681. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11683. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11684. msm_routing_put_voice_mixer),
  11685. };
  11686. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  11687. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11689. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11690. msm_routing_put_voice_mixer),
  11691. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11693. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11694. msm_routing_put_voice_mixer),
  11695. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11696. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11697. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11698. msm_routing_put_voice_mixer),
  11699. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11701. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11702. msm_routing_put_voice_mixer),
  11703. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11705. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11706. msm_routing_put_voice_mixer),
  11707. };
  11708. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  11709. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_HDMI_RX,
  11711. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11712. msm_routing_put_voice_mixer),
  11713. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_HDMI_RX,
  11715. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11716. msm_routing_put_voice_mixer),
  11717. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_HDMI_RX,
  11719. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11720. msm_routing_put_voice_mixer),
  11721. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_HDMI_RX,
  11723. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11724. msm_routing_put_voice_mixer),
  11725. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_HDMI_RX,
  11727. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11728. msm_routing_put_voice_mixer),
  11729. };
  11730. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  11731. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11733. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11734. msm_routing_put_voice_mixer),
  11735. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11737. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11738. msm_routing_put_voice_mixer),
  11739. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11741. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11742. msm_routing_put_voice_mixer),
  11743. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11745. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11746. msm_routing_put_voice_mixer),
  11747. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11749. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11750. msm_routing_put_voice_mixer),
  11751. };
  11752. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  11753. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11755. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11756. msm_routing_put_voice_mixer),
  11757. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11759. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11760. msm_routing_put_voice_mixer),
  11761. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11763. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11764. msm_routing_put_voice_mixer),
  11765. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11767. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11768. msm_routing_put_voice_mixer),
  11769. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11771. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11772. msm_routing_put_voice_mixer),
  11773. };
  11774. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  11775. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11777. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11778. msm_routing_put_voice_mixer),
  11779. };
  11780. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  11781. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11783. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11784. msm_routing_put_voice_mixer),
  11785. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11787. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11788. msm_routing_put_voice_mixer),
  11789. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11791. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11792. msm_routing_put_voice_mixer),
  11793. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11795. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11796. msm_routing_put_voice_mixer),
  11797. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11799. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11800. msm_routing_put_voice_mixer),
  11801. };
  11802. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  11803. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11805. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11806. msm_routing_put_voice_mixer),
  11807. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11809. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11810. msm_routing_put_voice_mixer),
  11811. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11813. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11814. msm_routing_put_voice_mixer),
  11815. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11817. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11818. msm_routing_put_voice_mixer),
  11819. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11821. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11822. msm_routing_put_voice_mixer),
  11823. };
  11824. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  11825. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11827. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11828. msm_routing_put_voice_mixer),
  11829. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11831. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11832. msm_routing_put_voice_mixer),
  11833. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11835. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11836. msm_routing_put_voice_mixer),
  11837. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11839. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11840. msm_routing_put_voice_mixer),
  11841. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11843. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11844. msm_routing_put_voice_mixer),
  11845. };
  11846. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  11847. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11849. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11850. msm_routing_put_voice_mixer),
  11851. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11853. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11854. msm_routing_put_voice_mixer),
  11855. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11857. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11858. msm_routing_put_voice_mixer),
  11859. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11861. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11862. msm_routing_put_voice_mixer),
  11863. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11865. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11866. msm_routing_put_voice_mixer),
  11867. };
  11868. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  11869. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11870. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11871. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11872. msm_routing_put_voice_mixer),
  11873. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11875. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11876. msm_routing_put_voice_mixer),
  11877. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11879. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11880. msm_routing_put_voice_mixer),
  11881. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11883. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11884. msm_routing_put_voice_mixer),
  11885. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11887. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11888. msm_routing_put_voice_mixer),
  11889. };
  11890. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  11891. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11893. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11894. msm_routing_put_voice_mixer),
  11895. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11897. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11898. msm_routing_put_voice_mixer),
  11899. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11901. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11902. msm_routing_put_voice_mixer),
  11903. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11905. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11906. msm_routing_put_voice_mixer),
  11907. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11909. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11910. msm_routing_put_voice_mixer),
  11911. };
  11912. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  11913. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11915. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11916. msm_routing_put_voice_mixer),
  11917. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11919. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11920. msm_routing_put_voice_mixer),
  11921. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11923. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11924. msm_routing_put_voice_mixer),
  11925. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11927. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11928. msm_routing_put_voice_mixer),
  11929. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11931. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11932. msm_routing_put_voice_mixer),
  11933. };
  11934. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  11935. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11937. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11938. msm_routing_put_voice_mixer),
  11939. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11941. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11942. msm_routing_put_voice_mixer),
  11943. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11945. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11946. msm_routing_put_voice_mixer),
  11947. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11949. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11950. msm_routing_put_voice_mixer),
  11951. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11953. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11954. msm_routing_put_voice_mixer),
  11955. };
  11956. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  11957. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11959. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11960. msm_routing_put_voice_mixer),
  11961. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11963. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11964. msm_routing_put_voice_mixer),
  11965. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11967. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11968. msm_routing_put_voice_mixer),
  11969. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11971. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11972. msm_routing_put_voice_mixer),
  11973. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11975. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11976. msm_routing_put_voice_mixer),
  11977. };
  11978. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  11979. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11981. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11982. msm_routing_put_voice_mixer),
  11983. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11985. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11986. msm_routing_put_voice_mixer),
  11987. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11989. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11990. msm_routing_put_voice_mixer),
  11991. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11993. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11994. msm_routing_put_voice_mixer),
  11995. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11997. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11998. msm_routing_put_voice_mixer),
  11999. };
  12000. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  12001. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_EXTPROC_RX,
  12003. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12004. msm_routing_put_voice_mixer),
  12005. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_EXTPROC_RX,
  12007. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12008. msm_routing_put_voice_mixer),
  12009. };
  12010. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  12011. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12013. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12014. msm_routing_put_voice_mixer),
  12015. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12017. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12018. msm_routing_put_voice_mixer),
  12019. };
  12020. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  12021. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12023. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12024. msm_routing_put_voice_mixer),
  12025. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12027. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12028. msm_routing_put_voice_mixer),
  12029. };
  12030. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  12031. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_PRI_I2S_TX,
  12033. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12034. msm_routing_put_voice_mixer),
  12035. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_MI2S_TX,
  12037. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12038. msm_routing_put_voice_mixer),
  12039. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12041. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12042. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  12043. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12044. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12045. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12047. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12048. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12049. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12050. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12051. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12053. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12054. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12055. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12056. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12057. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12059. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12060. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12061. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12062. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12063. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  12064. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12065. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12066. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12068. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12069. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12071. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12072. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  12073. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12074. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12075. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12077. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12078. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  12079. MSM_BACKEND_DAI_USB_TX,
  12080. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12081. msm_routing_put_voice_mixer),
  12082. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  12083. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12084. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12085. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12087. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12088. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12089. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12090. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12091. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12093. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12094. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12095. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12096. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12097. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  12099. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12100. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  12101. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  12102. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12103. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  12105. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12106. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  12108. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12109. };
  12110. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  12111. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_PRI_I2S_TX,
  12113. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12114. msm_routing_put_voice_mixer),
  12115. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_MI2S_TX,
  12117. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12118. msm_routing_put_voice_mixer),
  12119. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12121. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12122. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  12123. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12124. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12125. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12127. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12128. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12129. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12130. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12131. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12133. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12134. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12135. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12136. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12137. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12139. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12140. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12141. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12142. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12143. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12145. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12146. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12148. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12149. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12151. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12152. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  12153. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12154. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12155. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12157. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12158. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  12159. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12160. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12161. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12163. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12164. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12165. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12166. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12169. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12170. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12171. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12172. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12173. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  12175. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12176. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  12177. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  12178. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12179. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  12181. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12182. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  12184. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12185. };
  12186. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  12187. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_PRI_I2S_TX,
  12189. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12190. msm_routing_put_voice_mixer),
  12191. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_MI2S_TX,
  12193. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12194. msm_routing_put_voice_mixer),
  12195. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12197. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12198. msm_routing_put_voice_mixer),
  12199. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12201. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12202. msm_routing_put_voice_mixer),
  12203. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_AFE_PCM_TX,
  12205. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12206. msm_routing_put_voice_mixer),
  12207. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_AUXPCM_TX,
  12209. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12210. msm_routing_put_voice_mixer),
  12211. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12213. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12214. msm_routing_put_voice_mixer),
  12215. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12217. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12218. msm_routing_put_voice_mixer),
  12219. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12221. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12222. msm_routing_put_voice_mixer),
  12223. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12225. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12226. msm_routing_put_voice_mixer),
  12227. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12229. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12230. msm_routing_put_voice_mixer),
  12231. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12233. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12234. msm_routing_put_voice_mixer),
  12235. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12237. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12238. msm_routing_put_voice_mixer),
  12239. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12241. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12242. msm_routing_put_voice_mixer),
  12243. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12245. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12246. msm_routing_put_voice_mixer),
  12247. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_USB_TX,
  12249. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12250. msm_routing_put_voice_mixer),
  12251. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12252. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12253. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12254. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12255. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12256. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12257. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12259. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12260. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12262. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12263. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  12265. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12266. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  12267. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  12268. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12269. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  12271. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12272. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  12273. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  12274. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12275. };
  12276. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  12277. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_EXTPROC_TX,
  12279. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12280. msm_routing_put_voice_stub_mixer),
  12281. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12283. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12284. msm_routing_put_voice_stub_mixer),
  12285. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12287. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12288. msm_routing_put_voice_stub_mixer),
  12289. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12291. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12292. msm_routing_put_voice_stub_mixer),
  12293. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_MI2S_TX,
  12295. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12296. msm_routing_put_voice_stub_mixer),
  12297. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12299. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12300. msm_routing_put_voice_stub_mixer),
  12301. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12303. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12304. msm_routing_put_voice_stub_mixer),
  12305. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12307. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12308. msm_routing_put_voice_stub_mixer),
  12309. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12311. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12312. msm_routing_put_voice_stub_mixer),
  12313. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_AUXPCM_TX,
  12315. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12316. msm_routing_put_voice_stub_mixer),
  12317. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12319. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12320. msm_routing_put_voice_stub_mixer),
  12321. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12323. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12324. msm_routing_put_voice_stub_mixer),
  12325. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12327. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12328. msm_routing_put_voice_stub_mixer),
  12329. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12331. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12332. msm_routing_put_voice_stub_mixer),
  12333. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12335. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12336. msm_routing_put_voice_stub_mixer),
  12337. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12339. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12340. msm_routing_put_voice_stub_mixer),
  12341. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_AFE_PCM_TX,
  12343. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12344. msm_routing_put_voice_stub_mixer),
  12345. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12347. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12348. msm_routing_put_voice_stub_mixer),
  12349. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12351. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12352. msm_routing_put_voice_stub_mixer),
  12353. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12355. 1, 0, msm_routing_get_voice_stub_mixer,
  12356. msm_routing_put_voice_stub_mixer),
  12357. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12359. 1, 0, msm_routing_get_voice_stub_mixer,
  12360. msm_routing_put_voice_stub_mixer),
  12361. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12363. 1, 0, msm_routing_get_voice_stub_mixer,
  12364. msm_routing_put_voice_stub_mixer),
  12365. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12367. 1, 0, msm_routing_get_voice_stub_mixer,
  12368. msm_routing_put_voice_stub_mixer),
  12369. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  12371. 1, 0, msm_routing_get_voice_stub_mixer,
  12372. msm_routing_put_voice_stub_mixer),
  12373. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  12375. 1, 0, msm_routing_get_voice_stub_mixer,
  12376. msm_routing_put_voice_stub_mixer),
  12377. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  12379. 1, 0, msm_routing_get_voice_stub_mixer,
  12380. msm_routing_put_voice_stub_mixer),
  12381. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  12383. 1, 0, msm_routing_get_voice_stub_mixer,
  12384. msm_routing_put_voice_stub_mixer),
  12385. };
  12386. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  12387. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_EXTPROC_TX,
  12389. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12390. msm_routing_put_voice_stub_mixer),
  12391. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12393. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12394. msm_routing_put_voice_stub_mixer),
  12395. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12397. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12398. msm_routing_put_voice_stub_mixer),
  12399. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_AUXPCM_TX,
  12401. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12402. msm_routing_put_voice_stub_mixer),
  12403. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12405. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12406. msm_routing_put_voice_stub_mixer),
  12407. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12409. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12410. msm_routing_put_voice_stub_mixer),
  12411. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12413. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12414. msm_routing_put_voice_stub_mixer),
  12415. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12417. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12418. msm_routing_put_voice_stub_mixer),
  12419. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12421. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12422. msm_routing_put_voice_stub_mixer),
  12423. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12425. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12426. msm_routing_put_voice_stub_mixer),
  12427. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_AFE_PCM_TX,
  12429. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12430. msm_routing_put_voice_stub_mixer),
  12431. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12433. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12434. msm_routing_put_voice_stub_mixer),
  12435. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12437. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12438. msm_routing_put_voice_stub_mixer),
  12439. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12441. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12442. msm_routing_put_voice_stub_mixer),
  12443. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12445. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12446. msm_routing_put_voice_stub_mixer),
  12447. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12449. 1, 0, msm_routing_get_voice_stub_mixer,
  12450. msm_routing_put_voice_stub_mixer),
  12451. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12453. 1, 0, msm_routing_get_voice_stub_mixer,
  12454. msm_routing_put_voice_stub_mixer),
  12455. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12457. 1, 0, msm_routing_get_voice_stub_mixer,
  12458. msm_routing_put_voice_stub_mixer),
  12459. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12461. 1, 0, msm_routing_get_voice_stub_mixer,
  12462. msm_routing_put_voice_stub_mixer),
  12463. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  12465. 1, 0, msm_routing_get_voice_stub_mixer,
  12466. msm_routing_put_voice_stub_mixer),
  12467. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  12469. 1, 0, msm_routing_get_voice_stub_mixer,
  12470. msm_routing_put_voice_stub_mixer),
  12471. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  12473. 1, 0, msm_routing_get_voice_stub_mixer,
  12474. msm_routing_put_voice_stub_mixer),
  12475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  12477. 1, 0, msm_routing_get_voice_stub_mixer,
  12478. msm_routing_put_voice_stub_mixer),
  12479. };
  12480. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  12481. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_EXTPROC_TX,
  12483. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12484. msm_routing_put_voice_stub_mixer),
  12485. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12487. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12488. msm_routing_put_voice_stub_mixer),
  12489. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12491. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12492. msm_routing_put_voice_stub_mixer),
  12493. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_AUXPCM_TX,
  12495. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12496. msm_routing_put_voice_stub_mixer),
  12497. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12499. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12500. msm_routing_put_voice_stub_mixer),
  12501. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12503. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12504. msm_routing_put_voice_stub_mixer),
  12505. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12507. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12508. msm_routing_put_voice_stub_mixer),
  12509. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12511. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12512. msm_routing_put_voice_stub_mixer),
  12513. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12515. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12516. msm_routing_put_voice_stub_mixer),
  12517. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12519. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12520. msm_routing_put_voice_stub_mixer),
  12521. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_AFE_PCM_TX,
  12523. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12524. msm_routing_put_voice_stub_mixer),
  12525. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12527. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12528. msm_routing_put_voice_stub_mixer),
  12529. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12531. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12532. msm_routing_put_voice_stub_mixer),
  12533. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12535. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12536. msm_routing_put_voice_stub_mixer),
  12537. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12539. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12540. msm_routing_put_voice_stub_mixer),
  12541. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12543. 1, 0, msm_routing_get_voice_stub_mixer,
  12544. msm_routing_put_voice_stub_mixer),
  12545. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12547. 1, 0, msm_routing_get_voice_stub_mixer,
  12548. msm_routing_put_voice_stub_mixer),
  12549. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12551. 1, 0, msm_routing_get_voice_stub_mixer,
  12552. msm_routing_put_voice_stub_mixer),
  12553. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12555. 1, 0, msm_routing_get_voice_stub_mixer,
  12556. msm_routing_put_voice_stub_mixer),
  12557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  12559. 1, 0, msm_routing_get_voice_stub_mixer,
  12560. msm_routing_put_voice_stub_mixer),
  12561. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  12563. 1, 0, msm_routing_get_voice_stub_mixer,
  12564. msm_routing_put_voice_stub_mixer),
  12565. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  12567. 1, 0, msm_routing_get_voice_stub_mixer,
  12568. msm_routing_put_voice_stub_mixer),
  12569. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  12571. 1, 0, msm_routing_get_voice_stub_mixer,
  12572. msm_routing_put_voice_stub_mixer),
  12573. };
  12574. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  12575. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_PRI_I2S_TX,
  12577. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12578. msm_routing_put_voice_mixer),
  12579. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12581. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12582. msm_routing_put_voice_mixer),
  12583. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12585. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  12586. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12587. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_AFE_PCM_TX,
  12589. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12590. msm_routing_put_voice_mixer),
  12591. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_AUXPCM_TX,
  12593. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12594. msm_routing_put_voice_mixer),
  12595. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12597. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12598. msm_routing_put_voice_mixer),
  12599. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12601. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12602. msm_routing_put_voice_mixer),
  12603. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12605. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12606. msm_routing_put_voice_mixer),
  12607. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12609. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12610. msm_routing_put_voice_mixer),
  12611. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_MI2S_TX,
  12613. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12614. msm_routing_put_voice_mixer),
  12615. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12617. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12618. msm_routing_put_voice_mixer),
  12619. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12621. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12622. msm_routing_put_voice_mixer),
  12623. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12625. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12626. msm_routing_put_voice_mixer),
  12627. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12629. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12630. msm_routing_put_voice_mixer),
  12631. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12633. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12634. msm_routing_put_voice_mixer),
  12635. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_USB_TX,
  12637. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12638. msm_routing_put_voice_mixer),
  12639. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  12641. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12642. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  12643. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  12644. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12645. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  12647. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  12649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  12650. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12651. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  12653. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12654. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  12655. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  12656. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12657. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  12658. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  12659. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12660. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  12661. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  12662. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12663. };
  12664. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  12665. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12667. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12668. msm_routing_put_port_mixer),
  12669. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12671. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12672. msm_routing_put_port_mixer),
  12673. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12675. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12676. msm_routing_put_port_mixer),
  12677. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12679. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12680. msm_routing_put_port_mixer),
  12681. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12683. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12684. msm_routing_put_port_mixer),
  12685. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12687. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12688. msm_routing_put_port_mixer),
  12689. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12691. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12692. msm_routing_put_port_mixer),
  12693. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12695. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12696. msm_routing_put_port_mixer),
  12697. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12699. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12700. msm_routing_put_port_mixer),
  12701. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12703. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12704. msm_routing_put_port_mixer),
  12705. };
  12706. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  12707. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12709. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12710. msm_routing_put_port_mixer),
  12711. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12713. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12714. msm_routing_put_port_mixer),
  12715. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12717. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12718. msm_routing_put_port_mixer),
  12719. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12721. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12722. msm_routing_put_port_mixer),
  12723. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12725. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12726. msm_routing_put_port_mixer),
  12727. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12729. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12730. msm_routing_put_port_mixer),
  12731. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12733. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12734. msm_routing_put_port_mixer),
  12735. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12737. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12738. msm_routing_put_port_mixer),
  12739. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12741. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12742. msm_routing_put_port_mixer),
  12743. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12745. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12746. msm_routing_put_port_mixer),
  12747. };
  12748. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  12749. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12751. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12752. msm_routing_put_port_mixer),
  12753. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12755. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12756. msm_routing_put_port_mixer),
  12757. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12759. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12760. msm_routing_put_port_mixer),
  12761. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12763. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12764. msm_routing_put_port_mixer),
  12765. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12767. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12768. msm_routing_put_port_mixer),
  12769. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12771. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12772. msm_routing_put_port_mixer),
  12773. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12775. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12776. msm_routing_put_port_mixer),
  12777. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12779. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12780. msm_routing_put_port_mixer),
  12781. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12783. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12784. msm_routing_put_port_mixer),
  12785. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12787. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12788. msm_routing_put_port_mixer),
  12789. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12791. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12792. msm_routing_put_port_mixer),
  12793. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12795. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12796. msm_routing_put_port_mixer),
  12797. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12799. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12800. msm_routing_put_port_mixer),
  12801. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12803. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12804. msm_routing_put_port_mixer),
  12805. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12807. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12808. msm_routing_put_port_mixer),
  12809. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12811. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12812. msm_routing_put_port_mixer),
  12813. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12815. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12816. msm_routing_put_port_mixer),
  12817. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12819. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12820. msm_routing_put_port_mixer),
  12821. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12823. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12824. msm_routing_put_port_mixer),
  12825. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12827. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12828. msm_routing_put_port_mixer),
  12829. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12831. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12832. msm_routing_put_port_mixer),
  12833. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12835. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12836. msm_routing_put_port_mixer),
  12837. };
  12838. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  12839. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_AUXPCM_RX,
  12841. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12842. msm_routing_put_port_mixer),
  12843. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_AUXPCM_RX,
  12845. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12846. msm_routing_put_port_mixer),
  12847. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_AUXPCM_RX,
  12849. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12850. msm_routing_put_port_mixer),
  12851. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_AUXPCM_RX,
  12853. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12854. msm_routing_put_port_mixer),
  12855. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_AUXPCM_RX,
  12857. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  12858. msm_routing_put_port_mixer),
  12859. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_AUXPCM_RX,
  12861. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12862. msm_routing_put_port_mixer),
  12863. };
  12864. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  12865. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12867. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12868. msm_routing_put_port_mixer),
  12869. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12871. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12872. msm_routing_put_port_mixer),
  12873. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12875. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12876. msm_routing_put_port_mixer),
  12877. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12879. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12880. msm_routing_put_port_mixer),
  12881. };
  12882. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  12883. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12884. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12885. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12886. msm_routing_put_port_mixer),
  12887. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12889. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12890. msm_routing_put_port_mixer),
  12891. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12892. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12893. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12894. msm_routing_put_port_mixer),
  12895. };
  12896. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  12897. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12899. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12900. msm_routing_put_port_mixer),
  12901. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12903. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12904. msm_routing_put_port_mixer),
  12905. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12907. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12908. msm_routing_put_port_mixer),
  12909. };
  12910. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  12911. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12913. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12914. msm_routing_put_port_mixer),
  12915. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12916. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12917. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12918. msm_routing_put_port_mixer),
  12919. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12920. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12921. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12922. msm_routing_put_port_mixer),
  12923. };
  12924. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  12925. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12927. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12928. msm_routing_put_port_mixer),
  12929. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12931. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  12932. msm_routing_put_port_mixer),
  12933. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12935. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12936. msm_routing_put_port_mixer),
  12937. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12939. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12940. msm_routing_put_port_mixer),
  12941. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12943. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12944. msm_routing_put_port_mixer),
  12945. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12947. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12948. msm_routing_put_port_mixer),
  12949. };
  12950. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  12951. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12953. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  12954. msm_routing_put_port_mixer),
  12955. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12957. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12958. msm_routing_put_port_mixer),
  12959. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12961. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  12962. msm_routing_put_port_mixer),
  12963. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12965. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  12966. msm_routing_put_port_mixer),
  12967. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12969. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  12970. msm_routing_put_port_mixer),
  12971. };
  12972. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  12973. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12975. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12976. msm_routing_put_port_mixer),
  12977. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12979. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12980. msm_routing_put_port_mixer),
  12981. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12983. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12984. msm_routing_put_port_mixer),
  12985. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12987. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12988. msm_routing_put_port_mixer),
  12989. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12991. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12992. msm_routing_put_port_mixer),
  12993. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12995. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12996. msm_routing_put_port_mixer),
  12997. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12999. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13000. msm_routing_put_port_mixer),
  13001. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13002. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13003. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13004. msm_routing_put_port_mixer),
  13005. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13006. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13007. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13008. msm_routing_put_port_mixer),
  13009. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13011. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13012. msm_routing_put_port_mixer),
  13013. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13015. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13016. msm_routing_put_port_mixer),
  13017. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13019. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13020. msm_routing_put_port_mixer),
  13021. };
  13022. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  13023. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13025. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13026. msm_routing_put_port_mixer),
  13027. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13029. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13030. msm_routing_put_port_mixer),
  13031. };
  13032. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  13033. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_AFE_PCM_RX,
  13035. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13036. msm_routing_put_port_mixer),
  13037. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_AFE_PCM_RX,
  13039. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13040. msm_routing_put_port_mixer),
  13041. };
  13042. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  13043. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_HDMI_RX,
  13045. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13046. msm_routing_put_port_mixer),
  13047. };
  13048. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  13049. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13051. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13052. msm_routing_put_port_mixer),
  13053. };
  13054. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  13055. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13057. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13058. msm_routing_put_port_mixer),
  13059. };
  13060. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  13061. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_SEC_I2S_RX,
  13063. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13064. msm_routing_put_port_mixer),
  13065. };
  13066. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  13067. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_MI2S_RX,
  13069. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13070. msm_routing_put_port_mixer),
  13071. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_MI2S_RX,
  13073. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13074. msm_routing_put_port_mixer),
  13075. };
  13076. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  13077. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13078. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13079. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13080. msm_routing_put_port_mixer),
  13081. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13083. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13084. msm_routing_put_port_mixer),
  13085. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13087. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13088. msm_routing_put_port_mixer),
  13089. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13091. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13092. msm_routing_put_port_mixer),
  13093. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13095. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13096. msm_routing_put_port_mixer),
  13097. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13099. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13100. msm_routing_put_port_mixer),
  13101. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13103. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13104. msm_routing_put_port_mixer),
  13105. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13107. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13108. msm_routing_put_port_mixer),
  13109. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13111. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13112. msm_routing_put_port_mixer),
  13113. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13115. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13116. msm_routing_put_port_mixer),
  13117. };
  13118. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  13119. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_USB_RX,
  13121. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  13122. msm_routing_put_port_mixer),
  13123. };
  13124. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  13125. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13127. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13128. msm_routing_put_port_mixer),
  13129. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13131. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13132. msm_routing_put_port_mixer),
  13133. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13135. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13136. msm_routing_put_port_mixer),
  13137. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13139. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13140. msm_routing_put_port_mixer),
  13141. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13143. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13144. msm_routing_put_port_mixer),
  13145. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13147. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13148. msm_routing_put_port_mixer),
  13149. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13151. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13152. msm_routing_put_port_mixer),
  13153. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13155. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13156. msm_routing_put_port_mixer),
  13157. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13159. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13160. msm_routing_put_port_mixer),
  13161. };
  13162. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  13163. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13165. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13166. msm_routing_put_port_mixer),
  13167. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13168. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13169. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13170. msm_routing_put_port_mixer),
  13171. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13173. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13174. msm_routing_put_port_mixer),
  13175. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13177. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13178. msm_routing_put_port_mixer),
  13179. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13181. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13182. msm_routing_put_port_mixer),
  13183. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13185. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13186. msm_routing_put_port_mixer),
  13187. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13189. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13190. msm_routing_put_port_mixer),
  13191. };
  13192. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  13193. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13195. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13196. msm_routing_get_port_mixer,
  13197. msm_routing_put_port_mixer),
  13198. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13199. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13200. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13201. msm_routing_get_port_mixer,
  13202. msm_routing_put_port_mixer),
  13203. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13204. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13205. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13206. msm_routing_get_port_mixer,
  13207. msm_routing_put_port_mixer),
  13208. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13210. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13211. msm_routing_get_port_mixer,
  13212. msm_routing_put_port_mixer),
  13213. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13215. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13216. msm_routing_get_port_mixer,
  13217. msm_routing_put_port_mixer),
  13218. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13219. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13220. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13221. msm_routing_get_port_mixer,
  13222. msm_routing_put_port_mixer),
  13223. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13224. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13225. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13226. msm_routing_get_port_mixer,
  13227. msm_routing_put_port_mixer),
  13228. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13230. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13231. msm_routing_get_port_mixer,
  13232. msm_routing_put_port_mixer),
  13233. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13235. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13236. msm_routing_get_port_mixer,
  13237. msm_routing_put_port_mixer),
  13238. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13239. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13240. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13241. msm_routing_get_port_mixer,
  13242. msm_routing_put_port_mixer),
  13243. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13245. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13246. msm_routing_get_port_mixer,
  13247. msm_routing_put_port_mixer),
  13248. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13250. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13251. msm_routing_get_port_mixer,
  13252. msm_routing_put_port_mixer),
  13253. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13255. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13256. msm_routing_get_port_mixer,
  13257. msm_routing_put_port_mixer),
  13258. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13259. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13260. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13261. msm_routing_get_port_mixer,
  13262. msm_routing_put_port_mixer),
  13263. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13265. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13266. msm_routing_get_port_mixer,
  13267. msm_routing_put_port_mixer),
  13268. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13270. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13271. msm_routing_get_port_mixer,
  13272. msm_routing_put_port_mixer),
  13273. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13275. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13276. msm_routing_get_port_mixer,
  13277. msm_routing_put_port_mixer),
  13278. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13279. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13280. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13281. msm_routing_get_port_mixer,
  13282. msm_routing_put_port_mixer),
  13283. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13285. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13286. msm_routing_get_port_mixer,
  13287. msm_routing_put_port_mixer),
  13288. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13290. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13291. msm_routing_get_port_mixer,
  13292. msm_routing_put_port_mixer),
  13293. };
  13294. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  13295. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13297. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13298. msm_routing_get_port_mixer,
  13299. msm_routing_put_port_mixer),
  13300. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13302. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13303. msm_routing_get_port_mixer,
  13304. msm_routing_put_port_mixer),
  13305. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13307. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13308. msm_routing_get_port_mixer,
  13309. msm_routing_put_port_mixer),
  13310. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13311. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13312. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13313. msm_routing_get_port_mixer,
  13314. msm_routing_put_port_mixer),
  13315. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13317. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13318. msm_routing_get_port_mixer,
  13319. msm_routing_put_port_mixer),
  13320. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13322. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13323. msm_routing_get_port_mixer,
  13324. msm_routing_put_port_mixer),
  13325. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13327. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13328. msm_routing_get_port_mixer,
  13329. msm_routing_put_port_mixer),
  13330. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13331. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13332. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13333. msm_routing_get_port_mixer,
  13334. msm_routing_put_port_mixer),
  13335. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13337. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13338. msm_routing_get_port_mixer,
  13339. msm_routing_put_port_mixer),
  13340. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13341. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13342. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13343. msm_routing_get_port_mixer,
  13344. msm_routing_put_port_mixer),
  13345. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13347. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13348. msm_routing_get_port_mixer,
  13349. msm_routing_put_port_mixer),
  13350. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13351. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13352. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13353. msm_routing_get_port_mixer,
  13354. msm_routing_put_port_mixer),
  13355. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13357. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13358. msm_routing_get_port_mixer,
  13359. msm_routing_put_port_mixer),
  13360. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13362. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13363. msm_routing_get_port_mixer,
  13364. msm_routing_put_port_mixer),
  13365. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13367. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13368. msm_routing_get_port_mixer,
  13369. msm_routing_put_port_mixer),
  13370. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13371. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13372. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13373. msm_routing_get_port_mixer,
  13374. msm_routing_put_port_mixer),
  13375. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13377. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13378. msm_routing_get_port_mixer,
  13379. msm_routing_put_port_mixer),
  13380. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13381. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13382. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13383. msm_routing_get_port_mixer,
  13384. msm_routing_put_port_mixer),
  13385. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13386. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13387. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13388. msm_routing_get_port_mixer,
  13389. msm_routing_put_port_mixer),
  13390. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13391. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13392. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13393. msm_routing_get_port_mixer,
  13394. msm_routing_put_port_mixer),
  13395. };
  13396. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  13397. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13398. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13399. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13400. msm_routing_get_port_mixer,
  13401. msm_routing_put_port_mixer),
  13402. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13403. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13404. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13405. msm_routing_get_port_mixer,
  13406. msm_routing_put_port_mixer),
  13407. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13409. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13410. msm_routing_get_port_mixer,
  13411. msm_routing_put_port_mixer),
  13412. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13413. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13414. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13415. msm_routing_get_port_mixer,
  13416. msm_routing_put_port_mixer),
  13417. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13419. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13420. msm_routing_get_port_mixer,
  13421. msm_routing_put_port_mixer),
  13422. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13423. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13424. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13425. msm_routing_get_port_mixer,
  13426. msm_routing_put_port_mixer),
  13427. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13429. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13430. msm_routing_get_port_mixer,
  13431. msm_routing_put_port_mixer),
  13432. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13433. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13434. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13435. msm_routing_get_port_mixer,
  13436. msm_routing_put_port_mixer),
  13437. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13438. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13439. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13440. msm_routing_get_port_mixer,
  13441. msm_routing_put_port_mixer),
  13442. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13444. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13445. msm_routing_get_port_mixer,
  13446. msm_routing_put_port_mixer),
  13447. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13449. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13450. msm_routing_get_port_mixer,
  13451. msm_routing_put_port_mixer),
  13452. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13453. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13454. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13455. msm_routing_get_port_mixer,
  13456. msm_routing_put_port_mixer),
  13457. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13459. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13460. msm_routing_get_port_mixer,
  13461. msm_routing_put_port_mixer),
  13462. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13463. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13464. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13465. msm_routing_get_port_mixer,
  13466. msm_routing_put_port_mixer),
  13467. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13469. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13470. msm_routing_get_port_mixer,
  13471. msm_routing_put_port_mixer),
  13472. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13473. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13474. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13475. msm_routing_get_port_mixer,
  13476. msm_routing_put_port_mixer),
  13477. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13478. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13479. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13480. msm_routing_get_port_mixer,
  13481. msm_routing_put_port_mixer),
  13482. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13483. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13484. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13485. msm_routing_get_port_mixer,
  13486. msm_routing_put_port_mixer),
  13487. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13489. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13490. msm_routing_get_port_mixer,
  13491. msm_routing_put_port_mixer),
  13492. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13493. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13494. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13495. msm_routing_get_port_mixer,
  13496. msm_routing_put_port_mixer),
  13497. };
  13498. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  13499. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13501. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13502. msm_routing_get_port_mixer,
  13503. msm_routing_put_port_mixer),
  13504. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13505. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13506. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13507. msm_routing_get_port_mixer,
  13508. msm_routing_put_port_mixer),
  13509. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13511. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13512. msm_routing_get_port_mixer,
  13513. msm_routing_put_port_mixer),
  13514. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13515. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13516. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13517. msm_routing_get_port_mixer,
  13518. msm_routing_put_port_mixer),
  13519. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13521. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13522. msm_routing_get_port_mixer,
  13523. msm_routing_put_port_mixer),
  13524. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13525. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13526. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13527. msm_routing_get_port_mixer,
  13528. msm_routing_put_port_mixer),
  13529. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13531. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13532. msm_routing_get_port_mixer,
  13533. msm_routing_put_port_mixer),
  13534. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13536. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13537. msm_routing_get_port_mixer,
  13538. msm_routing_put_port_mixer),
  13539. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13541. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13542. msm_routing_get_port_mixer,
  13543. msm_routing_put_port_mixer),
  13544. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13545. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13546. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13547. msm_routing_get_port_mixer,
  13548. msm_routing_put_port_mixer),
  13549. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13550. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13551. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13552. msm_routing_get_port_mixer,
  13553. msm_routing_put_port_mixer),
  13554. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13555. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13556. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13557. msm_routing_get_port_mixer,
  13558. msm_routing_put_port_mixer),
  13559. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13561. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13562. msm_routing_get_port_mixer,
  13563. msm_routing_put_port_mixer),
  13564. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13565. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13566. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13567. msm_routing_get_port_mixer,
  13568. msm_routing_put_port_mixer),
  13569. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13570. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13571. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13572. msm_routing_get_port_mixer,
  13573. msm_routing_put_port_mixer),
  13574. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13575. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13576. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13577. msm_routing_get_port_mixer,
  13578. msm_routing_put_port_mixer),
  13579. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13581. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13582. msm_routing_get_port_mixer,
  13583. msm_routing_put_port_mixer),
  13584. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13585. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13586. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13587. msm_routing_get_port_mixer,
  13588. msm_routing_put_port_mixer),
  13589. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13590. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13591. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13592. msm_routing_get_port_mixer,
  13593. msm_routing_put_port_mixer),
  13594. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13595. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13596. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13597. msm_routing_get_port_mixer,
  13598. msm_routing_put_port_mixer),
  13599. };
  13600. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  13601. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13602. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13603. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13604. msm_routing_get_port_mixer,
  13605. msm_routing_put_port_mixer),
  13606. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13607. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13608. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13609. msm_routing_get_port_mixer,
  13610. msm_routing_put_port_mixer),
  13611. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13613. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13614. msm_routing_get_port_mixer,
  13615. msm_routing_put_port_mixer),
  13616. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13617. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13618. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13619. msm_routing_get_port_mixer,
  13620. msm_routing_put_port_mixer),
  13621. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13623. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13624. msm_routing_get_port_mixer,
  13625. msm_routing_put_port_mixer),
  13626. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13627. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13628. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13629. msm_routing_get_port_mixer,
  13630. msm_routing_put_port_mixer),
  13631. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13633. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13634. msm_routing_get_port_mixer,
  13635. msm_routing_put_port_mixer),
  13636. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13638. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13639. msm_routing_get_port_mixer,
  13640. msm_routing_put_port_mixer),
  13641. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13643. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13644. msm_routing_get_port_mixer,
  13645. msm_routing_put_port_mixer),
  13646. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13647. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13648. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13649. msm_routing_get_port_mixer,
  13650. msm_routing_put_port_mixer),
  13651. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13653. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13654. msm_routing_get_port_mixer,
  13655. msm_routing_put_port_mixer),
  13656. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13657. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13658. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13659. msm_routing_get_port_mixer,
  13660. msm_routing_put_port_mixer),
  13661. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13663. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13664. msm_routing_get_port_mixer,
  13665. msm_routing_put_port_mixer),
  13666. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13667. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13668. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13669. msm_routing_get_port_mixer,
  13670. msm_routing_put_port_mixer),
  13671. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13673. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13674. msm_routing_get_port_mixer,
  13675. msm_routing_put_port_mixer),
  13676. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13677. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13678. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13679. msm_routing_get_port_mixer,
  13680. msm_routing_put_port_mixer),
  13681. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13683. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13684. msm_routing_get_port_mixer,
  13685. msm_routing_put_port_mixer),
  13686. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13687. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13688. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13689. msm_routing_get_port_mixer,
  13690. msm_routing_put_port_mixer),
  13691. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13693. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13694. msm_routing_get_port_mixer,
  13695. msm_routing_put_port_mixer),
  13696. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13697. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13698. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13699. msm_routing_get_port_mixer,
  13700. msm_routing_put_port_mixer),
  13701. };
  13702. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  13703. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13705. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13706. msm_routing_get_port_mixer,
  13707. msm_routing_put_port_mixer),
  13708. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13709. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13710. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13711. msm_routing_get_port_mixer,
  13712. msm_routing_put_port_mixer),
  13713. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13715. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13716. msm_routing_get_port_mixer,
  13717. msm_routing_put_port_mixer),
  13718. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13719. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13720. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13721. msm_routing_get_port_mixer,
  13722. msm_routing_put_port_mixer),
  13723. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13725. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13726. msm_routing_get_port_mixer,
  13727. msm_routing_put_port_mixer),
  13728. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13730. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13731. msm_routing_get_port_mixer,
  13732. msm_routing_put_port_mixer),
  13733. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13735. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13736. msm_routing_get_port_mixer,
  13737. msm_routing_put_port_mixer),
  13738. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13739. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13740. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13741. msm_routing_get_port_mixer,
  13742. msm_routing_put_port_mixer),
  13743. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13744. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13745. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13746. msm_routing_get_port_mixer,
  13747. msm_routing_put_port_mixer),
  13748. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13749. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13750. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13751. msm_routing_get_port_mixer,
  13752. msm_routing_put_port_mixer),
  13753. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13755. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13756. msm_routing_get_port_mixer,
  13757. msm_routing_put_port_mixer),
  13758. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13759. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13760. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13761. msm_routing_get_port_mixer,
  13762. msm_routing_put_port_mixer),
  13763. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13765. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13766. msm_routing_get_port_mixer,
  13767. msm_routing_put_port_mixer),
  13768. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13769. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13770. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13771. msm_routing_get_port_mixer,
  13772. msm_routing_put_port_mixer),
  13773. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13775. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13776. msm_routing_get_port_mixer,
  13777. msm_routing_put_port_mixer),
  13778. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13780. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13781. msm_routing_get_port_mixer,
  13782. msm_routing_put_port_mixer),
  13783. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13785. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13786. msm_routing_get_port_mixer,
  13787. msm_routing_put_port_mixer),
  13788. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13789. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13790. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13791. msm_routing_get_port_mixer,
  13792. msm_routing_put_port_mixer),
  13793. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13794. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13795. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13796. msm_routing_get_port_mixer,
  13797. msm_routing_put_port_mixer),
  13798. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13799. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13800. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13801. msm_routing_get_port_mixer,
  13802. msm_routing_put_port_mixer),
  13803. };
  13804. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  13805. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13807. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13808. msm_routing_get_port_mixer,
  13809. msm_routing_put_port_mixer),
  13810. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13811. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13812. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13813. msm_routing_get_port_mixer,
  13814. msm_routing_put_port_mixer),
  13815. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13817. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13818. msm_routing_get_port_mixer,
  13819. msm_routing_put_port_mixer),
  13820. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13822. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13823. msm_routing_get_port_mixer,
  13824. msm_routing_put_port_mixer),
  13825. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13827. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13828. msm_routing_get_port_mixer,
  13829. msm_routing_put_port_mixer),
  13830. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13832. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13833. msm_routing_get_port_mixer,
  13834. msm_routing_put_port_mixer),
  13835. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13837. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13838. msm_routing_get_port_mixer,
  13839. msm_routing_put_port_mixer),
  13840. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13841. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13842. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13843. msm_routing_get_port_mixer,
  13844. msm_routing_put_port_mixer),
  13845. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13847. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13848. msm_routing_get_port_mixer,
  13849. msm_routing_put_port_mixer),
  13850. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13851. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13852. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13853. msm_routing_get_port_mixer,
  13854. msm_routing_put_port_mixer),
  13855. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13857. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13858. msm_routing_get_port_mixer,
  13859. msm_routing_put_port_mixer),
  13860. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13861. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13862. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13863. msm_routing_get_port_mixer,
  13864. msm_routing_put_port_mixer),
  13865. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13866. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13867. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13868. msm_routing_get_port_mixer,
  13869. msm_routing_put_port_mixer),
  13870. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13872. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13873. msm_routing_get_port_mixer,
  13874. msm_routing_put_port_mixer),
  13875. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13877. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13878. msm_routing_get_port_mixer,
  13879. msm_routing_put_port_mixer),
  13880. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13881. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13882. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13883. msm_routing_get_port_mixer,
  13884. msm_routing_put_port_mixer),
  13885. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13887. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13888. msm_routing_get_port_mixer,
  13889. msm_routing_put_port_mixer),
  13890. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13891. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13892. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13893. msm_routing_get_port_mixer,
  13894. msm_routing_put_port_mixer),
  13895. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13897. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13898. msm_routing_get_port_mixer,
  13899. msm_routing_put_port_mixer),
  13900. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13901. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13902. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13903. msm_routing_get_port_mixer,
  13904. msm_routing_put_port_mixer),
  13905. };
  13906. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  13907. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13909. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13910. msm_routing_get_port_mixer,
  13911. msm_routing_put_port_mixer),
  13912. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13913. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13914. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13915. msm_routing_get_port_mixer,
  13916. msm_routing_put_port_mixer),
  13917. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13919. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13920. msm_routing_get_port_mixer,
  13921. msm_routing_put_port_mixer),
  13922. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13923. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13924. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13925. msm_routing_get_port_mixer,
  13926. msm_routing_put_port_mixer),
  13927. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13929. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13930. msm_routing_get_port_mixer,
  13931. msm_routing_put_port_mixer),
  13932. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13933. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13934. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13935. msm_routing_get_port_mixer,
  13936. msm_routing_put_port_mixer),
  13937. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13939. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13940. msm_routing_get_port_mixer,
  13941. msm_routing_put_port_mixer),
  13942. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13944. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13945. msm_routing_get_port_mixer,
  13946. msm_routing_put_port_mixer),
  13947. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13949. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13950. msm_routing_get_port_mixer,
  13951. msm_routing_put_port_mixer),
  13952. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13953. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13954. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13955. msm_routing_get_port_mixer,
  13956. msm_routing_put_port_mixer),
  13957. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13959. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13960. msm_routing_get_port_mixer,
  13961. msm_routing_put_port_mixer),
  13962. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13963. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13964. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13965. msm_routing_get_port_mixer,
  13966. msm_routing_put_port_mixer),
  13967. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13969. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13970. msm_routing_get_port_mixer,
  13971. msm_routing_put_port_mixer),
  13972. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13973. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13974. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13975. msm_routing_get_port_mixer,
  13976. msm_routing_put_port_mixer),
  13977. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13978. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13979. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13980. msm_routing_get_port_mixer,
  13981. msm_routing_put_port_mixer),
  13982. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13983. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13984. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13985. msm_routing_get_port_mixer,
  13986. msm_routing_put_port_mixer),
  13987. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13989. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13990. msm_routing_get_port_mixer,
  13991. msm_routing_put_port_mixer),
  13992. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13993. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13994. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13995. msm_routing_get_port_mixer,
  13996. msm_routing_put_port_mixer),
  13997. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13999. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14000. msm_routing_get_port_mixer,
  14001. msm_routing_put_port_mixer),
  14002. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14004. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14005. msm_routing_get_port_mixer,
  14006. msm_routing_put_port_mixer),
  14007. };
  14008. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  14009. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14011. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14012. msm_routing_get_port_mixer,
  14013. msm_routing_put_port_mixer),
  14014. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14015. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14016. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14017. msm_routing_get_port_mixer,
  14018. msm_routing_put_port_mixer),
  14019. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14020. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14021. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14022. msm_routing_get_port_mixer,
  14023. msm_routing_put_port_mixer),
  14024. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14025. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14026. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14027. msm_routing_get_port_mixer,
  14028. msm_routing_put_port_mixer),
  14029. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14031. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14032. msm_routing_get_port_mixer,
  14033. msm_routing_put_port_mixer),
  14034. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14035. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14036. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14037. msm_routing_get_port_mixer,
  14038. msm_routing_put_port_mixer),
  14039. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14040. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14041. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14042. msm_routing_get_port_mixer,
  14043. msm_routing_put_port_mixer),
  14044. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14045. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14046. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14047. msm_routing_get_port_mixer,
  14048. msm_routing_put_port_mixer),
  14049. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14051. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14052. msm_routing_get_port_mixer,
  14053. msm_routing_put_port_mixer),
  14054. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14056. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14057. msm_routing_get_port_mixer,
  14058. msm_routing_put_port_mixer),
  14059. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14060. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14061. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14062. msm_routing_get_port_mixer,
  14063. msm_routing_put_port_mixer),
  14064. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14065. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14066. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14067. msm_routing_get_port_mixer,
  14068. msm_routing_put_port_mixer),
  14069. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14071. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14072. msm_routing_get_port_mixer,
  14073. msm_routing_put_port_mixer),
  14074. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14076. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14077. msm_routing_get_port_mixer,
  14078. msm_routing_put_port_mixer),
  14079. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14080. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14081. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14082. msm_routing_get_port_mixer,
  14083. msm_routing_put_port_mixer),
  14084. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14085. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14086. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14087. msm_routing_get_port_mixer,
  14088. msm_routing_put_port_mixer),
  14089. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14091. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14092. msm_routing_get_port_mixer,
  14093. msm_routing_put_port_mixer),
  14094. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14095. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14096. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14097. msm_routing_get_port_mixer,
  14098. msm_routing_put_port_mixer),
  14099. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14101. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14102. msm_routing_get_port_mixer,
  14103. msm_routing_put_port_mixer),
  14104. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14105. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14106. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14107. msm_routing_get_port_mixer,
  14108. msm_routing_put_port_mixer),
  14109. };
  14110. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  14111. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14113. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14114. msm_routing_get_port_mixer,
  14115. msm_routing_put_port_mixer),
  14116. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14117. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14118. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14119. msm_routing_get_port_mixer,
  14120. msm_routing_put_port_mixer),
  14121. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14123. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14124. msm_routing_get_port_mixer,
  14125. msm_routing_put_port_mixer),
  14126. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14128. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14129. msm_routing_get_port_mixer,
  14130. msm_routing_put_port_mixer),
  14131. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14133. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14134. msm_routing_get_port_mixer,
  14135. msm_routing_put_port_mixer),
  14136. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14137. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14138. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14139. msm_routing_get_port_mixer,
  14140. msm_routing_put_port_mixer),
  14141. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14143. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14144. msm_routing_get_port_mixer,
  14145. msm_routing_put_port_mixer),
  14146. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14147. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14148. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14149. msm_routing_get_port_mixer,
  14150. msm_routing_put_port_mixer),
  14151. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14153. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14154. msm_routing_get_port_mixer,
  14155. msm_routing_put_port_mixer),
  14156. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14157. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14158. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14159. msm_routing_get_port_mixer,
  14160. msm_routing_put_port_mixer),
  14161. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14163. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14164. msm_routing_get_port_mixer,
  14165. msm_routing_put_port_mixer),
  14166. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14168. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14169. msm_routing_get_port_mixer,
  14170. msm_routing_put_port_mixer),
  14171. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14173. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14174. msm_routing_get_port_mixer,
  14175. msm_routing_put_port_mixer),
  14176. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14177. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14178. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14179. msm_routing_get_port_mixer,
  14180. msm_routing_put_port_mixer),
  14181. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14182. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14183. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14184. msm_routing_get_port_mixer,
  14185. msm_routing_put_port_mixer),
  14186. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14187. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14188. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14189. msm_routing_get_port_mixer,
  14190. msm_routing_put_port_mixer),
  14191. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14193. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14194. msm_routing_get_port_mixer,
  14195. msm_routing_put_port_mixer),
  14196. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14197. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14198. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14199. msm_routing_get_port_mixer,
  14200. msm_routing_put_port_mixer),
  14201. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14203. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14204. msm_routing_get_port_mixer,
  14205. msm_routing_put_port_mixer),
  14206. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14207. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14208. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14209. msm_routing_get_port_mixer,
  14210. msm_routing_put_port_mixer),
  14211. };
  14212. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  14213. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14215. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14216. msm_routing_get_port_mixer,
  14217. msm_routing_put_port_mixer),
  14218. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14219. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14220. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14221. msm_routing_get_port_mixer,
  14222. msm_routing_put_port_mixer),
  14223. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14224. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14225. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14226. msm_routing_get_port_mixer,
  14227. msm_routing_put_port_mixer),
  14228. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14229. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14230. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14231. msm_routing_get_port_mixer,
  14232. msm_routing_put_port_mixer),
  14233. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14235. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14236. msm_routing_get_port_mixer,
  14237. msm_routing_put_port_mixer),
  14238. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14239. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14240. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14241. msm_routing_get_port_mixer,
  14242. msm_routing_put_port_mixer),
  14243. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14244. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14245. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14246. msm_routing_get_port_mixer,
  14247. msm_routing_put_port_mixer),
  14248. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14249. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14250. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14251. msm_routing_get_port_mixer,
  14252. msm_routing_put_port_mixer),
  14253. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14255. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14256. msm_routing_get_port_mixer,
  14257. msm_routing_put_port_mixer),
  14258. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14259. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14260. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14261. msm_routing_get_port_mixer,
  14262. msm_routing_put_port_mixer),
  14263. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14265. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14266. msm_routing_get_port_mixer,
  14267. msm_routing_put_port_mixer),
  14268. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14269. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14270. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14271. msm_routing_get_port_mixer,
  14272. msm_routing_put_port_mixer),
  14273. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14275. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14276. msm_routing_get_port_mixer,
  14277. msm_routing_put_port_mixer),
  14278. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14279. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14280. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14281. msm_routing_get_port_mixer,
  14282. msm_routing_put_port_mixer),
  14283. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14285. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14286. msm_routing_get_port_mixer,
  14287. msm_routing_put_port_mixer),
  14288. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14290. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14291. msm_routing_get_port_mixer,
  14292. msm_routing_put_port_mixer),
  14293. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14295. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14296. msm_routing_get_port_mixer,
  14297. msm_routing_put_port_mixer),
  14298. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14299. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14300. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14301. msm_routing_get_port_mixer,
  14302. msm_routing_put_port_mixer),
  14303. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14304. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14305. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14306. msm_routing_get_port_mixer,
  14307. msm_routing_put_port_mixer),
  14308. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14309. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14310. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14311. msm_routing_get_port_mixer,
  14312. msm_routing_put_port_mixer),
  14313. };
  14314. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  14315. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14316. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14317. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14318. msm_routing_get_port_mixer,
  14319. msm_routing_put_port_mixer),
  14320. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14321. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14322. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14323. msm_routing_get_port_mixer,
  14324. msm_routing_put_port_mixer),
  14325. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14326. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14327. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14328. msm_routing_get_port_mixer,
  14329. msm_routing_put_port_mixer),
  14330. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14331. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14332. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14333. msm_routing_get_port_mixer,
  14334. msm_routing_put_port_mixer),
  14335. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14336. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14337. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14338. msm_routing_get_port_mixer,
  14339. msm_routing_put_port_mixer),
  14340. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14341. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14342. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14343. msm_routing_get_port_mixer,
  14344. msm_routing_put_port_mixer),
  14345. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14347. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14348. msm_routing_get_port_mixer,
  14349. msm_routing_put_port_mixer),
  14350. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14351. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14352. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14353. msm_routing_get_port_mixer,
  14354. msm_routing_put_port_mixer),
  14355. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14356. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14357. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14358. msm_routing_get_port_mixer,
  14359. msm_routing_put_port_mixer),
  14360. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14361. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14362. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14363. msm_routing_get_port_mixer,
  14364. msm_routing_put_port_mixer),
  14365. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14367. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14368. msm_routing_get_port_mixer,
  14369. msm_routing_put_port_mixer),
  14370. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14371. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14372. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14373. msm_routing_get_port_mixer,
  14374. msm_routing_put_port_mixer),
  14375. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14377. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14378. msm_routing_get_port_mixer,
  14379. msm_routing_put_port_mixer),
  14380. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14381. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14382. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14383. msm_routing_get_port_mixer,
  14384. msm_routing_put_port_mixer),
  14385. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14386. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14387. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14388. msm_routing_get_port_mixer,
  14389. msm_routing_put_port_mixer),
  14390. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14391. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14392. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14393. msm_routing_get_port_mixer,
  14394. msm_routing_put_port_mixer),
  14395. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14397. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14398. msm_routing_get_port_mixer,
  14399. msm_routing_put_port_mixer),
  14400. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14401. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14402. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14403. msm_routing_get_port_mixer,
  14404. msm_routing_put_port_mixer),
  14405. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14406. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14407. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14408. msm_routing_get_port_mixer,
  14409. msm_routing_put_port_mixer),
  14410. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14411. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14412. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14413. msm_routing_get_port_mixer,
  14414. msm_routing_put_port_mixer),
  14415. };
  14416. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  14417. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14419. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14420. msm_routing_get_port_mixer,
  14421. msm_routing_put_port_mixer),
  14422. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14423. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14424. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14425. msm_routing_get_port_mixer,
  14426. msm_routing_put_port_mixer),
  14427. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14429. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14430. msm_routing_get_port_mixer,
  14431. msm_routing_put_port_mixer),
  14432. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14433. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14434. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14435. msm_routing_get_port_mixer,
  14436. msm_routing_put_port_mixer),
  14437. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14438. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14439. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14440. msm_routing_get_port_mixer,
  14441. msm_routing_put_port_mixer),
  14442. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14443. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14444. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14445. msm_routing_get_port_mixer,
  14446. msm_routing_put_port_mixer),
  14447. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14448. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14449. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14450. msm_routing_get_port_mixer,
  14451. msm_routing_put_port_mixer),
  14452. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14454. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14455. msm_routing_get_port_mixer,
  14456. msm_routing_put_port_mixer),
  14457. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14459. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14460. msm_routing_get_port_mixer,
  14461. msm_routing_put_port_mixer),
  14462. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14463. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14464. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14465. msm_routing_get_port_mixer,
  14466. msm_routing_put_port_mixer),
  14467. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14468. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14469. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14470. msm_routing_get_port_mixer,
  14471. msm_routing_put_port_mixer),
  14472. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14473. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14474. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14475. msm_routing_get_port_mixer,
  14476. msm_routing_put_port_mixer),
  14477. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14479. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14480. msm_routing_get_port_mixer,
  14481. msm_routing_put_port_mixer),
  14482. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14483. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14484. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14485. msm_routing_get_port_mixer,
  14486. msm_routing_put_port_mixer),
  14487. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14488. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14489. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14490. msm_routing_get_port_mixer,
  14491. msm_routing_put_port_mixer),
  14492. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14493. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14494. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14495. msm_routing_get_port_mixer,
  14496. msm_routing_put_port_mixer),
  14497. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14499. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14500. msm_routing_get_port_mixer,
  14501. msm_routing_put_port_mixer),
  14502. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14503. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14504. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14505. msm_routing_get_port_mixer,
  14506. msm_routing_put_port_mixer),
  14507. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14508. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14509. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14510. msm_routing_get_port_mixer,
  14511. msm_routing_put_port_mixer),
  14512. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14513. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14514. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14515. msm_routing_get_port_mixer,
  14516. msm_routing_put_port_mixer),
  14517. };
  14518. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  14519. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14521. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14522. msm_routing_get_port_mixer,
  14523. msm_routing_put_port_mixer),
  14524. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14525. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14526. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14527. msm_routing_get_port_mixer,
  14528. msm_routing_put_port_mixer),
  14529. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14530. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14531. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14532. msm_routing_get_port_mixer,
  14533. msm_routing_put_port_mixer),
  14534. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14535. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14536. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14537. msm_routing_get_port_mixer,
  14538. msm_routing_put_port_mixer),
  14539. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14541. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14542. msm_routing_get_port_mixer,
  14543. msm_routing_put_port_mixer),
  14544. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14545. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14546. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14547. msm_routing_get_port_mixer,
  14548. msm_routing_put_port_mixer),
  14549. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14550. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14551. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14552. msm_routing_get_port_mixer,
  14553. msm_routing_put_port_mixer),
  14554. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14555. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14556. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14557. msm_routing_get_port_mixer,
  14558. msm_routing_put_port_mixer),
  14559. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14560. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14561. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14562. msm_routing_get_port_mixer,
  14563. msm_routing_put_port_mixer),
  14564. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14565. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14566. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14567. msm_routing_get_port_mixer,
  14568. msm_routing_put_port_mixer),
  14569. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14570. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14571. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14572. msm_routing_get_port_mixer,
  14573. msm_routing_put_port_mixer),
  14574. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14575. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14576. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14577. msm_routing_get_port_mixer,
  14578. msm_routing_put_port_mixer),
  14579. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14581. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14582. msm_routing_get_port_mixer,
  14583. msm_routing_put_port_mixer),
  14584. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14585. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14586. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14587. msm_routing_get_port_mixer,
  14588. msm_routing_put_port_mixer),
  14589. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14590. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14591. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14592. msm_routing_get_port_mixer,
  14593. msm_routing_put_port_mixer),
  14594. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14595. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14596. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14597. msm_routing_get_port_mixer,
  14598. msm_routing_put_port_mixer),
  14599. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14601. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14602. msm_routing_get_port_mixer,
  14603. msm_routing_put_port_mixer),
  14604. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14605. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14606. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14607. msm_routing_get_port_mixer,
  14608. msm_routing_put_port_mixer),
  14609. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14610. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14611. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14612. msm_routing_get_port_mixer,
  14613. msm_routing_put_port_mixer),
  14614. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14615. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14616. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14617. msm_routing_get_port_mixer,
  14618. msm_routing_put_port_mixer),
  14619. };
  14620. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  14621. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14623. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14624. msm_routing_get_port_mixer,
  14625. msm_routing_put_port_mixer),
  14626. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14627. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14628. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14629. msm_routing_get_port_mixer,
  14630. msm_routing_put_port_mixer),
  14631. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14632. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14633. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14634. msm_routing_get_port_mixer,
  14635. msm_routing_put_port_mixer),
  14636. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14637. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14638. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14639. msm_routing_get_port_mixer,
  14640. msm_routing_put_port_mixer),
  14641. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14642. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14643. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14644. msm_routing_get_port_mixer,
  14645. msm_routing_put_port_mixer),
  14646. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14647. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14648. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14649. msm_routing_get_port_mixer,
  14650. msm_routing_put_port_mixer),
  14651. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14652. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14653. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14654. msm_routing_get_port_mixer,
  14655. msm_routing_put_port_mixer),
  14656. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14657. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14658. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14659. msm_routing_get_port_mixer,
  14660. msm_routing_put_port_mixer),
  14661. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14662. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14663. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14664. msm_routing_get_port_mixer,
  14665. msm_routing_put_port_mixer),
  14666. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14667. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14668. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14669. msm_routing_get_port_mixer,
  14670. msm_routing_put_port_mixer),
  14671. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14672. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14673. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14674. msm_routing_get_port_mixer,
  14675. msm_routing_put_port_mixer),
  14676. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14677. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14678. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14679. msm_routing_get_port_mixer,
  14680. msm_routing_put_port_mixer),
  14681. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14682. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14683. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14684. msm_routing_get_port_mixer,
  14685. msm_routing_put_port_mixer),
  14686. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14687. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14688. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14689. msm_routing_get_port_mixer,
  14690. msm_routing_put_port_mixer),
  14691. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14692. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14693. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14694. msm_routing_get_port_mixer,
  14695. msm_routing_put_port_mixer),
  14696. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14697. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14698. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14699. msm_routing_get_port_mixer,
  14700. msm_routing_put_port_mixer),
  14701. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14702. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14703. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14704. msm_routing_get_port_mixer,
  14705. msm_routing_put_port_mixer),
  14706. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14707. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14708. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14709. msm_routing_get_port_mixer,
  14710. msm_routing_put_port_mixer),
  14711. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14712. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14713. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14714. msm_routing_get_port_mixer,
  14715. msm_routing_put_port_mixer),
  14716. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14717. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14718. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14719. msm_routing_get_port_mixer,
  14720. msm_routing_put_port_mixer),
  14721. };
  14722. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  14723. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14725. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14726. msm_routing_get_port_mixer,
  14727. msm_routing_put_port_mixer),
  14728. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14729. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14730. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14731. msm_routing_get_port_mixer,
  14732. msm_routing_put_port_mixer),
  14733. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14734. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14735. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14736. msm_routing_get_port_mixer,
  14737. msm_routing_put_port_mixer),
  14738. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14739. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14740. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14741. msm_routing_get_port_mixer,
  14742. msm_routing_put_port_mixer),
  14743. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14745. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14746. msm_routing_get_port_mixer,
  14747. msm_routing_put_port_mixer),
  14748. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14749. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14750. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14751. msm_routing_get_port_mixer,
  14752. msm_routing_put_port_mixer),
  14753. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14755. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14756. msm_routing_get_port_mixer,
  14757. msm_routing_put_port_mixer),
  14758. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14759. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14760. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14761. msm_routing_get_port_mixer,
  14762. msm_routing_put_port_mixer),
  14763. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14764. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14765. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14766. msm_routing_get_port_mixer,
  14767. msm_routing_put_port_mixer),
  14768. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14769. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14770. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14771. msm_routing_get_port_mixer,
  14772. msm_routing_put_port_mixer),
  14773. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14774. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14775. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14776. msm_routing_get_port_mixer,
  14777. msm_routing_put_port_mixer),
  14778. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14779. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14780. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14781. msm_routing_get_port_mixer,
  14782. msm_routing_put_port_mixer),
  14783. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14785. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14786. msm_routing_get_port_mixer,
  14787. msm_routing_put_port_mixer),
  14788. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14789. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14790. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14791. msm_routing_get_port_mixer,
  14792. msm_routing_put_port_mixer),
  14793. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14794. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14795. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14796. msm_routing_get_port_mixer,
  14797. msm_routing_put_port_mixer),
  14798. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14799. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14800. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14801. msm_routing_get_port_mixer,
  14802. msm_routing_put_port_mixer),
  14803. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14804. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14805. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14806. msm_routing_get_port_mixer,
  14807. msm_routing_put_port_mixer),
  14808. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14809. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14810. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14811. msm_routing_get_port_mixer,
  14812. msm_routing_put_port_mixer),
  14813. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14815. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14816. msm_routing_get_port_mixer,
  14817. msm_routing_put_port_mixer),
  14818. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14819. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14820. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14821. msm_routing_get_port_mixer,
  14822. msm_routing_put_port_mixer),
  14823. };
  14824. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  14825. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14827. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14828. msm_routing_get_port_mixer,
  14829. msm_routing_put_port_mixer),
  14830. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14831. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14832. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14833. msm_routing_get_port_mixer,
  14834. msm_routing_put_port_mixer),
  14835. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14837. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14838. msm_routing_get_port_mixer,
  14839. msm_routing_put_port_mixer),
  14840. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14841. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14842. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14843. msm_routing_get_port_mixer,
  14844. msm_routing_put_port_mixer),
  14845. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14846. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14847. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14848. msm_routing_get_port_mixer,
  14849. msm_routing_put_port_mixer),
  14850. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14851. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14852. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14853. msm_routing_get_port_mixer,
  14854. msm_routing_put_port_mixer),
  14855. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14856. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14857. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14858. msm_routing_get_port_mixer,
  14859. msm_routing_put_port_mixer),
  14860. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14861. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14862. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14863. msm_routing_get_port_mixer,
  14864. msm_routing_put_port_mixer),
  14865. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14867. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14868. msm_routing_get_port_mixer,
  14869. msm_routing_put_port_mixer),
  14870. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14871. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14872. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14873. msm_routing_get_port_mixer,
  14874. msm_routing_put_port_mixer),
  14875. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14876. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14877. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14878. msm_routing_get_port_mixer,
  14879. msm_routing_put_port_mixer),
  14880. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14881. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14882. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14883. msm_routing_get_port_mixer,
  14884. msm_routing_put_port_mixer),
  14885. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14886. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14887. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14888. msm_routing_get_port_mixer,
  14889. msm_routing_put_port_mixer),
  14890. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14891. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14892. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14893. msm_routing_get_port_mixer,
  14894. msm_routing_put_port_mixer),
  14895. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14896. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14897. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14898. msm_routing_get_port_mixer,
  14899. msm_routing_put_port_mixer),
  14900. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14901. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14902. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14903. msm_routing_get_port_mixer,
  14904. msm_routing_put_port_mixer),
  14905. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14907. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14908. msm_routing_get_port_mixer,
  14909. msm_routing_put_port_mixer),
  14910. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14911. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14912. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14913. msm_routing_get_port_mixer,
  14914. msm_routing_put_port_mixer),
  14915. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14917. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14918. msm_routing_get_port_mixer,
  14919. msm_routing_put_port_mixer),
  14920. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14921. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14922. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14923. msm_routing_get_port_mixer,
  14924. msm_routing_put_port_mixer),
  14925. };
  14926. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  14927. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14929. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14930. msm_routing_get_port_mixer,
  14931. msm_routing_put_port_mixer),
  14932. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14933. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14934. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14935. msm_routing_get_port_mixer,
  14936. msm_routing_put_port_mixer),
  14937. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14938. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14939. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14940. msm_routing_get_port_mixer,
  14941. msm_routing_put_port_mixer),
  14942. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14943. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14944. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14945. msm_routing_get_port_mixer,
  14946. msm_routing_put_port_mixer),
  14947. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14949. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14950. msm_routing_get_port_mixer,
  14951. msm_routing_put_port_mixer),
  14952. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14953. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14954. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14955. msm_routing_get_port_mixer,
  14956. msm_routing_put_port_mixer),
  14957. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14958. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14959. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14960. msm_routing_get_port_mixer,
  14961. msm_routing_put_port_mixer),
  14962. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14963. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14964. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14965. msm_routing_get_port_mixer,
  14966. msm_routing_put_port_mixer),
  14967. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14968. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14969. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14970. msm_routing_get_port_mixer,
  14971. msm_routing_put_port_mixer),
  14972. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14973. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14974. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14975. msm_routing_get_port_mixer,
  14976. msm_routing_put_port_mixer),
  14977. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14978. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14979. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14980. msm_routing_get_port_mixer,
  14981. msm_routing_put_port_mixer),
  14982. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14983. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14984. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14985. msm_routing_get_port_mixer,
  14986. msm_routing_put_port_mixer),
  14987. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14988. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14989. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14990. msm_routing_get_port_mixer,
  14991. msm_routing_put_port_mixer),
  14992. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14993. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14994. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14995. msm_routing_get_port_mixer,
  14996. msm_routing_put_port_mixer),
  14997. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14998. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14999. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15000. msm_routing_get_port_mixer,
  15001. msm_routing_put_port_mixer),
  15002. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15003. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15004. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15005. msm_routing_get_port_mixer,
  15006. msm_routing_put_port_mixer),
  15007. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15009. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15010. msm_routing_get_port_mixer,
  15011. msm_routing_put_port_mixer),
  15012. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15013. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15014. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15015. msm_routing_get_port_mixer,
  15016. msm_routing_put_port_mixer),
  15017. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15019. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15020. msm_routing_get_port_mixer,
  15021. msm_routing_put_port_mixer),
  15022. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15023. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15024. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15025. msm_routing_get_port_mixer,
  15026. msm_routing_put_port_mixer),
  15027. };
  15028. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  15029. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15031. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15032. msm_routing_get_port_mixer,
  15033. msm_routing_put_port_mixer),
  15034. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15035. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15036. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15037. msm_routing_get_port_mixer,
  15038. msm_routing_put_port_mixer),
  15039. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15041. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15042. msm_routing_get_port_mixer,
  15043. msm_routing_put_port_mixer),
  15044. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15045. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15046. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15047. msm_routing_get_port_mixer,
  15048. msm_routing_put_port_mixer),
  15049. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15050. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15051. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15052. msm_routing_get_port_mixer,
  15053. msm_routing_put_port_mixer),
  15054. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15055. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15056. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15057. msm_routing_get_port_mixer,
  15058. msm_routing_put_port_mixer),
  15059. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15060. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15061. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15062. msm_routing_get_port_mixer,
  15063. msm_routing_put_port_mixer),
  15064. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15065. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15066. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15067. msm_routing_get_port_mixer,
  15068. msm_routing_put_port_mixer),
  15069. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15070. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15071. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15072. msm_routing_get_port_mixer,
  15073. msm_routing_put_port_mixer),
  15074. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15075. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15076. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15077. msm_routing_get_port_mixer,
  15078. msm_routing_put_port_mixer),
  15079. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15080. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15081. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15082. msm_routing_get_port_mixer,
  15083. msm_routing_put_port_mixer),
  15084. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15085. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15086. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15087. msm_routing_get_port_mixer,
  15088. msm_routing_put_port_mixer),
  15089. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15090. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15091. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15092. msm_routing_get_port_mixer,
  15093. msm_routing_put_port_mixer),
  15094. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15095. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15096. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15097. msm_routing_get_port_mixer,
  15098. msm_routing_put_port_mixer),
  15099. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15100. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15101. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15102. msm_routing_get_port_mixer,
  15103. msm_routing_put_port_mixer),
  15104. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15105. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15106. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15107. msm_routing_get_port_mixer,
  15108. msm_routing_put_port_mixer),
  15109. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15111. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15112. msm_routing_get_port_mixer,
  15113. msm_routing_put_port_mixer),
  15114. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15115. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15116. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15117. msm_routing_get_port_mixer,
  15118. msm_routing_put_port_mixer),
  15119. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15120. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15121. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15122. msm_routing_get_port_mixer,
  15123. msm_routing_put_port_mixer),
  15124. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15125. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15126. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15127. msm_routing_get_port_mixer,
  15128. msm_routing_put_port_mixer),
  15129. };
  15130. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  15131. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15132. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15133. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15134. msm_routing_get_port_mixer,
  15135. msm_routing_put_port_mixer),
  15136. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15137. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15138. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15139. msm_routing_get_port_mixer,
  15140. msm_routing_put_port_mixer),
  15141. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15142. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15143. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15144. msm_routing_get_port_mixer,
  15145. msm_routing_put_port_mixer),
  15146. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15147. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15148. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15149. msm_routing_get_port_mixer,
  15150. msm_routing_put_port_mixer),
  15151. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15152. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15153. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15154. msm_routing_get_port_mixer,
  15155. msm_routing_put_port_mixer),
  15156. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15157. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15158. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15159. msm_routing_get_port_mixer,
  15160. msm_routing_put_port_mixer),
  15161. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15162. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15163. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15164. msm_routing_get_port_mixer,
  15165. msm_routing_put_port_mixer),
  15166. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15167. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15168. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15169. msm_routing_get_port_mixer,
  15170. msm_routing_put_port_mixer),
  15171. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15172. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15173. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15174. msm_routing_get_port_mixer,
  15175. msm_routing_put_port_mixer),
  15176. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15177. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15178. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15179. msm_routing_get_port_mixer,
  15180. msm_routing_put_port_mixer),
  15181. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15182. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15183. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15184. msm_routing_get_port_mixer,
  15185. msm_routing_put_port_mixer),
  15186. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15187. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15188. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15189. msm_routing_get_port_mixer,
  15190. msm_routing_put_port_mixer),
  15191. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15192. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15193. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15194. msm_routing_get_port_mixer,
  15195. msm_routing_put_port_mixer),
  15196. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15197. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15198. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15199. msm_routing_get_port_mixer,
  15200. msm_routing_put_port_mixer),
  15201. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15202. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15203. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15204. msm_routing_get_port_mixer,
  15205. msm_routing_put_port_mixer),
  15206. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15207. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15208. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15209. msm_routing_get_port_mixer,
  15210. msm_routing_put_port_mixer),
  15211. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15213. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15214. msm_routing_get_port_mixer,
  15215. msm_routing_put_port_mixer),
  15216. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15217. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15218. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15219. msm_routing_get_port_mixer,
  15220. msm_routing_put_port_mixer),
  15221. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15222. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15223. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15224. msm_routing_get_port_mixer,
  15225. msm_routing_put_port_mixer),
  15226. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15227. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15228. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15229. msm_routing_get_port_mixer,
  15230. msm_routing_put_port_mixer),
  15231. };
  15232. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  15233. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15234. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15235. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15236. msm_routing_put_port_mixer),
  15237. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15239. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15240. msm_routing_put_port_mixer),
  15241. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15242. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15243. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15244. msm_routing_put_port_mixer),
  15245. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15247. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15248. msm_routing_put_port_mixer),
  15249. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15250. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15251. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15252. msm_routing_put_port_mixer),
  15253. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15254. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15255. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15256. msm_routing_put_port_mixer),
  15257. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15258. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15259. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15260. msm_routing_put_port_mixer),
  15261. };
  15262. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  15263. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15264. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15265. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15266. msm_routing_put_port_mixer),
  15267. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15268. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15269. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15270. msm_routing_put_port_mixer),
  15271. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15272. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15273. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15274. msm_routing_put_port_mixer),
  15275. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15276. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15277. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15278. msm_routing_put_port_mixer),
  15279. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15280. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15281. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15282. msm_routing_put_port_mixer),
  15283. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15284. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15285. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15286. msm_routing_put_port_mixer),
  15287. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15288. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15289. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15290. msm_routing_put_port_mixer),
  15291. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15292. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15293. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15294. msm_routing_put_port_mixer),
  15295. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15296. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15297. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15298. msm_routing_put_port_mixer),
  15299. };
  15300. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  15301. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15302. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15303. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15304. msm_routing_put_listen_mixer),
  15305. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15307. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15308. msm_routing_put_listen_mixer),
  15309. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15310. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15311. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15312. msm_routing_put_listen_mixer),
  15313. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15314. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15315. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15316. msm_routing_put_listen_mixer),
  15317. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15319. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15320. msm_routing_put_listen_mixer),
  15321. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15322. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15323. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15324. msm_routing_put_listen_mixer),
  15325. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15326. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15327. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15328. msm_routing_put_listen_mixer),
  15329. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15331. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15332. msm_routing_put_listen_mixer),
  15333. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15334. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15335. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15336. msm_routing_put_listen_mixer),
  15337. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15338. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15339. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15340. msm_routing_put_listen_mixer),
  15341. };
  15342. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  15343. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15345. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15346. msm_routing_put_listen_mixer),
  15347. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  15348. SND_SOC_NOPM,
  15349. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15350. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15351. msm_routing_put_listen_mixer),
  15352. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15353. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15354. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15355. msm_routing_put_listen_mixer),
  15356. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15357. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15358. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15359. msm_routing_put_listen_mixer),
  15360. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15361. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15362. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15363. msm_routing_put_listen_mixer),
  15364. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15365. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15366. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15367. msm_routing_put_listen_mixer),
  15368. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15369. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15370. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15371. msm_routing_put_listen_mixer),
  15372. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15374. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15375. msm_routing_put_listen_mixer),
  15376. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15378. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15379. msm_routing_put_listen_mixer),
  15380. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15381. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15382. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15383. msm_routing_put_listen_mixer),
  15384. };
  15385. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  15386. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15387. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15388. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15389. msm_routing_put_listen_mixer),
  15390. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15391. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15392. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15393. msm_routing_put_listen_mixer),
  15394. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15396. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15397. msm_routing_put_listen_mixer),
  15398. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15400. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15401. msm_routing_put_listen_mixer),
  15402. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15404. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15405. msm_routing_put_listen_mixer),
  15406. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15408. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15409. msm_routing_put_listen_mixer),
  15410. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15411. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15412. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15413. msm_routing_put_listen_mixer),
  15414. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15415. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15416. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15417. msm_routing_put_listen_mixer),
  15418. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15419. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15420. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15421. msm_routing_put_listen_mixer),
  15422. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15423. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15424. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15425. msm_routing_put_listen_mixer),
  15426. };
  15427. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  15428. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15430. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15431. msm_routing_put_listen_mixer),
  15432. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15434. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15435. msm_routing_put_listen_mixer),
  15436. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15437. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15438. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15439. msm_routing_put_listen_mixer),
  15440. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15441. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15442. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15443. msm_routing_put_listen_mixer),
  15444. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15446. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15447. msm_routing_put_listen_mixer),
  15448. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15450. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15451. msm_routing_put_listen_mixer),
  15452. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15454. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15455. msm_routing_put_listen_mixer),
  15456. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15458. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15459. msm_routing_put_listen_mixer),
  15460. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15462. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15463. msm_routing_put_listen_mixer),
  15464. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15466. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15467. msm_routing_put_listen_mixer),
  15468. };
  15469. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  15470. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15471. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15472. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15473. msm_routing_put_listen_mixer),
  15474. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15475. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15476. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15477. msm_routing_put_listen_mixer),
  15478. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15479. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15480. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15481. msm_routing_put_listen_mixer),
  15482. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15483. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15484. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15485. msm_routing_put_listen_mixer),
  15486. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15487. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15488. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15489. msm_routing_put_listen_mixer),
  15490. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15491. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15492. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15493. msm_routing_put_listen_mixer),
  15494. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15496. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15497. msm_routing_put_listen_mixer),
  15498. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15499. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15500. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15501. msm_routing_put_listen_mixer),
  15502. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15504. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15505. msm_routing_put_listen_mixer),
  15506. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15508. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15509. msm_routing_put_listen_mixer),
  15510. };
  15511. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  15512. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15513. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15514. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15515. msm_routing_put_listen_mixer),
  15516. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15517. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15518. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15519. msm_routing_put_listen_mixer),
  15520. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15521. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15522. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15523. msm_routing_put_listen_mixer),
  15524. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15525. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15526. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15527. msm_routing_put_listen_mixer),
  15528. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15529. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15530. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15531. msm_routing_put_listen_mixer),
  15532. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15534. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15535. msm_routing_put_listen_mixer),
  15536. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15538. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15539. msm_routing_put_listen_mixer),
  15540. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15542. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15543. msm_routing_put_listen_mixer),
  15544. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15546. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15547. msm_routing_put_listen_mixer),
  15548. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15549. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15550. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15551. msm_routing_put_listen_mixer),
  15552. };
  15553. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  15554. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15555. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15556. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15557. msm_routing_put_listen_mixer),
  15558. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15559. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15560. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15561. msm_routing_put_listen_mixer),
  15562. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15564. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15565. msm_routing_put_listen_mixer),
  15566. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15568. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15569. msm_routing_put_listen_mixer),
  15570. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15571. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15572. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15573. msm_routing_put_listen_mixer),
  15574. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15575. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15576. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15577. msm_routing_put_listen_mixer),
  15578. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15579. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15580. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15581. msm_routing_put_listen_mixer),
  15582. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15583. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15584. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15585. msm_routing_put_listen_mixer),
  15586. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15587. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15588. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15589. msm_routing_put_listen_mixer),
  15590. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15591. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15592. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15593. msm_routing_put_listen_mixer),
  15594. };
  15595. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  15596. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15598. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15599. msm_routing_put_listen_mixer),
  15600. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15601. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15602. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15603. msm_routing_put_listen_mixer),
  15604. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15605. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15606. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15607. msm_routing_put_listen_mixer),
  15608. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15609. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15610. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15611. msm_routing_put_listen_mixer),
  15612. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15613. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15614. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15615. msm_routing_put_listen_mixer),
  15616. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15618. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15619. msm_routing_put_listen_mixer),
  15620. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15622. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15623. msm_routing_put_listen_mixer),
  15624. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15625. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15626. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15627. msm_routing_put_listen_mixer),
  15628. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15629. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15630. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15631. msm_routing_put_listen_mixer),
  15632. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15634. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15635. msm_routing_put_listen_mixer),
  15636. };
  15637. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  15638. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15639. 0, 1, 0, msm_routing_get_switch_mixer,
  15640. msm_routing_put_switch_mixer);
  15641. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  15642. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15643. 0, 1, 0, msm_routing_get_switch_mixer,
  15644. msm_routing_put_switch_mixer);
  15645. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  15646. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15647. 0, 1, 0, msm_routing_get_switch_mixer,
  15648. msm_routing_put_switch_mixer);
  15649. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  15650. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15651. 0, 1, 0, msm_routing_get_switch_mixer,
  15652. msm_routing_put_switch_mixer);
  15653. static const struct snd_kcontrol_new cdc_dma_fm_switch_mixer_controls =
  15654. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15655. 0, 1, 0, msm_routing_get_switch_mixer,
  15656. msm_routing_put_switch_mixer);
  15657. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  15658. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15659. 0, 1, 0, msm_routing_get_switch_mixer,
  15660. msm_routing_put_switch_mixer);
  15661. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  15662. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15663. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  15664. msm_routing_put_fm_pcmrx_switch_mixer);
  15665. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  15666. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15667. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  15668. msm_routing_put_int0_mi2s_switch_mixer);
  15669. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  15670. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15671. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  15672. msm_routing_put_int4_mi2s_switch_mixer);
  15673. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  15674. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15675. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  15676. msm_routing_put_pri_mi2s_switch_mixer);
  15677. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  15678. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15679. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  15680. msm_routing_put_sec_mi2s_switch_mixer);
  15681. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  15682. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15683. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  15684. msm_routing_put_tert_mi2s_switch_mixer);
  15685. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  15686. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15687. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  15688. msm_routing_put_quat_mi2s_switch_mixer);
  15689. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  15690. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15691. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  15692. msm_routing_put_quin_mi2s_switch_mixer);
  15693. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  15694. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15695. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15696. msm_routing_put_hfp_switch_mixer);
  15697. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  15698. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15699. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15700. msm_routing_put_hfp_switch_mixer);
  15701. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  15702. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15703. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15704. msm_routing_put_hfp_switch_mixer);
  15705. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  15706. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15707. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15708. msm_routing_put_hfp_switch_mixer);
  15709. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  15710. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15711. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  15712. msm_routing_put_usb_switch_mixer);
  15713. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  15714. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15715. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  15716. msm_routing_a2dp_switch_mixer_put);
  15717. static const struct soc_enum lsm_port_enum =
  15718. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  15719. static const char * const lsm_func_text[] = {
  15720. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  15721. };
  15722. static const struct soc_enum lsm_func_enum =
  15723. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  15724. static const struct snd_kcontrol_new lsm_controls[] = {
  15725. /* kcontrol of lsm_function */
  15726. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15727. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15728. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15729. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15730. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15731. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15732. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15733. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15734. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15735. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15736. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15737. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15738. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15739. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15740. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15741. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15742. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15743. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15744. /* kcontrol of lsm_port */
  15745. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  15746. msm_routing_lsm_port_get,
  15747. msm_routing_lsm_port_put),
  15748. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  15749. msm_routing_lsm_port_get,
  15750. msm_routing_lsm_port_put),
  15751. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  15752. msm_routing_lsm_port_get,
  15753. msm_routing_lsm_port_put),
  15754. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  15755. msm_routing_lsm_port_get,
  15756. msm_routing_lsm_port_put),
  15757. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  15758. msm_routing_lsm_port_get,
  15759. msm_routing_lsm_port_put),
  15760. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  15761. msm_routing_lsm_port_get,
  15762. msm_routing_lsm_port_put),
  15763. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  15764. msm_routing_lsm_port_get,
  15765. msm_routing_lsm_port_put),
  15766. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  15767. msm_routing_lsm_port_get,
  15768. msm_routing_lsm_port_put),
  15769. };
  15770. static const char * const aanc_slim_0_rx_text[] = {
  15771. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  15772. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  15773. };
  15774. static const struct soc_enum aanc_slim_0_rx_enum =
  15775. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  15776. aanc_slim_0_rx_text);
  15777. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  15778. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  15779. msm_routing_slim_0_rx_aanc_mux_get,
  15780. msm_routing_slim_0_rx_aanc_mux_put)
  15781. };
  15782. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  15783. struct snd_ctl_elem_value *ucontrol)
  15784. {
  15785. ucontrol->value.integer.value[0] = aanc_level;
  15786. return 0;
  15787. }
  15788. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  15789. struct snd_ctl_elem_value *ucontrol)
  15790. {
  15791. int ret = 0;
  15792. mutex_lock(&routing_lock);
  15793. aanc_level = ucontrol->value.integer.value[0];
  15794. pr_debug("%s: value: %ld\n",
  15795. __func__, ucontrol->value.integer.value[0]);
  15796. ret = afe_set_aanc_noise_level(aanc_level);
  15797. mutex_unlock(&routing_lock);
  15798. return ret;
  15799. }
  15800. static const struct snd_kcontrol_new aanc_noise_level[] = {
  15801. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  15802. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  15803. };
  15804. static int msm_routing_get_stereo_to_custom_stereo_control(
  15805. struct snd_kcontrol *kcontrol,
  15806. struct snd_ctl_elem_value *ucontrol)
  15807. {
  15808. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  15809. return 0;
  15810. }
  15811. static int msm_routing_put_stereo_to_custom_stereo_control(
  15812. struct snd_kcontrol *kcontrol,
  15813. struct snd_ctl_elem_value *ucontrol)
  15814. {
  15815. int flag = 0, i = 0, rc = 0, idx = 0;
  15816. int be_index = 0, port_id, topo_id;
  15817. unsigned int session_id = 0;
  15818. uint16_t op_FL_ip_FL_weight = 0;
  15819. uint16_t op_FL_ip_FR_weight = 0;
  15820. uint16_t op_FR_ip_FL_weight = 0;
  15821. uint16_t op_FR_ip_FR_weight = 0;
  15822. flag = ucontrol->value.integer.value[0];
  15823. pr_debug("%s E flag %d\n", __func__, flag);
  15824. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  15825. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  15826. __func__, is_custom_stereo_on, flag);
  15827. return 0;
  15828. }
  15829. is_custom_stereo_on = flag ? true : false;
  15830. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  15831. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  15832. port_id = msm_bedais[be_index].port_id;
  15833. if (!msm_bedais[be_index].active)
  15834. continue;
  15835. if ((port_id != SLIMBUS_0_RX) &&
  15836. (port_id != RT_PROXY_PORT_001_RX) &&
  15837. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  15838. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  15839. continue;
  15840. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  15841. MSM_FRONTEND_DAI_MM_SIZE) {
  15842. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  15843. LEGACY_PCM_MODE)
  15844. goto skip_send_custom_stereo;
  15845. session_id =
  15846. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  15847. if (is_custom_stereo_on) {
  15848. op_FL_ip_FL_weight =
  15849. Q14_GAIN_ZERO_POINT_FIVE;
  15850. op_FL_ip_FR_weight =
  15851. Q14_GAIN_ZERO_POINT_FIVE;
  15852. op_FR_ip_FL_weight =
  15853. Q14_GAIN_ZERO_POINT_FIVE;
  15854. op_FR_ip_FR_weight =
  15855. Q14_GAIN_ZERO_POINT_FIVE;
  15856. } else {
  15857. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  15858. op_FL_ip_FR_weight = 0;
  15859. op_FR_ip_FL_weight = 0;
  15860. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  15861. }
  15862. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15863. unsigned long copp =
  15864. session_copp_map[i]
  15865. [SESSION_TYPE_RX][be_index];
  15866. if (!test_bit(idx, &copp))
  15867. goto skip_send_custom_stereo;
  15868. topo_id = adm_get_topology_for_port_copp_idx(
  15869. msm_bedais[be_index].port_id, idx);
  15870. if (topo_id < 0)
  15871. pr_debug("%s:Err:custom stereo topo %d",
  15872. __func__, topo_id);
  15873. pr_debug("idx %d\n", idx);
  15874. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  15875. rc = msm_ds2_dap_set_custom_stereo_onoff
  15876. (msm_bedais[be_index].port_id,
  15877. idx, is_custom_stereo_on);
  15878. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  15879. rc = dolby_dap_set_custom_stereo_onoff(
  15880. msm_bedais[be_index].port_id,
  15881. idx, is_custom_stereo_on);
  15882. else
  15883. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  15884. (msm_bedais[be_index].port_id,
  15885. idx, session_id,
  15886. op_FL_ip_FL_weight,
  15887. op_FL_ip_FR_weight,
  15888. op_FR_ip_FL_weight,
  15889. op_FR_ip_FR_weight);
  15890. if (rc < 0)
  15891. skip_send_custom_stereo:
  15892. pr_err("%s: err setting custom stereo\n",
  15893. __func__);
  15894. }
  15895. }
  15896. }
  15897. return 0;
  15898. }
  15899. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  15900. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  15901. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  15902. msm_routing_put_stereo_to_custom_stereo_control),
  15903. };
  15904. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  15905. struct snd_ctl_elem_value *ucontrol)
  15906. {
  15907. return 0;
  15908. }
  15909. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  15910. struct snd_ctl_elem_value *ucontrol)
  15911. {
  15912. int i = 0, j;
  15913. int num_app_types = ucontrol->value.integer.value[i++];
  15914. pr_debug("%s\n", __func__);
  15915. memset(app_type_cfg, 0, MAX_APP_TYPES*
  15916. sizeof(struct msm_pcm_routing_app_type_data));
  15917. if (num_app_types > MAX_APP_TYPES) {
  15918. pr_err("%s: number of app types exceed the max supported\n",
  15919. __func__);
  15920. return -EINVAL;
  15921. }
  15922. for (j = 0; j < num_app_types; j++) {
  15923. app_type_cfg[j].app_type =
  15924. ucontrol->value.integer.value[i++];
  15925. app_type_cfg[j].sample_rate =
  15926. ucontrol->value.integer.value[i++];
  15927. app_type_cfg[j].bit_width =
  15928. ucontrol->value.integer.value[i++];
  15929. }
  15930. return 0;
  15931. }
  15932. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  15933. struct snd_ctl_elem_value *ucontrol)
  15934. {
  15935. int j, fe_id, be_id, port_type;
  15936. int ret = 0;
  15937. unsigned long copp;
  15938. struct msm_pcm_routing_bdai_data *bedai;
  15939. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  15940. SESSION_TYPE_RX;
  15941. int app_type = ucontrol->value.integer.value[1];
  15942. int gain = (ucontrol->value.integer.value[2] +
  15943. ucontrol->value.integer.value[3])/2;
  15944. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  15945. MSM_AFE_PORT_TYPE_TX;
  15946. mutex_lock(&routing_lock);
  15947. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  15948. if (is_be_dai_extproc(be_id))
  15949. continue;
  15950. bedai = &msm_bedais[be_id];
  15951. if (afe_get_port_type(bedai->port_id) != port_type)
  15952. continue;
  15953. if (!bedai->active)
  15954. continue;
  15955. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  15956. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  15957. continue;
  15958. if (app_type !=
  15959. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  15960. continue;
  15961. copp = session_copp_map[fe_id][dir][be_id];
  15962. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  15963. if (!test_bit(j, &copp))
  15964. continue;
  15965. ret |= adm_set_volume(bedai->port_id, j, gain);
  15966. }
  15967. }
  15968. }
  15969. mutex_unlock(&routing_lock);
  15970. return ret ? -EINVAL : 0;
  15971. }
  15972. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  15973. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  15974. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  15975. msm_routing_put_app_type_cfg_control),
  15976. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  15977. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  15978. };
  15979. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  15980. struct snd_ctl_elem_value *ucontrol)
  15981. {
  15982. int copp_idx, fe_id, be_id, port_type;
  15983. int ret = 0;
  15984. unsigned long copp;
  15985. struct msm_pcm_routing_bdai_data *bedai;
  15986. u8 *packed_params = NULL;
  15987. struct param_hdr_v3 param_hdr;
  15988. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  15989. sizeof(uint32_t));
  15990. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  15991. SESSION_TYPE_RX;
  15992. int app_type = ucontrol->value.integer.value[1];
  15993. int module_id = ucontrol->value.integer.value[2];
  15994. int instance_id = ucontrol->value.integer.value[3];
  15995. int param_id = ucontrol->value.integer.value[4];
  15996. int param_value = ucontrol->value.integer.value[5];
  15997. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  15998. MSM_AFE_PORT_TYPE_TX;
  15999. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  16000. __func__, app_type, module_id,
  16001. instance_id, param_id, param_value);
  16002. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  16003. if (!packed_params)
  16004. return -ENOMEM;
  16005. memset(&param_hdr, 0, sizeof(param_hdr));
  16006. param_hdr.module_id = module_id;
  16007. param_hdr.instance_id = instance_id;
  16008. param_hdr.param_id = param_id;
  16009. param_hdr.param_size = sizeof(uint32_t);
  16010. packed_param_size = 0;
  16011. mutex_lock(&routing_lock);
  16012. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16013. if (is_be_dai_extproc(be_id))
  16014. continue;
  16015. bedai = &msm_bedais[be_id];
  16016. if (afe_get_port_type(bedai->port_id) != port_type)
  16017. continue;
  16018. if (!bedai->active)
  16019. continue;
  16020. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16021. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16022. continue;
  16023. if (app_type !=
  16024. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16025. continue;
  16026. copp = session_copp_map[fe_id][dir][be_id];
  16027. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  16028. copp_idx++) {
  16029. if (!test_bit(copp_idx, &copp))
  16030. continue;
  16031. ret = q6common_pack_pp_params(packed_params,
  16032. &param_hdr,
  16033. (u8 *) &param_value,
  16034. &packed_param_size);
  16035. if (ret) {
  16036. pr_err("%s: Failed to pack params, error %d\n",
  16037. __func__, ret);
  16038. goto done;
  16039. }
  16040. ret = adm_set_pp_params(bedai->port_id,
  16041. copp_idx, NULL,
  16042. packed_params,
  16043. packed_param_size);
  16044. if (ret) {
  16045. pr_err("%s: Setting param failed with err=%d\n",
  16046. __func__, ret);
  16047. ret = -EINVAL;
  16048. goto done;
  16049. }
  16050. }
  16051. }
  16052. }
  16053. done:
  16054. mutex_unlock(&routing_lock);
  16055. kfree(packed_params);
  16056. return ret;
  16057. }
  16058. static const struct snd_kcontrol_new module_cfg_controls[] = {
  16059. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  16060. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  16061. };
  16062. static int msm_routing_get_lsm_app_type_cfg_control(
  16063. struct snd_kcontrol *kcontrol,
  16064. struct snd_ctl_elem_value *ucontrol)
  16065. {
  16066. return 0;
  16067. }
  16068. static int msm_routing_put_lsm_app_type_cfg_control(
  16069. struct snd_kcontrol *kcontrol,
  16070. struct snd_ctl_elem_value *ucontrol)
  16071. {
  16072. int shift = ((struct soc_multi_mixer_control *)
  16073. kcontrol->private_value)->shift;
  16074. int i = 0, j;
  16075. int num_app_types = ucontrol->value.integer.value[i++];
  16076. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  16077. sizeof(struct msm_pcm_routing_app_type_data));
  16078. if (num_app_types > MAX_APP_TYPES) {
  16079. pr_err("%s: number of app types exceed the max supported\n",
  16080. __func__);
  16081. return -EINVAL;
  16082. }
  16083. for (j = 0; j < num_app_types; j++) {
  16084. lsm_app_type_cfg[j].app_type =
  16085. ucontrol->value.integer.value[i++];
  16086. lsm_app_type_cfg[j].sample_rate =
  16087. ucontrol->value.integer.value[i++];
  16088. lsm_app_type_cfg[j].bit_width =
  16089. ucontrol->value.integer.value[i++];
  16090. /* Shift of 1 indicates this is V2 mixer control */
  16091. if (shift == 1)
  16092. lsm_app_type_cfg[j].num_out_channels =
  16093. ucontrol->value.integer.value[i++];
  16094. }
  16095. return 0;
  16096. }
  16097. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  16098. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  16099. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16100. msm_routing_put_lsm_app_type_cfg_control),
  16101. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  16102. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16103. msm_routing_put_lsm_app_type_cfg_control),
  16104. };
  16105. static int msm_routing_get_use_ds1_or_ds2_control(
  16106. struct snd_kcontrol *kcontrol,
  16107. struct snd_ctl_elem_value *ucontrol)
  16108. {
  16109. ucontrol->value.integer.value[0] = is_ds2_on;
  16110. return 0;
  16111. }
  16112. static int msm_routing_put_use_ds1_or_ds2_control(
  16113. struct snd_kcontrol *kcontrol,
  16114. struct snd_ctl_elem_value *ucontrol)
  16115. {
  16116. is_ds2_on = ucontrol->value.integer.value[0];
  16117. return 0;
  16118. }
  16119. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  16120. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  16121. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  16122. msm_routing_put_use_ds1_or_ds2_control),
  16123. };
  16124. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  16125. struct snd_ctl_elem_value *ucontrol) {
  16126. int rc = 0;
  16127. int be_idx = 0;
  16128. char *param_value;
  16129. int *update_param_value;
  16130. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  16131. struct param_hdr_v3 param_hdr;
  16132. param_value = kzalloc(param_size, GFP_KERNEL);
  16133. if (!param_value)
  16134. return -ENOMEM;
  16135. memset(&param_hdr, 0, sizeof(param_hdr));
  16136. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  16137. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  16138. break;
  16139. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  16140. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  16141. param_hdr.instance_id = INSTANCE_ID_0;
  16142. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  16143. param_hdr.param_size = param_size;
  16144. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  16145. NULL, &param_hdr, (u8 *) param_value);
  16146. if (rc) {
  16147. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  16148. kfree(param_value);
  16149. return -EINVAL;
  16150. }
  16151. update_param_value = (int *)param_value;
  16152. ucontrol->value.integer.value[0] = update_param_value[0];
  16153. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  16154. __func__, update_param_value[0]);
  16155. }
  16156. kfree(param_value);
  16157. return 0;
  16158. }
  16159. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  16160. struct snd_ctl_elem_value *ucontrol)
  16161. {
  16162. voc_session_id = ucontrol->value.integer.value[0];
  16163. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  16164. return 0;
  16165. }
  16166. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  16167. struct snd_ctl_elem_value *ucontrol)
  16168. {
  16169. ucontrol->value.integer.value[0] = voc_session_id;
  16170. return 0;
  16171. }
  16172. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  16173. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  16174. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  16175. msm_voc_session_id_put),
  16176. };
  16177. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  16178. struct snd_ctl_elem_info *uinfo)
  16179. {
  16180. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16181. uinfo->count = sizeof(struct sound_focus_param);
  16182. return 0;
  16183. }
  16184. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  16185. struct snd_ctl_elem_value *ucontrol)
  16186. {
  16187. int ret = 0;
  16188. struct sound_focus_param soundFocusData;
  16189. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16190. sizeof(struct sound_focus_param));
  16191. ret = voc_set_sound_focus(soundFocusData);
  16192. if (ret) {
  16193. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16194. __func__, ret);
  16195. ret = -EINVAL;
  16196. }
  16197. return ret;
  16198. }
  16199. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  16200. struct snd_ctl_elem_value *ucontrol)
  16201. {
  16202. int ret = 0;
  16203. struct sound_focus_param soundFocusData;
  16204. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  16205. ret = voc_get_sound_focus(&soundFocusData);
  16206. if (ret) {
  16207. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16208. __func__, ret);
  16209. ret = -EINVAL;
  16210. goto done;
  16211. }
  16212. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16213. sizeof(struct sound_focus_param));
  16214. done:
  16215. return ret;
  16216. }
  16217. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  16218. struct snd_ctl_elem_info *uinfo)
  16219. {
  16220. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16221. uinfo->count = sizeof(struct source_tracking_param);
  16222. return 0;
  16223. }
  16224. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  16225. struct snd_ctl_elem_value *ucontrol)
  16226. {
  16227. int ret = 0;
  16228. struct source_tracking_param sourceTrackingData;
  16229. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  16230. ret = voc_get_source_tracking(&sourceTrackingData);
  16231. if (ret) {
  16232. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  16233. __func__, ret);
  16234. ret = -EINVAL;
  16235. goto done;
  16236. }
  16237. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16238. sizeof(struct source_tracking_param));
  16239. done:
  16240. return ret;
  16241. }
  16242. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  16243. int *copp_idx)
  16244. {
  16245. int i, idx, be_idx;
  16246. int ret = 0;
  16247. unsigned long copp;
  16248. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  16249. ret = q6audio_validate_port(port_id);
  16250. if (ret < 0) {
  16251. pr_err("%s: port validation failed id 0x%x ret %d\n",
  16252. __func__, port_id, ret);
  16253. ret = -EINVAL;
  16254. goto done;
  16255. }
  16256. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16257. if (msm_bedais[be_idx].port_id == port_id)
  16258. break;
  16259. }
  16260. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16261. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  16262. ret = -EINVAL;
  16263. goto done;
  16264. }
  16265. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  16266. MSM_FRONTEND_DAI_MM_SIZE) {
  16267. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16268. copp = session_copp_map[i]
  16269. [session_type][be_idx];
  16270. if (test_bit(idx, &copp))
  16271. break;
  16272. }
  16273. if (idx >= MAX_COPPS_PER_PORT)
  16274. continue;
  16275. else
  16276. break;
  16277. }
  16278. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  16279. pr_err("%s: Invalid FE, exiting\n", __func__);
  16280. ret = -EINVAL;
  16281. goto done;
  16282. }
  16283. *copp_idx = idx;
  16284. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  16285. done:
  16286. return ret;
  16287. }
  16288. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  16289. const char *prefix, int *port_id)
  16290. {
  16291. int ret = 0;
  16292. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  16293. /*
  16294. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  16295. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  16296. * and compare the string with the backend name to derive the port id.
  16297. */
  16298. if (!strcmp(kcontrol->id.name + strlen(prefix),
  16299. "SLIMBUS_0")) {
  16300. *port_id = SLIMBUS_0_TX;
  16301. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16302. "TERT_MI2S")) {
  16303. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  16304. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16305. "INT3_MI2S")) {
  16306. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  16307. } else {
  16308. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  16309. __func__, kcontrol->id.name);
  16310. ret = -EINVAL;
  16311. goto done;
  16312. }
  16313. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  16314. __func__, kcontrol->id.name, *port_id);
  16315. done:
  16316. return ret;
  16317. }
  16318. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  16319. struct snd_ctl_elem_value *ucontrol)
  16320. {
  16321. int ret = 0;
  16322. struct sound_focus_param soundFocusData;
  16323. int port_id, copp_idx;
  16324. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16325. "Sound Focus Audio Tx ", &port_id);
  16326. if (ret != 0) {
  16327. pr_err("%s: Error in deriving port id, err=%d\n",
  16328. __func__, ret);
  16329. ret = -EINVAL;
  16330. goto done;
  16331. }
  16332. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16333. &copp_idx);
  16334. if (ret) {
  16335. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16336. __func__, port_id);
  16337. ret = -EINVAL;
  16338. goto done;
  16339. }
  16340. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16341. sizeof(struct sound_focus_param));
  16342. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  16343. if (ret) {
  16344. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16345. __func__, ret);
  16346. ret = -EINVAL;
  16347. goto done;
  16348. }
  16349. done:
  16350. return ret;
  16351. }
  16352. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  16353. struct snd_ctl_elem_value *ucontrol)
  16354. {
  16355. int ret = 0;
  16356. struct sound_focus_param soundFocusData;
  16357. int port_id, copp_idx;
  16358. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16359. "Sound Focus Audio Tx ", &port_id);
  16360. if (ret) {
  16361. pr_err("%s: Error in deriving port id, err=%d\n",
  16362. __func__, ret);
  16363. ret = -EINVAL;
  16364. goto done;
  16365. }
  16366. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16367. &copp_idx);
  16368. if (ret) {
  16369. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16370. __func__, port_id);
  16371. ret = -EINVAL;
  16372. goto done;
  16373. }
  16374. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  16375. if (ret) {
  16376. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16377. __func__, ret);
  16378. ret = -EINVAL;
  16379. goto done;
  16380. }
  16381. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16382. sizeof(struct sound_focus_param));
  16383. done:
  16384. return ret;
  16385. }
  16386. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  16387. struct snd_ctl_elem_value *ucontrol)
  16388. {
  16389. int ret = 0;
  16390. struct source_tracking_param sourceTrackingData;
  16391. int port_id, copp_idx;
  16392. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16393. "Source Tracking Audio Tx ", &port_id);
  16394. if (ret) {
  16395. pr_err("%s: Error in deriving port id, err=%d\n",
  16396. __func__, ret);
  16397. ret = -EINVAL;
  16398. goto done;
  16399. }
  16400. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16401. &copp_idx);
  16402. if (ret) {
  16403. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16404. __func__, port_id);
  16405. ret = -EINVAL;
  16406. goto done;
  16407. }
  16408. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  16409. if (ret) {
  16410. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  16411. __func__, ret);
  16412. ret = -EINVAL;
  16413. goto done;
  16414. }
  16415. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16416. sizeof(struct source_tracking_param));
  16417. done:
  16418. return ret;
  16419. }
  16420. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  16421. {
  16422. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16423. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16424. .name = "Sound Focus Voice Tx SLIMBUS_0",
  16425. .info = msm_sound_focus_info,
  16426. .get = msm_voice_sound_focus_get,
  16427. .put = msm_voice_sound_focus_put,
  16428. },
  16429. {
  16430. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16431. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16432. .name = "Source Tracking Voice Tx SLIMBUS_0",
  16433. .info = msm_source_tracking_info,
  16434. .get = msm_voice_source_tracking_get,
  16435. },
  16436. {
  16437. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16438. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16439. .name = "Sound Focus Audio Tx SLIMBUS_0",
  16440. .info = msm_sound_focus_info,
  16441. .get = msm_audio_sound_focus_get,
  16442. .put = msm_audio_sound_focus_put,
  16443. },
  16444. {
  16445. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16446. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16447. .name = "Source Tracking Audio Tx SLIMBUS_0",
  16448. .info = msm_source_tracking_info,
  16449. .get = msm_audio_source_tracking_get,
  16450. },
  16451. {
  16452. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16453. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16454. .name = "Sound Focus Voice Tx TERT_MI2S",
  16455. .info = msm_sound_focus_info,
  16456. .get = msm_voice_sound_focus_get,
  16457. .put = msm_voice_sound_focus_put,
  16458. },
  16459. {
  16460. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16461. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16462. .name = "Source Tracking Voice Tx TERT_MI2S",
  16463. .info = msm_source_tracking_info,
  16464. .get = msm_voice_source_tracking_get,
  16465. },
  16466. {
  16467. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16468. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16469. .name = "Sound Focus Audio Tx TERT_MI2S",
  16470. .info = msm_sound_focus_info,
  16471. .get = msm_audio_sound_focus_get,
  16472. .put = msm_audio_sound_focus_put,
  16473. },
  16474. {
  16475. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16476. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16477. .name = "Source Tracking Audio Tx TERT_MI2S",
  16478. .info = msm_source_tracking_info,
  16479. .get = msm_audio_source_tracking_get,
  16480. },
  16481. {
  16482. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16483. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16484. .name = "Sound Focus Voice Tx INT3_MI2S",
  16485. .info = msm_sound_focus_info,
  16486. .get = msm_voice_sound_focus_get,
  16487. .put = msm_voice_sound_focus_put,
  16488. },
  16489. {
  16490. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16491. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16492. .name = "Source Tracking Voice Tx INT3_MI2S",
  16493. .info = msm_source_tracking_info,
  16494. .get = msm_voice_source_tracking_get,
  16495. },
  16496. {
  16497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16498. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16499. .name = "Sound Focus Audio Tx INT3_MI2S",
  16500. .info = msm_sound_focus_info,
  16501. .get = msm_audio_sound_focus_get,
  16502. .put = msm_audio_sound_focus_put,
  16503. },
  16504. {
  16505. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16506. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16507. .name = "Source Tracking Audio Tx INT3_MI2S",
  16508. .info = msm_source_tracking_info,
  16509. .get = msm_audio_source_tracking_get,
  16510. },
  16511. };
  16512. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  16513. struct snd_ctl_elem_value *ucontrol)
  16514. {
  16515. int ret = 0;
  16516. int item;
  16517. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  16518. pr_debug("%s item is %d\n", __func__,
  16519. ucontrol->value.enumerated.item[0]);
  16520. mutex_lock(&routing_lock);
  16521. item = ucontrol->value.enumerated.item[0];
  16522. if (item < e->items) {
  16523. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  16524. __func__, e->shift_l, e->values[item]);
  16525. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  16526. e->values[item] < MSM_BACKEND_DAI_MAX)
  16527. /* Enable feedback TX path */
  16528. ret = afe_spk_prot_feed_back_cfg(
  16529. msm_bedais[e->values[item]].port_id,
  16530. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  16531. else {
  16532. pr_debug("%s values are out of range item %d\n",
  16533. __func__, e->values[item]);
  16534. /* Disable feedback TX path */
  16535. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  16536. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  16537. else
  16538. ret = -EINVAL;
  16539. }
  16540. } else {
  16541. pr_err("%s item value is out of range item\n", __func__);
  16542. ret = -EINVAL;
  16543. }
  16544. mutex_unlock(&routing_lock);
  16545. return ret;
  16546. }
  16547. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  16548. struct snd_ctl_elem_value *ucontrol)
  16549. {
  16550. int ret = 0;
  16551. int item;
  16552. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  16553. pr_debug("%s item is %d\n", __func__,
  16554. ucontrol->value.enumerated.item[0]);
  16555. mutex_lock(&routing_lock);
  16556. item = ucontrol->value.enumerated.item[0];
  16557. if (item < e->items) {
  16558. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  16559. __func__, e->shift_l, e->values[item]);
  16560. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  16561. e->values[item] < MSM_BACKEND_DAI_MAX)
  16562. /* Enable feedback TX path */
  16563. ret = afe_spk_prot_feed_back_cfg(
  16564. msm_bedais[e->values[item]].port_id,
  16565. msm_bedais[e->shift_l].port_id,
  16566. 1, 1, 1);
  16567. else {
  16568. pr_debug("%s values are out of range item %d\n",
  16569. __func__, e->values[item]);
  16570. /* Disable feedback TX path */
  16571. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  16572. ret = afe_spk_prot_feed_back_cfg(0,
  16573. 0, 0, 0, 0);
  16574. else
  16575. ret = -EINVAL;
  16576. }
  16577. } else {
  16578. pr_err("%s item value is out of range item\n", __func__);
  16579. ret = -EINVAL;
  16580. }
  16581. mutex_unlock(&routing_lock);
  16582. return ret;
  16583. }
  16584. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  16585. struct snd_ctl_elem_value *ucontrol)
  16586. {
  16587. pr_debug("%s\n", __func__);
  16588. return 0;
  16589. }
  16590. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  16591. struct snd_ctl_elem_value *ucontrol)
  16592. {
  16593. pr_debug("%s\n", __func__);
  16594. ucontrol->value.enumerated.item[0] = 0;
  16595. return 0;
  16596. }
  16597. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  16598. "ZERO", "SLIM4_TX"
  16599. };
  16600. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  16601. "ZERO", "SLIM4_TX"
  16602. };
  16603. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  16604. "ZERO", "WSA_CDC_DMA_TX_0"
  16605. };
  16606. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  16607. "ZERO", "WSA_CDC_DMA_TX_0"
  16608. };
  16609. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  16610. "ZERO", "SENARY_TX"
  16611. };
  16612. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  16613. "ZERO", "INT5_MI2S_TX"
  16614. };
  16615. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  16616. "ZERO", "INT5_MI2S_TX"
  16617. };
  16618. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  16619. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  16620. };
  16621. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  16622. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  16623. };
  16624. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  16625. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  16626. };
  16627. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  16628. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  16629. };
  16630. static const int const mi2s_rx_vi_fb_tx_value[] = {
  16631. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  16632. };
  16633. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  16634. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  16635. };
  16636. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  16637. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  16638. };
  16639. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  16640. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  16641. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  16642. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  16643. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  16644. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  16645. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  16646. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  16647. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  16648. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  16649. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  16650. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  16651. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  16652. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  16653. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  16654. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  16655. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  16656. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  16657. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  16658. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  16659. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  16660. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  16661. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  16662. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  16663. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  16664. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  16665. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  16666. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  16667. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  16668. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  16669. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  16670. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  16671. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  16672. spkr_prot_put_vi_lch_port);
  16673. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  16674. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  16675. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  16676. spkr_prot_put_vi_rch_port);
  16677. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  16678. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  16679. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  16680. spkr_prot_put_vi_lch_port);
  16681. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  16682. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  16683. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  16684. spkr_prot_put_vi_rch_port);
  16685. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  16686. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  16687. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  16688. spkr_prot_put_vi_lch_port);
  16689. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  16690. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  16691. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  16692. spkr_prot_put_vi_lch_port);
  16693. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  16694. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  16695. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  16696. spkr_prot_put_vi_rch_port);
  16697. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  16698. /* Frontend AIF */
  16699. /* Widget name equals to Front-End DAI name<Need confirmation>,
  16700. * Stream name must contains substring of front-end dai name
  16701. */
  16702. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  16703. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  16704. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  16705. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  16706. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  16707. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  16708. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  16709. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  16710. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  16711. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  16712. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  16713. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  16714. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  16715. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  16716. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  16717. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  16718. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  16719. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  16720. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  16721. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  16722. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  16723. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  16724. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  16725. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  16726. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  16727. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  16728. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  16729. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  16730. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  16731. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  16732. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  16733. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  16734. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  16735. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  16736. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  16737. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  16738. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  16739. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  16740. "VoiceMMode1 Playback", 0, 0, 0, 0),
  16741. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  16742. "VoiceMMode1 Capture", 0, 0, 0, 0),
  16743. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  16744. "VoiceMMode2 Playback", 0, 0, 0, 0),
  16745. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  16746. "VoiceMMode2 Capture", 0, 0, 0, 0),
  16747. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  16748. 0, 0, 0, 0),
  16749. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  16750. 0, 0, 0, 0),
  16751. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  16752. 0, 0, 0, 0),
  16753. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  16754. 0, 0, 0, 0),
  16755. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  16756. 0, 0, 0, 0),
  16757. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  16758. 0, 0, 0, 0),
  16759. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  16760. 0, 0, 0, 0),
  16761. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  16762. 0, 0, 0, 0),
  16763. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  16764. 0, 0, 0, 0),
  16765. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  16766. 0, 0, 0, 0),
  16767. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  16768. 0, 0, 0, 0),
  16769. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  16770. 0, 0, 0, 0),
  16771. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  16772. 0, 0, 0, 0),
  16773. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  16774. 0, 0, 0, 0),
  16775. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  16776. 0, 0, 0, 0),
  16777. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  16778. 0, 0, 0, 0),
  16779. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  16780. 0, 0, 0, 0),
  16781. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  16782. 0, 0, 0, 0),
  16783. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  16784. 0, 0, 0, 0),
  16785. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  16786. 0, 0, 0, 0),
  16787. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  16788. 0, 0, 0, 0),
  16789. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  16790. 0, 0, 0, 0),
  16791. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  16792. 0, 0, 0, 0),
  16793. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  16794. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  16795. 0, 0, 0, 0),
  16796. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  16797. "INT0 MI2S_RX Hostless Playback",
  16798. 0, 0, 0, 0),
  16799. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  16800. "INT4 MI2S_RX Hostless Playback",
  16801. 0, 0, 0, 0),
  16802. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  16803. "Primary MI2S_RX Hostless Playback",
  16804. 0, 0, 0, 0),
  16805. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  16806. "Secondary MI2S_RX Hostless Playback",
  16807. 0, 0, 0, 0),
  16808. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  16809. "Tertiary MI2S_RX Hostless Playback",
  16810. 0, 0, 0, 0),
  16811. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  16812. "Quaternary MI2S_RX Hostless Playback",
  16813. 0, 0, 0, 0),
  16814. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  16815. "Quinary MI2S_RX Hostless Playback",
  16816. 0, 0, 0, 0),
  16817. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  16818. 0, 0, 0, 0),
  16819. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  16820. 0, 0, 0, 0),
  16821. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  16822. 0, 0, 0, 0),
  16823. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  16824. 0, 0, 0, 0),
  16825. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  16826. 0, 0, 0, 0),
  16827. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  16828. "INT3 MI2S_TX Hostless Capture",
  16829. 0, 0, 0, 0),
  16830. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  16831. "Tertiary MI2S_TX Hostless Capture",
  16832. 0, 0, 0, 0),
  16833. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  16834. "Secondary MI2S_TX Hostless Capture",
  16835. 0, 0, 0, 0),
  16836. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  16837. "Primary MI2S_TX Hostless Capture",
  16838. 0, 0, 0, 0),
  16839. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  16840. 0, 0, 0, 0),
  16841. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  16842. 0, 0, 0, 0),
  16843. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  16844. "Quaternary MI2S_TX Hostless Capture",
  16845. 0, 0, 0, 0),
  16846. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  16847. "Quinary MI2S_TX Hostless Capture",
  16848. 0, 0, 0, 0),
  16849. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  16850. "Primary TDM0 Hostless Playback",
  16851. 0, 0, 0, 0),
  16852. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  16853. "Primary TDM0 Hostless Capture",
  16854. 0, 0, 0, 0),
  16855. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  16856. "Primary TDM1 Hostless Playback",
  16857. 0, 0, 0, 0),
  16858. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  16859. "Primary TDM1 Hostless Capture",
  16860. 0, 0, 0, 0),
  16861. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  16862. "Primary TDM2 Hostless Playback",
  16863. 0, 0, 0, 0),
  16864. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  16865. "Primary TDM2 Hostless Capture",
  16866. 0, 0, 0, 0),
  16867. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  16868. "Primary TDM3 Hostless Playback",
  16869. 0, 0, 0, 0),
  16870. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  16871. "Primary TDM3 Hostless Capture",
  16872. 0, 0, 0, 0),
  16873. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  16874. "Primary TDM4 Hostless Playback",
  16875. 0, 0, 0, 0),
  16876. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  16877. "Primary TDM4 Hostless Capture",
  16878. 0, 0, 0, 0),
  16879. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  16880. "Primary TDM5 Hostless Playback",
  16881. 0, 0, 0, 0),
  16882. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  16883. "Primary TDM5 Hostless Capture",
  16884. 0, 0, 0, 0),
  16885. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  16886. "Primary TDM6 Hostless Playback",
  16887. 0, 0, 0, 0),
  16888. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  16889. "Primary TDM6 Hostless Capture",
  16890. 0, 0, 0, 0),
  16891. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  16892. "Primary TDM7 Hostless Playback",
  16893. 0, 0, 0, 0),
  16894. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  16895. "Primary TDM7 Hostless Capture",
  16896. 0, 0, 0, 0),
  16897. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  16898. "Secondary TDM0 Hostless Playback",
  16899. 0, 0, 0, 0),
  16900. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  16901. "Secondary TDM0 Hostless Capture",
  16902. 0, 0, 0, 0),
  16903. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  16904. "Secondary TDM1 Hostless Playback",
  16905. 0, 0, 0, 0),
  16906. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  16907. "Secondary TDM1 Hostless Capture",
  16908. 0, 0, 0, 0),
  16909. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  16910. "Secondary TDM2 Hostless Playback",
  16911. 0, 0, 0, 0),
  16912. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  16913. "Secondary TDM2 Hostless Capture",
  16914. 0, 0, 0, 0),
  16915. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  16916. "Secondary TDM3 Hostless Playback",
  16917. 0, 0, 0, 0),
  16918. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  16919. "Secondary TDM3 Hostless Capture",
  16920. 0, 0, 0, 0),
  16921. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  16922. "Secondary TDM4 Hostless Playback",
  16923. 0, 0, 0, 0),
  16924. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  16925. "Secondary TDM4 Hostless Capture",
  16926. 0, 0, 0, 0),
  16927. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  16928. "Secondary TDM5 Hostless Playback",
  16929. 0, 0, 0, 0),
  16930. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  16931. "Secondary TDM5 Hostless Capture",
  16932. 0, 0, 0, 0),
  16933. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  16934. "Secondary TDM6 Hostless Playback",
  16935. 0, 0, 0, 0),
  16936. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  16937. "Secondary TDM6 Hostless Capture",
  16938. 0, 0, 0, 0),
  16939. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  16940. "Secondary TDM7 Hostless Playback",
  16941. 0, 0, 0, 0),
  16942. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  16943. "Secondary TDM7 Hostless Capture",
  16944. 0, 0, 0, 0),
  16945. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  16946. "Tertiary TDM0 Hostless Playback",
  16947. 0, 0, 0, 0),
  16948. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  16949. "Tertiary TDM0 Hostless Capture",
  16950. 0, 0, 0, 0),
  16951. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  16952. "Tertiary TDM1 Hostless Playback",
  16953. 0, 0, 0, 0),
  16954. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  16955. "Tertiary TDM1 Hostless Capture",
  16956. 0, 0, 0, 0),
  16957. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  16958. "Tertiary TDM2 Hostless Playback",
  16959. 0, 0, 0, 0),
  16960. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  16961. "Tertiary TDM2 Hostless Capture",
  16962. 0, 0, 0, 0),
  16963. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  16964. "Tertiary TDM3 Hostless Playback",
  16965. 0, 0, 0, 0),
  16966. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  16967. "Tertiary TDM3 Hostless Capture",
  16968. 0, 0, 0, 0),
  16969. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  16970. "Tertiary TDM4 Hostless Playback",
  16971. 0, 0, 0, 0),
  16972. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  16973. "Tertiary TDM4 Hostless Capture",
  16974. 0, 0, 0, 0),
  16975. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  16976. "Tertiary TDM5 Hostless Playback",
  16977. 0, 0, 0, 0),
  16978. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  16979. "Tertiary TDM5 Hostless Capture",
  16980. 0, 0, 0, 0),
  16981. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  16982. "Tertiary TDM6 Hostless Playback",
  16983. 0, 0, 0, 0),
  16984. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  16985. "Tertiary TDM6 Hostless Capture",
  16986. 0, 0, 0, 0),
  16987. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  16988. "Tertiary TDM7 Hostless Playback",
  16989. 0, 0, 0, 0),
  16990. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  16991. "Tertiary TDM7 Hostless Capture",
  16992. 0, 0, 0, 0),
  16993. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  16994. "Quaternary TDM0 Hostless Playback",
  16995. 0, 0, 0, 0),
  16996. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  16997. "Quaternary TDM0 Hostless Capture",
  16998. 0, 0, 0, 0),
  16999. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  17000. "Quaternary TDM1 Hostless Playback",
  17001. 0, 0, 0, 0),
  17002. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  17003. "Quaternary TDM1 Hostless Capture",
  17004. 0, 0, 0, 0),
  17005. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  17006. "Quaternary TDM2 Hostless Playback",
  17007. 0, 0, 0, 0),
  17008. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  17009. "Quaternary TDM2 Hostless Capture",
  17010. 0, 0, 0, 0),
  17011. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  17012. "Quaternary TDM3 Hostless Playback",
  17013. 0, 0, 0, 0),
  17014. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  17015. "Quaternary TDM3 Hostless Capture",
  17016. 0, 0, 0, 0),
  17017. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  17018. "Quaternary TDM4 Hostless Playback",
  17019. 0, 0, 0, 0),
  17020. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  17021. "Quaternary TDM4 Hostless Capture",
  17022. 0, 0, 0, 0),
  17023. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  17024. "Quaternary TDM5 Hostless Playback",
  17025. 0, 0, 0, 0),
  17026. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  17027. "Quaternary TDM5 Hostless Capture",
  17028. 0, 0, 0, 0),
  17029. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  17030. "Quaternary TDM6 Hostless Playback",
  17031. 0, 0, 0, 0),
  17032. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  17033. "Quaternary TDM6 Hostless Capture",
  17034. 0, 0, 0, 0),
  17035. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  17036. "Quaternary TDM7 Hostless Playback",
  17037. 0, 0, 0, 0),
  17038. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  17039. "Quaternary TDM7 Hostless Capture",
  17040. 0, 0, 0, 0),
  17041. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  17042. "Quinary TDM0 Hostless Playback",
  17043. 0, 0, 0, 0),
  17044. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  17045. "Quinary TDM0 Hostless Capture",
  17046. 0, 0, 0, 0),
  17047. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  17048. "Quinary TDM1 Hostless Playback",
  17049. 0, 0, 0, 0),
  17050. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  17051. "Quinary TDM1 Hostless Capture",
  17052. 0, 0, 0, 0),
  17053. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  17054. "Quinary TDM2 Hostless Playback",
  17055. 0, 0, 0, 0),
  17056. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  17057. "Quinary TDM2 Hostless Capture",
  17058. 0, 0, 0, 0),
  17059. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  17060. "Quinary TDM3 Hostless Playback",
  17061. 0, 0, 0, 0),
  17062. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  17063. "Quinary TDM3 Hostless Capture",
  17064. 0, 0, 0, 0),
  17065. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  17066. "Quinary TDM4 Hostless Playback",
  17067. 0, 0, 0, 0),
  17068. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  17069. "Quinary TDM4 Hostless Capture",
  17070. 0, 0, 0, 0),
  17071. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  17072. "Quinary TDM5 Hostless Playback",
  17073. 0, 0, 0, 0),
  17074. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  17075. "Quinary TDM5 Hostless Capture",
  17076. 0, 0, 0, 0),
  17077. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  17078. "Quinary TDM6 Hostless Playback",
  17079. 0, 0, 0, 0),
  17080. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  17081. "Quinary TDM6 Hostless Capture",
  17082. 0, 0, 0, 0),
  17083. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  17084. "Quinary TDM7 Hostless Playback",
  17085. 0, 0, 0, 0),
  17086. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  17087. "Quinary TDM7 Hostless Capture",
  17088. 0, 0, 0, 0),
  17089. /* LSM */
  17090. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  17091. 0, 0, 0, 0),
  17092. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  17093. 0, 0, 0, 0),
  17094. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  17095. 0, 0, 0, 0),
  17096. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  17097. 0, 0, 0, 0),
  17098. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  17099. 0, 0, 0, 0),
  17100. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  17101. 0, 0, 0, 0),
  17102. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  17103. 0, 0, 0, 0),
  17104. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  17105. 0, 0, 0, 0),
  17106. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  17107. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  17108. /* Backend AIF */
  17109. /* Stream name equals to backend dai link stream name */
  17110. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  17111. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  17112. 0, 0, 0, 0),
  17113. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  17114. 0, 0, 0, 0),
  17115. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  17116. 0, 0, 0, 0),
  17117. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  17118. 0, 0, 0, 0),
  17119. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  17120. 0, 0, 0, 0),
  17121. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  17122. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  17123. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  17124. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  17125. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  17126. 0, 0, 0, 0),
  17127. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  17128. 0, 0, 0, 0),
  17129. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  17130. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  17131. 0, 0, 0, 0),
  17132. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  17133. 0, 0, 0, 0),
  17134. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  17135. 0, 0, 0, 0),
  17136. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  17137. "Secondary MI2S Playback SD1",
  17138. 0, 0, 0, 0),
  17139. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  17140. 0, 0, 0, 0),
  17141. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  17142. 0, 0, 0, 0),
  17143. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  17144. 0, 0, 0, 0),
  17145. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  17146. 0, 0, 0, 0),
  17147. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  17148. 0, 0, 0, 0),
  17149. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  17150. 0, 0, 0, 0),
  17151. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  17152. 0, 0, 0, 0),
  17153. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  17154. 0, 0, 0, 0),
  17155. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  17156. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  17157. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  17158. 0, 0, 0, 0),
  17159. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  17160. 0, 0, 0, 0),
  17161. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  17162. 0, 0, 0, 0),
  17163. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  17164. 0, 0, 0, 0),
  17165. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  17166. 0, 0, 0, 0),
  17167. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  17168. 0, 0, 0, 0),
  17169. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  17170. 0, 0, 0, 0),
  17171. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  17172. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  17173. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  17174. 0, 0, 0, 0),
  17175. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  17176. 0, 0, 0, 0),
  17177. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  17178. 0, 0, 0, 0),
  17179. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  17180. 0, 0, 0, 0),
  17181. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  17182. 0, 0, 0, 0),
  17183. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  17184. 0, 0, 0, 0),
  17185. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  17186. 0, 0, 0, 0),
  17187. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  17188. 0, 0, 0, 0),
  17189. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  17190. 0, 0, 0, 0),
  17191. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  17192. 0, 0, 0, 0),
  17193. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  17194. 0, 0, 0, 0),
  17195. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  17196. 0, 0, 0, 0),
  17197. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  17198. 0, 0, 0, 0),
  17199. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  17200. 0, 0, 0, 0),
  17201. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  17202. 0, 0, 0, 0),
  17203. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  17204. 0, 0, 0, 0),
  17205. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  17206. 0, 0, 0, 0),
  17207. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  17208. 0, 0, 0, 0),
  17209. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  17210. 0, 0, 0, 0),
  17211. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  17212. 0, 0, 0, 0),
  17213. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  17214. 0, 0, 0, 0),
  17215. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  17216. 0, 0, 0, 0),
  17217. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  17218. 0, 0, 0, 0),
  17219. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  17220. 0, 0, 0, 0),
  17221. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  17222. 0, 0, 0, 0),
  17223. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  17224. 0, 0, 0, 0),
  17225. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  17226. 0, 0, 0, 0),
  17227. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  17228. 0, 0, 0, 0),
  17229. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  17230. 0, 0, 0, 0),
  17231. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  17232. 0, 0, 0, 0),
  17233. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  17234. 0, 0, 0, 0),
  17235. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  17236. 0, 0, 0, 0),
  17237. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  17238. 0, 0, 0, 0),
  17239. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  17240. 0, 0, 0, 0),
  17241. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  17242. 0, 0, 0, 0),
  17243. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  17244. 0, 0, 0, 0),
  17245. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  17246. 0, 0, 0, 0),
  17247. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  17248. 0, 0, 0, 0),
  17249. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  17250. 0, 0, 0, 0),
  17251. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  17252. 0, 0, 0, 0),
  17253. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  17254. 0, 0, 0, 0),
  17255. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  17256. 0, 0, 0, 0),
  17257. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  17258. 0, 0, 0, 0),
  17259. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  17260. 0, 0, 0, 0),
  17261. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  17262. 0, 0, 0, 0),
  17263. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  17264. 0, 0, 0, 0),
  17265. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  17266. 0, 0, 0, 0),
  17267. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  17268. 0, 0, 0, 0),
  17269. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  17270. 0, 0, 0, 0),
  17271. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  17272. 0, 0, 0, 0),
  17273. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  17274. 0, 0, 0, 0),
  17275. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  17276. 0, 0, 0, 0),
  17277. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  17278. 0, 0, 0, 0),
  17279. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  17280. 0, 0, 0, 0),
  17281. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  17282. 0, 0, 0, 0),
  17283. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  17284. 0, 0, 0, 0),
  17285. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  17286. 0, 0, 0, 0),
  17287. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  17288. 0, 0, 0, 0),
  17289. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  17290. 0, 0, 0, 0),
  17291. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  17292. 0, 0, 0, 0),
  17293. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  17294. 0, 0, 0, 0),
  17295. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  17296. 0, 0, 0, 0),
  17297. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  17298. 0, 0, 0, 0),
  17299. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  17300. 0, 0, 0, 0),
  17301. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  17302. 0, 0, 0, 0),
  17303. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  17304. 0, 0, 0, 0),
  17305. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  17306. 0, 0, 0, 0),
  17307. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  17308. 0, 0, 0, 0),
  17309. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  17310. 0, 0, 0, 0),
  17311. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  17312. 0, 0, 0, 0),
  17313. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  17314. 0, 0, 0, 0),
  17315. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  17316. 0, 0, 0, 0),
  17317. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  17318. 0, 0, 0, 0),
  17319. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  17320. 0, 0, 0, 0),
  17321. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  17322. 0, 0, 0, 0),
  17323. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  17324. 0, 0, 0, 0),
  17325. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  17326. 0, 0, 0, 0),
  17327. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  17328. 0, 0, 0, 0),
  17329. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  17330. 0, 0, 0, 0),
  17331. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  17332. 0, 0, 0, 0),
  17333. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  17334. 0, 0, 0, 0),
  17335. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  17336. 0, 0, 0, 0),
  17337. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  17338. 0, 0, 0, 0),
  17339. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  17340. 0, 0, 0, 0),
  17341. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  17342. 0, 0, 0, 0),
  17343. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  17344. 0, 0, 0, 0),
  17345. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  17346. 0, 0, 0, 0),
  17347. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  17348. 0, 0, 0, 0),
  17349. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  17350. 0, 0, 0, 0),
  17351. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  17352. 0, 0, 0, 0),
  17353. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  17354. 0, 0, 0, 0),
  17355. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  17356. 0, 0, 0, 0),
  17357. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  17358. 0, 0, 0, 0),
  17359. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  17360. 0, 0, 0, 0),
  17361. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  17362. 0, 0, 0, 0),
  17363. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  17364. 0, 0, 0, 0),
  17365. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  17366. 0, 0, 0, 0),
  17367. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  17368. 0, 0, 0, 0),
  17369. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  17370. 0, 0, 0, 0),
  17371. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  17372. 0, 0, 0, 0),
  17373. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  17374. 0, 0, 0, 0),
  17375. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  17376. 0, 0, 0, 0),
  17377. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  17378. 0, 0, 0, 0),
  17379. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  17380. 0, 0, 0, 0),
  17381. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  17382. 0, 0, 0, 0),
  17383. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  17384. 0, 0, 0, 0),
  17385. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  17386. 0, 0, 0, 0),
  17387. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  17388. 0, 0, 0, 0),
  17389. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  17390. 0, 0, 0, 0),
  17391. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  17392. 0, 0, 0, 0),
  17393. /* incall */
  17394. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  17395. 0, 0, 0, 0),
  17396. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  17397. 0, 0, 0, 0),
  17398. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  17399. 0, 0, 0, 0),
  17400. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  17401. 0, 0, 0, 0),
  17402. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  17403. 0, 0, 0, 0),
  17404. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  17405. 0, 0, 0, 0),
  17406. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  17407. 0, 0, 0, 0),
  17408. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  17409. 0, 0, 0, 0),
  17410. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  17411. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  17412. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  17413. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  17414. 0, 0, 0, 0),
  17415. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  17416. 0, 0, 0, 0),
  17417. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  17418. 0, 0, 0, 0),
  17419. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  17420. 0, 0, 0, 0),
  17421. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  17422. 0, 0, 0, 0),
  17423. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  17424. 0, 0, 0, 0),
  17425. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  17426. 0, 0, 0, 0),
  17427. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  17428. 0, 0, 0, 0),
  17429. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  17430. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  17431. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  17432. 0, 0, 0, 0),
  17433. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  17434. 0, 0, 0, 0),
  17435. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  17436. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  17437. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  17438. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  17439. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  17440. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  17441. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  17442. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  17443. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  17444. /* In- call recording */
  17445. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  17446. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  17447. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  17448. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  17449. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  17450. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  17451. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  17452. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  17453. /* Switch Definitions */
  17454. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  17455. &slim_fm_switch_mixer_controls),
  17456. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  17457. &slim1_fm_switch_mixer_controls),
  17458. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  17459. &slim3_fm_switch_mixer_controls),
  17460. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  17461. &slim4_fm_switch_mixer_controls),
  17462. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  17463. &slim6_fm_switch_mixer_controls),
  17464. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17465. &pcm_rx_switch_mixer_controls),
  17466. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17467. &int0_mi2s_rx_switch_mixer_controls),
  17468. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17469. &int4_mi2s_rx_switch_mixer_controls),
  17470. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17471. &pri_mi2s_rx_switch_mixer_controls),
  17472. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17473. &sec_mi2s_rx_switch_mixer_controls),
  17474. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17475. &tert_mi2s_rx_switch_mixer_controls),
  17476. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17477. &quat_mi2s_rx_switch_mixer_controls),
  17478. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17479. &quin_mi2s_rx_switch_mixer_controls),
  17480. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  17481. &hfp_pri_aux_switch_mixer_controls),
  17482. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  17483. &hfp_aux_switch_mixer_controls),
  17484. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  17485. &hfp_int_switch_mixer_controls),
  17486. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  17487. &hfp_slim7_switch_mixer_controls),
  17488. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  17489. &usb_switch_mixer_controls),
  17490. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  17491. &a2dp_slim7_switch_mixer_controls),
  17492. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  17493. &cdc_dma_fm_switch_mixer_controls),
  17494. /* Mixer definitions */
  17495. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17496. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  17497. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17498. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  17499. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17500. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  17501. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17502. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  17503. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17504. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  17505. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17506. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  17507. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  17508. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  17509. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  17510. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  17511. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  17512. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  17513. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17514. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  17515. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17516. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  17517. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17518. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  17519. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17520. quaternary_mi2s_rx_mixer_controls,
  17521. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  17522. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17523. tertiary_mi2s_rx_mixer_controls,
  17524. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  17525. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17526. secondary_mi2s_rx_mixer_controls,
  17527. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  17528. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17529. secondary_mi2s_rx2_mixer_controls,
  17530. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  17531. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17532. primary_mi2s_rx_mixer_controls,
  17533. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  17534. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17535. int0_mi2s_rx_mixer_controls,
  17536. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  17537. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17538. int4_mi2s_rx_mixer_controls,
  17539. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  17540. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17541. quinary_mi2s_rx_mixer_controls,
  17542. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  17543. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17544. pri_tdm_rx_0_mixer_controls,
  17545. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  17546. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17547. pri_tdm_rx_1_mixer_controls,
  17548. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  17549. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17550. pri_tdm_rx_2_mixer_controls,
  17551. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  17552. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17553. pri_tdm_rx_3_mixer_controls,
  17554. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  17555. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17556. pri_tdm_tx_0_mixer_controls,
  17557. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  17558. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17559. sec_tdm_rx_0_mixer_controls,
  17560. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  17561. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17562. sec_tdm_rx_1_mixer_controls,
  17563. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  17564. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17565. sec_tdm_rx_2_mixer_controls,
  17566. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  17567. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17568. sec_tdm_rx_3_mixer_controls,
  17569. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  17570. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17571. sec_tdm_tx_0_mixer_controls,
  17572. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  17573. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17574. tert_tdm_rx_0_mixer_controls,
  17575. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  17576. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17577. tert_tdm_tx_0_mixer_controls,
  17578. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  17579. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17580. tert_tdm_rx_1_mixer_controls,
  17581. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  17582. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17583. tert_tdm_rx_2_mixer_controls,
  17584. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  17585. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17586. tert_tdm_rx_3_mixer_controls,
  17587. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  17588. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17589. tert_tdm_rx_4_mixer_controls,
  17590. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  17591. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17592. quat_tdm_rx_0_mixer_controls,
  17593. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  17594. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17595. quat_tdm_tx_0_mixer_controls,
  17596. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  17597. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17598. quat_tdm_rx_1_mixer_controls,
  17599. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  17600. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17601. quat_tdm_rx_2_mixer_controls,
  17602. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  17603. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17604. quat_tdm_rx_3_mixer_controls,
  17605. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  17606. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17607. quin_tdm_rx_0_mixer_controls,
  17608. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  17609. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17610. quin_tdm_tx_0_mixer_controls,
  17611. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  17612. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17613. quin_tdm_rx_1_mixer_controls,
  17614. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  17615. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17616. quin_tdm_rx_2_mixer_controls,
  17617. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  17618. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17619. quin_tdm_rx_3_mixer_controls,
  17620. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  17621. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17622. wsa_cdc_dma_rx_0_mixer_controls,
  17623. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  17624. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17625. wsa_cdc_dma_rx_1_mixer_controls,
  17626. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  17627. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17628. rx_cdc_dma_rx_0_mixer_controls,
  17629. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  17630. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17631. rx_cdc_dma_rx_1_mixer_controls,
  17632. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  17633. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17634. rx_cdc_dma_rx_2_mixer_controls,
  17635. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  17636. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17637. rx_cdc_dma_rx_3_mixer_controls,
  17638. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  17639. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17640. rx_cdc_dma_rx_4_mixer_controls,
  17641. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  17642. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17643. rx_cdc_dma_rx_5_mixer_controls,
  17644. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  17645. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17646. rx_cdc_dma_rx_6_mixer_controls,
  17647. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  17648. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17649. rx_cdc_dma_rx_7_mixer_controls,
  17650. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  17651. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  17652. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  17653. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  17654. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  17655. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  17656. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  17657. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  17658. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  17659. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  17660. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  17661. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  17662. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  17663. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  17664. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  17665. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  17666. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  17667. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  17668. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  17669. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  17670. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  17671. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  17672. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  17673. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  17674. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  17675. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  17676. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  17677. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  17678. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  17679. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  17680. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  17681. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  17682. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  17683. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  17684. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  17685. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17686. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  17687. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17688. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  17689. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17690. tert_auxpcm_rx_mixer_controls,
  17691. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  17692. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17693. quat_auxpcm_rx_mixer_controls,
  17694. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  17695. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17696. quin_auxpcm_rx_mixer_controls,
  17697. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  17698. /* incall */
  17699. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  17700. incall_music_delivery_mixer_controls,
  17701. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  17702. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17703. incall_music2_delivery_mixer_controls,
  17704. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  17705. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17706. slimbus_4_rx_mixer_controls,
  17707. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  17708. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17709. slimbus_6_rx_mixer_controls,
  17710. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  17711. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17712. usb_audio_rx_mixer_controls,
  17713. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  17714. /* Voice Mixer */
  17715. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  17716. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  17717. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  17718. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  17719. SND_SOC_NOPM, 0, 0,
  17720. sec_i2s_rx_voice_mixer_controls,
  17721. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  17722. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  17723. SND_SOC_NOPM, 0, 0,
  17724. sec_mi2s_rx_voice_mixer_controls,
  17725. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  17726. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  17727. SND_SOC_NOPM, 0, 0,
  17728. slimbus_rx_voice_mixer_controls,
  17729. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  17730. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  17731. SND_SOC_NOPM, 0, 0,
  17732. bt_sco_rx_voice_mixer_controls,
  17733. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  17734. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  17735. SND_SOC_NOPM, 0, 0,
  17736. afe_pcm_rx_voice_mixer_controls,
  17737. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  17738. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  17739. SND_SOC_NOPM, 0, 0,
  17740. aux_pcm_rx_voice_mixer_controls,
  17741. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  17742. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  17743. SND_SOC_NOPM, 0, 0,
  17744. sec_aux_pcm_rx_voice_mixer_controls,
  17745. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  17746. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  17747. SND_SOC_NOPM, 0, 0,
  17748. tert_aux_pcm_rx_voice_mixer_controls,
  17749. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  17750. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  17751. SND_SOC_NOPM, 0, 0,
  17752. quat_aux_pcm_rx_voice_mixer_controls,
  17753. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  17754. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  17755. SND_SOC_NOPM, 0, 0,
  17756. quin_aux_pcm_rx_voice_mixer_controls,
  17757. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  17758. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  17759. SND_SOC_NOPM, 0, 0,
  17760. hdmi_rx_voice_mixer_controls,
  17761. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  17762. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  17763. SND_SOC_NOPM, 0, 0,
  17764. mi2s_rx_voice_mixer_controls,
  17765. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  17766. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  17767. SND_SOC_NOPM, 0, 0,
  17768. pri_mi2s_rx_voice_mixer_controls,
  17769. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  17770. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  17771. SND_SOC_NOPM, 0, 0,
  17772. int0_mi2s_rx_voice_mixer_controls,
  17773. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  17774. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  17775. SND_SOC_NOPM, 0, 0,
  17776. int4_mi2s_rx_voice_mixer_controls,
  17777. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  17778. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  17779. SND_SOC_NOPM, 0, 0,
  17780. tert_mi2s_rx_voice_mixer_controls,
  17781. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  17782. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  17783. SND_SOC_NOPM, 0, 0,
  17784. quat_mi2s_rx_voice_mixer_controls,
  17785. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  17786. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  17787. SND_SOC_NOPM, 0, 0,
  17788. quin_mi2s_rx_voice_mixer_controls,
  17789. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  17790. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  17791. SND_SOC_NOPM, 0, 0,
  17792. quat_tdm_rx_2_voice_mixer_controls,
  17793. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  17794. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  17795. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  17796. ARRAY_SIZE(tx_voip_mixer_controls)),
  17797. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  17798. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  17799. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  17800. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  17801. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  17802. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  17803. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17804. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  17805. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17806. int_bt_a2dp_rx_mixer_controls,
  17807. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  17808. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17809. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  17810. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17811. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  17812. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  17813. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  17814. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  17815. tx_voice2_stub_mixer_controls,
  17816. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  17817. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  17818. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  17819. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  17820. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  17821. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  17822. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  17823. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  17824. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  17825. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  17826. SND_SOC_NOPM, 0, 0,
  17827. slimbus_6_rx_voice_mixer_controls,
  17828. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  17829. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  17830. slimbus_7_rx_voice_mixer_controls,
  17831. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  17832. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  17833. slimbus_8_rx_voice_mixer_controls,
  17834. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  17835. /* port mixer */
  17836. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  17837. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  17838. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  17839. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  17840. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  17841. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  17842. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  17843. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  17844. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  17845. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  17846. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  17847. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  17848. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  17849. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  17850. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  17851. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  17852. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  17853. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  17854. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17855. sbus_1_rx_port_mixer_controls,
  17856. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  17857. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17858. bt_sco_rx_port_mixer_controls,
  17859. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  17860. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  17861. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  17862. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  17863. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  17864. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  17865. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  17866. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  17867. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  17868. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  17869. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  17870. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  17871. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  17872. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  17873. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  17874. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  17875. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  17876. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  17877. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  17878. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  17879. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  17880. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  17881. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17882. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  17883. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17884. primary_mi2s_rx_port_mixer_controls,
  17885. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  17886. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17887. sec_mi2s_rx_port_mixer_controls,
  17888. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  17889. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17890. tert_mi2s_rx_port_mixer_controls,
  17891. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  17892. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17893. quat_mi2s_rx_port_mixer_controls,
  17894. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  17895. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17896. quin_mi2s_rx_port_mixer_controls,
  17897. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  17898. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17899. pri_tdm_rx_0_port_mixer_controls,
  17900. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  17901. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17902. pri_tdm_rx_1_port_mixer_controls,
  17903. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  17904. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17905. pri_tdm_rx_2_port_mixer_controls,
  17906. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  17907. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17908. pri_tdm_rx_3_port_mixer_controls,
  17909. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  17910. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17911. sec_tdm_rx_0_port_mixer_controls,
  17912. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  17913. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17914. sec_tdm_rx_1_port_mixer_controls,
  17915. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  17916. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17917. sec_tdm_rx_2_port_mixer_controls,
  17918. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  17919. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17920. sec_tdm_rx_3_port_mixer_controls,
  17921. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  17922. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17923. tert_tdm_rx_0_port_mixer_controls,
  17924. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  17925. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17926. tert_tdm_rx_1_port_mixer_controls,
  17927. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  17928. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17929. tert_tdm_rx_2_port_mixer_controls,
  17930. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  17931. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17932. tert_tdm_rx_3_port_mixer_controls,
  17933. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  17934. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17935. quat_tdm_rx_0_port_mixer_controls,
  17936. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  17937. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17938. quat_tdm_rx_1_port_mixer_controls,
  17939. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  17940. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17941. quat_tdm_rx_2_port_mixer_controls,
  17942. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  17943. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17944. quat_tdm_rx_3_port_mixer_controls,
  17945. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  17946. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17947. quin_tdm_rx_0_port_mixer_controls,
  17948. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  17949. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17950. quin_tdm_rx_1_port_mixer_controls,
  17951. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  17952. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17953. quin_tdm_rx_2_port_mixer_controls,
  17954. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  17955. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17956. quin_tdm_rx_3_port_mixer_controls,
  17957. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  17958. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17959. int0_mi2s_rx_port_mixer_controls,
  17960. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  17961. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17962. int4_mi2s_rx_port_mixer_controls,
  17963. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  17964. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  17965. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  17966. ARRAY_SIZE(tx_qchat_mixer_controls)),
  17967. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  17968. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  17969. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  17970. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  17971. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  17972. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  17973. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  17974. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  17975. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  17976. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  17977. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  17978. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  17979. /* lsm mixer definitions */
  17980. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  17981. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  17982. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  17983. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  17984. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  17985. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  17986. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  17987. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  17988. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  17989. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  17990. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  17991. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  17992. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  17993. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  17994. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  17995. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  17996. /* Virtual Pins to force backends ON atm */
  17997. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  17998. SND_SOC_DAPM_INPUT("BE_IN"),
  17999. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18000. &slim0_rx_vi_fb_lch_mux),
  18001. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18002. &slim0_rx_vi_fb_rch_mux),
  18003. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18004. &wsa_rx_0_vi_fb_lch_mux),
  18005. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18006. &wsa_rx_0_vi_fb_rch_mux),
  18007. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  18008. &mi2s_rx_vi_fb_mux),
  18009. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18010. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  18011. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18012. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  18013. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  18014. &voc_ext_ec_mux),
  18015. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  18016. &ext_ec_ref_mux_ul1),
  18017. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  18018. &ext_ec_ref_mux_ul2),
  18019. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  18020. &ext_ec_ref_mux_ul3),
  18021. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  18022. &ext_ec_ref_mux_ul4),
  18023. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  18024. &ext_ec_ref_mux_ul5),
  18025. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  18026. &ext_ec_ref_mux_ul6),
  18027. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  18028. &ext_ec_ref_mux_ul8),
  18029. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  18030. &ext_ec_ref_mux_ul9),
  18031. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  18032. &ext_ec_ref_mux_ul10),
  18033. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  18034. &ext_ec_ref_mux_ul16),
  18035. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  18036. &ext_ec_ref_mux_ul17),
  18037. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  18038. &ext_ec_ref_mux_ul18),
  18039. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  18040. &ext_ec_ref_mux_ul19),
  18041. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  18042. &ext_ec_ref_mux_ul28),
  18043. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  18044. &ext_ec_ref_mux_ul29),
  18045. };
  18046. static const struct snd_soc_dapm_route intercon[] = {
  18047. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18048. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18049. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18050. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18051. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18052. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18053. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18054. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18055. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18056. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18057. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18058. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18059. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18060. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18061. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18062. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18063. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  18064. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18065. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18066. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18067. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18068. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18069. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18070. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18071. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18072. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18073. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18074. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18075. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18076. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18077. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18078. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18079. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18080. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  18081. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18082. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18083. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18084. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18085. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18086. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18087. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18088. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18089. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18090. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18091. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18092. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18093. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18094. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18095. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18096. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18097. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  18098. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18099. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18100. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18101. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18102. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18103. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18104. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18105. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18106. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18107. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18108. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18109. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18110. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18111. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18112. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18113. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18114. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  18115. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18116. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18117. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18118. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18119. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18120. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18121. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18122. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18123. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18124. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18125. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18126. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18127. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18128. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18129. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18130. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18131. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  18132. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18133. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18134. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18135. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18136. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18137. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18138. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18139. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18140. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18141. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18142. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18143. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18144. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18145. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18146. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18147. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18148. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  18149. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18150. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18151. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18152. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18153. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18154. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18155. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18156. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18157. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18158. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18159. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18160. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18161. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18162. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18163. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18164. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18165. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  18166. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18167. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18168. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18169. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18170. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18171. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18172. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18173. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18174. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18175. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18176. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18177. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18178. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18179. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18180. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18181. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18182. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  18183. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18184. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18185. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18186. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18187. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18188. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18189. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18190. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18191. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18192. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18193. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18194. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18195. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18196. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18197. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18198. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18199. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  18200. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18201. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18202. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18203. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18204. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18205. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18206. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18207. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18208. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18209. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18210. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18211. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18212. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18213. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18214. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18215. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18216. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  18217. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18218. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18219. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18220. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18221. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18222. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18223. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18224. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18225. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18226. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18227. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18228. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18229. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18230. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18231. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18232. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18233. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  18234. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18235. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18236. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18237. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18238. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18239. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18240. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18241. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18242. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18243. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18244. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18245. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18246. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18247. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18248. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18249. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18250. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  18251. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18252. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18253. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18254. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18255. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18256. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18257. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18258. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18259. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18260. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18261. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18262. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18263. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18264. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18265. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18266. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18267. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  18268. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18269. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18270. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18271. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18272. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18273. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18274. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18275. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18276. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18277. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18278. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18279. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18280. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18281. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18282. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18283. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18284. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  18285. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18286. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18287. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18288. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18289. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18290. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18291. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18292. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18293. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18294. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18295. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18296. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18297. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18298. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18299. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18300. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18301. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  18302. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  18303. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  18304. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  18305. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  18306. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  18307. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  18308. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  18309. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  18310. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  18311. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  18312. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  18313. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  18314. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  18315. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  18316. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  18317. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  18318. {"HDMI", NULL, "HDMI Mixer"},
  18319. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  18320. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  18321. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  18322. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  18323. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  18324. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  18325. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  18326. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  18327. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  18328. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  18329. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  18330. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  18331. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  18332. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  18333. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  18334. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  18335. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  18336. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  18337. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  18338. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  18339. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  18340. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  18341. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  18342. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  18343. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  18344. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  18345. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  18346. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  18347. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  18348. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  18349. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  18350. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  18351. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  18352. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  18353. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18354. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18355. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18356. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18357. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18358. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18359. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18360. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18361. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18362. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18363. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18364. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18365. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18366. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18367. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18368. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18369. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  18370. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18371. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18372. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18373. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18374. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18375. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18376. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18377. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18378. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18379. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18380. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18381. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18382. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18383. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18384. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18385. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18386. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  18387. /* incall */
  18388. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  18389. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  18390. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  18391. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  18392. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  18393. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18394. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18395. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18396. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18397. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  18398. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18399. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18400. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18401. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18402. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  18403. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18404. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18405. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18406. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18407. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18408. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18409. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18410. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18411. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18412. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18413. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18414. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18415. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18416. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18417. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18418. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18419. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  18420. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18421. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18422. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18423. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18424. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18425. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18426. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18427. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18428. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18429. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18430. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18431. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18432. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18433. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18434. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18435. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18436. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  18437. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18438. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18439. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18440. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18441. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18442. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18443. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18444. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18445. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18446. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18447. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18448. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18449. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18450. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18451. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18452. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18453. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  18454. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  18455. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  18456. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  18457. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  18458. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  18459. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  18460. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  18461. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  18462. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18463. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18464. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  18465. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18466. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18467. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18468. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18469. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18470. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18471. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18472. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18473. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18474. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18475. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18476. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18477. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18478. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18479. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18480. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18481. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18482. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18483. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18484. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18485. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18486. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18487. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18488. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18489. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18490. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18491. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18492. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18493. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18494. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18495. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18496. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18497. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18498. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18499. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18500. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  18501. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  18502. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18503. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18504. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18505. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18506. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18507. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18508. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18509. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18510. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18511. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18512. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18513. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18514. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18515. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18516. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18517. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18518. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  18519. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18520. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18521. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18522. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18523. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18524. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18525. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18526. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18527. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18528. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18529. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18530. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18531. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18532. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18533. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18534. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  18535. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18536. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18537. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18538. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18539. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18540. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18541. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18542. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18543. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18544. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18545. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18546. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18547. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18548. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18549. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  18550. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18551. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18552. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18553. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18554. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18555. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18556. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18557. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18558. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18559. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18560. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18561. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18562. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18563. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18564. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  18565. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18566. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  18567. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18568. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18569. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18570. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18571. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18572. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18573. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18574. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18575. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18576. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18577. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18578. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18579. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18580. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18581. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18582. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18583. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18584. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  18585. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18586. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18587. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18588. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18589. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18590. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18591. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18592. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18593. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18594. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18595. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18596. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18597. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18598. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18599. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18600. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  18601. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18602. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18603. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18604. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18605. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18606. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18607. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18608. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18609. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18610. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18611. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18612. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18613. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18614. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18615. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18616. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  18617. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18618. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18619. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18620. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18621. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18622. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18623. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18624. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18625. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18626. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18627. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18628. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18629. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18630. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18631. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18632. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18633. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18634. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  18635. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18636. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18637. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18638. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18639. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18640. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18641. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18642. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18643. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18644. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18645. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18646. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18647. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18648. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18649. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18650. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18651. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18652. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  18653. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18654. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18655. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18656. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18657. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18658. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18659. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18660. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18661. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18662. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18663. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18664. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18665. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18666. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18667. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18668. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18669. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18670. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  18671. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18672. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18673. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18674. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18675. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18676. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18677. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18678. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18679. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18680. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18681. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18682. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18683. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18684. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18685. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18686. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18687. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18688. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  18689. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18690. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18691. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18692. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18693. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18694. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18695. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18696. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18697. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18698. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18699. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18700. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18701. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18702. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18703. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18704. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18705. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18706. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  18707. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18708. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18709. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18710. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18711. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18712. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18713. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18714. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18715. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18716. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18717. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18718. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18719. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18720. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18721. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18722. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18723. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  18724. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18725. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18726. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18727. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18728. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18729. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18730. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18731. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18732. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18733. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18734. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18735. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18736. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18737. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18738. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18739. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18740. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18741. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  18742. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18743. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18744. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18745. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18746. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18747. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18748. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18749. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18750. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18751. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18752. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18753. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18754. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18755. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18756. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18757. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18758. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18759. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  18760. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18761. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18762. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18763. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18764. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18765. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18766. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18767. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18768. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18769. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18770. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18771. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18772. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18773. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18774. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18775. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18776. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18777. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  18778. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18779. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18780. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18781. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18782. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18783. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18784. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18785. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18786. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18787. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18788. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18789. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18790. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18791. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18792. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18793. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18794. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18795. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  18796. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18797. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18798. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18799. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18800. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18801. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18802. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18803. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18804. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18805. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18806. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18807. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18808. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18809. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18810. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18811. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18812. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  18813. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18814. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18815. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18816. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18817. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18818. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18819. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18820. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18821. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18822. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18823. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18824. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18825. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18826. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18827. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18828. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18829. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18830. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  18831. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18832. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18833. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18834. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18835. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18836. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18837. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18838. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18839. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18840. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18841. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18842. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18843. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18844. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18845. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18846. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18847. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  18848. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18849. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18850. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18851. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18852. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18853. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18854. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18855. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18856. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18857. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18858. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18859. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18860. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18861. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18862. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18863. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18864. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18865. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  18866. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18867. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18868. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18869. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18870. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18871. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18872. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18873. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18874. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18875. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18876. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18877. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18878. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18879. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18880. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18881. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18882. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18883. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  18884. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18885. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18886. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18887. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18888. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18889. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18890. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18891. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18892. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18893. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18894. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18895. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18896. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18897. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18898. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18899. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18900. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18901. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  18902. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18903. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18904. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18905. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18906. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18907. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18908. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18909. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18910. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18911. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18912. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18913. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18914. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18915. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18916. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18917. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18918. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18919. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  18920. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18921. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18922. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18923. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18924. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18925. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18926. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18927. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18928. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18929. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18930. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18931. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18932. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18933. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18934. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18935. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18936. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18937. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18938. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  18939. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18940. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18941. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18942. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18943. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18944. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18945. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18946. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18947. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18948. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18949. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18950. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18951. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18952. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18953. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18954. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18955. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  18956. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18957. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18958. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18959. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18960. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18961. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18962. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18963. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18964. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18965. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18966. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18967. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18968. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18969. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18970. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18971. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18972. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18973. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18974. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  18975. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18976. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18977. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18978. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18979. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18980. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18981. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18982. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18983. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18984. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18985. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18986. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18987. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18988. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18989. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18990. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18991. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18992. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18993. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  18994. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18995. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18996. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18997. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18998. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18999. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19000. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19001. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19002. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19003. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19004. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19005. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19006. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19007. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19008. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19009. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19010. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19011. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19012. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  19013. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19014. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19015. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19016. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19017. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19018. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19019. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19020. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19021. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19022. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19023. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19024. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19025. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19026. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19027. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19028. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19029. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19030. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19031. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  19032. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19033. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19034. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19035. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19036. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19037. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19038. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19039. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19040. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19041. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19042. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19043. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19044. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19045. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19046. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19047. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19048. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  19049. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19050. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19051. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19052. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19053. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19054. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19055. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19056. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19057. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19058. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19059. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19060. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19061. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19062. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19063. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19064. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19065. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19066. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19067. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  19068. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19069. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19070. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19071. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19072. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19073. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19074. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19075. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19076. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19077. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19078. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19079. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19080. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19081. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19082. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19083. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19084. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19085. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19086. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  19087. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19088. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19089. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19090. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19091. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19092. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19093. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19094. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19095. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19096. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19097. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19098. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19099. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19100. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19101. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19102. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19103. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19104. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19105. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  19106. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  19107. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  19108. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  19109. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  19110. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  19111. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  19112. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  19113. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19114. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19115. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19116. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19117. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19118. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19119. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19120. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19121. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19122. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19123. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19124. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19125. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19126. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19127. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19128. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19129. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19130. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19131. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19132. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19133. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19134. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19135. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  19136. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19137. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19138. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19139. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  19140. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19141. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19142. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19143. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19144. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  19145. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19146. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19147. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19148. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19149. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19150. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19151. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19152. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19153. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19154. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19155. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19156. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19157. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19158. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19159. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19160. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19161. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19162. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19163. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19164. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19165. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19166. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19167. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19168. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19169. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19170. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19171. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19172. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19173. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19174. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19175. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19176. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19177. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19178. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19179. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19180. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19181. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19182. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19183. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19184. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19185. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19186. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19187. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19188. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19189. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19190. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19191. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19192. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19193. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19194. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19195. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19196. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19197. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19198. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19199. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19200. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19201. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19202. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19203. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19204. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19205. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19206. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19207. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19208. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19209. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19210. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19211. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19212. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19213. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19214. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19215. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19216. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19217. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19218. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19219. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19220. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19221. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19222. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19223. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19224. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19225. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19226. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19227. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19228. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19229. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19230. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19231. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19232. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19233. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19234. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19235. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19236. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19237. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19238. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19239. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19240. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19241. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19242. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19243. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19244. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19245. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19246. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19247. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19248. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19249. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19250. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19251. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19252. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19253. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19254. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19255. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19256. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19257. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19258. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19259. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19260. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19261. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19262. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19263. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19264. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19265. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19266. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19267. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19268. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19269. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19270. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19271. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19272. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19273. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19274. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19275. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19276. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19277. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19278. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19279. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19280. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19281. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19282. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19283. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19284. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19285. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19286. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19287. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19288. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19289. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19290. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19291. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19292. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19293. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19294. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19295. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19296. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19297. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19298. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19299. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19300. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19301. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19302. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19303. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19304. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19305. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19306. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19307. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19308. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19309. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19310. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19311. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19312. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19313. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19314. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19315. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19316. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19317. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19318. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19319. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19320. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19321. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19322. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19323. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19324. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19325. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19326. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19327. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19328. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19329. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19330. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19331. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19332. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19333. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19334. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19335. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19336. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19337. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19338. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19339. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19340. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19341. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19342. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19343. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19344. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19345. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19346. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19347. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19348. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19349. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19350. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19351. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19352. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19353. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19354. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19355. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19356. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19357. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19358. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19359. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19360. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19361. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19362. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19363. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19364. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19365. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19366. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19367. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19368. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19369. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19370. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19371. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19372. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19373. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19374. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19375. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19376. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19377. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19378. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19379. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19380. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19381. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19382. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19383. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19384. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19385. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19386. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19387. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19388. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19389. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19390. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19391. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19392. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19393. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19394. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19395. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19396. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19397. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19398. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19399. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19400. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19401. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19402. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19403. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19404. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19405. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19406. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19407. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19408. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19409. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19410. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19411. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19412. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19413. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19414. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19415. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19416. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19417. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19418. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19419. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19420. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19421. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19422. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19423. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19424. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19425. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19426. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19427. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19428. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19429. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19430. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19431. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19432. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19433. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19434. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19435. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19436. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19437. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19438. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19439. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19440. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19441. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19442. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19443. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19444. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19445. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19446. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19447. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19448. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19449. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19450. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19451. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19452. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19453. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19454. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19455. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19456. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19457. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19458. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19459. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19460. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19461. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19462. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19463. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19464. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19465. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19466. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19467. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19468. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19469. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19470. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19471. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19472. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19473. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19474. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19475. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19476. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19477. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19478. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19479. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19480. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19481. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19482. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19483. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19484. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19485. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19486. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19487. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19488. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19489. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19490. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19491. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19492. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19493. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19494. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19495. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19496. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19497. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19498. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19499. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19500. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19501. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19502. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19503. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19504. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19505. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19506. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19507. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19508. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19509. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19510. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19511. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19512. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19513. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19514. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19515. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19516. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19517. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19518. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19519. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19520. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19521. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19522. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19523. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19524. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19525. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19526. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19527. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19528. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19529. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19530. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19531. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19532. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19533. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19534. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19535. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19536. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19537. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19538. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19539. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19540. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19541. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19542. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19543. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19544. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19545. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19546. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19547. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19548. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19549. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19550. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19551. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19552. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19553. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19554. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19555. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19556. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19557. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19558. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19559. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19560. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19561. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19562. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19563. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19564. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19565. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19566. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19567. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19568. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19569. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19570. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19571. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19572. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19573. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19574. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19575. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19576. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19577. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19578. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19579. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19580. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19581. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19582. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19583. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19584. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19585. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19586. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19587. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19588. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19589. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19590. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19591. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19592. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19593. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19594. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19595. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19596. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  19597. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  19598. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19599. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19600. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19601. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19602. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19603. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19604. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19605. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19606. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19607. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19608. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19609. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19610. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19611. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19612. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19613. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19614. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  19615. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  19616. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19617. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19618. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19619. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19620. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19621. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19622. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19623. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19624. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19625. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19626. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19627. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19628. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19629. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19630. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19631. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19632. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  19633. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19634. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19635. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19636. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19637. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19638. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19639. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19640. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19641. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19642. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19643. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19644. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19645. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19646. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19647. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19648. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19649. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  19650. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19651. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19652. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19653. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19654. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19655. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19656. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19657. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19658. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19659. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19660. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19661. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19662. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19663. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19664. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19665. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19666. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19667. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19668. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19669. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19670. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19671. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19672. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19673. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19674. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19675. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19676. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19677. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19678. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19679. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19680. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19681. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19682. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19683. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19684. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19685. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  19686. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19687. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  19688. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  19689. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  19690. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  19691. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  19692. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  19693. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  19694. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  19695. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  19696. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  19697. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  19698. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  19699. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  19700. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  19701. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  19702. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  19703. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19704. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19705. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19706. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19707. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19708. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19709. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19710. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19711. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19712. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19713. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19714. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19715. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19716. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19717. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19718. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19719. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  19720. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  19721. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19722. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19723. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19724. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19725. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19726. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19727. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19728. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19729. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19730. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19731. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19732. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19733. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19734. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19735. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19736. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19737. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  19738. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  19739. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19740. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19741. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19742. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19743. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19744. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19745. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19746. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19747. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19748. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19749. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19750. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19751. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19752. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19753. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19754. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19755. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  19756. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19757. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19758. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19759. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19760. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19761. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19762. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19763. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19764. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19765. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19766. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19767. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19768. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19769. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19770. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19771. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19772. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  19773. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19774. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19775. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19776. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19777. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19778. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19779. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19780. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19781. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19782. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19783. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19784. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19785. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19786. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19787. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19788. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19789. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  19790. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19791. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19792. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19793. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19794. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19795. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  19796. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19797. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19798. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19799. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  19800. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19801. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19802. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19803. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19804. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19805. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  19806. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19807. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19808. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19809. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19810. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19811. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  19812. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19813. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19814. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19815. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19816. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19817. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  19818. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19819. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19820. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19821. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19822. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19823. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  19824. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19825. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19826. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19827. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19828. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19829. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  19830. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  19831. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19832. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19833. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19834. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19835. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  19836. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19837. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19838. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19839. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19840. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19841. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  19842. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19843. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19844. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19845. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19846. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19847. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  19848. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19849. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19850. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19851. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19852. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19853. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  19854. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19855. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19856. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19857. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19858. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19859. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  19860. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19861. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19862. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19863. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19864. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19865. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  19866. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19867. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19868. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19869. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19870. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19871. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  19872. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19873. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19874. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19875. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19876. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19877. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  19878. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19879. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19880. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19881. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19882. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19883. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  19884. {"HDMI", NULL, "HDMI_DL_HL"},
  19885. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19886. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19887. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19888. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19889. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19890. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  19891. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19892. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19893. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19894. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19895. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19896. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  19897. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19898. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19899. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19900. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19901. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19902. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  19903. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19904. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19905. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19906. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19907. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19908. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  19909. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19910. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19911. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19912. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19913. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19914. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  19915. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19916. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19917. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19918. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19919. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  19920. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19921. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19922. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19923. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19924. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  19925. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19926. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  19927. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19928. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19929. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19930. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19931. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19932. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19933. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  19934. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  19935. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  19936. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19937. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19938. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19939. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19940. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19941. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19942. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  19943. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  19944. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  19945. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19946. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19947. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19948. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19949. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19950. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19951. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19952. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19953. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19954. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19955. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19956. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19957. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19958. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19959. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19960. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19961. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19962. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19963. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19964. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19965. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19966. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19967. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19968. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19969. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19970. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19971. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19972. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19973. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19974. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19975. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19976. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19977. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19978. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19979. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19980. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  19981. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  19982. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  19983. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19984. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19985. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19986. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19987. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19988. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19989. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19990. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19991. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19992. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19993. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19994. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19995. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19996. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19997. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19998. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19999. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20000. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20001. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20002. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20003. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20004. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20005. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20006. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20007. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20008. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20009. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20010. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20011. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20012. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20013. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20014. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20015. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20016. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20017. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  20018. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  20019. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  20020. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  20021. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  20022. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  20023. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  20024. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  20025. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  20026. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  20027. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  20028. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  20029. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  20030. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  20031. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  20032. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  20033. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  20034. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  20035. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  20036. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  20037. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  20038. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  20039. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  20040. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  20041. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  20042. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  20043. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  20044. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  20045. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  20046. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  20047. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  20048. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  20049. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  20050. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  20051. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  20052. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  20053. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  20054. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  20055. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  20056. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  20057. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  20058. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  20059. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  20060. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  20061. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  20062. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  20063. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  20064. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  20065. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  20066. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  20067. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  20068. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  20069. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  20070. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  20071. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  20072. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  20073. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  20074. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  20075. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  20076. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  20077. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  20078. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  20079. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  20080. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  20081. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  20082. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  20083. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  20084. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  20085. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  20086. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  20087. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  20088. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  20089. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  20090. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  20091. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  20092. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  20093. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  20094. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  20095. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  20096. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  20097. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  20098. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20099. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  20100. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  20101. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20102. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20103. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20104. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20105. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20106. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20107. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20108. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20109. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20110. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20111. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  20112. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20113. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20114. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20115. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20116. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20117. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20118. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20119. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20120. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20121. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20122. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  20123. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20124. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20125. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20126. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20127. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20128. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20129. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20130. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20131. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20132. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20133. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  20134. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20135. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20136. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20137. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20138. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20139. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20140. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20141. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20142. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20143. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20144. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  20145. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20146. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20147. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20148. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20149. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20150. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20151. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20152. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20153. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20154. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20155. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  20156. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20157. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20158. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20159. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20160. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20161. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20162. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20163. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20164. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  20165. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20166. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20167. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20168. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20169. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20170. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20171. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20172. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20173. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  20174. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20175. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20176. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20177. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20178. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20179. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20180. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20181. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20182. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  20183. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  20184. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  20185. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  20186. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  20187. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  20188. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  20189. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  20190. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  20191. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  20192. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  20193. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  20194. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  20195. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  20196. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  20197. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  20198. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  20199. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  20200. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  20201. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  20202. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  20203. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  20204. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  20205. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  20206. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  20207. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  20208. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  20209. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  20210. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20211. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  20212. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  20213. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  20214. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20215. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  20216. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  20217. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  20218. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  20219. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  20220. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  20221. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  20222. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  20223. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20224. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  20225. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20226. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  20227. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  20228. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  20229. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  20230. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  20231. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  20232. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  20233. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  20234. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  20235. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  20236. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  20237. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20238. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  20239. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20240. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  20241. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  20242. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  20243. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  20244. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  20245. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  20246. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  20247. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  20248. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  20249. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  20250. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  20251. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  20252. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  20253. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  20254. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  20255. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  20256. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  20257. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  20258. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  20259. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  20260. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  20261. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  20262. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  20263. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  20264. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  20265. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  20266. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  20267. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  20268. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  20269. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  20270. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  20271. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  20272. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  20273. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  20274. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  20275. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  20276. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  20277. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  20278. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  20279. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  20280. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  20281. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  20282. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  20283. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  20284. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  20285. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  20286. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  20287. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20288. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20289. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20290. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20291. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20292. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20293. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20294. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20295. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20296. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20297. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20298. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20299. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20300. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20301. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20302. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20303. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20304. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20305. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20306. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20307. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  20308. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20309. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20310. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20311. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20312. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20313. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20314. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20315. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20316. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20317. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20318. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20319. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20320. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20321. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20322. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20323. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20324. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20325. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20326. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20327. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20328. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  20329. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20330. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20331. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20332. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20333. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20334. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20335. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20336. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20337. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20338. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20339. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20340. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20341. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20342. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20343. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20344. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20345. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20346. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20347. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20348. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20349. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  20350. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20351. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20352. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20353. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20354. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20355. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20356. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20357. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20358. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20359. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20360. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20361. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20362. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20363. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20364. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20365. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20366. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20367. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20368. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20369. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20370. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  20371. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20372. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20373. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20374. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20375. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20376. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20377. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20378. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20379. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20380. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20381. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20382. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20383. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20384. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20385. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20386. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20387. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20388. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20389. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20390. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20391. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  20392. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20393. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20394. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20395. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20396. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20397. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20398. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20399. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20400. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20401. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20402. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20403. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20404. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20405. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20406. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20407. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20408. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20409. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20410. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20411. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20412. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  20413. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20414. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20415. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20416. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20417. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20418. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20419. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20420. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20421. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20422. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20423. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20424. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20425. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20426. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20427. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20428. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20429. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20430. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20431. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20432. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20433. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  20434. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20435. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20436. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20437. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20438. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20439. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20440. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20441. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20442. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20443. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20444. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20445. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20446. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20447. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20448. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20449. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20450. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20451. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20452. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20453. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20454. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  20455. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20456. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20457. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20458. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20459. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20460. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20461. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20462. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20463. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20464. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20465. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20466. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20467. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20468. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20469. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20470. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20471. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20472. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20473. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20474. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20475. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  20476. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20477. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20478. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20479. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20480. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20481. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20482. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20483. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20484. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20485. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20486. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20487. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20488. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20489. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20490. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20491. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20492. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20493. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20494. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20495. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20496. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  20497. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20498. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20499. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20500. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20501. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20502. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20503. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20504. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20505. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20506. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20507. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20508. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20509. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20510. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20511. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20512. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20513. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20514. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20515. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20516. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20517. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  20518. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20519. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20520. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20521. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20522. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20523. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20524. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20525. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20526. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20527. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20528. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20529. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20530. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20531. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20532. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20533. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20534. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20535. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20536. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20537. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20538. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  20539. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20540. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20541. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20542. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20543. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20544. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20545. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20546. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20547. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20548. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20549. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20550. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20551. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20552. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20553. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20554. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20555. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20556. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20557. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20558. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20559. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  20560. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20561. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20562. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20563. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20564. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20565. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20566. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20567. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20568. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20569. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20570. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20571. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20572. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20573. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20574. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20575. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20576. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20577. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20578. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20579. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20580. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  20581. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20582. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20583. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20584. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20585. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20586. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20587. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20588. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20589. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20590. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20591. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20592. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20593. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20594. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20595. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20596. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20597. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20598. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20599. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20600. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20601. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  20602. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20603. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20604. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20605. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20606. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20607. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20608. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20609. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20610. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20611. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20612. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20613. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20614. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20615. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20616. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20617. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20618. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20619. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20620. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20621. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20622. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  20623. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20624. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20625. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20626. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20627. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20628. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20629. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20630. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20631. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20632. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20633. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20634. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20635. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20636. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20637. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20638. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20639. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20640. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20641. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20642. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20643. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  20644. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20645. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20646. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20647. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20648. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20649. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20650. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20651. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20652. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20653. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20654. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20655. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20656. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20657. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20658. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20659. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20660. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20661. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20662. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20663. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20664. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  20665. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20666. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20667. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20668. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20669. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20670. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20671. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20672. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20673. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20674. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20675. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20676. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20677. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20678. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20679. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20680. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20681. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20682. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20683. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20684. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20685. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  20686. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20687. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20688. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20689. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20690. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20691. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20692. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20693. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20694. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20695. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20696. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20697. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20698. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20699. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20700. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20701. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20702. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20703. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20704. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20705. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20706. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  20707. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20708. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20709. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20710. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20711. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20712. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20713. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20714. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20715. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20716. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20717. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  20718. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20719. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20720. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20721. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20722. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20723. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20724. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20725. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20726. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20727. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20728. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  20729. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20730. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20731. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20732. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20733. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20734. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20735. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20736. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  20737. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  20738. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  20739. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20740. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20741. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20742. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20743. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20744. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20745. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20746. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  20747. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20748. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20749. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  20750. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20751. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  20752. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  20753. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  20754. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  20755. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20756. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20757. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20758. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20759. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20760. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20761. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  20762. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20763. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20764. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20765. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20766. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  20767. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20768. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  20769. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20770. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  20771. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20772. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  20773. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20774. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  20775. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20776. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  20777. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20778. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  20779. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  20780. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20781. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20782. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  20783. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20784. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20785. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  20786. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  20787. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  20788. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  20789. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20790. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20791. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20792. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20793. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20794. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  20795. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20796. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20797. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  20798. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  20799. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  20800. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20801. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  20802. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20803. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20804. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  20805. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20806. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20807. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  20808. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20809. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20810. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  20811. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  20812. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20813. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  20814. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20815. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20816. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  20817. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20818. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20819. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  20820. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20821. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20822. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  20823. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20824. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20825. {"STUB_RX", NULL, "STUB_RX Mixer"},
  20826. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20827. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20828. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  20829. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20830. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20831. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  20832. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20833. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20834. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20835. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20836. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20837. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  20838. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20839. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20840. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20841. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20842. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20843. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  20844. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20845. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20846. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20847. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  20848. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20849. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20850. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  20851. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  20852. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20853. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  20854. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  20855. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  20856. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  20857. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20858. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20859. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20860. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20861. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20862. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20863. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20864. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20865. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20866. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20867. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20868. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20869. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  20870. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20871. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  20872. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20873. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  20874. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  20875. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  20876. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20877. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  20878. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20879. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20880. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  20881. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20882. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20883. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20884. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20885. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20886. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20887. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20888. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20889. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20890. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20891. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  20892. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20893. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20894. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20895. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20896. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20897. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20898. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20899. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20900. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20901. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  20902. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20903. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20904. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20905. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20906. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20907. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20908. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20909. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  20910. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20911. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20912. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20913. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20914. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20915. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20916. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20917. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20918. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20919. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  20920. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20921. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20922. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20923. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20924. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20925. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20926. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20927. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  20928. /* Backend Enablement */
  20929. {"BE_OUT", NULL, "PRI_I2S_RX"},
  20930. {"BE_OUT", NULL, "SEC_I2S_RX"},
  20931. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  20932. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  20933. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  20934. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  20935. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  20936. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  20937. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  20938. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  20939. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  20940. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  20941. {"BE_OUT", NULL, "HDMI"},
  20942. {"BE_OUT", NULL, "DISPLAY_PORT"},
  20943. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  20944. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  20945. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  20946. {"BE_OUT", NULL, "MI2S_RX"},
  20947. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  20948. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  20949. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  20950. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  20951. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  20952. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  20953. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  20954. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  20955. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  20956. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  20957. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  20958. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  20959. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  20960. {"BE_OUT", NULL, "INT_FM_RX"},
  20961. {"BE_OUT", NULL, "PCM_RX"},
  20962. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  20963. {"BE_OUT", NULL, "AUX_PCM_RX"},
  20964. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  20965. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  20966. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  20967. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  20968. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  20969. {"BE_OUT", NULL, "INT_FM_RX"},
  20970. {"BE_OUT", NULL, "PCM_RX"},
  20971. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  20972. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  20973. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  20974. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  20975. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  20976. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  20977. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  20978. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  20979. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  20980. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  20981. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  20982. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  20983. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  20984. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  20985. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  20986. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  20987. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  20988. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  20989. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  20990. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  20991. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  20992. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  20993. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  20994. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  20995. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  20996. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  20997. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  20998. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  20999. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  21000. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  21001. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  21002. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  21003. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  21004. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  21005. {"PRI_I2S_TX", NULL, "BE_IN"},
  21006. {"MI2S_TX", NULL, "BE_IN"},
  21007. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  21008. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  21009. {"PRI_MI2S_TX", NULL, "BE_IN"},
  21010. {"TERT_MI2S_TX", NULL, "BE_IN"},
  21011. {"INT0_MI2S_TX", NULL, "BE_IN"},
  21012. {"INT2_MI2S_TX", NULL, "BE_IN"},
  21013. {"INT3_MI2S_TX", NULL, "BE_IN"},
  21014. {"INT4_MI2S_TX", NULL, "BE_IN"},
  21015. {"INT5_MI2S_TX", NULL, "BE_IN"},
  21016. {"SEC_MI2S_TX", NULL, "BE_IN"},
  21017. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  21018. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  21019. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  21020. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  21021. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  21022. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  21023. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  21024. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  21025. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  21026. {"USB_AUDIO_TX", NULL, "BE_IN" },
  21027. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  21028. {"INT_FM_TX", NULL, "BE_IN"},
  21029. {"PCM_TX", NULL, "BE_IN"},
  21030. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21031. {"BE_OUT", NULL, "STUB_RX"},
  21032. {"STUB_TX", NULL, "BE_IN"},
  21033. {"STUB_1_TX", NULL, "BE_IN"},
  21034. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21035. {"AUX_PCM_TX", NULL, "BE_IN"},
  21036. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  21037. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  21038. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  21039. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  21040. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  21041. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  21042. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21043. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21044. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21045. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21046. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  21047. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21048. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21049. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  21050. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  21051. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  21052. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  21053. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  21054. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  21055. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  21056. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  21057. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  21058. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  21059. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  21060. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  21061. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  21062. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  21063. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  21064. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  21065. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  21066. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  21067. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  21068. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  21069. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  21070. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  21071. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  21072. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  21073. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  21074. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  21075. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  21076. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21077. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21078. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  21079. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21080. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21081. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  21082. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  21083. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  21084. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  21085. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  21086. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  21087. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  21088. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  21089. };
  21090. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  21091. struct snd_pcm_hw_params *params)
  21092. {
  21093. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21094. unsigned int be_id = rtd->dai_link->id;
  21095. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21096. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21097. return -EINVAL;
  21098. }
  21099. mutex_lock(&routing_lock);
  21100. msm_bedais[be_id].sample_rate = params_rate(params);
  21101. msm_bedais[be_id].channel = params_channels(params);
  21102. msm_bedais[be_id].format = params_format(params);
  21103. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  21104. __func__, msm_bedais[be_id].sample_rate,
  21105. msm_bedais[be_id].format, be_id);
  21106. mutex_unlock(&routing_lock);
  21107. return 0;
  21108. }
  21109. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  21110. {
  21111. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21112. unsigned int be_id = rtd->dai_link->id;
  21113. int i, session_type, path_type, topology;
  21114. struct msm_pcm_routing_bdai_data *bedai;
  21115. struct msm_pcm_routing_fdai_data *fdai;
  21116. pr_debug("%s: substream->pcm->id:%s\n",
  21117. __func__, substream->pcm->id);
  21118. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21119. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21120. return -EINVAL;
  21121. }
  21122. bedai = &msm_bedais[be_id];
  21123. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  21124. 0 : 1);
  21125. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21126. path_type = ADM_PATH_PLAYBACK;
  21127. else
  21128. path_type = ADM_PATH_LIVE_REC;
  21129. mutex_lock(&routing_lock);
  21130. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21131. if (!is_mm_lsm_fe_id(i))
  21132. continue;
  21133. fdai = &fe_dai_map[i][session_type];
  21134. if (fdai->strm_id != INVALID_SESSION) {
  21135. int idx;
  21136. int port_id;
  21137. unsigned long copp =
  21138. session_copp_map[i][session_type][be_id];
  21139. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  21140. if (test_bit(idx, &copp))
  21141. break;
  21142. fdai->be_srate = bedai->sample_rate;
  21143. port_id = bedai->port_id;
  21144. topology = adm_get_topology_for_port_copp_idx(port_id,
  21145. idx);
  21146. msm_routing_unload_topology(topology);
  21147. adm_close(bedai->port_id, fdai->perf_mode, idx);
  21148. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  21149. __func__, copp, i, session_type, be_id,
  21150. topology);
  21151. clear_bit(idx,
  21152. &session_copp_map[i][session_type][be_id]);
  21153. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  21154. (bedai->passthr_mode[i] == LEGACY_PCM))
  21155. msm_pcm_routing_deinit_pp(bedai->port_id,
  21156. topology);
  21157. }
  21158. }
  21159. bedai->active = 0;
  21160. bedai->sample_rate = 0;
  21161. bedai->channel = 0;
  21162. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  21163. if (bedai->passthr_mode[i] != LISTEN)
  21164. bedai->passthr_mode[i] = LEGACY_PCM;
  21165. }
  21166. mutex_unlock(&routing_lock);
  21167. return 0;
  21168. }
  21169. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  21170. {
  21171. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21172. unsigned int be_id = rtd->dai_link->id;
  21173. int i, path_type, topology;
  21174. int session_type = INVALID_SESSION;
  21175. struct msm_pcm_routing_bdai_data *bedai;
  21176. u32 channels, sample_rate;
  21177. uint16_t bits_per_sample = 16, voc_path_type;
  21178. struct msm_pcm_routing_fdai_data *fdai;
  21179. u32 session_id;
  21180. struct media_format_info voc_be_media_format;
  21181. bool is_lsm;
  21182. pr_debug("%s: substream->pcm->id:%s\n",
  21183. __func__, substream->pcm->id);
  21184. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21185. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21186. return -EINVAL;
  21187. }
  21188. bedai = &msm_bedais[be_id];
  21189. mutex_lock(&routing_lock);
  21190. if (bedai->active == 1)
  21191. goto done; /* Ignore prepare if back-end already active */
  21192. /* AFE port is not active at this point. However, still
  21193. * go ahead setting active flag under the notion that
  21194. * QDSP6 is able to handle ADM starting before AFE port
  21195. * is started.
  21196. */
  21197. bedai->active = 1;
  21198. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21199. if (!(is_mm_lsm_fe_id(i) &&
  21200. route_check_fe_id_adm_support(i)))
  21201. continue;
  21202. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  21203. if (bedai->passthr_mode[i] != LEGACY_PCM)
  21204. path_type = ADM_PATH_COMPRESSED_RX;
  21205. else
  21206. path_type = ADM_PATH_PLAYBACK;
  21207. session_type = SESSION_TYPE_RX;
  21208. } else {
  21209. if ((bedai->passthr_mode[i] != LEGACY_PCM) &&
  21210. (bedai->passthr_mode[i] != LISTEN))
  21211. path_type = ADM_PATH_COMPRESSED_TX;
  21212. else
  21213. path_type = ADM_PATH_LIVE_REC;
  21214. session_type = SESSION_TYPE_TX;
  21215. }
  21216. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  21217. (i <= MSM_FRONTEND_DAI_LSM8);
  21218. fdai = &fe_dai_map[i][session_type];
  21219. if (fdai->strm_id != INVALID_SESSION) {
  21220. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  21221. if (session_type == SESSION_TYPE_TX &&
  21222. fdai->be_srate &&
  21223. (fdai->be_srate != bedai->sample_rate)) {
  21224. pr_debug("%s: flush strm %d diff BE rates\n",
  21225. __func__,
  21226. fdai->strm_id);
  21227. if (fdai->event_info.event_func)
  21228. fdai->event_info.event_func(
  21229. MSM_PCM_RT_EVT_BUF_RECFG,
  21230. fdai->event_info.priv_data);
  21231. fdai->be_srate = 0; /* might not need it */
  21232. }
  21233. bits_per_sample = msm_routing_get_bit_width(
  21234. bedai->format);
  21235. app_type =
  21236. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  21237. if (app_type && is_lsm) {
  21238. app_type_idx =
  21239. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  21240. sample_rate =
  21241. fe_dai_app_type_cfg[i][session_type][be_id]
  21242. .sample_rate;
  21243. bits_per_sample =
  21244. lsm_app_type_cfg[app_type_idx].bit_width;
  21245. } else if (app_type) {
  21246. app_type_idx =
  21247. msm_pcm_routing_get_app_type_idx(app_type);
  21248. sample_rate =
  21249. fe_dai_app_type_cfg[i][session_type]
  21250. [be_id].sample_rate;
  21251. bits_per_sample =
  21252. app_type_cfg[app_type_idx].bit_width;
  21253. } else
  21254. sample_rate = bedai->sample_rate;
  21255. /*
  21256. * check if ADM needs to be configured with different
  21257. * channel mapping than backend
  21258. */
  21259. if (!bedai->adm_override_ch)
  21260. channels = bedai->channel;
  21261. else
  21262. channels = bedai->adm_override_ch;
  21263. acdb_dev_id =
  21264. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  21265. topology = msm_routing_get_adm_topology(i, session_type,
  21266. be_id);
  21267. if ((bedai->passthr_mode[i] ==
  21268. COMPRESSED_PASSTHROUGH_DSD)
  21269. || (bedai->passthr_mode[i] ==
  21270. COMPRESSED_PASSTHROUGH_GEN)
  21271. || (bedai->passthr_mode[i] ==
  21272. COMPRESSED_PASSTHROUGH_IEC61937))
  21273. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  21274. copp_idx = adm_open(bedai->port_id, path_type,
  21275. sample_rate, channels, topology,
  21276. fdai->perf_mode, bits_per_sample,
  21277. app_type, acdb_dev_id);
  21278. if ((copp_idx < 0) ||
  21279. (copp_idx >= MAX_COPPS_PER_PORT)) {
  21280. pr_err("%s: adm open failed\n", __func__);
  21281. mutex_unlock(&routing_lock);
  21282. return -EINVAL;
  21283. }
  21284. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  21285. __func__, i, session_type, be_id);
  21286. set_bit(copp_idx,
  21287. &session_copp_map[i][session_type][be_id]);
  21288. if (msm_is_resample_needed(
  21289. sample_rate,
  21290. bedai->sample_rate))
  21291. adm_copp_mfc_cfg(
  21292. bedai->port_id, copp_idx,
  21293. bedai->sample_rate);
  21294. msm_pcm_routing_build_matrix(i, session_type, path_type,
  21295. fdai->perf_mode,
  21296. bedai->passthr_mode[i]);
  21297. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  21298. (bedai->passthr_mode[i] == LEGACY_PCM))
  21299. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  21300. topology, channels);
  21301. }
  21302. }
  21303. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21304. session_id = msm_pcm_routing_get_voc_sessionid(i);
  21305. if (session_id) {
  21306. pr_debug("%s voice session_id: 0x%x\n", __func__,
  21307. session_id);
  21308. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21309. voc_path_type = RX_PATH;
  21310. else
  21311. voc_path_type = TX_PATH;
  21312. voc_set_route_flag(session_id, voc_path_type, 1);
  21313. memset(&voc_be_media_format, 0,
  21314. sizeof(struct media_format_info));
  21315. voc_be_media_format.port_id = bedai->port_id;
  21316. voc_be_media_format.num_channels = bedai->channel;
  21317. voc_be_media_format.sample_rate = bedai->sample_rate;
  21318. voc_be_media_format.bits_per_sample = bedai->format;
  21319. /* Defaulting this to 1 for voice call usecases */
  21320. voc_be_media_format.channel_mapping[0] = 1;
  21321. voc_set_device_config(session_id, voc_path_type,
  21322. &voc_be_media_format);
  21323. if (voc_get_route_flag(session_id, RX_PATH) &&
  21324. voc_get_route_flag(session_id, TX_PATH))
  21325. voc_enable_device(session_id);
  21326. }
  21327. }
  21328. /* Check if backend is an external ec ref port and set as needed */
  21329. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  21330. memset(&voc_be_media_format, 0,
  21331. sizeof(struct media_format_info));
  21332. /* Get format info for ec ref port from msm_bedais[] */
  21333. voc_be_media_format.port_id = bedai->port_id;
  21334. voc_be_media_format.num_channels = bedai->channel;
  21335. voc_be_media_format.bits_per_sample = bedai->format;
  21336. voc_be_media_format.sample_rate = bedai->sample_rate;
  21337. /* Defaulting this to 1 for voice call usecases */
  21338. voc_be_media_format.channel_mapping[0] = 1;
  21339. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  21340. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  21341. __func__, voc_be_media_format.port_id,
  21342. voc_be_media_format.num_channels,
  21343. voc_be_media_format.bits_per_sample,
  21344. voc_be_media_format.sample_rate);
  21345. }
  21346. done:
  21347. mutex_unlock(&routing_lock);
  21348. return 0;
  21349. }
  21350. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  21351. int fe_id)
  21352. {
  21353. int index, topo_id, be_idx;
  21354. unsigned long pp_config = 0;
  21355. bool mute_on;
  21356. int latency;
  21357. bool compr_passthr_mode = true;
  21358. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  21359. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  21360. pr_err("%s: Device pp params on invalid port %d\n",
  21361. __func__, port_id);
  21362. return -EINVAL;
  21363. }
  21364. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21365. if (port_id == msm_bedais[be_idx].port_id)
  21366. break;
  21367. }
  21368. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21369. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  21370. return -EINVAL;
  21371. }
  21372. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  21373. if (msm_bedais_pp_params[index].port_id == port_id)
  21374. break;
  21375. }
  21376. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  21377. pr_err("%s: Invalid backend pp params index %d\n",
  21378. __func__, index);
  21379. return -EINVAL;
  21380. }
  21381. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  21382. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  21383. pr_err("%s: Invalid passthrough topology 0x%x\n",
  21384. __func__, topo_id);
  21385. return -EINVAL;
  21386. }
  21387. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  21388. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  21389. compr_passthr_mode = false;
  21390. pp_config = msm_bedais_pp_params[index].pp_params_config;
  21391. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  21392. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  21393. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  21394. mute_on = msm_bedais_pp_params[index].mute_on;
  21395. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21396. adm_send_compressed_device_mute(port_id,
  21397. copp_idx,
  21398. mute_on);
  21399. }
  21400. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  21401. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  21402. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  21403. &pp_config);
  21404. latency = msm_bedais_pp_params[index].latency;
  21405. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21406. adm_send_compressed_device_latency(port_id,
  21407. copp_idx,
  21408. latency);
  21409. }
  21410. return 0;
  21411. }
  21412. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  21413. {
  21414. uint32_t topology = NULL_COPP_TOPOLOGY;
  21415. void *cal_info = NULL;
  21416. uint32_t size = 0;
  21417. /* Retrieve cal_info size from cal data*/
  21418. size = data_size - sizeof(struct audio_cal_type_basic);
  21419. cal_info = kzalloc(size, GFP_KERNEL);
  21420. if (!cal_info)
  21421. goto done;
  21422. memcpy(cal_info,
  21423. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  21424. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  21425. kfree(cal_info);
  21426. cal_info = NULL;
  21427. done:
  21428. pr_debug("%s: Using topology %d\n", __func__, topology);
  21429. return topology;
  21430. }
  21431. static void msm_routing_load_topology(size_t data_size, void *data)
  21432. {
  21433. uint32_t topology_id;
  21434. int ret = -EINVAL;
  21435. topology_id = msm_routing_get_topology(data_size, data);
  21436. if (topology_id != NULL_COPP_TOPOLOGY)
  21437. ret = q6core_load_unload_topo_modules(topology_id,
  21438. CORE_LOAD_TOPOLOGY);
  21439. if (ret < 0)
  21440. pr_debug("%s %d load topology failed\n",
  21441. __func__, topology_id);
  21442. }
  21443. static void msm_routing_unload_topology(uint32_t topology_id)
  21444. {
  21445. int ret = -EINVAL;
  21446. if (topology_id != NULL_COPP_TOPOLOGY)
  21447. ret = q6core_load_unload_topo_modules(topology_id,
  21448. CORE_UNLOAD_TOPOLOGY);
  21449. if (ret < 0)
  21450. pr_debug("%s %d unload topology failed\n",
  21451. __func__, topology_id);
  21452. }
  21453. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  21454. struct snd_ctl_elem_value *ucontrol)
  21455. {
  21456. int pp_id = ucontrol->value.integer.value[0];
  21457. int port_id = 0;
  21458. int index, be_idx, i, topo_id, idx;
  21459. bool mute;
  21460. int latency;
  21461. bool compr_passthr_mode = true;
  21462. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  21463. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21464. port_id = msm_bedais[be_idx].port_id;
  21465. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  21466. break;
  21467. }
  21468. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21469. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  21470. return -EINVAL;
  21471. }
  21472. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  21473. if (msm_bedais_pp_params[index].port_id == port_id)
  21474. break;
  21475. }
  21476. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  21477. pr_err("%s: Invalid pp params backend index %d\n",
  21478. __func__, index);
  21479. return -EINVAL;
  21480. }
  21481. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21482. MSM_FRONTEND_DAI_MM_SIZE) {
  21483. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  21484. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  21485. compr_passthr_mode = false;
  21486. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21487. unsigned long copp =
  21488. session_copp_map[i]
  21489. [SESSION_TYPE_RX][be_idx];
  21490. if (!test_bit(idx, &copp))
  21491. continue;
  21492. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  21493. idx);
  21494. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  21495. continue;
  21496. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  21497. __func__, port_id, copp, msm_bedais[be_idx].active,
  21498. msm_bedais[be_idx].passthr_mode[i]);
  21499. switch (pp_id) {
  21500. case ADM_PP_PARAM_MUTE_ID:
  21501. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  21502. mute = ucontrol->value.integer.value[1] ? true : false;
  21503. msm_bedais_pp_params[index].mute_on = mute;
  21504. set_bit(ADM_PP_PARAM_MUTE_BIT,
  21505. &msm_bedais_pp_params[index].pp_params_config);
  21506. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21507. adm_send_compressed_device_mute(port_id,
  21508. idx, mute);
  21509. break;
  21510. case ADM_PP_PARAM_LATENCY_ID:
  21511. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  21512. msm_bedais_pp_params[index].latency =
  21513. ucontrol->value.integer.value[1];
  21514. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  21515. &msm_bedais_pp_params[index].pp_params_config);
  21516. latency = msm_bedais_pp_params[index].latency =
  21517. ucontrol->value.integer.value[1];
  21518. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21519. adm_send_compressed_device_latency(port_id,
  21520. idx, latency);
  21521. break;
  21522. default:
  21523. pr_info("%s, device pp param %d not supported\n",
  21524. __func__, pp_id);
  21525. break;
  21526. }
  21527. }
  21528. }
  21529. return 0;
  21530. }
  21531. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  21532. struct snd_ctl_elem_value *ucontrol)
  21533. {
  21534. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  21535. return 0;
  21536. }
  21537. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  21538. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  21539. 0, 3, msm_routing_get_device_pp_params_mixer,
  21540. msm_routing_put_device_pp_params_mixer),
  21541. };
  21542. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  21543. struct snd_ctl_elem_value *ucontrol)
  21544. {
  21545. ucontrol->value.integer.value[0] =
  21546. core_get_license_status(ASM_MEDIA_FMT_APTX);
  21547. pr_debug("%s: status %ld\n", __func__,
  21548. ucontrol->value.integer.value[0]);
  21549. return 0;
  21550. }
  21551. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  21552. struct snd_ctl_elem_value *ucontrol)
  21553. {
  21554. int32_t status = 0;
  21555. status = core_set_license(ucontrol->value.integer.value[0],
  21556. APTX_CLASSIC_DEC_LICENSE_ID);
  21557. pr_debug("%s: status %d\n", __func__, status);
  21558. return status;
  21559. }
  21560. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  21561. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  21562. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  21563. msm_aptx_dec_license_control_put),
  21564. };
  21565. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  21566. struct snd_ctl_elem_info *uinfo)
  21567. {
  21568. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21569. uinfo->count = sizeof(be_dai_name_table);
  21570. return 0;
  21571. }
  21572. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  21573. unsigned int __user *bytes,
  21574. unsigned int size)
  21575. {
  21576. int i;
  21577. int ret = 0;
  21578. if (size < sizeof(be_dai_name_table)) {
  21579. pr_err("%s: invalid size %d requested, returning\n",
  21580. __func__, size);
  21581. ret = -EINVAL;
  21582. goto done;
  21583. }
  21584. /*
  21585. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  21586. * needed when adding new backends
  21587. */
  21588. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  21589. be_dai_name_table[i].be_id = i;
  21590. strlcpy(be_dai_name_table[i].be_name,
  21591. msm_bedais[i].name,
  21592. LPASS_BE_NAME_MAX_LENGTH);
  21593. }
  21594. ret = copy_to_user(bytes, &be_dai_name_table,
  21595. sizeof(be_dai_name_table));
  21596. if (ret) {
  21597. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  21598. ret = -EFAULT;
  21599. }
  21600. done:
  21601. return ret;
  21602. }
  21603. static const struct snd_kcontrol_new
  21604. msm_routing_be_dai_name_table_mixer_controls[] = {
  21605. {
  21606. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  21607. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  21608. .info = msm_routing_be_dai_name_table_info,
  21609. .name = "Backend DAI Name Table",
  21610. .tlv.c = snd_soc_bytes_tlv_callback,
  21611. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  21612. .max = sizeof(be_dai_name_table),
  21613. .get = msm_routing_be_dai_name_table_tlv_get,
  21614. }
  21615. },
  21616. };
  21617. static int msm_routing_stereo_channel_reverse_control_get(
  21618. struct snd_kcontrol *kcontrol,
  21619. struct snd_ctl_elem_value *ucontrol)
  21620. {
  21621. ucontrol->value.integer.value[0] = swap_ch;
  21622. pr_debug("%s: Swap channel value: %ld\n", __func__,
  21623. ucontrol->value.integer.value[0]);
  21624. return 0;
  21625. }
  21626. static int msm_routing_stereo_channel_reverse_control_put(
  21627. struct snd_kcontrol *kcontrol,
  21628. struct snd_ctl_elem_value *ucontrol)
  21629. {
  21630. int i, idx, be_index, port_id;
  21631. int ret = 0;
  21632. unsigned long copp;
  21633. pr_debug("%s Swap channel value:%ld\n", __func__,
  21634. ucontrol->value.integer.value[0]);
  21635. swap_ch = ucontrol->value.integer.value[0];
  21636. mutex_lock(&routing_lock);
  21637. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21638. port_id = msm_bedais[be_index].port_id;
  21639. if (!msm_bedais[be_index].active)
  21640. continue;
  21641. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21642. MSM_FRONTEND_DAI_MM_SIZE) {
  21643. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  21644. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21645. if (!test_bit(idx, &copp))
  21646. continue;
  21647. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  21648. __func__, port_id, idx);
  21649. ret = adm_swap_speaker_channels(
  21650. port_id, idx,
  21651. msm_bedais[be_index].sample_rate,
  21652. swap_ch);
  21653. if (ret) {
  21654. pr_err("%s:Swap_channel failed, err=%d\n",
  21655. __func__, ret);
  21656. goto done;
  21657. }
  21658. }
  21659. }
  21660. }
  21661. done:
  21662. mutex_unlock(&routing_lock);
  21663. return ret;
  21664. }
  21665. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  21666. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  21667. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  21668. msm_routing_stereo_channel_reverse_control_put),
  21669. };
  21670. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  21671. struct snd_ctl_elem_info *uinfo)
  21672. {
  21673. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  21674. uinfo->count = 1;
  21675. return 0;
  21676. }
  21677. static int msm_routing_instance_id_support_put(
  21678. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  21679. {
  21680. bool supported = ucontrol->value.integer.value[0] ? true : false;
  21681. q6common_update_instance_id_support(supported);
  21682. return 0;
  21683. }
  21684. static int msm_routing_instance_id_support_get(
  21685. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  21686. {
  21687. bool supported = false;
  21688. supported = q6common_is_instance_id_supported();
  21689. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  21690. return 0;
  21691. }
  21692. static const struct snd_kcontrol_new
  21693. msm_routing_feature_support_mixer_controls[] = {
  21694. {
  21695. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  21696. SNDRV_CTL_ELEM_ACCESS_WRITE,
  21697. .info = msm_routing_instance_id_support_info,
  21698. .name = "Instance ID Support",
  21699. .put = msm_routing_instance_id_support_put,
  21700. .get = msm_routing_instance_id_support_get,
  21701. },
  21702. };
  21703. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  21704. .hw_params = msm_pcm_routing_hw_params,
  21705. .close = msm_pcm_routing_close,
  21706. .prepare = msm_pcm_routing_prepare,
  21707. };
  21708. /* Not used but frame seems to require it */
  21709. static int msm_routing_probe(struct snd_soc_platform *platform)
  21710. {
  21711. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  21712. ARRAY_SIZE(msm_qdsp6_widgets));
  21713. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  21714. ARRAY_SIZE(intercon));
  21715. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  21716. snd_soc_add_platform_controls(platform, lsm_controls,
  21717. ARRAY_SIZE(lsm_controls));
  21718. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  21719. ARRAY_SIZE(aanc_slim_0_rx_mux));
  21720. snd_soc_add_platform_controls(platform, aanc_noise_level,
  21721. ARRAY_SIZE(aanc_noise_level));
  21722. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  21723. ARRAY_SIZE(msm_voc_session_controls));
  21724. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  21725. ARRAY_SIZE(app_type_cfg_controls));
  21726. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  21727. ARRAY_SIZE(lsm_app_type_cfg_controls));
  21728. snd_soc_add_platform_controls(platform, module_cfg_controls,
  21729. ARRAY_SIZE(module_cfg_controls));
  21730. snd_soc_add_platform_controls(platform,
  21731. stereo_to_custom_stereo_controls,
  21732. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  21733. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  21734. ARRAY_SIZE(ec_ref_param_controls));
  21735. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  21736. ARRAY_SIZE(channel_mixer_controls));
  21737. msm_qti_pp_add_controls(platform);
  21738. msm_dts_srs_tm_add_controls(platform);
  21739. msm_dolby_dap_add_controls(platform);
  21740. snd_soc_add_platform_controls(platform,
  21741. use_ds1_or_ds2_controls,
  21742. ARRAY_SIZE(use_ds1_or_ds2_controls));
  21743. snd_soc_add_platform_controls(platform,
  21744. device_pp_params_mixer_controls,
  21745. ARRAY_SIZE(device_pp_params_mixer_controls));
  21746. snd_soc_add_platform_controls(platform,
  21747. msm_routing_be_dai_name_table_mixer_controls,
  21748. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  21749. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  21750. ARRAY_SIZE(msm_source_tracking_controls));
  21751. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  21752. ARRAY_SIZE(adm_channel_config_controls));
  21753. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  21754. ARRAY_SIZE(aptx_dec_license_controls));
  21755. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  21756. ARRAY_SIZE(stereo_channel_reverse_control));
  21757. snd_soc_add_platform_controls(
  21758. platform, msm_routing_feature_support_mixer_controls,
  21759. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  21760. return 0;
  21761. }
  21762. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  21763. {
  21764. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  21765. }
  21766. void msm_routing_pcm_free(struct snd_pcm *pcm)
  21767. {
  21768. msm_pcm_routing_hwdep_free(pcm);
  21769. }
  21770. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  21771. .ops = &msm_routing_pcm_ops,
  21772. .probe = msm_routing_probe,
  21773. .pcm_new = msm_routing_pcm_new,
  21774. .pcm_free = msm_routing_pcm_free,
  21775. };
  21776. static int msm_routing_pcm_probe(struct platform_device *pdev)
  21777. {
  21778. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  21779. return snd_soc_register_platform(&pdev->dev,
  21780. &msm_soc_routing_platform);
  21781. }
  21782. static int msm_routing_pcm_remove(struct platform_device *pdev)
  21783. {
  21784. snd_soc_unregister_platform(&pdev->dev);
  21785. return 0;
  21786. }
  21787. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  21788. {.compatible = "qcom,msm-pcm-routing"},
  21789. {}
  21790. };
  21791. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  21792. static struct platform_driver msm_routing_pcm_driver = {
  21793. .driver = {
  21794. .name = "msm-pcm-routing",
  21795. .owner = THIS_MODULE,
  21796. .of_match_table = msm_pcm_routing_dt_match,
  21797. },
  21798. .probe = msm_routing_pcm_probe,
  21799. .remove = msm_routing_pcm_remove,
  21800. };
  21801. int msm_routing_check_backend_enabled(int fedai_id)
  21802. {
  21803. int i;
  21804. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  21805. /* bad ID assigned in machine driver */
  21806. pr_err("%s: bad MM ID\n", __func__);
  21807. return 0;
  21808. }
  21809. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  21810. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  21811. return msm_bedais[i].active;
  21812. }
  21813. return 0;
  21814. }
  21815. static int get_cal_type_index(int32_t cal_type)
  21816. {
  21817. int ret = -EINVAL;
  21818. switch (cal_type) {
  21819. case ADM_TOPOLOGY_CAL_TYPE:
  21820. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  21821. break;
  21822. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  21823. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  21824. break;
  21825. default:
  21826. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  21827. }
  21828. return ret;
  21829. }
  21830. static int msm_routing_set_cal(int32_t cal_type,
  21831. size_t data_size, void *data)
  21832. {
  21833. int ret = 0;
  21834. int cal_index;
  21835. pr_debug("%s\n", __func__);
  21836. cal_index = get_cal_type_index(cal_type);
  21837. if (cal_index < 0) {
  21838. pr_err("%s: Could not get cal index %d\n",
  21839. __func__, cal_index);
  21840. ret = -EINVAL;
  21841. goto done;
  21842. }
  21843. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  21844. if (ret < 0) {
  21845. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  21846. __func__, ret, cal_type);
  21847. ret = -EINVAL;
  21848. goto done;
  21849. }
  21850. /* Pre-load if it is ADM topology */
  21851. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  21852. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  21853. msm_routing_load_topology(data_size, data);
  21854. }
  21855. done:
  21856. return ret;
  21857. }
  21858. static void msm_routing_delete_cal_data(void)
  21859. {
  21860. pr_debug("%s\n", __func__);
  21861. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  21862. }
  21863. static int msm_routing_init_cal_data(void)
  21864. {
  21865. int ret = 0;
  21866. struct cal_type_info cal_type_info[] = {
  21867. {{ADM_TOPOLOGY_CAL_TYPE,
  21868. {NULL, NULL, NULL,
  21869. msm_routing_set_cal, NULL, NULL} },
  21870. {NULL, NULL, cal_utils_match_buf_num} },
  21871. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  21872. {NULL, NULL, NULL,
  21873. msm_routing_set_cal, NULL, NULL} },
  21874. {NULL, NULL, cal_utils_match_buf_num} },
  21875. };
  21876. pr_debug("%s\n", __func__);
  21877. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  21878. &cal_type_info[0]);
  21879. if (ret < 0) {
  21880. pr_err("%s: could not create cal type!\n",
  21881. __func__);
  21882. ret = -EINVAL;
  21883. goto err;
  21884. }
  21885. return ret;
  21886. err:
  21887. msm_routing_delete_cal_data();
  21888. return ret;
  21889. }
  21890. int __init msm_soc_routing_platform_init(void)
  21891. {
  21892. mutex_init(&routing_lock);
  21893. if (msm_routing_init_cal_data())
  21894. pr_err("%s: could not init cal data!\n", __func__);
  21895. afe_set_routing_callback(
  21896. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  21897. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  21898. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  21899. return platform_driver_register(&msm_routing_pcm_driver);
  21900. }
  21901. void msm_soc_routing_platform_exit(void)
  21902. {
  21903. msm_routing_delete_cal_data();
  21904. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  21905. mutex_destroy(&routing_lock);
  21906. platform_driver_unregister(&msm_routing_pcm_driver);
  21907. }
  21908. MODULE_DESCRIPTION("MSM routing platform driver");
  21909. MODULE_LICENSE("GPL v2");