msm-pcm-routing-v2.c 922 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. static int aanc_level;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* input BE for each FE */
  84. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  85. enum {
  86. MADNONE,
  87. MADAUDIO,
  88. MADBEACON,
  89. MADULTRASOUND,
  90. MADSWAUDIO,
  91. };
  92. #define ADM_LSM_PORT_INDEX 9
  93. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  94. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  95. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  96. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  97. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  98. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  99. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  100. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  101. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  102. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  103. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  104. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  105. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  106. #define LSM_FUNCTION_TEXT "LSM Function"
  107. static const char * const lsm_port_text[] = {
  108. "None",
  109. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  110. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  111. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  112. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  113. TX_CDC_DMA_TX_3_TEXT
  114. };
  115. struct msm_pcm_route_bdai_pp_params {
  116. u16 port_id; /* AFE port ID */
  117. unsigned long pp_params_config;
  118. bool mute_on;
  119. int latency;
  120. };
  121. static struct msm_pcm_route_bdai_pp_params
  122. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  123. {HDMI_RX, 0, 0, 0},
  124. {DISPLAY_PORT_RX, 0, 0, 0},
  125. };
  126. /*
  127. * The be_dai_name_table is passed to HAL so that it can specify the
  128. * BE ID for the BE it wants to enable based on the name. Thus there
  129. * is a matching table and structure in HAL that need to be updated
  130. * if any changes to these are made.
  131. */
  132. struct msm_pcm_route_bdai_name {
  133. unsigned int be_id;
  134. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  135. };
  136. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  137. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  138. int fe_id);
  139. static void msm_routing_load_topology(size_t data_size, void *data);
  140. static void msm_routing_unload_topology(uint32_t topology_id);
  141. static int msm_routing_get_bit_width(unsigned int format)
  142. {
  143. int bit_width;
  144. switch (format) {
  145. case SNDRV_PCM_FORMAT_S32_LE:
  146. bit_width = 32;
  147. break;
  148. case SNDRV_PCM_FORMAT_S24_LE:
  149. case SNDRV_PCM_FORMAT_S24_3LE:
  150. bit_width = 24;
  151. break;
  152. case SNDRV_PCM_FORMAT_S16_LE:
  153. default:
  154. bit_width = 16;
  155. }
  156. return bit_width;
  157. }
  158. static bool msm_is_resample_needed(int input_sr, int output_sr)
  159. {
  160. bool rc = false;
  161. if (input_sr != output_sr)
  162. rc = true;
  163. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  164. (rc ? "oh yes" : "not really"),
  165. input_sr, output_sr);
  166. return rc;
  167. }
  168. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  169. int channels)
  170. {
  171. int rc = 0;
  172. switch (topology) {
  173. case SRS_TRUMEDIA_TOPOLOGY_ID:
  174. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  175. msm_dts_srs_tm_init(port_id, copp_idx);
  176. break;
  177. case DS2_ADM_COPP_TOPOLOGY_ID:
  178. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  179. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  180. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  181. is_custom_stereo_on);
  182. if (rc < 0)
  183. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  184. __func__, topology, port_id,
  185. is_custom_stereo_on, rc);
  186. break;
  187. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  188. if (is_ds2_on) {
  189. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  190. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  191. is_custom_stereo_on);
  192. if (rc < 0)
  193. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  194. __func__, topology, port_id, rc);
  195. } else {
  196. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  197. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  198. is_custom_stereo_on);
  199. if (rc < 0)
  200. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  201. __func__, topology, port_id, rc);
  202. }
  203. break;
  204. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  205. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  206. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  207. if (rc < 0)
  208. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  209. __func__, topology, port_id, copp_idx, rc);
  210. break;
  211. default:
  212. /* custom topology specific feature param handlers */
  213. break;
  214. }
  215. }
  216. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  217. {
  218. switch (topology) {
  219. case SRS_TRUMEDIA_TOPOLOGY_ID:
  220. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  221. msm_dts_srs_tm_deinit(port_id);
  222. break;
  223. case DS2_ADM_COPP_TOPOLOGY_ID:
  224. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  225. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  226. msm_ds2_dap_deinit(port_id);
  227. break;
  228. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  229. if (is_ds2_on) {
  230. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  231. msm_ds2_dap_deinit(port_id);
  232. } else {
  233. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  234. msm_dolby_dap_deinit(port_id);
  235. }
  236. break;
  237. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  238. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  239. msm_qti_pp_asphere_deinit(port_id);
  240. break;
  241. default:
  242. /* custom topology specific feature deinit handlers */
  243. break;
  244. }
  245. }
  246. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  247. int path_type, int perf_mode)
  248. {
  249. int itr = 0, rc = 0;
  250. if ((path_type == ADM_PATH_PLAYBACK) &&
  251. (perf_mode == LEGACY_PCM_MODE) &&
  252. is_custom_stereo_on) {
  253. for (itr = 0; itr < payload.num_copps; itr++) {
  254. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  255. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  256. continue;
  257. }
  258. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  259. payload.port_id[itr],
  260. payload.copp_idx[itr],
  261. payload.session_id,
  262. Q14_GAIN_ZERO_POINT_FIVE,
  263. Q14_GAIN_ZERO_POINT_FIVE,
  264. Q14_GAIN_ZERO_POINT_FIVE,
  265. Q14_GAIN_ZERO_POINT_FIVE);
  266. if (rc < 0)
  267. pr_err("%s: err setting custom stereo\n",
  268. __func__);
  269. }
  270. }
  271. }
  272. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  273. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  274. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  275. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  276. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  277. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  278. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  279. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  280. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  281. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  282. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  283. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  284. LPASS_BE_AFE_PCM_RX},
  285. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  286. LPASS_BE_AFE_PCM_TX},
  287. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  288. LPASS_BE_AUXPCM_RX},
  289. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  290. LPASS_BE_AUXPCM_TX},
  291. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  292. LPASS_BE_VOICE_PLAYBACK_TX},
  293. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  294. LPASS_BE_VOICE2_PLAYBACK_TX},
  295. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  296. LPASS_BE_INCALL_RECORD_RX},
  297. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  298. LPASS_BE_INCALL_RECORD_TX},
  299. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  300. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  301. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  302. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  303. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  304. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  305. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  306. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  307. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  308. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  309. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  310. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  311. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  312. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  313. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  314. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  315. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  316. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  317. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  318. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  319. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  320. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  321. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  322. LPASS_BE_QUAT_MI2S_RX},
  323. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  324. LPASS_BE_QUAT_MI2S_TX},
  325. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  326. LPASS_BE_SEC_MI2S_RX},
  327. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  328. LPASS_BE_SEC_MI2S_TX},
  329. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  330. LPASS_BE_PRI_MI2S_RX},
  331. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  332. LPASS_BE_PRI_MI2S_TX},
  333. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  334. LPASS_BE_TERT_MI2S_RX},
  335. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  336. LPASS_BE_TERT_MI2S_TX},
  337. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  338. LPASS_BE_AUDIO_I2S_RX},
  339. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  340. LPASS_BE_SEC_AUXPCM_RX},
  341. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  342. LPASS_BE_SEC_AUXPCM_TX},
  343. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  344. LPASS_BE_PRI_SPDIF_RX},
  345. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  346. LPASS_BE_SEC_MI2S_RX_SD1},
  347. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  348. LPASS_BE_QUIN_MI2S_RX},
  349. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  350. LPASS_BE_QUIN_MI2S_TX},
  351. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  352. LPASS_BE_SENARY_MI2S_TX},
  353. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  354. LPASS_BE_PRI_TDM_RX_0},
  355. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  356. LPASS_BE_PRI_TDM_TX_0},
  357. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  358. LPASS_BE_PRI_TDM_RX_1},
  359. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  360. LPASS_BE_PRI_TDM_TX_1},
  361. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  362. LPASS_BE_PRI_TDM_RX_2},
  363. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  364. LPASS_BE_PRI_TDM_TX_2},
  365. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  366. LPASS_BE_PRI_TDM_RX_3},
  367. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  368. LPASS_BE_PRI_TDM_TX_3},
  369. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  370. LPASS_BE_PRI_TDM_RX_4},
  371. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  372. LPASS_BE_PRI_TDM_TX_4},
  373. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  374. LPASS_BE_PRI_TDM_RX_5},
  375. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  376. LPASS_BE_PRI_TDM_TX_5},
  377. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  378. LPASS_BE_PRI_TDM_RX_6},
  379. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  380. LPASS_BE_PRI_TDM_TX_6},
  381. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  382. LPASS_BE_PRI_TDM_RX_7},
  383. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  384. LPASS_BE_PRI_TDM_TX_7},
  385. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  386. LPASS_BE_SEC_TDM_RX_0},
  387. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  388. LPASS_BE_SEC_TDM_TX_0},
  389. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  390. LPASS_BE_SEC_TDM_RX_1},
  391. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  392. LPASS_BE_SEC_TDM_TX_1},
  393. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  394. LPASS_BE_SEC_TDM_RX_2},
  395. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  396. LPASS_BE_SEC_TDM_TX_2},
  397. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  398. LPASS_BE_SEC_TDM_RX_3},
  399. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  400. LPASS_BE_SEC_TDM_TX_3},
  401. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  402. LPASS_BE_SEC_TDM_RX_4},
  403. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  404. LPASS_BE_SEC_TDM_TX_4},
  405. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  406. LPASS_BE_SEC_TDM_RX_5},
  407. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  408. LPASS_BE_SEC_TDM_TX_5},
  409. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  410. LPASS_BE_SEC_TDM_RX_6},
  411. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  412. LPASS_BE_SEC_TDM_TX_6},
  413. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  414. LPASS_BE_SEC_TDM_RX_7},
  415. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  416. LPASS_BE_SEC_TDM_TX_7},
  417. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  418. LPASS_BE_TERT_TDM_RX_0},
  419. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  420. LPASS_BE_TERT_TDM_TX_0},
  421. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  422. LPASS_BE_TERT_TDM_RX_1},
  423. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  424. LPASS_BE_TERT_TDM_TX_1},
  425. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  426. LPASS_BE_TERT_TDM_RX_2},
  427. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  428. LPASS_BE_TERT_TDM_TX_2},
  429. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  430. LPASS_BE_TERT_TDM_RX_3},
  431. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  432. LPASS_BE_TERT_TDM_TX_3},
  433. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  434. LPASS_BE_TERT_TDM_RX_4},
  435. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  436. LPASS_BE_TERT_TDM_TX_4},
  437. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  438. LPASS_BE_TERT_TDM_RX_5},
  439. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  440. LPASS_BE_TERT_TDM_TX_5},
  441. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  442. LPASS_BE_TERT_TDM_RX_6},
  443. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  444. LPASS_BE_TERT_TDM_TX_6},
  445. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  446. LPASS_BE_TERT_TDM_RX_7},
  447. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  448. LPASS_BE_TERT_TDM_TX_7},
  449. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  450. LPASS_BE_QUAT_TDM_RX_0},
  451. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  452. LPASS_BE_QUAT_TDM_TX_0},
  453. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  454. LPASS_BE_QUAT_TDM_RX_1},
  455. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  456. LPASS_BE_QUAT_TDM_TX_1},
  457. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  458. LPASS_BE_QUAT_TDM_RX_2},
  459. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  460. LPASS_BE_QUAT_TDM_TX_2},
  461. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  462. LPASS_BE_QUAT_TDM_RX_3},
  463. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  464. LPASS_BE_QUAT_TDM_TX_3},
  465. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  466. LPASS_BE_QUAT_TDM_RX_4},
  467. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  468. LPASS_BE_QUAT_TDM_TX_4},
  469. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  470. LPASS_BE_QUAT_TDM_RX_5},
  471. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  472. LPASS_BE_QUAT_TDM_TX_5},
  473. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  474. LPASS_BE_QUAT_TDM_RX_6},
  475. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  476. LPASS_BE_QUAT_TDM_TX_6},
  477. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  478. LPASS_BE_QUAT_TDM_RX_7},
  479. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  480. LPASS_BE_QUAT_TDM_TX_7},
  481. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  482. LPASS_BE_QUIN_TDM_RX_0},
  483. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  484. LPASS_BE_QUIN_TDM_TX_0},
  485. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  486. LPASS_BE_QUIN_TDM_RX_1},
  487. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  488. LPASS_BE_QUIN_TDM_TX_1},
  489. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  490. LPASS_BE_QUIN_TDM_RX_2},
  491. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  492. LPASS_BE_QUIN_TDM_TX_2},
  493. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  494. LPASS_BE_QUIN_TDM_RX_3},
  495. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  496. LPASS_BE_QUIN_TDM_TX_3},
  497. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  498. LPASS_BE_QUIN_TDM_RX_4},
  499. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  500. LPASS_BE_QUIN_TDM_TX_4},
  501. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  502. LPASS_BE_QUIN_TDM_RX_5},
  503. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  504. LPASS_BE_QUIN_TDM_TX_5},
  505. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  506. LPASS_BE_QUIN_TDM_RX_6},
  507. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  508. LPASS_BE_QUIN_TDM_TX_6},
  509. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  510. LPASS_BE_QUIN_TDM_RX_7},
  511. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  512. LPASS_BE_QUIN_TDM_TX_7},
  513. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  514. LPASS_BE_INT_BT_A2DP_RX},
  515. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  516. LPASS_BE_USB_AUDIO_RX},
  517. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  518. LPASS_BE_USB_AUDIO_TX},
  519. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  520. LPASS_BE_DISPLAY_PORT},
  521. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  522. LPASS_BE_DISPLAY_PORT1},
  523. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  524. LPASS_BE_TERT_AUXPCM_RX},
  525. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  526. LPASS_BE_TERT_AUXPCM_TX},
  527. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  528. LPASS_BE_QUAT_AUXPCM_RX},
  529. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  530. LPASS_BE_QUAT_AUXPCM_TX},
  531. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  532. LPASS_BE_QUIN_AUXPCM_RX},
  533. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  534. LPASS_BE_QUIN_AUXPCM_TX},
  535. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  536. LPASS_BE_INT0_MI2S_RX},
  537. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  538. LPASS_BE_INT0_MI2S_TX},
  539. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  540. LPASS_BE_INT1_MI2S_RX},
  541. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  542. LPASS_BE_INT1_MI2S_TX},
  543. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  544. LPASS_BE_INT2_MI2S_RX},
  545. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  546. LPASS_BE_INT2_MI2S_TX},
  547. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  548. LPASS_BE_INT3_MI2S_RX},
  549. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  550. LPASS_BE_INT3_MI2S_TX},
  551. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  552. LPASS_BE_INT4_MI2S_RX},
  553. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  554. LPASS_BE_INT4_MI2S_TX},
  555. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  556. LPASS_BE_INT5_MI2S_RX},
  557. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  558. LPASS_BE_INT5_MI2S_TX},
  559. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  560. LPASS_BE_INT6_MI2S_RX},
  561. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  562. LPASS_BE_INT6_MI2S_TX},
  563. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  564. LPASS_BE_WSA_CDC_DMA_RX_0},
  565. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  566. LPASS_BE_WSA_CDC_DMA_TX_0},
  567. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  568. LPASS_BE_WSA_CDC_DMA_RX_1},
  569. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  570. LPASS_BE_WSA_CDC_DMA_TX_1},
  571. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  572. LPASS_BE_WSA_CDC_DMA_TX_2},
  573. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  574. LPASS_BE_VA_CDC_DMA_TX_0},
  575. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  576. LPASS_BE_VA_CDC_DMA_TX_1},
  577. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  578. LPASS_BE_RX_CDC_DMA_RX_0},
  579. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  580. LPASS_BE_TX_CDC_DMA_TX_0},
  581. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  582. LPASS_BE_RX_CDC_DMA_RX_1},
  583. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  584. LPASS_BE_TX_CDC_DMA_TX_1},
  585. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  586. LPASS_BE_RX_CDC_DMA_RX_2},
  587. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  588. LPASS_BE_TX_CDC_DMA_TX_2},
  589. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  590. LPASS_BE_RX_CDC_DMA_RX_3},
  591. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  592. LPASS_BE_TX_CDC_DMA_TX_3},
  593. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  594. LPASS_BE_RX_CDC_DMA_RX_4},
  595. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  596. LPASS_BE_TX_CDC_DMA_TX_4},
  597. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  598. LPASS_BE_RX_CDC_DMA_RX_5},
  599. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  600. LPASS_BE_TX_CDC_DMA_TX_5},
  601. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  602. LPASS_BE_RX_CDC_DMA_RX_6},
  603. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  604. LPASS_BE_RX_CDC_DMA_RX_7},
  605. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  606. LPASS_BE_PRI_SPDIF_TX},
  607. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  608. LPASS_BE_SEC_SPDIF_RX},
  609. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  610. LPASS_BE_SEC_SPDIF_TX},
  611. };
  612. /* Track ASM playback & capture sessions of DAI
  613. * Track LSM listen sessions
  614. */
  615. static struct msm_pcm_routing_fdai_data
  616. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  617. /* MULTIMEDIA1 */
  618. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  619. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  620. /* MULTIMEDIA2 */
  621. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  622. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  623. /* MULTIMEDIA3 */
  624. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  625. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  626. /* MULTIMEDIA4 */
  627. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  628. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  629. /* MULTIMEDIA5 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  632. /* MULTIMEDIA6 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  635. /* MULTIMEDIA7*/
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  638. /* MULTIMEDIA8 */
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  641. /* MULTIMEDIA9 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  644. /* MULTIMEDIA10 */
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  647. /* MULTIMEDIA11 */
  648. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  649. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  650. /* MULTIMEDIA12 */
  651. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  652. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  653. /* MULTIMEDIA13 */
  654. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  655. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  656. /* MULTIMEDIA14 */
  657. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  658. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  659. /* MULTIMEDIA15 */
  660. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  661. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  662. /* MULTIMEDIA16 */
  663. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  664. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  665. /* MULTIMEDIA17 */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  668. /* MULTIMEDIA18 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  671. /* MULTIMEDIA19 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  674. /* MULTIMEDIA20 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  677. /* MULTIMEDIA21 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  680. /* MULTIMEDIA28 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  683. /* MULTIMEDIA29 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  686. /* VOIP */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  689. /* AFE_RX */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  692. /* AFE_TX */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  695. /* VOICE_STUB */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  698. /* DTMF_RX */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  701. /* QCHAT */
  702. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  703. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  704. /* VOLTE_STUB */
  705. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  706. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  707. /* LSM1 */
  708. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  709. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  710. /* LSM2 */
  711. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  712. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  713. /* LSM3 */
  714. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  715. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  716. /* LSM4 */
  717. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  718. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  719. /* LSM5 */
  720. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  721. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  722. /* LSM6 */
  723. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  724. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  725. /* LSM7 */
  726. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  727. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  728. /* LSM8 */
  729. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  730. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  731. /* VOICE2_STUB */
  732. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  733. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  734. /* VOICEMMODE1 */
  735. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  736. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  737. /* VOICEMMODE2 */
  738. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  739. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  740. };
  741. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  742. [MSM_BACKEND_DAI_MAX];
  743. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  744. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  745. static struct msm_pcm_stream_app_type_cfg
  746. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  747. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  748. /* The caller of this should aqcuire routing lock */
  749. void msm_pcm_routing_get_bedai_info(int be_idx,
  750. struct msm_pcm_routing_bdai_data *be_dai)
  751. {
  752. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  753. memcpy(be_dai, &msm_bedais[be_idx],
  754. sizeof(struct msm_pcm_routing_bdai_data));
  755. }
  756. /* The caller of this should aqcuire routing lock */
  757. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  758. struct msm_pcm_routing_fdai_data *fe_dai)
  759. {
  760. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  761. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  762. sizeof(struct msm_pcm_routing_fdai_data));
  763. }
  764. void msm_pcm_routing_acquire_lock(void)
  765. {
  766. mutex_lock(&routing_lock);
  767. }
  768. void msm_pcm_routing_release_lock(void)
  769. {
  770. mutex_unlock(&routing_lock);
  771. }
  772. static int msm_pcm_routing_get_app_type_idx(int app_type)
  773. {
  774. int idx;
  775. pr_debug("%s: app_type: %d\n", __func__, app_type);
  776. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  777. if (app_type_cfg[idx].app_type == app_type)
  778. return idx;
  779. }
  780. pr_info("%s: App type not available, fallback to default\n", __func__);
  781. return 0;
  782. }
  783. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  784. {
  785. int idx;
  786. pr_debug("%s: app_type: %d\n", __func__, app_type);
  787. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  788. if (lsm_app_type_cfg[idx].app_type == app_type)
  789. return idx;
  790. }
  791. pr_debug("%s: App type not available, fallback to default\n", __func__);
  792. return 0;
  793. }
  794. static bool is_mm_lsm_fe_id(int fe_id)
  795. {
  796. bool rc = true;
  797. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  798. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  799. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  800. rc = false;
  801. }
  802. return rc;
  803. }
  804. /*
  805. * msm_pcm_routing_send_chmix_cfg:
  806. * send the channel mixer command to mix the input channels
  807. * into output channels.
  808. *
  809. * @fe_id: front end id
  810. * @ip_channel_cnt: input channel count
  811. * @op_channel_cnt: output channel count
  812. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  813. * @session_type: indicates session is of type TX or RX
  814. * @stream_type: indicates either Audio or Listen stream type
  815. */
  816. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  817. int op_channel_cnt, int *ch_wght_coeff,
  818. int session_type, int stream_type)
  819. {
  820. int rc = 0, idx = 0;
  821. int be_index = 0, port_id;
  822. unsigned int session_id = 0;
  823. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  824. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  825. stream_type);
  826. if (!is_mm_lsm_fe_id(fe_id)) {
  827. /* bad ID assigned in machine driver */
  828. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  829. return -EINVAL;
  830. }
  831. if (ch_wght_coeff == NULL) {
  832. pr_err("%s: Null channel weightage coefficients passed\n",
  833. __func__);
  834. return -EINVAL;
  835. }
  836. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  837. port_id = msm_bedais[be_index].port_id;
  838. if (!msm_bedais[be_index].active ||
  839. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  840. continue;
  841. session_id = fe_dai_map[fe_id][session_type].strm_id;
  842. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  843. unsigned long copp =
  844. session_copp_map[fe_id][session_type][be_index];
  845. if (!test_bit(idx, &copp))
  846. continue;
  847. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  848. session_id, ip_channel_cnt,
  849. op_channel_cnt, ch_wght_coeff,
  850. session_type, stream_type);
  851. if (rc < 0)
  852. pr_err("%s: err setting channel mix config\n",
  853. __func__);
  854. }
  855. }
  856. return 0;
  857. }
  858. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  859. int msm_pcm_routing_reg_stream_app_type_cfg(
  860. int fedai_id, int session_type, int be_id,
  861. struct msm_pcm_stream_app_type_cfg *cfg_data)
  862. {
  863. int ret = 0;
  864. if (cfg_data == NULL) {
  865. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  866. ret = -EINVAL;
  867. goto done;
  868. }
  869. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  870. __func__, fedai_id, session_type, be_id,
  871. cfg_data->app_type, cfg_data->acdb_dev_id,
  872. cfg_data->sample_rate);
  873. if (!is_mm_lsm_fe_id(fedai_id)) {
  874. pr_err("%s: Invalid machine driver ID %d\n",
  875. __func__, fedai_id);
  876. ret = -EINVAL;
  877. goto done;
  878. }
  879. if (session_type != SESSION_TYPE_RX &&
  880. session_type != SESSION_TYPE_TX) {
  881. pr_err("%s: Invalid session type %d\n",
  882. __func__, session_type);
  883. ret = -EINVAL;
  884. goto done;
  885. }
  886. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  887. pr_err("%s: Received out of bounds be_id %d\n",
  888. __func__, be_id);
  889. ret = -EINVAL;
  890. goto done;
  891. }
  892. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  893. /*
  894. * Store the BE ID of the configuration information set as the latest so
  895. * the get mixer control knows what to return.
  896. */
  897. last_be_id_configured[fedai_id][session_type] = be_id;
  898. done:
  899. return ret;
  900. }
  901. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  902. /**
  903. * msm_pcm_routing_get_stream_app_type_cfg
  904. *
  905. * Receives fedai_id, session_type, be_id, and populates app_type,
  906. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  907. * -EINVAL and does not alter passed values.
  908. *
  909. * fedai_id - Passed value, front end ID for which app type config is wanted
  910. * session_type - Passed value, session type for which app type config
  911. * is wanted
  912. * be_id - Returned value, back end device id the app type config data is for
  913. * cfg_data - Returned value, configuration data used by app type config
  914. */
  915. int msm_pcm_routing_get_stream_app_type_cfg(
  916. int fedai_id, int session_type, int *bedai_id,
  917. struct msm_pcm_stream_app_type_cfg *cfg_data)
  918. {
  919. int be_id;
  920. int ret = 0;
  921. if (bedai_id == NULL) {
  922. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  923. ret = -EINVAL;
  924. goto done;
  925. } else if (cfg_data == NULL) {
  926. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  927. ret = -EINVAL;
  928. goto done;
  929. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  930. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  931. ret = -EINVAL;
  932. goto done;
  933. } else if (session_type != SESSION_TYPE_RX &&
  934. session_type != SESSION_TYPE_TX) {
  935. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  936. ret = -EINVAL;
  937. goto done;
  938. }
  939. be_id = last_be_id_configured[fedai_id][session_type];
  940. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  941. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  942. ret = -EINVAL;
  943. goto done;
  944. }
  945. *bedai_id = be_id;
  946. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  947. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  948. __func__, fedai_id, session_type, *bedai_id,
  949. cfg_data->app_type, cfg_data->acdb_dev_id,
  950. cfg_data->sample_rate);
  951. done:
  952. return ret;
  953. }
  954. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  955. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  956. int cal_index)
  957. {
  958. struct list_head *ptr, *next;
  959. struct cal_block_data *cal_block = NULL;
  960. pr_debug("%s\n", __func__);
  961. list_for_each_safe(ptr, next,
  962. &cal_data[cal_index]->cal_blocks) {
  963. cal_block = list_entry(ptr,
  964. struct cal_block_data, list);
  965. if (cal_utils_is_cal_stale(cal_block))
  966. continue;
  967. if (((struct audio_cal_info_adm_top *)cal_block
  968. ->cal_info)->path == path) {
  969. return cal_block;
  970. }
  971. }
  972. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  973. return NULL;
  974. }
  975. static struct cal_block_data *msm_routing_find_topology(int path,
  976. int app_type,
  977. int acdb_id,
  978. int cal_index)
  979. {
  980. struct list_head *ptr, *next;
  981. struct cal_block_data *cal_block = NULL;
  982. struct audio_cal_info_adm_top *cal_info;
  983. pr_debug("%s\n", __func__);
  984. list_for_each_safe(ptr, next,
  985. &cal_data[cal_index]->cal_blocks) {
  986. cal_block = list_entry(ptr,
  987. struct cal_block_data, list);
  988. if (cal_utils_is_cal_stale(cal_block))
  989. continue;
  990. cal_info = (struct audio_cal_info_adm_top *)
  991. cal_block->cal_info;
  992. if ((cal_info->path == path) &&
  993. (cal_info->app_type == app_type) &&
  994. (cal_info->acdb_id == acdb_id)) {
  995. return cal_block;
  996. }
  997. }
  998. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  999. __func__, path, app_type, acdb_id);
  1000. return msm_routing_find_topology_by_path(path, cal_index);
  1001. }
  1002. /*
  1003. * Retrieving cal_block will mark cal_block as stale.
  1004. * Hence it cannot be reused or resent unless the flag
  1005. * is reset.
  1006. */
  1007. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1008. int be_id)
  1009. {
  1010. int topology = NULL_COPP_TOPOLOGY;
  1011. struct cal_block_data *cal_block = NULL;
  1012. int app_type = 0, acdb_dev_id = 0;
  1013. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1014. __func__, fedai_id, session_type, be_id);
  1015. if (cal_data == NULL)
  1016. goto done;
  1017. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1018. acdb_dev_id =
  1019. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1020. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1021. cal_block = msm_routing_find_topology(session_type, app_type,
  1022. acdb_dev_id,
  1023. ADM_TOPOLOGY_CAL_TYPE_IDX);
  1024. if (cal_block != NULL) {
  1025. topology = ((struct audio_cal_info_adm_top *)
  1026. cal_block->cal_info)->topology;
  1027. cal_utils_mark_cal_used(cal_block);
  1028. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1029. } else {
  1030. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1031. pr_debug("%s: Check for LSM topology\n", __func__);
  1032. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1033. cal_block = msm_routing_find_topology(session_type, app_type,
  1034. acdb_dev_id,
  1035. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1036. if (cal_block != NULL) {
  1037. topology = ((struct audio_cal_info_adm_top *)
  1038. cal_block->cal_info)->topology;
  1039. cal_utils_mark_cal_used(cal_block);
  1040. }
  1041. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1042. }
  1043. done:
  1044. pr_debug("%s: Using topology %d\n", __func__, topology);
  1045. return topology;
  1046. }
  1047. static uint8_t is_be_dai_extproc(int be_dai)
  1048. {
  1049. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1050. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1051. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1052. return 1;
  1053. else
  1054. return 0;
  1055. }
  1056. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1057. int path_type, int perf_mode,
  1058. uint32_t passthr_mode)
  1059. {
  1060. int i, port_type, j, num_copps = 0;
  1061. struct route_payload payload;
  1062. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1063. path_type == ADM_PATH_COMPRESSED_RX) ?
  1064. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1065. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1066. if (!is_be_dai_extproc(i) &&
  1067. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1068. (msm_bedais[i].active) &&
  1069. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1070. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1071. unsigned long copp =
  1072. session_copp_map[fedai_id][sess_type][i];
  1073. if (test_bit(j, &copp)) {
  1074. payload.port_id[num_copps] =
  1075. msm_bedais[i].port_id;
  1076. payload.copp_idx[num_copps] = j;
  1077. payload.app_type[num_copps] =
  1078. fe_dai_app_type_cfg
  1079. [fedai_id][sess_type][i]
  1080. .app_type;
  1081. payload.acdb_dev_id[num_copps] =
  1082. fe_dai_app_type_cfg
  1083. [fedai_id][sess_type][i]
  1084. .acdb_dev_id;
  1085. payload.sample_rate[num_copps] =
  1086. fe_dai_app_type_cfg
  1087. [fedai_id][sess_type][i]
  1088. .sample_rate;
  1089. num_copps++;
  1090. }
  1091. }
  1092. }
  1093. }
  1094. if (num_copps) {
  1095. payload.num_copps = num_copps;
  1096. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1097. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1098. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1099. }
  1100. }
  1101. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1102. int stream_type)
  1103. {
  1104. int i, session_type, path_type, port_type;
  1105. u32 mode = 0;
  1106. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1107. /* bad ID assigned in machine driver */
  1108. pr_err("%s: bad MM ID\n", __func__);
  1109. return;
  1110. }
  1111. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1112. session_type = SESSION_TYPE_RX;
  1113. path_type = ADM_PATH_PLAYBACK;
  1114. port_type = MSM_AFE_PORT_TYPE_RX;
  1115. } else {
  1116. session_type = SESSION_TYPE_TX;
  1117. path_type = ADM_PATH_LIVE_REC;
  1118. port_type = MSM_AFE_PORT_TYPE_TX;
  1119. }
  1120. mutex_lock(&routing_lock);
  1121. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1122. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1123. if (!is_be_dai_extproc(i) &&
  1124. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1125. (msm_bedais[i].active) &&
  1126. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1127. mode = afe_get_port_type(msm_bedais[i].port_id);
  1128. adm_connect_afe_port(mode, dspst_id,
  1129. msm_bedais[i].port_id);
  1130. break;
  1131. }
  1132. }
  1133. mutex_unlock(&routing_lock);
  1134. }
  1135. static bool route_check_fe_id_adm_support(int fe_id)
  1136. {
  1137. bool rc = true;
  1138. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1139. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1140. /* fe id is listen while port is set to afe */
  1141. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1142. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1143. __func__, fe_id, lsm_port_index);
  1144. rc = false;
  1145. }
  1146. }
  1147. return rc;
  1148. }
  1149. /*
  1150. * msm_pcm_routing_get_pp_ch_cnt:
  1151. * Read the processed channel count
  1152. *
  1153. * @fe_id: Front end ID
  1154. * @session_type: Inidicates RX or TX session type
  1155. */
  1156. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1157. {
  1158. struct msm_pcm_stream_app_type_cfg cfg_data;
  1159. int be_id = 0, app_type_idx = 0, app_type = 0;
  1160. int ret = -EINVAL;
  1161. memset(&cfg_data, 0, sizeof(cfg_data));
  1162. if (!is_mm_lsm_fe_id(fe_id)) {
  1163. pr_err("%s: bad MM ID\n", __func__);
  1164. return -EINVAL;
  1165. }
  1166. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1167. &be_id, &cfg_data);
  1168. if (ret) {
  1169. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1170. return ret;
  1171. }
  1172. app_type = cfg_data.app_type;
  1173. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1174. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1175. }
  1176. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1177. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1178. int dspst_id, int stream_type,
  1179. uint32_t passthr_mode)
  1180. {
  1181. int i, j, session_type, path_type, port_type, topology;
  1182. int num_copps = 0;
  1183. struct route_payload payload;
  1184. u32 channels, sample_rate;
  1185. u16 bit_width = 16;
  1186. bool is_lsm;
  1187. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1188. __func__, fe_id, perf_mode, dspst_id,
  1189. stream_type, passthr_mode);
  1190. if (!is_mm_lsm_fe_id(fe_id)) {
  1191. /* bad ID assigned in machine driver */
  1192. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1193. return -EINVAL;
  1194. }
  1195. if (!route_check_fe_id_adm_support(fe_id)) {
  1196. /* ignore adm open if not supported for fe_id */
  1197. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1198. return 0;
  1199. }
  1200. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1201. session_type = SESSION_TYPE_RX;
  1202. if (passthr_mode != LEGACY_PCM)
  1203. path_type = ADM_PATH_COMPRESSED_RX;
  1204. else
  1205. path_type = ADM_PATH_PLAYBACK;
  1206. port_type = MSM_AFE_PORT_TYPE_RX;
  1207. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1208. session_type = SESSION_TYPE_TX;
  1209. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1210. path_type = ADM_PATH_COMPRESSED_TX;
  1211. else
  1212. path_type = ADM_PATH_LIVE_REC;
  1213. port_type = MSM_AFE_PORT_TYPE_TX;
  1214. } else {
  1215. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1216. return -EINVAL;
  1217. }
  1218. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1219. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1220. mutex_lock(&routing_lock);
  1221. payload.num_copps = 0; /* only RX needs to use payload */
  1222. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1223. /* re-enable EQ if active */
  1224. msm_qti_pp_send_eq_values(fe_id);
  1225. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1226. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1227. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1228. if (!is_be_dai_extproc(i) &&
  1229. (afe_get_port_type(msm_bedais[i].port_id) ==
  1230. port_type) &&
  1231. (msm_bedais[i].active) &&
  1232. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1233. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1234. /*
  1235. * check if ADM needs to be configured with different
  1236. * channel mapping than backend
  1237. */
  1238. if (!msm_bedais[i].adm_override_ch)
  1239. channels = msm_bedais[i].channel;
  1240. else
  1241. channels = msm_bedais[i].adm_override_ch;
  1242. bit_width = msm_routing_get_bit_width(
  1243. msm_bedais[i].format);
  1244. app_type =
  1245. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1246. if (app_type && is_lsm) {
  1247. app_type_idx =
  1248. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1249. sample_rate =
  1250. fe_dai_app_type_cfg[fe_id][session_type][i]
  1251. .sample_rate;
  1252. bit_width =
  1253. lsm_app_type_cfg[app_type_idx].bit_width;
  1254. } else if (app_type) {
  1255. app_type_idx =
  1256. msm_pcm_routing_get_app_type_idx(
  1257. app_type);
  1258. sample_rate =
  1259. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1260. bit_width =
  1261. app_type_cfg[app_type_idx].bit_width;
  1262. } else {
  1263. sample_rate = msm_bedais[i].sample_rate;
  1264. }
  1265. acdb_dev_id =
  1266. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1267. topology = msm_routing_get_adm_topology(fe_id,
  1268. session_type,
  1269. i);
  1270. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1271. || (passthr_mode ==
  1272. COMPRESSED_PASSTHROUGH_GEN)
  1273. || (passthr_mode ==
  1274. COMPRESSED_PASSTHROUGH_IEC61937))
  1275. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1276. pr_debug("%s: Before adm open topology %d\n", __func__,
  1277. topology);
  1278. copp_idx =
  1279. adm_open(msm_bedais[i].port_id,
  1280. path_type, sample_rate, channels,
  1281. topology, perf_mode, bit_width,
  1282. app_type, acdb_dev_id);
  1283. if ((copp_idx < 0) ||
  1284. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1285. pr_err("%s:adm open failed coppid:%d\n",
  1286. __func__, copp_idx);
  1287. mutex_unlock(&routing_lock);
  1288. return -EINVAL;
  1289. }
  1290. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1291. __func__, fe_id, session_type, i);
  1292. set_bit(copp_idx,
  1293. &session_copp_map[fe_id][session_type][i]);
  1294. if (msm_is_resample_needed(
  1295. sample_rate,
  1296. msm_bedais[i].sample_rate))
  1297. adm_copp_mfc_cfg(
  1298. msm_bedais[i].port_id, copp_idx,
  1299. msm_bedais[i].sample_rate);
  1300. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1301. unsigned long copp =
  1302. session_copp_map[fe_id][session_type][i];
  1303. if (test_bit(j, &copp)) {
  1304. payload.port_id[num_copps] =
  1305. msm_bedais[i].port_id;
  1306. payload.copp_idx[num_copps] = j;
  1307. payload.app_type[num_copps] =
  1308. fe_dai_app_type_cfg
  1309. [fe_id][session_type][i]
  1310. .app_type;
  1311. payload.acdb_dev_id[num_copps] =
  1312. fe_dai_app_type_cfg
  1313. [fe_id][session_type][i]
  1314. .acdb_dev_id;
  1315. payload.sample_rate[num_copps] =
  1316. fe_dai_app_type_cfg
  1317. [fe_id][session_type][i]
  1318. .sample_rate;
  1319. num_copps++;
  1320. }
  1321. }
  1322. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1323. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1324. && passthr_mode !=
  1325. COMPRESSED_PASSTHROUGH_IEC61937)
  1326. msm_routing_send_device_pp_params(
  1327. msm_bedais[i].port_id,
  1328. copp_idx, fe_id);
  1329. }
  1330. }
  1331. if (num_copps) {
  1332. payload.num_copps = num_copps;
  1333. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1334. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1335. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1336. }
  1337. mutex_unlock(&routing_lock);
  1338. return 0;
  1339. }
  1340. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1341. {
  1342. u32 session_id;
  1343. switch (val) {
  1344. case MSM_FRONTEND_DAI_QCHAT:
  1345. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1346. break;
  1347. case MSM_FRONTEND_DAI_VOIP:
  1348. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1349. break;
  1350. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1351. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1352. break;
  1353. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1354. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1355. break;
  1356. default:
  1357. session_id = 0;
  1358. }
  1359. pr_debug("%s session_id 0x%x", __func__, session_id);
  1360. return session_id;
  1361. }
  1362. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1363. int dspst_id, int stream_type)
  1364. {
  1365. int copp_idx = 0;
  1366. int sess_type = 0;
  1367. int i = 0, j = 0, be_id;
  1368. int ret = 0;
  1369. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1370. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1371. return 0;
  1372. }
  1373. if (!(channel_mixer[fe_id].enable)) {
  1374. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1375. __func__, fe_id);
  1376. return 0;
  1377. }
  1378. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1379. sess_type = SESSION_TYPE_RX;
  1380. else
  1381. sess_type = SESSION_TYPE_TX;
  1382. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1383. ++i) {
  1384. be_id = channel_input[fe_id][i] - 1;
  1385. channel_mixer[fe_id].input_channels[i] =
  1386. msm_bedais[be_id].channel;
  1387. if ((msm_bedais[be_id].active) &&
  1388. test_bit(fe_id,
  1389. &msm_bedais[be_id].fe_sessions[0])) {
  1390. unsigned long copp =
  1391. session_copp_map[fe_id][sess_type][be_id];
  1392. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1393. if (test_bit(j, &copp)) {
  1394. copp_idx = j;
  1395. break;
  1396. }
  1397. }
  1398. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1399. __func__,
  1400. fe_id, be_id, msm_bedais[be_id].channel,
  1401. copp_idx);
  1402. ret = adm_programable_channel_mixer(
  1403. msm_bedais[be_id].port_id,
  1404. copp_idx, dspst_id, sess_type,
  1405. channel_mixer + fe_id, i);
  1406. }
  1407. }
  1408. return ret;
  1409. }
  1410. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1411. int dspst_id, int stream_type)
  1412. {
  1413. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1414. struct route_payload payload;
  1415. u32 channels, sample_rate;
  1416. uint16_t bits_per_sample = 16;
  1417. uint32_t passthr_mode = LEGACY_PCM;
  1418. int ret = 0;
  1419. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1420. /* bad ID assigned in machine driver */
  1421. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1422. return -EINVAL;
  1423. }
  1424. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1425. session_type = SESSION_TYPE_RX;
  1426. path_type = ADM_PATH_PLAYBACK;
  1427. port_type = MSM_AFE_PORT_TYPE_RX;
  1428. } else {
  1429. session_type = SESSION_TYPE_TX;
  1430. path_type = ADM_PATH_LIVE_REC;
  1431. port_type = MSM_AFE_PORT_TYPE_TX;
  1432. }
  1433. mutex_lock(&routing_lock);
  1434. payload.num_copps = 0; /* only RX needs to use payload */
  1435. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1436. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1437. /* re-enable EQ if active */
  1438. msm_qti_pp_send_eq_values(fedai_id);
  1439. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1440. if (!is_be_dai_extproc(i) &&
  1441. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1442. (msm_bedais[i].active) &&
  1443. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1444. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1445. /*
  1446. * check if ADM needs to be configured with different
  1447. * channel mapping than backend
  1448. */
  1449. if (!msm_bedais[i].adm_override_ch)
  1450. channels = msm_bedais[i].channel;
  1451. else
  1452. channels = msm_bedais[i].adm_override_ch;
  1453. msm_bedais[i].passthr_mode[fedai_id] =
  1454. LEGACY_PCM;
  1455. bits_per_sample = msm_routing_get_bit_width(
  1456. msm_bedais[i].format);
  1457. app_type =
  1458. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1459. if (app_type) {
  1460. app_type_idx =
  1461. msm_pcm_routing_get_app_type_idx(app_type);
  1462. sample_rate =
  1463. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1464. .sample_rate;
  1465. bits_per_sample =
  1466. app_type_cfg[app_type_idx].bit_width;
  1467. } else
  1468. sample_rate = msm_bedais[i].sample_rate;
  1469. acdb_dev_id =
  1470. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1471. .acdb_dev_id;
  1472. topology = msm_routing_get_adm_topology(fedai_id,
  1473. session_type,
  1474. i);
  1475. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1476. sample_rate, channels, topology,
  1477. perf_mode, bits_per_sample,
  1478. app_type, acdb_dev_id);
  1479. if ((copp_idx < 0) ||
  1480. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1481. pr_err("%s: adm open failed copp_idx:%d\n",
  1482. __func__, copp_idx);
  1483. mutex_unlock(&routing_lock);
  1484. return -EINVAL;
  1485. }
  1486. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1487. __func__, fedai_id, session_type, i);
  1488. set_bit(copp_idx,
  1489. &session_copp_map[fedai_id][session_type][i]);
  1490. if (msm_is_resample_needed(
  1491. sample_rate,
  1492. msm_bedais[i].sample_rate))
  1493. adm_copp_mfc_cfg(
  1494. msm_bedais[i].port_id, copp_idx,
  1495. msm_bedais[i].sample_rate);
  1496. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1497. unsigned long copp =
  1498. session_copp_map[fedai_id][session_type][i];
  1499. if (test_bit(j, &copp)) {
  1500. payload.port_id[num_copps] =
  1501. msm_bedais[i].port_id;
  1502. payload.copp_idx[num_copps] = j;
  1503. payload.app_type[num_copps] =
  1504. fe_dai_app_type_cfg
  1505. [fedai_id][session_type]
  1506. [i].app_type;
  1507. payload.acdb_dev_id[num_copps] =
  1508. fe_dai_app_type_cfg
  1509. [fedai_id][session_type]
  1510. [i].acdb_dev_id;
  1511. payload.sample_rate[num_copps] =
  1512. fe_dai_app_type_cfg
  1513. [fedai_id][session_type]
  1514. [i].sample_rate;
  1515. num_copps++;
  1516. }
  1517. }
  1518. if ((perf_mode == LEGACY_PCM_MODE) &&
  1519. (msm_bedais[i].passthr_mode[fedai_id] ==
  1520. LEGACY_PCM))
  1521. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1522. copp_idx, topology,
  1523. channels);
  1524. }
  1525. }
  1526. if (num_copps) {
  1527. payload.num_copps = num_copps;
  1528. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1529. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1530. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1531. }
  1532. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1533. dspst_id, stream_type);
  1534. mutex_unlock(&routing_lock);
  1535. return ret;
  1536. }
  1537. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1538. int dspst_id, int stream_type,
  1539. struct msm_pcm_routing_evt event_info)
  1540. {
  1541. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1542. stream_type)) {
  1543. pr_err("%s: failed to reg phy stream\n", __func__);
  1544. return -EINVAL;
  1545. }
  1546. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1547. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1548. else
  1549. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1550. return 0;
  1551. }
  1552. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1553. {
  1554. int i, port_type, session_type, path_type, topology;
  1555. struct msm_pcm_routing_fdai_data *fdai;
  1556. if (!is_mm_lsm_fe_id(fedai_id)) {
  1557. /* bad ID assigned in machine driver */
  1558. pr_err("%s: bad MM ID\n", __func__);
  1559. return;
  1560. }
  1561. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1562. port_type = MSM_AFE_PORT_TYPE_RX;
  1563. session_type = SESSION_TYPE_RX;
  1564. path_type = ADM_PATH_PLAYBACK;
  1565. } else {
  1566. port_type = MSM_AFE_PORT_TYPE_TX;
  1567. session_type = SESSION_TYPE_TX;
  1568. path_type = ADM_PATH_LIVE_REC;
  1569. }
  1570. mutex_lock(&routing_lock);
  1571. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1572. if (!is_be_dai_extproc(i) &&
  1573. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1574. (msm_bedais[i].active) &&
  1575. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1576. int idx;
  1577. unsigned long copp =
  1578. session_copp_map[fedai_id][session_type][i];
  1579. fdai = &fe_dai_map[fedai_id][session_type];
  1580. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1581. if (test_bit(idx, &copp))
  1582. break;
  1583. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1584. pr_debug("%s: copp idx is invalid, exiting\n",
  1585. __func__);
  1586. continue;
  1587. }
  1588. topology = adm_get_topology_for_port_copp_idx(
  1589. msm_bedais[i].port_id, idx);
  1590. msm_routing_unload_topology(topology);
  1591. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1592. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1593. __func__, copp, fedai_id, session_type, i);
  1594. clear_bit(idx,
  1595. &session_copp_map[fedai_id][session_type][i]);
  1596. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1597. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1598. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1599. (msm_bedais[i].passthr_mode[fedai_id] ==
  1600. LEGACY_PCM))
  1601. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1602. topology);
  1603. }
  1604. }
  1605. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1606. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1607. mutex_unlock(&routing_lock);
  1608. }
  1609. /* Check if FE/BE route is set */
  1610. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1611. {
  1612. bool rc = false;
  1613. if (!is_mm_lsm_fe_id(fe_id)) {
  1614. /* recheck FE ID in the mixer control defined in this file */
  1615. pr_err("%s: bad MM ID\n", __func__);
  1616. return rc;
  1617. }
  1618. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1619. rc = true;
  1620. return rc;
  1621. }
  1622. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1623. {
  1624. int session_type, path_type, topology;
  1625. u32 channels, sample_rate;
  1626. uint16_t bits_per_sample = 16;
  1627. struct msm_pcm_routing_fdai_data *fdai;
  1628. uint32_t passthr_mode;
  1629. bool is_lsm;
  1630. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1631. if (!is_mm_lsm_fe_id(val)) {
  1632. /* recheck FE ID in the mixer control defined in this file */
  1633. pr_err("%s: bad MM ID\n", __func__);
  1634. return;
  1635. }
  1636. if (!route_check_fe_id_adm_support(val)) {
  1637. /* ignore adm open if not supported for fe_id */
  1638. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1639. return;
  1640. }
  1641. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1642. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1643. MSM_AFE_PORT_TYPE_RX) {
  1644. session_type = SESSION_TYPE_RX;
  1645. if (passthr_mode != LEGACY_PCM)
  1646. path_type = ADM_PATH_COMPRESSED_RX;
  1647. else
  1648. path_type = ADM_PATH_PLAYBACK;
  1649. } else {
  1650. session_type = SESSION_TYPE_TX;
  1651. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1652. path_type = ADM_PATH_COMPRESSED_TX;
  1653. else
  1654. path_type = ADM_PATH_LIVE_REC;
  1655. }
  1656. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1657. (val <= MSM_FRONTEND_DAI_LSM8);
  1658. mutex_lock(&routing_lock);
  1659. if (set) {
  1660. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1661. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1662. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1663. voc_start_playback(set, msm_bedais[reg].port_id);
  1664. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1665. fdai = &fe_dai_map[val][session_type];
  1666. if (msm_bedais[reg].active && fdai->strm_id !=
  1667. INVALID_SESSION) {
  1668. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1669. /*
  1670. * check if ADM needs to be configured with different
  1671. * channel mapping than backend
  1672. */
  1673. if (!msm_bedais[reg].adm_override_ch)
  1674. channels = msm_bedais[reg].channel;
  1675. else
  1676. channels = msm_bedais[reg].adm_override_ch;
  1677. if (session_type == SESSION_TYPE_TX &&
  1678. fdai->be_srate &&
  1679. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1680. pr_debug("%s: flush strm %d diff BE rates\n",
  1681. __func__, fdai->strm_id);
  1682. if (fdai->event_info.event_func)
  1683. fdai->event_info.event_func(
  1684. MSM_PCM_RT_EVT_BUF_RECFG,
  1685. fdai->event_info.priv_data);
  1686. fdai->be_srate = 0; /* might not need it */
  1687. }
  1688. bits_per_sample = msm_routing_get_bit_width(
  1689. msm_bedais[reg].format);
  1690. app_type =
  1691. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1692. if (app_type && is_lsm) {
  1693. app_type_idx =
  1694. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1695. sample_rate =
  1696. fe_dai_app_type_cfg[val][session_type][reg]
  1697. .sample_rate;
  1698. bits_per_sample =
  1699. lsm_app_type_cfg[app_type_idx].bit_width;
  1700. } else if (app_type) {
  1701. app_type_idx =
  1702. msm_pcm_routing_get_app_type_idx(app_type);
  1703. sample_rate =
  1704. fe_dai_app_type_cfg[val][session_type][reg]
  1705. .sample_rate;
  1706. bits_per_sample =
  1707. app_type_cfg[app_type_idx].bit_width;
  1708. } else
  1709. sample_rate = msm_bedais[reg].sample_rate;
  1710. topology = msm_routing_get_adm_topology(val,
  1711. session_type,
  1712. reg);
  1713. acdb_dev_id =
  1714. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1715. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1716. sample_rate, channels, topology,
  1717. fdai->perf_mode, bits_per_sample,
  1718. app_type, acdb_dev_id);
  1719. if ((copp_idx < 0) ||
  1720. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1721. pr_err("%s: adm open failed\n", __func__);
  1722. mutex_unlock(&routing_lock);
  1723. return;
  1724. }
  1725. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1726. __func__, val, session_type, reg);
  1727. set_bit(copp_idx,
  1728. &session_copp_map[val][session_type][reg]);
  1729. if (msm_is_resample_needed(
  1730. sample_rate,
  1731. msm_bedais[reg].sample_rate))
  1732. adm_copp_mfc_cfg(
  1733. msm_bedais[reg].port_id, copp_idx,
  1734. msm_bedais[reg].sample_rate);
  1735. if (session_type == SESSION_TYPE_RX &&
  1736. fdai->event_info.event_func)
  1737. fdai->event_info.event_func(
  1738. MSM_PCM_RT_EVT_DEVSWITCH,
  1739. fdai->event_info.priv_data);
  1740. msm_pcm_routing_build_matrix(val, session_type,
  1741. path_type,
  1742. fdai->perf_mode,
  1743. passthr_mode);
  1744. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1745. (passthr_mode == LEGACY_PCM))
  1746. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1747. copp_idx, topology,
  1748. channels);
  1749. }
  1750. } else {
  1751. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1752. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1753. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1754. voc_start_playback(set, msm_bedais[reg].port_id);
  1755. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1756. fdai = &fe_dai_map[val][session_type];
  1757. if (msm_bedais[reg].active && fdai->strm_id !=
  1758. INVALID_SESSION) {
  1759. int idx;
  1760. int port_id;
  1761. unsigned long copp =
  1762. session_copp_map[val][session_type][reg];
  1763. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1764. if (test_bit(idx, &copp))
  1765. break;
  1766. port_id = msm_bedais[reg].port_id;
  1767. topology = adm_get_topology_for_port_copp_idx(port_id,
  1768. idx);
  1769. msm_routing_unload_topology(topology);
  1770. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1771. idx);
  1772. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1773. __func__, copp, val, session_type, reg,
  1774. topology);
  1775. clear_bit(idx,
  1776. &session_copp_map[val][session_type][reg]);
  1777. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1778. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1779. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1780. (passthr_mode == LEGACY_PCM))
  1781. msm_pcm_routing_deinit_pp(
  1782. msm_bedais[reg].port_id,
  1783. topology);
  1784. msm_pcm_routing_build_matrix(val, session_type,
  1785. path_type,
  1786. fdai->perf_mode,
  1787. passthr_mode);
  1788. }
  1789. }
  1790. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1791. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1792. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1793. mutex_unlock(&routing_lock);
  1794. }
  1795. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1796. struct snd_ctl_elem_value *ucontrol)
  1797. {
  1798. struct soc_mixer_control *mc =
  1799. (struct soc_mixer_control *)kcontrol->private_value;
  1800. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1801. ucontrol->value.integer.value[0] = 1;
  1802. else
  1803. ucontrol->value.integer.value[0] = 0;
  1804. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1805. ucontrol->value.integer.value[0]);
  1806. return 0;
  1807. }
  1808. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1809. struct snd_ctl_elem_value *ucontrol)
  1810. {
  1811. struct snd_soc_dapm_widget *widget =
  1812. snd_soc_dapm_kcontrol_widget(kcontrol);
  1813. struct soc_mixer_control *mc =
  1814. (struct soc_mixer_control *)kcontrol->private_value;
  1815. struct snd_soc_dapm_update *update = NULL;
  1816. if (ucontrol->value.integer.value[0] &&
  1817. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1818. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1819. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1820. update);
  1821. } else if (!ucontrol->value.integer.value[0] &&
  1822. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1823. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1824. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1825. update);
  1826. }
  1827. return 1;
  1828. }
  1829. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1830. struct snd_ctl_elem_value *ucontrol)
  1831. {
  1832. struct soc_mixer_control *mc =
  1833. (struct soc_mixer_control *)kcontrol->private_value;
  1834. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1835. ucontrol->value.integer.value[0] = 1;
  1836. else
  1837. ucontrol->value.integer.value[0] = 0;
  1838. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1839. ucontrol->value.integer.value[0]);
  1840. return 0;
  1841. }
  1842. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1843. struct snd_ctl_elem_value *ucontrol)
  1844. {
  1845. struct snd_soc_dapm_widget *widget =
  1846. snd_soc_dapm_kcontrol_widget(kcontrol);
  1847. struct soc_mixer_control *mc =
  1848. (struct soc_mixer_control *)kcontrol->private_value;
  1849. struct snd_soc_dapm_update *update = NULL;
  1850. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1851. ucontrol->value.integer.value[0]);
  1852. if (ucontrol->value.integer.value[0]) {
  1853. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1854. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1855. snd_soc_dapm_mixer_update_power(widget->dapm,
  1856. kcontrol, 1, update);
  1857. } else if (!ucontrol->value.integer.value[0]) {
  1858. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1859. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1860. snd_soc_dapm_mixer_update_power(widget->dapm,
  1861. kcontrol, 0, update);
  1862. }
  1863. return 1;
  1864. }
  1865. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1866. {
  1867. u32 session_id = 0;
  1868. u16 path_type;
  1869. struct media_format_info voc_be_media_format;
  1870. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1871. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1872. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1873. __func__, val, session_id);
  1874. mutex_lock(&routing_lock);
  1875. if (set)
  1876. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1877. else
  1878. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1879. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1880. afe_get_port_type(msm_bedais[reg].port_id) ==
  1881. MSM_AFE_PORT_TYPE_RX) {
  1882. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1883. __func__, set, msm_bedais[reg].port_id);
  1884. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1885. }
  1886. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1887. MSM_AFE_PORT_TYPE_RX)
  1888. path_type = RX_PATH;
  1889. else
  1890. path_type = TX_PATH;
  1891. if (set) {
  1892. if (msm_bedais[reg].active) {
  1893. voc_set_route_flag(session_id, path_type, 1);
  1894. memset(&voc_be_media_format, 0,
  1895. sizeof(struct media_format_info));
  1896. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1897. voc_be_media_format.num_channels =
  1898. msm_bedais[reg].channel;
  1899. voc_be_media_format.sample_rate =
  1900. msm_bedais[reg].sample_rate;
  1901. voc_be_media_format.bits_per_sample =
  1902. msm_bedais[reg].format;
  1903. /* Defaulting this to 1 for voice call usecases */
  1904. voc_be_media_format.channel_mapping[0] = 1;
  1905. voc_set_device_config(session_id, path_type,
  1906. &voc_be_media_format);
  1907. if (voc_get_route_flag(session_id, TX_PATH) &&
  1908. voc_get_route_flag(session_id, RX_PATH))
  1909. voc_enable_device(session_id);
  1910. } else {
  1911. pr_debug("%s BE is not active\n", __func__);
  1912. }
  1913. } else {
  1914. voc_set_route_flag(session_id, path_type, 0);
  1915. voc_disable_device(session_id);
  1916. }
  1917. mutex_unlock(&routing_lock);
  1918. }
  1919. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1920. struct snd_ctl_elem_value *ucontrol)
  1921. {
  1922. struct soc_mixer_control *mc =
  1923. (struct soc_mixer_control *)kcontrol->private_value;
  1924. mutex_lock(&routing_lock);
  1925. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1926. ucontrol->value.integer.value[0] = 1;
  1927. else
  1928. ucontrol->value.integer.value[0] = 0;
  1929. mutex_unlock(&routing_lock);
  1930. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1931. ucontrol->value.integer.value[0]);
  1932. return 0;
  1933. }
  1934. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1935. struct snd_ctl_elem_value *ucontrol)
  1936. {
  1937. struct snd_soc_dapm_widget *widget =
  1938. snd_soc_dapm_kcontrol_widget(kcontrol);
  1939. struct soc_mixer_control *mc =
  1940. (struct soc_mixer_control *)kcontrol->private_value;
  1941. struct snd_soc_dapm_update *update = NULL;
  1942. if (ucontrol->value.integer.value[0]) {
  1943. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1944. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1945. update);
  1946. } else {
  1947. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1948. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1949. update);
  1950. }
  1951. return 1;
  1952. }
  1953. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1954. struct snd_ctl_elem_value *ucontrol)
  1955. {
  1956. struct soc_mixer_control *mc =
  1957. (struct soc_mixer_control *)kcontrol->private_value;
  1958. mutex_lock(&routing_lock);
  1959. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1960. ucontrol->value.integer.value[0] = 1;
  1961. else
  1962. ucontrol->value.integer.value[0] = 0;
  1963. mutex_unlock(&routing_lock);
  1964. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1965. ucontrol->value.integer.value[0]);
  1966. return 0;
  1967. }
  1968. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1969. struct snd_ctl_elem_value *ucontrol)
  1970. {
  1971. struct snd_soc_dapm_widget *widget =
  1972. snd_soc_dapm_kcontrol_widget(kcontrol);
  1973. struct soc_mixer_control *mc =
  1974. (struct soc_mixer_control *)kcontrol->private_value;
  1975. struct snd_soc_dapm_update *update = NULL;
  1976. if (ucontrol->value.integer.value[0]) {
  1977. mutex_lock(&routing_lock);
  1978. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1979. mutex_unlock(&routing_lock);
  1980. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1981. update);
  1982. } else {
  1983. mutex_lock(&routing_lock);
  1984. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1985. mutex_unlock(&routing_lock);
  1986. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1987. update);
  1988. }
  1989. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1990. ucontrol->value.integer.value[0]);
  1991. return 1;
  1992. }
  1993. /*
  1994. * Return the mapping between port ID and backend ID to enable the AFE callback
  1995. * to determine the acdb_dev_id from the port id
  1996. */
  1997. int msm_pcm_get_be_id_from_port_id(int port_id)
  1998. {
  1999. int i;
  2000. int be_id = -EINVAL;
  2001. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2002. if (msm_bedais[i].port_id == port_id) {
  2003. be_id = i;
  2004. break;
  2005. }
  2006. }
  2007. return be_id;
  2008. }
  2009. /*
  2010. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2011. * correct AFE calibration information by comparing the header information.
  2012. */
  2013. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2014. {
  2015. int acdb_id = -EINVAL;
  2016. int i = 0;
  2017. int session;
  2018. int port_type = afe_get_port_type(port_id);
  2019. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2020. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2021. __func__, port_id, be_id, port_type);
  2022. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2023. session = SESSION_TYPE_TX;
  2024. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2025. session = SESSION_TYPE_RX;
  2026. } else {
  2027. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2028. acdb_id = -EINVAL;
  2029. goto exit;
  2030. }
  2031. if (be_id < 0) {
  2032. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2033. goto exit;
  2034. }
  2035. mutex_lock(&routing_lock);
  2036. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2037. MSM_FRONTEND_DAI_MAX);
  2038. if (i < MSM_FRONTEND_DAI_MAX)
  2039. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2040. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2041. __func__, i, session, be_id, acdb_id);
  2042. mutex_unlock(&routing_lock);
  2043. exit:
  2044. return acdb_id;
  2045. }
  2046. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2047. struct snd_ctl_elem_value *ucontrol)
  2048. {
  2049. ucontrol->value.integer.value[0] = fm_switch_enable;
  2050. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2051. ucontrol->value.integer.value[0]);
  2052. return 0;
  2053. }
  2054. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2055. struct snd_ctl_elem_value *ucontrol)
  2056. {
  2057. struct snd_soc_dapm_widget *widget =
  2058. snd_soc_dapm_kcontrol_widget(kcontrol);
  2059. struct snd_soc_dapm_update *update = NULL;
  2060. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2061. ucontrol->value.integer.value[0]);
  2062. if (ucontrol->value.integer.value[0])
  2063. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2064. update);
  2065. else
  2066. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2067. update);
  2068. fm_switch_enable = ucontrol->value.integer.value[0];
  2069. return 1;
  2070. }
  2071. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2072. struct snd_ctl_elem_value *ucontrol)
  2073. {
  2074. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2075. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2076. ucontrol->value.integer.value[0]);
  2077. return 0;
  2078. }
  2079. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2080. struct snd_ctl_elem_value *ucontrol)
  2081. {
  2082. struct snd_soc_dapm_widget *widget =
  2083. snd_soc_dapm_kcontrol_widget(kcontrol);
  2084. struct snd_soc_dapm_update *update = NULL;
  2085. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2086. ucontrol->value.integer.value[0]);
  2087. if (ucontrol->value.integer.value[0])
  2088. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2089. 1, update);
  2090. else
  2091. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2092. 0, update);
  2093. hfp_switch_enable = ucontrol->value.integer.value[0];
  2094. return 1;
  2095. }
  2096. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2097. struct snd_ctl_elem_value *ucontrol)
  2098. {
  2099. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2100. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2101. ucontrol->value.integer.value[0]);
  2102. return 0;
  2103. }
  2104. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2105. struct snd_ctl_elem_value *ucontrol)
  2106. {
  2107. struct snd_soc_dapm_widget *widget =
  2108. snd_soc_dapm_kcontrol_widget(kcontrol);
  2109. struct snd_soc_dapm_update *update = NULL;
  2110. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2111. ucontrol->value.integer.value[0]);
  2112. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2113. if (a2dp_switch_enable)
  2114. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2115. 1, update);
  2116. else
  2117. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2118. 0, update);
  2119. return 1;
  2120. }
  2121. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2122. struct snd_ctl_elem_value *ucontrol)
  2123. {
  2124. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2125. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2126. ucontrol->value.integer.value[0]);
  2127. return 0;
  2128. }
  2129. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2130. struct snd_ctl_elem_value *ucontrol)
  2131. {
  2132. struct snd_soc_dapm_widget *widget =
  2133. snd_soc_dapm_kcontrol_widget(kcontrol);
  2134. struct snd_soc_dapm_update *update = NULL;
  2135. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2136. ucontrol->value.integer.value[0]);
  2137. if (ucontrol->value.integer.value[0])
  2138. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2139. update);
  2140. else
  2141. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2142. update);
  2143. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2144. return 1;
  2145. }
  2146. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2147. struct snd_ctl_elem_value *ucontrol)
  2148. {
  2149. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2150. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2151. ucontrol->value.integer.value[0]);
  2152. return 0;
  2153. }
  2154. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2155. struct snd_ctl_elem_value *ucontrol)
  2156. {
  2157. struct snd_soc_dapm_widget *widget =
  2158. snd_soc_dapm_kcontrol_widget(kcontrol);
  2159. struct snd_soc_dapm_update *update = NULL;
  2160. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2161. ucontrol->value.integer.value[0]);
  2162. if (ucontrol->value.integer.value[0])
  2163. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2164. update);
  2165. else
  2166. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2167. update);
  2168. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2169. return 1;
  2170. }
  2171. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2172. struct snd_ctl_elem_value *ucontrol)
  2173. {
  2174. ucontrol->value.integer.value[0] = usb_switch_enable;
  2175. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2176. ucontrol->value.integer.value[0]);
  2177. return 0;
  2178. }
  2179. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2180. struct snd_ctl_elem_value *ucontrol)
  2181. {
  2182. struct snd_soc_dapm_widget *widget =
  2183. snd_soc_dapm_kcontrol_widget(kcontrol);
  2184. struct snd_soc_dapm_update *update = NULL;
  2185. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2186. ucontrol->value.integer.value[0]);
  2187. if (ucontrol->value.integer.value[0])
  2188. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2189. 1, update);
  2190. else
  2191. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2192. 0, update);
  2193. usb_switch_enable = ucontrol->value.integer.value[0];
  2194. return 1;
  2195. }
  2196. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2197. struct snd_ctl_elem_value *ucontrol)
  2198. {
  2199. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2200. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2201. ucontrol->value.integer.value[0]);
  2202. return 0;
  2203. }
  2204. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2205. struct snd_ctl_elem_value *ucontrol)
  2206. {
  2207. struct snd_soc_dapm_widget *widget =
  2208. snd_soc_dapm_kcontrol_widget(kcontrol);
  2209. struct snd_soc_dapm_update *update = NULL;
  2210. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2211. ucontrol->value.integer.value[0]);
  2212. if (ucontrol->value.integer.value[0])
  2213. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2214. update);
  2215. else
  2216. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2217. update);
  2218. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2219. return 1;
  2220. }
  2221. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2222. struct snd_ctl_elem_value *ucontrol)
  2223. {
  2224. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2225. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2226. ucontrol->value.integer.value[0]);
  2227. return 0;
  2228. }
  2229. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2230. struct snd_ctl_elem_value *ucontrol)
  2231. {
  2232. struct snd_soc_dapm_widget *widget =
  2233. snd_soc_dapm_kcontrol_widget(kcontrol);
  2234. struct snd_soc_dapm_update *update = NULL;
  2235. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2236. ucontrol->value.integer.value[0]);
  2237. if (ucontrol->value.integer.value[0])
  2238. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2239. update);
  2240. else
  2241. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2242. update);
  2243. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2244. return 1;
  2245. }
  2246. static int msm_routing_get_tert_mi2s_switch_mixer(
  2247. struct snd_kcontrol *kcontrol,
  2248. struct snd_ctl_elem_value *ucontrol)
  2249. {
  2250. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2251. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2252. ucontrol->value.integer.value[0]);
  2253. return 0;
  2254. }
  2255. static int msm_routing_put_tert_mi2s_switch_mixer(
  2256. struct snd_kcontrol *kcontrol,
  2257. struct snd_ctl_elem_value *ucontrol)
  2258. {
  2259. struct snd_soc_dapm_widget *widget =
  2260. snd_soc_dapm_kcontrol_widget(kcontrol);
  2261. struct snd_soc_dapm_update *update = NULL;
  2262. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2263. ucontrol->value.integer.value[0]);
  2264. if (ucontrol->value.integer.value[0])
  2265. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2266. update);
  2267. else
  2268. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2269. update);
  2270. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2271. return 1;
  2272. }
  2273. static int msm_routing_get_quat_mi2s_switch_mixer(
  2274. struct snd_kcontrol *kcontrol,
  2275. struct snd_ctl_elem_value *ucontrol)
  2276. {
  2277. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2278. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2279. ucontrol->value.integer.value[0]);
  2280. return 0;
  2281. }
  2282. static int msm_routing_put_quat_mi2s_switch_mixer(
  2283. struct snd_kcontrol *kcontrol,
  2284. struct snd_ctl_elem_value *ucontrol)
  2285. {
  2286. struct snd_soc_dapm_widget *widget =
  2287. snd_soc_dapm_kcontrol_widget(kcontrol);
  2288. struct snd_soc_dapm_update *update = NULL;
  2289. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2290. ucontrol->value.integer.value[0]);
  2291. if (ucontrol->value.integer.value[0])
  2292. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2293. update);
  2294. else
  2295. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2296. update);
  2297. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2298. return 1;
  2299. }
  2300. static int msm_routing_get_quin_mi2s_switch_mixer(
  2301. struct snd_kcontrol *kcontrol,
  2302. struct snd_ctl_elem_value *ucontrol)
  2303. {
  2304. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2305. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2306. ucontrol->value.integer.value[0]);
  2307. return 0;
  2308. }
  2309. static int msm_routing_put_quin_mi2s_switch_mixer(
  2310. struct snd_kcontrol *kcontrol,
  2311. struct snd_ctl_elem_value *ucontrol)
  2312. {
  2313. struct snd_soc_dapm_widget *widget =
  2314. snd_soc_dapm_kcontrol_widget(kcontrol);
  2315. struct snd_soc_dapm_update *update = NULL;
  2316. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2317. ucontrol->value.integer.value[0]);
  2318. if (ucontrol->value.integer.value[0])
  2319. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2320. update);
  2321. else
  2322. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2323. update);
  2324. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2325. return 1;
  2326. }
  2327. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2328. struct snd_ctl_elem_value *ucontrol)
  2329. {
  2330. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2331. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2332. ucontrol->value.integer.value[0]);
  2333. return 0;
  2334. }
  2335. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2336. struct snd_ctl_elem_value *ucontrol)
  2337. {
  2338. struct snd_soc_dapm_widget *widget =
  2339. snd_soc_dapm_kcontrol_widget(kcontrol);
  2340. struct snd_soc_dapm_update *update = NULL;
  2341. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2342. ucontrol->value.integer.value[0]);
  2343. if (ucontrol->value.integer.value[0])
  2344. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2345. update);
  2346. else
  2347. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2348. update);
  2349. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2350. return 1;
  2351. }
  2352. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2353. struct snd_ctl_elem_value *ucontrol)
  2354. {
  2355. ucontrol->value.integer.value[0] = lsm_port_index;
  2356. return 0;
  2357. }
  2358. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2359. struct snd_ctl_elem_value *ucontrol)
  2360. {
  2361. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2362. int mux = ucontrol->value.enumerated.item[0];
  2363. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2364. if (mux >= e->items) {
  2365. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2366. return -EINVAL;
  2367. }
  2368. pr_debug("%s: LSM enable %ld\n", __func__,
  2369. ucontrol->value.integer.value[0]);
  2370. switch (ucontrol->value.integer.value[0]) {
  2371. case 1:
  2372. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2373. break;
  2374. case 2:
  2375. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2376. break;
  2377. case 3:
  2378. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2379. break;
  2380. case 4:
  2381. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2382. break;
  2383. case 5:
  2384. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2385. break;
  2386. case 6:
  2387. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2388. break;
  2389. case 7:
  2390. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2391. break;
  2392. case 8:
  2393. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2394. break;
  2395. case 9:
  2396. lsm_port = ADM_LSM_PORT_ID;
  2397. break;
  2398. case 10:
  2399. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2400. break;
  2401. case 11:
  2402. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2403. break;
  2404. case 12:
  2405. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2406. break;
  2407. case 13:
  2408. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2409. break;
  2410. default:
  2411. pr_err("Default lsm port");
  2412. break;
  2413. }
  2414. set_lsm_port(lsm_port);
  2415. lsm_port_index = ucontrol->value.integer.value[0];
  2416. return 0;
  2417. }
  2418. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2419. struct snd_ctl_elem_value *ucontrol)
  2420. {
  2421. int i;
  2422. u16 port_id;
  2423. enum afe_mad_type mad_type;
  2424. pr_debug("%s: enter\n", __func__);
  2425. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2426. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2427. strlen(lsm_port_text[i])))
  2428. break;
  2429. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2430. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2431. return -EINVAL;
  2432. }
  2433. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2434. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2435. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2436. strlen(lsm_port_text[7])))
  2437. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2438. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2439. strlen(lsm_port_text[8])))
  2440. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2441. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2442. strlen(lsm_port_text[10])))
  2443. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2444. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2445. strlen(lsm_port_text[13])))
  2446. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2447. mad_type = afe_port_get_mad_type(port_id);
  2448. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2449. mad_type);
  2450. switch (mad_type) {
  2451. case MAD_HW_NONE:
  2452. ucontrol->value.integer.value[0] = MADNONE;
  2453. break;
  2454. case MAD_HW_AUDIO:
  2455. ucontrol->value.integer.value[0] = MADAUDIO;
  2456. break;
  2457. case MAD_HW_BEACON:
  2458. ucontrol->value.integer.value[0] = MADBEACON;
  2459. break;
  2460. case MAD_HW_ULTRASOUND:
  2461. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2462. break;
  2463. case MAD_SW_AUDIO:
  2464. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2465. break;
  2466. default:
  2467. WARN(1, "Unknown\n");
  2468. return -EINVAL;
  2469. }
  2470. return 0;
  2471. }
  2472. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2473. struct snd_ctl_elem_value *ucontrol)
  2474. {
  2475. int i;
  2476. u16 port_id;
  2477. enum afe_mad_type mad_type;
  2478. pr_debug("%s: enter\n", __func__);
  2479. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2480. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2481. strlen(lsm_port_text[i])))
  2482. break;
  2483. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2484. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2485. return -EINVAL;
  2486. }
  2487. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2488. switch (ucontrol->value.integer.value[0]) {
  2489. case MADNONE:
  2490. mad_type = MAD_HW_NONE;
  2491. break;
  2492. case MADAUDIO:
  2493. mad_type = MAD_HW_AUDIO;
  2494. break;
  2495. case MADBEACON:
  2496. mad_type = MAD_HW_BEACON;
  2497. break;
  2498. case MADULTRASOUND:
  2499. mad_type = MAD_HW_ULTRASOUND;
  2500. break;
  2501. case MADSWAUDIO:
  2502. mad_type = MAD_SW_AUDIO;
  2503. break;
  2504. default:
  2505. WARN(1, "Unknown\n");
  2506. return -EINVAL;
  2507. }
  2508. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2509. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2510. strlen(lsm_port_text[7])))
  2511. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2512. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2513. strlen(lsm_port_text[8])))
  2514. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2515. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2516. strlen(lsm_port_text[10])))
  2517. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2518. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2519. strlen(lsm_port_text[13])))
  2520. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2521. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2522. mad_type);
  2523. return afe_port_set_mad_type(port_id, mad_type);
  2524. }
  2525. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2526. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2527. adm_override_chs_text);
  2528. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2529. {
  2530. int backend_id;
  2531. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2532. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2533. } else {
  2534. pr_err("%s: unsupported backend id: %s",
  2535. __func__, kcontrol->id.name);
  2536. return -EINVAL;
  2537. }
  2538. return backend_id;
  2539. }
  2540. static int msm_routing_adm_channel_config_get(
  2541. struct snd_kcontrol *kcontrol,
  2542. struct snd_ctl_elem_value *ucontrol)
  2543. {
  2544. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2545. if (backend_id >= 0) {
  2546. mutex_lock(&routing_lock);
  2547. ucontrol->value.integer.value[0] =
  2548. msm_bedais[backend_id].adm_override_ch;
  2549. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2550. ucontrol->value.integer.value[0], backend_id);
  2551. mutex_unlock(&routing_lock);
  2552. }
  2553. return 0;
  2554. }
  2555. static int msm_routing_adm_channel_config_put(
  2556. struct snd_kcontrol *kcontrol,
  2557. struct snd_ctl_elem_value *ucontrol)
  2558. {
  2559. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2560. if (backend_id >= 0) {
  2561. mutex_lock(&routing_lock);
  2562. msm_bedais[backend_id].adm_override_ch =
  2563. ucontrol->value.integer.value[0];
  2564. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2565. __func__, backend_id,
  2566. msm_bedais[backend_id].adm_override_ch);
  2567. mutex_unlock(&routing_lock);
  2568. }
  2569. return 0;
  2570. }
  2571. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2572. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2573. msm_routing_adm_channel_config_get,
  2574. msm_routing_adm_channel_config_put),
  2575. };
  2576. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2577. struct snd_ctl_elem_value *ucontrol)
  2578. {
  2579. mutex_lock(&routing_lock);
  2580. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2581. mutex_unlock(&routing_lock);
  2582. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2583. ucontrol->value.integer.value[0]);
  2584. return 0;
  2585. };
  2586. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2587. struct snd_ctl_elem_value *ucontrol)
  2588. {
  2589. struct aanc_data aanc_info;
  2590. mutex_lock(&routing_lock);
  2591. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2592. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2593. ucontrol->value.integer.value[0]);
  2594. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2595. if (ucontrol->value.integer.value[0] == 0) {
  2596. aanc_info.aanc_active = false;
  2597. aanc_info.aanc_tx_port = 0;
  2598. aanc_info.aanc_rx_port = 0;
  2599. } else {
  2600. aanc_info.aanc_active = true;
  2601. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2602. aanc_info.aanc_tx_port =
  2603. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2604. }
  2605. afe_set_aanc_info(&aanc_info);
  2606. mutex_unlock(&routing_lock);
  2607. return 0;
  2608. };
  2609. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2610. struct snd_ctl_elem_value *ucontrol)
  2611. {
  2612. int idx = 0, shift = 0;
  2613. struct soc_mixer_control *mc =
  2614. (struct soc_mixer_control *)kcontrol->private_value;
  2615. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2616. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2617. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2618. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2619. return -EINVAL;
  2620. }
  2621. if (test_bit(shift,
  2622. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2623. ucontrol->value.integer.value[0] = 1;
  2624. else
  2625. ucontrol->value.integer.value[0] = 0;
  2626. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2627. ucontrol->value.integer.value[0]);
  2628. return 0;
  2629. }
  2630. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2631. struct snd_ctl_elem_value *ucontrol)
  2632. {
  2633. int idx = 0, shift = 0;
  2634. struct soc_mixer_control *mc =
  2635. (struct soc_mixer_control *)kcontrol->private_value;
  2636. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2637. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2638. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2639. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2640. return -EINVAL;
  2641. }
  2642. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2643. __func__, mc->shift, mc->rshift,
  2644. ucontrol->value.integer.value[0], idx, shift);
  2645. if (ucontrol->value.integer.value[0]) {
  2646. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2647. msm_bedais[mc->rshift].port_id);
  2648. set_bit(shift,
  2649. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2650. } else {
  2651. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2652. msm_bedais[mc->rshift].port_id);
  2653. clear_bit(shift,
  2654. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2655. }
  2656. return 1;
  2657. }
  2658. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2659. struct snd_ctl_elem_value *ucontrol)
  2660. {
  2661. u16 fe_id = 0;
  2662. fe_id = ((struct soc_mixer_control *)
  2663. kcontrol->private_value)->shift;
  2664. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2665. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2666. return -EINVAL;
  2667. }
  2668. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2669. return 0;
  2670. }
  2671. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2672. struct snd_ctl_elem_value *ucontrol)
  2673. {
  2674. u16 fe_id = 0;
  2675. fe_id = ((struct soc_mixer_control *)
  2676. kcontrol->private_value)->shift;
  2677. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2678. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2679. return -EINVAL;
  2680. }
  2681. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2682. return 1;
  2683. }
  2684. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2685. struct snd_ctl_elem_value *ucontrol)
  2686. {
  2687. u16 fe_id = 0;
  2688. fe_id = ((struct soc_multi_mixer_control *)
  2689. kcontrol->private_value)->shift;
  2690. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2691. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2692. return -EINVAL;
  2693. }
  2694. ucontrol->value.integer.value[0] =
  2695. channel_mixer[fe_id].output_channel;
  2696. return 0;
  2697. }
  2698. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2699. struct snd_ctl_elem_value *ucontrol)
  2700. {
  2701. u16 fe_id = 0;
  2702. fe_id = ((struct soc_multi_mixer_control *)
  2703. kcontrol->private_value)->shift;
  2704. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2705. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2706. return -EINVAL;
  2707. }
  2708. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2709. fe_id,
  2710. (unsigned int)(ucontrol->value.integer.value[0]));
  2711. channel_mixer[fe_id].output_channel =
  2712. (unsigned int)(ucontrol->value.integer.value[0]);
  2713. return 1;
  2714. }
  2715. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2716. /* If new backend is added, need update this array */
  2717. static const char *const be_name[] = {
  2718. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2719. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2720. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2721. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2722. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2723. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2724. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2725. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2726. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2727. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2728. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2729. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2730. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2731. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2732. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2733. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2734. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2735. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2736. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2737. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2738. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2739. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2740. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2741. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2742. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2743. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2744. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2745. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2746. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2747. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2748. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2749. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2750. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2751. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2752. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2753. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2754. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2755. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2756. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2757. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2758. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2759. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2760. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1",
  2761. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2762. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2763. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2764. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2765. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2766. };
  2767. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2768. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2769. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2770. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2771. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2772. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2773. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2774. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2775. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2776. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2777. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2778. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2779. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2780. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2781. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2782. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2783. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2784. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2785. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2786. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2787. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2788. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2789. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2790. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2791. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2792. unsigned int channels,
  2793. unsigned int items, const char *const names[])
  2794. {
  2795. if (uinfo->value.enumerated.item >= items)
  2796. uinfo->value.enumerated.item = items - 1;
  2797. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2798. sizeof(uinfo->value.enumerated.name),
  2799. "ALSA: too long item name '%s'\n",
  2800. names[uinfo->value.enumerated.item]);
  2801. strlcpy(uinfo->value.enumerated.name,
  2802. names[uinfo->value.enumerated.item],
  2803. sizeof(uinfo->value.enumerated.name));
  2804. return 0;
  2805. }
  2806. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2807. struct snd_ctl_elem_info *uinfo)
  2808. {
  2809. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2810. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2811. uinfo->count = 1;
  2812. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2813. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2814. return 0;
  2815. }
  2816. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2817. struct snd_ctl_elem_value *ucontrol)
  2818. {
  2819. u16 fe_id = 0;
  2820. fe_id = ((struct soc_enum *)
  2821. kcontrol->private_value)->shift_l;
  2822. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2823. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2824. return -EINVAL;
  2825. }
  2826. pr_debug("%s: FE %d %s\n", __func__,
  2827. fe_id,
  2828. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2829. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2830. return 0;
  2831. }
  2832. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2833. struct snd_ctl_elem_value *ucontrol)
  2834. {
  2835. u16 fe_id = 0;
  2836. fe_id = ((struct soc_enum *)
  2837. kcontrol->private_value)->shift_l;
  2838. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2839. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2840. return -EINVAL;
  2841. }
  2842. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2843. pr_debug("%s: %s FE %d\n", __func__,
  2844. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2845. fe_id);
  2846. return 0;
  2847. }
  2848. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2849. struct snd_ctl_elem_info *uinfo)
  2850. {
  2851. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2852. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2853. uinfo->count = 1;
  2854. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2855. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2856. return 0;
  2857. }
  2858. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2859. struct snd_ctl_elem_value *ucontrol)
  2860. {
  2861. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2862. u16 fe_id = 0, in_ch = 0;
  2863. fe_id = e->shift_l;
  2864. in_ch = e->shift_r;
  2865. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2866. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2867. return -EINVAL;
  2868. }
  2869. if (in_ch >= ADM_MAX_CHANNELS) {
  2870. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2871. return -EINVAL;
  2872. }
  2873. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2874. return 1;
  2875. }
  2876. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2877. struct snd_ctl_elem_value *ucontrol)
  2878. {
  2879. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2880. u16 fe_id = 0, in_ch = 0;
  2881. fe_id = e->shift_l;
  2882. in_ch = e->shift_r;
  2883. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2884. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2885. return -EINVAL;
  2886. }
  2887. if (in_ch >= ADM_MAX_CHANNELS) {
  2888. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2889. return -EINVAL;
  2890. }
  2891. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2892. return 1;
  2893. }
  2894. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2895. struct snd_ctl_elem_info *uinfo)
  2896. {
  2897. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2898. uinfo->count = ADM_MAX_CHANNELS;
  2899. uinfo->value.integer.min = 0;
  2900. uinfo->value.integer.max = WEIGHT_0_DB;
  2901. return 0;
  2902. }
  2903. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2904. struct snd_ctl_elem_value *ucontrol)
  2905. {
  2906. u16 fe_id = 0, out_ch = 0;
  2907. int i, weight;
  2908. fe_id = ((struct soc_multi_mixer_control *)
  2909. kcontrol->private_value)->shift;
  2910. out_ch = ((struct soc_multi_mixer_control *)
  2911. kcontrol->private_value)->rshift;
  2912. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2913. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2914. return -EINVAL;
  2915. }
  2916. if (out_ch >= ADM_MAX_CHANNELS) {
  2917. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2918. return -EINVAL;
  2919. }
  2920. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2921. __func__, fe_id,
  2922. ucontrol->value.integer.value[0],
  2923. ucontrol->value.integer.value[1],
  2924. ucontrol->value.integer.value[2],
  2925. ucontrol->value.integer.value[3],
  2926. ucontrol->value.integer.value[4],
  2927. ucontrol->value.integer.value[5],
  2928. ucontrol->value.integer.value[6],
  2929. ucontrol->value.integer.value[7]);
  2930. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2931. weight = ucontrol->value.integer.value[i];
  2932. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2933. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2934. __func__, fe_id, out_ch, i,
  2935. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2936. }
  2937. return 0;
  2938. }
  2939. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2940. struct snd_ctl_elem_value *ucontrol)
  2941. {
  2942. u16 fe_id = 0, out_ch = 0;
  2943. int i;
  2944. fe_id = ((struct soc_multi_mixer_control *)
  2945. kcontrol->private_value)->shift;
  2946. out_ch = ((struct soc_multi_mixer_control *)
  2947. kcontrol->private_value)->rshift;
  2948. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2949. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2950. return -EINVAL;
  2951. }
  2952. if (out_ch >= ADM_MAX_CHANNELS) {
  2953. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2954. return -EINVAL;
  2955. }
  2956. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2957. ucontrol->value.integer.value[i] =
  2958. channel_mixer[fe_id].channel_weight[out_ch][i];
  2959. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2960. __func__, fe_id,
  2961. ucontrol->value.integer.value[0],
  2962. ucontrol->value.integer.value[1],
  2963. ucontrol->value.integer.value[2],
  2964. ucontrol->value.integer.value[3],
  2965. ucontrol->value.integer.value[4],
  2966. ucontrol->value.integer.value[5],
  2967. ucontrol->value.integer.value[6],
  2968. ucontrol->value.integer.value[7]);
  2969. return 0;
  2970. }
  2971. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2972. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2973. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2974. msm_pcm_get_channel_rule_index,
  2975. msm_pcm_put_channel_rule_index),
  2976. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2977. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2978. msm_pcm_get_channel_rule_index,
  2979. msm_pcm_put_channel_rule_index),
  2980. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2981. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2982. msm_pcm_get_channel_rule_index,
  2983. msm_pcm_put_channel_rule_index),
  2984. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2985. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2986. msm_pcm_get_channel_rule_index,
  2987. msm_pcm_put_channel_rule_index),
  2988. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2989. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2990. msm_pcm_get_channel_rule_index,
  2991. msm_pcm_put_channel_rule_index),
  2992. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2993. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2994. msm_pcm_get_channel_rule_index,
  2995. msm_pcm_put_channel_rule_index),
  2996. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2997. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2998. msm_pcm_get_out_chs,
  2999. msm_pcm_put_out_chs),
  3000. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3001. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3002. msm_pcm_get_out_chs,
  3003. msm_pcm_put_out_chs),
  3004. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3005. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3006. msm_pcm_get_out_chs,
  3007. msm_pcm_put_out_chs),
  3008. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3009. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3010. msm_pcm_get_out_chs,
  3011. msm_pcm_put_out_chs),
  3012. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3013. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3014. msm_pcm_get_out_chs,
  3015. msm_pcm_put_out_chs),
  3016. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3017. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3018. msm_pcm_get_out_chs,
  3019. msm_pcm_put_out_chs),
  3020. {
  3021. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3022. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3023. .name = "MultiMedia1 Channel Mixer",
  3024. .info = msm_pcm_channel_mixer_info,
  3025. .get = msm_pcm_channel_mixer_get,
  3026. .put = msm_pcm_channel_mixer_put,
  3027. .private_value = (unsigned long)&(mm1_channel_mux)
  3028. },
  3029. {
  3030. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3031. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3032. .name = "MultiMedia2 Channel Mixer",
  3033. .info = msm_pcm_channel_mixer_info,
  3034. .get = msm_pcm_channel_mixer_get,
  3035. .put = msm_pcm_channel_mixer_put,
  3036. .private_value = (unsigned long)&(mm2_channel_mux)
  3037. },
  3038. {
  3039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3041. .name = "MultiMedia3 Channel Mixer",
  3042. .info = msm_pcm_channel_mixer_info,
  3043. .get = msm_pcm_channel_mixer_get,
  3044. .put = msm_pcm_channel_mixer_put,
  3045. .private_value = (unsigned long)&(mm3_channel_mux)
  3046. },
  3047. {
  3048. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3049. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3050. .name = "MultiMedia4 Channel Mixer",
  3051. .info = msm_pcm_channel_mixer_info,
  3052. .get = msm_pcm_channel_mixer_get,
  3053. .put = msm_pcm_channel_mixer_put,
  3054. .private_value = (unsigned long)&(mm4_channel_mux)
  3055. },
  3056. {
  3057. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3058. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3059. .name = "MultiMedia1 Output Channel1",
  3060. .info = msm_pcm_channel_weight_info,
  3061. .get = msm_pcm_channel_weight_get,
  3062. .put = msm_pcm_channel_weight_put,
  3063. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3064. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3065. },
  3066. {
  3067. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3068. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3069. .name = "MultiMedia1 Output Channel2",
  3070. .info = msm_pcm_channel_weight_info,
  3071. .get = msm_pcm_channel_weight_get,
  3072. .put = msm_pcm_channel_weight_put,
  3073. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3074. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3075. },
  3076. {
  3077. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3078. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3079. .name = "MultiMedia1 Output Channel3",
  3080. .info = msm_pcm_channel_weight_info,
  3081. .get = msm_pcm_channel_weight_get,
  3082. .put = msm_pcm_channel_weight_put,
  3083. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3084. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3085. },
  3086. {
  3087. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3088. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3089. .name = "MultiMedia1 Output Channel4",
  3090. .info = msm_pcm_channel_weight_info,
  3091. .get = msm_pcm_channel_weight_get,
  3092. .put = msm_pcm_channel_weight_put,
  3093. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3094. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3095. },
  3096. {
  3097. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3098. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3099. .name = "MultiMedia1 Output Channel5",
  3100. .info = msm_pcm_channel_weight_info,
  3101. .get = msm_pcm_channel_weight_get,
  3102. .put = msm_pcm_channel_weight_put,
  3103. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3104. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3105. },
  3106. {
  3107. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3108. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3109. .name = "MultiMedia1 Output Channel6",
  3110. .info = msm_pcm_channel_weight_info,
  3111. .get = msm_pcm_channel_weight_get,
  3112. .put = msm_pcm_channel_weight_put,
  3113. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3114. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3115. },
  3116. {
  3117. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3118. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3119. .name = "MultiMedia1 Output Channel7",
  3120. .info = msm_pcm_channel_weight_info,
  3121. .get = msm_pcm_channel_weight_get,
  3122. .put = msm_pcm_channel_weight_put,
  3123. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3124. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3125. },
  3126. {
  3127. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3128. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3129. .name = "MultiMedia1 Output Channel8",
  3130. .info = msm_pcm_channel_weight_info,
  3131. .get = msm_pcm_channel_weight_get,
  3132. .put = msm_pcm_channel_weight_put,
  3133. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3134. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3135. },
  3136. {
  3137. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3138. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3139. .name = "MultiMedia2 Output Channel1",
  3140. .info = msm_pcm_channel_weight_info,
  3141. .get = msm_pcm_channel_weight_get,
  3142. .put = msm_pcm_channel_weight_put,
  3143. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3144. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3145. },
  3146. {
  3147. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3148. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3149. .name = "MultiMedia2 Output Channel2",
  3150. .info = msm_pcm_channel_weight_info,
  3151. .get = msm_pcm_channel_weight_get,
  3152. .put = msm_pcm_channel_weight_put,
  3153. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3154. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3155. },
  3156. {
  3157. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3158. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3159. .name = "MultiMedia2 Output Channel3",
  3160. .info = msm_pcm_channel_weight_info,
  3161. .get = msm_pcm_channel_weight_get,
  3162. .put = msm_pcm_channel_weight_put,
  3163. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3164. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3165. },
  3166. {
  3167. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3168. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3169. .name = "MultiMedia3 Output Channel1",
  3170. .info = msm_pcm_channel_weight_info,
  3171. .get = msm_pcm_channel_weight_get,
  3172. .put = msm_pcm_channel_weight_put,
  3173. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3174. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3175. },
  3176. {
  3177. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3178. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3179. .name = "MultiMedia3 Output Channel2",
  3180. .info = msm_pcm_channel_weight_info,
  3181. .get = msm_pcm_channel_weight_get,
  3182. .put = msm_pcm_channel_weight_put,
  3183. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3184. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3185. },
  3186. {
  3187. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3188. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3189. .name = "MultiMedia1 Channel1",
  3190. .info = msm_pcm_channel_input_be_info,
  3191. .get = msm_pcm_channel_input_be_get,
  3192. .put = msm_pcm_channel_input_be_put,
  3193. .private_value = (unsigned long)&(mm1_ch1_enum)
  3194. },
  3195. {
  3196. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3197. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3198. .name = "MultiMedia1 Channel2",
  3199. .info = msm_pcm_channel_input_be_info,
  3200. .get = msm_pcm_channel_input_be_get,
  3201. .put = msm_pcm_channel_input_be_put,
  3202. .private_value = (unsigned long)&(mm1_ch2_enum)
  3203. },
  3204. {
  3205. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3206. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3207. .name = "MultiMedia1 Channel3",
  3208. .info = msm_pcm_channel_input_be_info,
  3209. .get = msm_pcm_channel_input_be_get,
  3210. .put = msm_pcm_channel_input_be_put,
  3211. .private_value = (unsigned long)&(mm1_ch3_enum)
  3212. },
  3213. {
  3214. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3215. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3216. .name = "MultiMedia1 Channel4",
  3217. .info = msm_pcm_channel_input_be_info,
  3218. .get = msm_pcm_channel_input_be_get,
  3219. .put = msm_pcm_channel_input_be_put,
  3220. .private_value = (unsigned long)&(mm1_ch4_enum)
  3221. },
  3222. {
  3223. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3224. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3225. .name = "MultiMedia1 Channel5",
  3226. .info = msm_pcm_channel_input_be_info,
  3227. .get = msm_pcm_channel_input_be_get,
  3228. .put = msm_pcm_channel_input_be_put,
  3229. .private_value = (unsigned long)&(mm1_ch5_enum)
  3230. },
  3231. {
  3232. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3233. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3234. .name = "MultiMedia1 Channel6",
  3235. .info = msm_pcm_channel_input_be_info,
  3236. .get = msm_pcm_channel_input_be_get,
  3237. .put = msm_pcm_channel_input_be_put,
  3238. .private_value = (unsigned long)&(mm1_ch6_enum)
  3239. },
  3240. {
  3241. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3242. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3243. .name = "MultiMedia1 Channel7",
  3244. .info = msm_pcm_channel_input_be_info,
  3245. .get = msm_pcm_channel_input_be_get,
  3246. .put = msm_pcm_channel_input_be_put,
  3247. .private_value = (unsigned long)&(mm1_ch7_enum)
  3248. },
  3249. {
  3250. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3251. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3252. .name = "MultiMedia1 Channel8",
  3253. .info = msm_pcm_channel_input_be_info,
  3254. .get = msm_pcm_channel_input_be_get,
  3255. .put = msm_pcm_channel_input_be_put,
  3256. .private_value = (unsigned long)&(mm1_ch8_enum)
  3257. },
  3258. };
  3259. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3260. struct snd_ctl_elem_value *ucontrol)
  3261. {
  3262. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3263. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3264. ucontrol->value.integer.value[0]);
  3265. return 0;
  3266. }
  3267. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3268. struct snd_ctl_elem_value *ucontrol)
  3269. {
  3270. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3271. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3272. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3273. return 0;
  3274. }
  3275. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3276. "Four", "Five", "Six", "Seven", "Eight"};
  3277. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3278. struct snd_ctl_elem_value *ucontrol)
  3279. {
  3280. switch (msm_ec_ref_bit_format) {
  3281. case SNDRV_PCM_FORMAT_S24_LE:
  3282. ucontrol->value.integer.value[0] = 2;
  3283. break;
  3284. case SNDRV_PCM_FORMAT_S16_LE:
  3285. ucontrol->value.integer.value[0] = 1;
  3286. break;
  3287. default:
  3288. ucontrol->value.integer.value[0] = 0;
  3289. break;
  3290. }
  3291. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3292. __func__, ucontrol->value.integer.value[0]);
  3293. return 0;
  3294. }
  3295. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3296. struct snd_ctl_elem_value *ucontrol)
  3297. {
  3298. u16 bit_width = 0;
  3299. switch (ucontrol->value.integer.value[0]) {
  3300. case 2:
  3301. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3302. break;
  3303. case 1:
  3304. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3305. break;
  3306. default:
  3307. msm_ec_ref_bit_format = 0;
  3308. break;
  3309. }
  3310. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3311. bit_width = 16;
  3312. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3313. bit_width = 24;
  3314. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3315. __func__, msm_ec_ref_bit_format);
  3316. adm_ec_ref_rx_bit_width(bit_width);
  3317. return 0;
  3318. }
  3319. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3320. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3321. struct snd_ctl_elem_value *ucontrol)
  3322. {
  3323. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3324. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3325. __func__, ucontrol->value.integer.value[0]);
  3326. return 0;
  3327. }
  3328. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3329. struct snd_ctl_elem_value *ucontrol)
  3330. {
  3331. switch (ucontrol->value.integer.value[0]) {
  3332. case 0:
  3333. msm_ec_ref_sampling_rate = 0;
  3334. break;
  3335. case 1:
  3336. msm_ec_ref_sampling_rate = 8000;
  3337. break;
  3338. case 2:
  3339. msm_ec_ref_sampling_rate = 16000;
  3340. break;
  3341. case 3:
  3342. msm_ec_ref_sampling_rate = 32000;
  3343. break;
  3344. case 4:
  3345. msm_ec_ref_sampling_rate = 44100;
  3346. break;
  3347. case 5:
  3348. msm_ec_ref_sampling_rate = 48000;
  3349. break;
  3350. case 6:
  3351. msm_ec_ref_sampling_rate = 96000;
  3352. break;
  3353. case 7:
  3354. msm_ec_ref_sampling_rate = 192000;
  3355. break;
  3356. case 8:
  3357. msm_ec_ref_sampling_rate = 384000;
  3358. break;
  3359. default:
  3360. msm_ec_ref_sampling_rate = 48000;
  3361. break;
  3362. }
  3363. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3364. __func__, msm_ec_ref_sampling_rate);
  3365. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3366. return 0;
  3367. }
  3368. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3369. "32000", "44100", "48000", "96000", "192000", "384000"};
  3370. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3371. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3372. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3373. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3374. };
  3375. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3376. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3377. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3378. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3379. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3380. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3381. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3382. };
  3383. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3384. struct snd_ctl_elem_value *ucontrol)
  3385. {
  3386. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3387. mutex_lock(&routing_lock);
  3388. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3389. mutex_unlock(&routing_lock);
  3390. return 0;
  3391. }
  3392. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3393. struct snd_ctl_elem_value *ucontrol)
  3394. {
  3395. int ec_ref_port_id;
  3396. struct snd_soc_dapm_widget *widget =
  3397. snd_soc_dapm_kcontrol_widget(kcontrol);
  3398. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3399. struct snd_soc_dapm_update *update = NULL;
  3400. mutex_lock(&routing_lock);
  3401. switch (ucontrol->value.integer.value[0]) {
  3402. case 0:
  3403. msm_route_ec_ref_rx = 0;
  3404. ec_ref_port_id = AFE_PORT_INVALID;
  3405. break;
  3406. case 1:
  3407. msm_route_ec_ref_rx = 1;
  3408. ec_ref_port_id = SLIMBUS_0_RX;
  3409. break;
  3410. case 2:
  3411. msm_route_ec_ref_rx = 2;
  3412. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3413. break;
  3414. case 3:
  3415. msm_route_ec_ref_rx = 3;
  3416. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3417. break;
  3418. case 4:
  3419. msm_route_ec_ref_rx = 4;
  3420. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3421. break;
  3422. case 5:
  3423. msm_route_ec_ref_rx = 5;
  3424. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3425. break;
  3426. case 6:
  3427. msm_route_ec_ref_rx = 6;
  3428. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3429. break;
  3430. case 7:
  3431. msm_route_ec_ref_rx = 7;
  3432. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3433. break;
  3434. case 9:
  3435. msm_route_ec_ref_rx = 9;
  3436. ec_ref_port_id = SLIMBUS_5_RX;
  3437. break;
  3438. case 10:
  3439. msm_route_ec_ref_rx = 10;
  3440. ec_ref_port_id = SLIMBUS_1_TX;
  3441. break;
  3442. case 11:
  3443. msm_route_ec_ref_rx = 11;
  3444. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3445. break;
  3446. case 12:
  3447. msm_route_ec_ref_rx = 12;
  3448. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3449. break;
  3450. case 13:
  3451. msm_route_ec_ref_rx = 13;
  3452. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3453. break;
  3454. case 14:
  3455. msm_route_ec_ref_rx = 14;
  3456. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3457. break;
  3458. case 15:
  3459. msm_route_ec_ref_rx = 15;
  3460. ec_ref_port_id = SLIMBUS_6_RX;
  3461. break;
  3462. case 16:
  3463. msm_route_ec_ref_rx = 16;
  3464. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3465. break;
  3466. case 17:
  3467. msm_route_ec_ref_rx = 17;
  3468. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3469. break;
  3470. case 18:
  3471. msm_route_ec_ref_rx = 18;
  3472. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3473. break;
  3474. case 19:
  3475. msm_route_ec_ref_rx = 19;
  3476. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3477. break;
  3478. case 20:
  3479. msm_route_ec_ref_rx = 20;
  3480. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3481. break;
  3482. case 21:
  3483. msm_route_ec_ref_rx = 21;
  3484. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3485. break;
  3486. case 22:
  3487. msm_route_ec_ref_rx = 22;
  3488. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3489. break;
  3490. case 23:
  3491. msm_route_ec_ref_rx = 23;
  3492. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3493. break;
  3494. case 24:
  3495. msm_route_ec_ref_rx = 24;
  3496. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3497. break;
  3498. case 25:
  3499. msm_route_ec_ref_rx = 25;
  3500. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3501. break;
  3502. case 26:
  3503. msm_route_ec_ref_rx = 26;
  3504. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3505. break;
  3506. case 27:
  3507. msm_route_ec_ref_rx = 27;
  3508. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3509. break;
  3510. case 28:
  3511. msm_route_ec_ref_rx = 28;
  3512. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3513. break;
  3514. case 29:
  3515. msm_route_ec_ref_rx = 29;
  3516. ec_ref_port_id = SLIMBUS_7_RX;
  3517. break;
  3518. case 30:
  3519. msm_route_ec_ref_rx = 30;
  3520. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3521. break;
  3522. case 31:
  3523. msm_route_ec_ref_rx = 31;
  3524. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3525. break;
  3526. case 32:
  3527. msm_route_ec_ref_rx = 32;
  3528. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3529. break;
  3530. case 33:
  3531. msm_route_ec_ref_rx = 33;
  3532. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3533. break;
  3534. case 34:
  3535. msm_route_ec_ref_rx = 34;
  3536. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3537. break;
  3538. default:
  3539. msm_route_ec_ref_rx = 0; /* NONE */
  3540. pr_err("%s EC ref rx %ld not valid\n",
  3541. __func__, ucontrol->value.integer.value[0]);
  3542. ec_ref_port_id = AFE_PORT_INVALID;
  3543. break;
  3544. }
  3545. adm_ec_ref_rx_id(ec_ref_port_id);
  3546. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3547. __func__, msm_route_ec_ref_rx);
  3548. mutex_unlock(&routing_lock);
  3549. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3550. msm_route_ec_ref_rx, e, update);
  3551. return 0;
  3552. }
  3553. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3554. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3555. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3556. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3557. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3558. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3559. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3560. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3561. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3562. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3563. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0",
  3564. };
  3565. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3566. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3567. };
  3568. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3569. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3570. msm_route_ec_ref_rx_enum[0],
  3571. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3572. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3573. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3574. msm_route_ec_ref_rx_enum[0],
  3575. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3576. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3577. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3578. msm_route_ec_ref_rx_enum[0],
  3579. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3580. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3581. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3582. msm_route_ec_ref_rx_enum[0],
  3583. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3584. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3585. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3586. msm_route_ec_ref_rx_enum[0],
  3587. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3588. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3589. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3590. msm_route_ec_ref_rx_enum[0],
  3591. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3592. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3593. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3594. msm_route_ec_ref_rx_enum[0],
  3595. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3596. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3597. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3598. msm_route_ec_ref_rx_enum[0],
  3599. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3600. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3601. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3602. msm_route_ec_ref_rx_enum[0],
  3603. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3604. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3605. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3606. msm_route_ec_ref_rx_enum[0],
  3607. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3608. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3609. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3610. msm_route_ec_ref_rx_enum[0],
  3611. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3612. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3613. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3614. msm_route_ec_ref_rx_enum[0],
  3615. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3616. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3617. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3618. msm_route_ec_ref_rx_enum[0],
  3619. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3620. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3621. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3622. msm_route_ec_ref_rx_enum[0],
  3623. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3624. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3625. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3626. msm_route_ec_ref_rx_enum[0],
  3627. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3628. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3629. struct snd_ctl_elem_value *ucontrol)
  3630. {
  3631. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3632. mutex_lock(&routing_lock);
  3633. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3634. mutex_unlock(&routing_lock);
  3635. return 0;
  3636. }
  3637. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3638. struct snd_ctl_elem_value *ucontrol)
  3639. {
  3640. struct snd_soc_dapm_widget *widget =
  3641. snd_soc_dapm_kcontrol_widget(kcontrol);
  3642. int mux = ucontrol->value.enumerated.item[0];
  3643. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3644. int ret = 1;
  3645. bool state = true;
  3646. uint16_t ext_ec_ref_port_id;
  3647. struct snd_soc_dapm_update *update = NULL;
  3648. if (mux >= e->items) {
  3649. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3650. return -EINVAL;
  3651. }
  3652. mutex_lock(&routing_lock);
  3653. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3654. switch (msm_route_ext_ec_ref) {
  3655. case EXT_EC_REF_PRI_MI2S_TX:
  3656. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3657. break;
  3658. case EXT_EC_REF_SEC_MI2S_TX:
  3659. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3660. break;
  3661. case EXT_EC_REF_TERT_MI2S_TX:
  3662. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3663. break;
  3664. case EXT_EC_REF_QUAT_MI2S_TX:
  3665. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3666. break;
  3667. case EXT_EC_REF_QUIN_MI2S_TX:
  3668. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3669. break;
  3670. case EXT_EC_REF_SLIM_1_TX:
  3671. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3672. break;
  3673. case EXT_EC_REF_SEC_TDM_TX:
  3674. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3675. break;
  3676. case EXT_EC_REF_NONE:
  3677. default:
  3678. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3679. state = false;
  3680. break;
  3681. }
  3682. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3683. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3684. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3685. mutex_unlock(&routing_lock);
  3686. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3687. update);
  3688. } else {
  3689. ret = -EINVAL;
  3690. mutex_unlock(&routing_lock);
  3691. }
  3692. return ret;
  3693. }
  3694. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3695. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3696. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3697. "SLIM_1_TX", "SEC_TDM_TX"};
  3698. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3699. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3700. };
  3701. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3702. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3703. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3704. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3705. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3706. MSM_BACKEND_DAI_PRI_I2S_RX,
  3707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3708. msm_routing_put_audio_mixer),
  3709. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3710. MSM_BACKEND_DAI_PRI_I2S_RX,
  3711. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3712. msm_routing_put_audio_mixer),
  3713. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3714. MSM_BACKEND_DAI_PRI_I2S_RX,
  3715. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3716. msm_routing_put_audio_mixer),
  3717. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3718. MSM_BACKEND_DAI_PRI_I2S_RX,
  3719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3720. msm_routing_put_audio_mixer),
  3721. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3722. MSM_BACKEND_DAI_PRI_I2S_RX,
  3723. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3724. msm_routing_put_audio_mixer),
  3725. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3726. MSM_BACKEND_DAI_PRI_I2S_RX,
  3727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3728. msm_routing_put_audio_mixer),
  3729. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3730. MSM_BACKEND_DAI_PRI_I2S_RX,
  3731. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3732. msm_routing_put_audio_mixer),
  3733. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3734. MSM_BACKEND_DAI_PRI_I2S_RX,
  3735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3736. msm_routing_put_audio_mixer),
  3737. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3738. MSM_BACKEND_DAI_PRI_I2S_RX,
  3739. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3740. msm_routing_put_audio_mixer),
  3741. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3742. MSM_BACKEND_DAI_PRI_I2S_RX,
  3743. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3744. msm_routing_put_audio_mixer),
  3745. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3746. MSM_BACKEND_DAI_PRI_I2S_RX,
  3747. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3748. msm_routing_put_audio_mixer),
  3749. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3750. MSM_BACKEND_DAI_PRI_I2S_RX,
  3751. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3752. msm_routing_put_audio_mixer),
  3753. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3754. MSM_BACKEND_DAI_PRI_I2S_RX,
  3755. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3756. msm_routing_put_audio_mixer),
  3757. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3758. MSM_BACKEND_DAI_PRI_I2S_RX,
  3759. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3760. msm_routing_put_audio_mixer),
  3761. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3762. MSM_BACKEND_DAI_PRI_I2S_RX,
  3763. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3764. msm_routing_put_audio_mixer),
  3765. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3766. MSM_BACKEND_DAI_PRI_I2S_RX,
  3767. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3768. msm_routing_put_audio_mixer),
  3769. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3770. MSM_BACKEND_DAI_PRI_I2S_RX,
  3771. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3772. msm_routing_put_audio_mixer),
  3773. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3774. MSM_BACKEND_DAI_PRI_I2S_RX,
  3775. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3776. msm_routing_put_audio_mixer),
  3777. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3778. MSM_BACKEND_DAI_PRI_I2S_RX,
  3779. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3780. msm_routing_put_audio_mixer),
  3781. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3782. MSM_BACKEND_DAI_PRI_I2S_RX,
  3783. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3784. msm_routing_put_audio_mixer),
  3785. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3786. MSM_BACKEND_DAI_PRI_I2S_RX,
  3787. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3788. msm_routing_put_audio_mixer),
  3789. };
  3790. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3791. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3792. MSM_BACKEND_DAI_SEC_I2S_RX,
  3793. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3794. msm_routing_put_audio_mixer),
  3795. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3796. MSM_BACKEND_DAI_SEC_I2S_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3800. MSM_BACKEND_DAI_SEC_I2S_RX,
  3801. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3802. msm_routing_put_audio_mixer),
  3803. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3804. MSM_BACKEND_DAI_SEC_I2S_RX,
  3805. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3806. msm_routing_put_audio_mixer),
  3807. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3808. MSM_BACKEND_DAI_SEC_I2S_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3812. MSM_BACKEND_DAI_SEC_I2S_RX,
  3813. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3814. msm_routing_put_audio_mixer),
  3815. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3816. MSM_BACKEND_DAI_SEC_I2S_RX,
  3817. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3818. msm_routing_put_audio_mixer),
  3819. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3820. MSM_BACKEND_DAI_SEC_I2S_RX,
  3821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3822. msm_routing_put_audio_mixer),
  3823. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3824. MSM_BACKEND_DAI_SEC_I2S_RX,
  3825. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3826. msm_routing_put_audio_mixer),
  3827. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3828. MSM_BACKEND_DAI_SEC_I2S_RX,
  3829. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3830. msm_routing_put_audio_mixer),
  3831. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3832. MSM_BACKEND_DAI_SEC_I2S_RX,
  3833. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3834. msm_routing_put_audio_mixer),
  3835. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3836. MSM_BACKEND_DAI_SEC_I2S_RX,
  3837. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3838. msm_routing_put_audio_mixer),
  3839. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3840. MSM_BACKEND_DAI_SEC_I2S_RX,
  3841. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3842. msm_routing_put_audio_mixer),
  3843. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3844. MSM_BACKEND_DAI_SEC_I2S_RX,
  3845. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3846. msm_routing_put_audio_mixer),
  3847. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3848. MSM_BACKEND_DAI_SEC_I2S_RX,
  3849. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3850. msm_routing_put_audio_mixer),
  3851. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3852. MSM_BACKEND_DAI_SEC_I2S_RX,
  3853. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3854. msm_routing_put_audio_mixer),
  3855. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3856. MSM_BACKEND_DAI_SEC_I2S_RX,
  3857. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3858. msm_routing_put_audio_mixer),
  3859. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3860. MSM_BACKEND_DAI_SEC_I2S_RX,
  3861. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3862. msm_routing_put_audio_mixer),
  3863. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3864. MSM_BACKEND_DAI_SEC_I2S_RX,
  3865. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3866. msm_routing_put_audio_mixer),
  3867. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3868. MSM_BACKEND_DAI_SEC_I2S_RX,
  3869. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3870. msm_routing_put_audio_mixer),
  3871. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3872. MSM_BACKEND_DAI_SEC_I2S_RX,
  3873. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3874. msm_routing_put_audio_mixer),
  3875. };
  3876. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  3877. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3878. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3879. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3880. msm_routing_put_audio_mixer),
  3881. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3882. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3883. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3884. msm_routing_put_audio_mixer),
  3885. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3886. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3887. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3888. msm_routing_put_audio_mixer),
  3889. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3890. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3891. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3892. msm_routing_put_audio_mixer),
  3893. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3894. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3895. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3896. msm_routing_put_audio_mixer),
  3897. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3898. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3899. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3900. msm_routing_put_audio_mixer),
  3901. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3902. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3903. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3904. msm_routing_put_audio_mixer),
  3905. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3906. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3907. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3908. msm_routing_put_audio_mixer),
  3909. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3910. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3911. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3912. msm_routing_put_audio_mixer),
  3913. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3914. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3915. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3916. msm_routing_put_audio_mixer),
  3917. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3918. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3919. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3920. msm_routing_put_audio_mixer),
  3921. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3922. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3923. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3924. msm_routing_put_audio_mixer),
  3925. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3926. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3927. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3928. msm_routing_put_audio_mixer),
  3929. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3930. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3931. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3932. msm_routing_put_audio_mixer),
  3933. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3934. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3935. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3936. msm_routing_put_audio_mixer),
  3937. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3938. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3939. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3940. msm_routing_put_audio_mixer),
  3941. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3942. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3943. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3944. msm_routing_put_audio_mixer),
  3945. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3946. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3947. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3948. msm_routing_put_audio_mixer),
  3949. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3950. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3951. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3952. msm_routing_put_audio_mixer),
  3953. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3954. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3955. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3956. msm_routing_put_audio_mixer),
  3957. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3958. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3959. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3960. msm_routing_put_audio_mixer),
  3961. };
  3962. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  3963. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3964. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3965. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3966. msm_routing_put_audio_mixer),
  3967. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3968. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3969. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3970. msm_routing_put_audio_mixer),
  3971. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3972. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3973. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3974. msm_routing_put_audio_mixer),
  3975. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3976. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3977. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3978. msm_routing_put_audio_mixer),
  3979. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3980. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3981. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3982. msm_routing_put_audio_mixer),
  3983. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3984. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3985. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3986. msm_routing_put_audio_mixer),
  3987. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3988. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3989. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3990. msm_routing_put_audio_mixer),
  3991. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3992. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3993. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3994. msm_routing_put_audio_mixer),
  3995. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3996. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3997. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3998. msm_routing_put_audio_mixer),
  3999. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4000. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4001. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4002. msm_routing_put_audio_mixer),
  4003. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4004. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4005. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4006. msm_routing_put_audio_mixer),
  4007. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4008. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4009. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4010. msm_routing_put_audio_mixer),
  4011. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4012. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4013. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4014. msm_routing_put_audio_mixer),
  4015. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4016. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4017. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4018. msm_routing_put_audio_mixer),
  4019. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4020. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4021. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4022. msm_routing_put_audio_mixer),
  4023. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4024. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4025. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4026. msm_routing_put_audio_mixer),
  4027. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4028. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4029. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4030. msm_routing_put_audio_mixer),
  4031. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4032. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4033. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4034. msm_routing_put_audio_mixer),
  4035. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4036. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4037. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4038. msm_routing_put_audio_mixer),
  4039. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4040. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4041. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4042. msm_routing_put_audio_mixer),
  4043. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4044. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4045. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4046. msm_routing_put_audio_mixer),
  4047. };
  4048. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4049. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4050. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4051. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4052. msm_routing_put_audio_mixer),
  4053. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4054. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4055. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4056. msm_routing_put_audio_mixer),
  4057. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4058. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4059. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4060. msm_routing_put_audio_mixer),
  4061. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4062. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4063. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4064. msm_routing_put_audio_mixer),
  4065. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4066. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4067. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4068. msm_routing_put_audio_mixer),
  4069. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4070. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4071. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4072. msm_routing_put_audio_mixer),
  4073. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4074. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4075. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4076. msm_routing_put_audio_mixer),
  4077. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4078. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4082. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4083. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4084. msm_routing_put_audio_mixer),
  4085. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4086. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4087. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4088. msm_routing_put_audio_mixer),
  4089. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4090. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4091. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4092. msm_routing_put_audio_mixer),
  4093. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4094. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4095. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4096. msm_routing_put_audio_mixer),
  4097. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4098. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4099. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4100. msm_routing_put_audio_mixer),
  4101. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4102. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4103. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4104. msm_routing_put_audio_mixer),
  4105. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4106. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4107. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4108. msm_routing_put_audio_mixer),
  4109. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4110. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4111. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4112. msm_routing_put_audio_mixer),
  4113. };
  4114. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4115. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4116. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4118. msm_routing_put_audio_mixer),
  4119. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4120. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4124. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4126. msm_routing_put_audio_mixer),
  4127. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4128. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4129. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4130. msm_routing_put_audio_mixer),
  4131. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4132. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4133. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4134. msm_routing_put_audio_mixer),
  4135. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4136. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4138. msm_routing_put_audio_mixer),
  4139. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4140. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4141. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4142. msm_routing_put_audio_mixer),
  4143. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4144. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4145. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4146. msm_routing_put_audio_mixer),
  4147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4148. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4150. msm_routing_put_audio_mixer),
  4151. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4152. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4154. msm_routing_put_audio_mixer),
  4155. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4156. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4157. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4158. msm_routing_put_audio_mixer),
  4159. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4160. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4161. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4162. msm_routing_put_audio_mixer),
  4163. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4164. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4165. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4166. msm_routing_put_audio_mixer),
  4167. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4168. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4169. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4170. msm_routing_put_audio_mixer),
  4171. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4172. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4173. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4174. msm_routing_put_audio_mixer),
  4175. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4176. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4178. msm_routing_put_audio_mixer),
  4179. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4180. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4181. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4182. msm_routing_put_audio_mixer),
  4183. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4184. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4185. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4186. msm_routing_put_audio_mixer),
  4187. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4188. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4189. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4190. msm_routing_put_audio_mixer),
  4191. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4192. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4193. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4194. msm_routing_put_audio_mixer),
  4195. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4196. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4197. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4198. msm_routing_put_audio_mixer),
  4199. };
  4200. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4201. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4202. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4206. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4207. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4208. msm_routing_put_audio_mixer),
  4209. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4210. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4211. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4212. msm_routing_put_audio_mixer),
  4213. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4214. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4215. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4216. msm_routing_put_audio_mixer),
  4217. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4218. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4219. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4220. msm_routing_put_audio_mixer),
  4221. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4222. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4223. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4224. msm_routing_put_audio_mixer),
  4225. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4226. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4227. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4228. msm_routing_put_audio_mixer),
  4229. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4230. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4231. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4232. msm_routing_put_audio_mixer),
  4233. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4234. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4235. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4236. msm_routing_put_audio_mixer),
  4237. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4238. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4239. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4240. msm_routing_put_audio_mixer),
  4241. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4242. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4243. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4244. msm_routing_put_audio_mixer),
  4245. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4246. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4247. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4248. msm_routing_put_audio_mixer),
  4249. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4250. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4251. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4252. msm_routing_put_audio_mixer),
  4253. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4254. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4255. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4256. msm_routing_put_audio_mixer),
  4257. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4258. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4259. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4260. msm_routing_put_audio_mixer),
  4261. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4262. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4263. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4264. msm_routing_put_audio_mixer),
  4265. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4266. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4267. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4268. msm_routing_put_audio_mixer),
  4269. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4270. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4271. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4272. msm_routing_put_audio_mixer),
  4273. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4274. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4275. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4276. msm_routing_put_audio_mixer),
  4277. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4278. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4279. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4280. msm_routing_put_audio_mixer),
  4281. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4282. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4283. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4284. msm_routing_put_audio_mixer),
  4285. };
  4286. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4287. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4288. MSM_BACKEND_DAI_MI2S_RX,
  4289. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4290. msm_routing_put_audio_mixer),
  4291. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4292. MSM_BACKEND_DAI_MI2S_RX,
  4293. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4294. msm_routing_put_audio_mixer),
  4295. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4296. MSM_BACKEND_DAI_MI2S_RX,
  4297. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4298. msm_routing_put_audio_mixer),
  4299. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4300. MSM_BACKEND_DAI_MI2S_RX,
  4301. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4302. msm_routing_put_audio_mixer),
  4303. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4304. MSM_BACKEND_DAI_MI2S_RX,
  4305. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4306. msm_routing_put_audio_mixer),
  4307. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4308. MSM_BACKEND_DAI_MI2S_RX,
  4309. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4310. msm_routing_put_audio_mixer),
  4311. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4312. MSM_BACKEND_DAI_MI2S_RX,
  4313. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4314. msm_routing_put_audio_mixer),
  4315. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4316. MSM_BACKEND_DAI_MI2S_RX,
  4317. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4318. msm_routing_put_audio_mixer),
  4319. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4320. MSM_BACKEND_DAI_MI2S_RX,
  4321. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4322. msm_routing_put_audio_mixer),
  4323. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4324. MSM_BACKEND_DAI_MI2S_RX,
  4325. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4326. msm_routing_put_audio_mixer),
  4327. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4328. MSM_BACKEND_DAI_MI2S_RX,
  4329. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4330. msm_routing_put_audio_mixer),
  4331. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4332. MSM_BACKEND_DAI_MI2S_RX,
  4333. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4334. msm_routing_put_audio_mixer),
  4335. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4336. MSM_BACKEND_DAI_MI2S_RX,
  4337. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4338. msm_routing_put_audio_mixer),
  4339. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4340. MSM_BACKEND_DAI_MI2S_RX,
  4341. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4342. msm_routing_put_audio_mixer),
  4343. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4344. MSM_BACKEND_DAI_MI2S_RX,
  4345. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4346. msm_routing_put_audio_mixer),
  4347. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4348. MSM_BACKEND_DAI_MI2S_RX,
  4349. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4350. msm_routing_put_audio_mixer),
  4351. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4352. MSM_BACKEND_DAI_MI2S_RX,
  4353. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4354. msm_routing_put_audio_mixer),
  4355. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4356. MSM_BACKEND_DAI_MI2S_RX,
  4357. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4358. msm_routing_put_audio_mixer),
  4359. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4360. MSM_BACKEND_DAI_MI2S_RX,
  4361. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4362. msm_routing_put_audio_mixer),
  4363. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4364. MSM_BACKEND_DAI_MI2S_RX,
  4365. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4366. msm_routing_put_audio_mixer),
  4367. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4368. MSM_BACKEND_DAI_MI2S_RX,
  4369. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4370. msm_routing_put_audio_mixer),
  4371. };
  4372. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4373. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4374. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4375. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4376. msm_routing_put_audio_mixer),
  4377. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4378. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4379. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4380. msm_routing_put_audio_mixer),
  4381. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4382. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4383. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4384. msm_routing_put_audio_mixer),
  4385. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4386. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4387. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4388. msm_routing_put_audio_mixer),
  4389. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4390. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4391. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4392. msm_routing_put_audio_mixer),
  4393. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4394. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4395. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4396. msm_routing_put_audio_mixer),
  4397. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4398. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4399. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4400. msm_routing_put_audio_mixer),
  4401. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4402. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4403. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4404. msm_routing_put_audio_mixer),
  4405. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4406. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4407. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4408. msm_routing_put_audio_mixer),
  4409. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4410. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4411. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4412. msm_routing_put_audio_mixer),
  4413. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4414. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4415. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4416. msm_routing_put_audio_mixer),
  4417. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4418. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4419. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4420. msm_routing_put_audio_mixer),
  4421. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4422. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4423. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4424. msm_routing_put_audio_mixer),
  4425. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4426. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4427. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4428. msm_routing_put_audio_mixer),
  4429. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4430. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4431. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4432. msm_routing_put_audio_mixer),
  4433. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4434. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4435. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4436. msm_routing_put_audio_mixer),
  4437. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4438. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4439. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4440. msm_routing_put_audio_mixer),
  4441. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4442. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4443. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4444. msm_routing_put_audio_mixer),
  4445. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4446. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4447. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4448. msm_routing_put_audio_mixer),
  4449. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4450. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4451. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4452. msm_routing_put_audio_mixer),
  4453. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4454. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4455. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4456. msm_routing_put_audio_mixer),
  4457. };
  4458. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4459. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4460. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4461. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4462. msm_routing_put_audio_mixer),
  4463. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4464. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4465. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4466. msm_routing_put_audio_mixer),
  4467. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4468. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4469. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4470. msm_routing_put_audio_mixer),
  4471. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4472. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4473. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4474. msm_routing_put_audio_mixer),
  4475. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4476. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4477. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4478. msm_routing_put_audio_mixer),
  4479. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4480. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4484. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4485. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4486. msm_routing_put_audio_mixer),
  4487. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4488. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4489. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4490. msm_routing_put_audio_mixer),
  4491. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4492. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4493. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4494. msm_routing_put_audio_mixer),
  4495. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4496. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4497. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4498. msm_routing_put_audio_mixer),
  4499. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4500. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4501. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4502. msm_routing_put_audio_mixer),
  4503. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4504. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4505. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4506. msm_routing_put_audio_mixer),
  4507. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4508. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4509. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4510. msm_routing_put_audio_mixer),
  4511. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4512. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4513. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4514. msm_routing_put_audio_mixer),
  4515. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4516. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4517. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4518. msm_routing_put_audio_mixer),
  4519. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4520. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4521. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4522. msm_routing_put_audio_mixer),
  4523. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4524. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4525. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4526. msm_routing_put_audio_mixer),
  4527. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4528. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4529. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4530. msm_routing_put_audio_mixer),
  4531. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4532. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4533. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4534. msm_routing_put_audio_mixer),
  4535. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4536. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4537. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4538. msm_routing_put_audio_mixer),
  4539. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4540. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4541. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4542. msm_routing_put_audio_mixer),
  4543. };
  4544. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4545. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4546. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4547. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4548. msm_routing_put_audio_mixer),
  4549. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4550. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4551. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4552. msm_routing_put_audio_mixer),
  4553. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4554. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4555. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4556. msm_routing_put_audio_mixer),
  4557. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4558. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4559. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4560. msm_routing_put_audio_mixer),
  4561. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4562. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4563. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4564. msm_routing_put_audio_mixer),
  4565. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4566. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4570. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4571. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4572. msm_routing_put_audio_mixer),
  4573. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4574. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4575. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4576. msm_routing_put_audio_mixer),
  4577. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4578. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4579. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4580. msm_routing_put_audio_mixer),
  4581. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4582. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4583. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4584. msm_routing_put_audio_mixer),
  4585. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4586. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4587. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4588. msm_routing_put_audio_mixer),
  4589. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4590. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4591. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4592. msm_routing_put_audio_mixer),
  4593. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4594. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4595. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4596. msm_routing_put_audio_mixer),
  4597. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4598. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4602. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4603. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4604. msm_routing_put_audio_mixer),
  4605. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4606. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4607. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4608. msm_routing_put_audio_mixer),
  4609. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4610. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4611. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4612. msm_routing_put_audio_mixer),
  4613. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4614. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4615. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4616. msm_routing_put_audio_mixer),
  4617. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4618. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4619. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4620. msm_routing_put_audio_mixer),
  4621. };
  4622. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4623. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4624. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4625. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4626. msm_routing_put_audio_mixer),
  4627. };
  4628. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4629. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4630. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4631. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4632. msm_routing_put_audio_mixer),
  4633. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4634. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4635. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4636. msm_routing_put_audio_mixer),
  4637. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4638. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4639. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4640. msm_routing_put_audio_mixer),
  4641. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4642. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4643. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4644. msm_routing_put_audio_mixer),
  4645. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4646. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4647. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4648. msm_routing_put_audio_mixer),
  4649. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4650. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4651. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4652. msm_routing_put_audio_mixer),
  4653. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4654. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4655. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4656. msm_routing_put_audio_mixer),
  4657. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4658. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4659. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4660. msm_routing_put_audio_mixer),
  4661. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4662. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4663. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4664. msm_routing_put_audio_mixer),
  4665. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4666. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4667. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4668. msm_routing_put_audio_mixer),
  4669. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4670. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4671. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4672. msm_routing_put_audio_mixer),
  4673. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4674. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4675. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4676. msm_routing_put_audio_mixer),
  4677. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4678. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4679. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4680. msm_routing_put_audio_mixer),
  4681. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4682. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4683. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4684. msm_routing_put_audio_mixer),
  4685. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4686. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4687. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4688. msm_routing_put_audio_mixer),
  4689. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4690. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4691. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4692. msm_routing_put_audio_mixer),
  4693. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4694. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4695. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4696. msm_routing_put_audio_mixer),
  4697. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4698. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4699. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4700. msm_routing_put_audio_mixer),
  4701. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4702. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4703. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4704. msm_routing_put_audio_mixer),
  4705. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4706. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4707. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4708. msm_routing_put_audio_mixer),
  4709. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4710. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4711. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4712. msm_routing_put_audio_mixer),
  4713. };
  4714. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4715. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4716. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4717. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4718. msm_routing_put_audio_mixer),
  4719. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4720. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4721. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4722. msm_routing_put_audio_mixer),
  4723. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4724. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4725. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4726. msm_routing_put_audio_mixer),
  4727. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4728. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4729. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4730. msm_routing_put_audio_mixer),
  4731. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4732. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4733. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4734. msm_routing_put_audio_mixer),
  4735. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4736. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4737. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4738. msm_routing_put_audio_mixer),
  4739. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4740. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4744. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4745. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4746. msm_routing_put_audio_mixer),
  4747. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4748. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4749. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4750. msm_routing_put_audio_mixer),
  4751. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4752. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4753. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4754. msm_routing_put_audio_mixer),
  4755. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4756. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4757. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4758. msm_routing_put_audio_mixer),
  4759. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4760. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4761. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4762. msm_routing_put_audio_mixer),
  4763. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4764. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4765. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4766. msm_routing_put_audio_mixer),
  4767. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4768. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4769. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4770. msm_routing_put_audio_mixer),
  4771. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4772. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4776. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4777. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4778. msm_routing_put_audio_mixer),
  4779. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4780. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4781. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4782. msm_routing_put_audio_mixer),
  4783. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4784. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4788. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4789. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4790. msm_routing_put_audio_mixer),
  4791. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4792. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4793. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4794. msm_routing_put_audio_mixer),
  4795. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4796. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4797. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4798. msm_routing_put_audio_mixer),
  4799. };
  4800. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4801. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4802. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4803. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4804. msm_routing_put_audio_mixer),
  4805. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4806. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4807. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4808. msm_routing_put_audio_mixer),
  4809. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4810. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4811. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4812. msm_routing_put_audio_mixer),
  4813. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4814. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4815. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4816. msm_routing_put_audio_mixer),
  4817. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4818. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4819. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4820. msm_routing_put_audio_mixer),
  4821. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4822. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4823. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4824. msm_routing_put_audio_mixer),
  4825. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4826. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4827. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4828. msm_routing_put_audio_mixer),
  4829. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4830. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4831. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4832. msm_routing_put_audio_mixer),
  4833. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4834. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4835. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4836. msm_routing_put_audio_mixer),
  4837. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4838. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4839. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4840. msm_routing_put_audio_mixer),
  4841. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4842. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4843. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4844. msm_routing_put_audio_mixer),
  4845. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4846. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4847. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4848. msm_routing_put_audio_mixer),
  4849. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4850. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4851. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4852. msm_routing_put_audio_mixer),
  4853. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4854. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4855. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4856. msm_routing_put_audio_mixer),
  4857. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4858. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4862. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4863. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4864. msm_routing_put_audio_mixer),
  4865. };
  4866. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4867. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4868. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4869. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4870. msm_routing_put_audio_mixer),
  4871. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4872. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4873. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4874. msm_routing_put_audio_mixer),
  4875. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4876. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4877. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4878. msm_routing_put_audio_mixer),
  4879. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4880. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4881. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4882. msm_routing_put_audio_mixer),
  4883. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4884. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4885. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4886. msm_routing_put_audio_mixer),
  4887. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4888. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4889. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4890. msm_routing_put_audio_mixer),
  4891. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4892. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4893. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4894. msm_routing_put_audio_mixer),
  4895. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4896. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4897. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4898. msm_routing_put_audio_mixer),
  4899. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4900. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4901. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4902. msm_routing_put_audio_mixer),
  4903. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4904. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4905. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4906. msm_routing_put_audio_mixer),
  4907. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4908. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4909. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4910. msm_routing_put_audio_mixer),
  4911. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4912. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4913. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4914. msm_routing_put_audio_mixer),
  4915. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4916. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4917. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4918. msm_routing_put_audio_mixer),
  4919. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4920. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4921. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4922. msm_routing_put_audio_mixer),
  4923. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4924. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4925. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4926. msm_routing_put_audio_mixer),
  4927. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4928. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. };
  4932. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4933. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4934. MSM_BACKEND_DAI_HDMI_RX,
  4935. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4936. msm_routing_put_audio_mixer),
  4937. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4938. MSM_BACKEND_DAI_HDMI_RX,
  4939. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4940. msm_routing_put_audio_mixer),
  4941. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4942. MSM_BACKEND_DAI_HDMI_RX,
  4943. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4944. msm_routing_put_audio_mixer),
  4945. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4946. MSM_BACKEND_DAI_HDMI_RX,
  4947. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4948. msm_routing_put_audio_mixer),
  4949. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4950. MSM_BACKEND_DAI_HDMI_RX,
  4951. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4952. msm_routing_put_audio_mixer),
  4953. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4954. MSM_BACKEND_DAI_HDMI_RX,
  4955. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4956. msm_routing_put_audio_mixer),
  4957. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4958. MSM_BACKEND_DAI_HDMI_RX,
  4959. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4960. msm_routing_put_audio_mixer),
  4961. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4962. MSM_BACKEND_DAI_HDMI_RX,
  4963. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4964. msm_routing_put_audio_mixer),
  4965. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4966. MSM_BACKEND_DAI_HDMI_RX,
  4967. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4968. msm_routing_put_audio_mixer),
  4969. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4970. MSM_BACKEND_DAI_HDMI_RX,
  4971. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4972. msm_routing_put_audio_mixer),
  4973. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4974. MSM_BACKEND_DAI_HDMI_RX,
  4975. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4976. msm_routing_put_audio_mixer),
  4977. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4978. MSM_BACKEND_DAI_HDMI_RX,
  4979. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4980. msm_routing_put_audio_mixer),
  4981. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4982. MSM_BACKEND_DAI_HDMI_RX,
  4983. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4984. msm_routing_put_audio_mixer),
  4985. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4986. MSM_BACKEND_DAI_HDMI_RX,
  4987. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4988. msm_routing_put_audio_mixer),
  4989. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4990. MSM_BACKEND_DAI_HDMI_RX,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4994. MSM_BACKEND_DAI_HDMI_RX,
  4995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4996. msm_routing_put_audio_mixer),
  4997. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4998. MSM_BACKEND_DAI_HDMI_RX,
  4999. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5000. msm_routing_put_audio_mixer),
  5001. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5002. MSM_BACKEND_DAI_HDMI_RX,
  5003. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5004. msm_routing_put_audio_mixer),
  5005. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5006. MSM_BACKEND_DAI_HDMI_RX,
  5007. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5008. msm_routing_put_audio_mixer),
  5009. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5010. MSM_BACKEND_DAI_HDMI_RX,
  5011. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5012. msm_routing_put_audio_mixer),
  5013. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5014. MSM_BACKEND_DAI_HDMI_RX,
  5015. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5016. msm_routing_put_audio_mixer),
  5017. };
  5018. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5019. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5020. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5021. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5022. msm_routing_put_audio_mixer),
  5023. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5024. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5025. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5026. msm_routing_put_audio_mixer),
  5027. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5028. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5032. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5033. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5034. msm_routing_put_audio_mixer),
  5035. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5036. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5037. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5038. msm_routing_put_audio_mixer),
  5039. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5040. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5044. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5045. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5046. msm_routing_put_audio_mixer),
  5047. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5048. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5049. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5050. msm_routing_put_audio_mixer),
  5051. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5052. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5056. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5057. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5058. msm_routing_put_audio_mixer),
  5059. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5060. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5061. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5062. msm_routing_put_audio_mixer),
  5063. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5064. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5068. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5069. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5070. msm_routing_put_audio_mixer),
  5071. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5072. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5076. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5077. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5078. msm_routing_put_audio_mixer),
  5079. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5080. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5081. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5082. msm_routing_put_audio_mixer),
  5083. };
  5084. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5085. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5086. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5087. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5088. msm_routing_put_audio_mixer),
  5089. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5090. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5091. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5092. msm_routing_put_audio_mixer),
  5093. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5094. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5095. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5096. msm_routing_put_audio_mixer),
  5097. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5098. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5099. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5100. msm_routing_put_audio_mixer),
  5101. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5102. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5103. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5104. msm_routing_put_audio_mixer),
  5105. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5106. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5107. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5108. msm_routing_put_audio_mixer),
  5109. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5110. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5111. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5112. msm_routing_put_audio_mixer),
  5113. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5114. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5118. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5122. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5126. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5127. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5128. msm_routing_put_audio_mixer),
  5129. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5130. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5134. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5138. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5139. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5140. msm_routing_put_audio_mixer),
  5141. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5142. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5146. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. };
  5150. /* incall music delivery mixer */
  5151. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5152. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5153. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5154. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5155. msm_routing_put_audio_mixer),
  5156. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5157. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5158. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5159. msm_routing_put_audio_mixer),
  5160. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5161. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5162. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5163. msm_routing_put_audio_mixer),
  5164. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5165. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5166. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5167. msm_routing_put_audio_mixer),
  5168. };
  5169. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5170. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5171. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5172. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5173. msm_routing_put_audio_mixer),
  5174. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5175. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5176. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5177. msm_routing_put_audio_mixer),
  5178. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5179. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5180. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5181. msm_routing_put_audio_mixer),
  5182. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5183. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5184. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5185. msm_routing_put_audio_mixer),
  5186. };
  5187. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5188. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5189. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5190. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5191. msm_routing_put_audio_mixer),
  5192. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5193. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5197. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5198. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5199. msm_routing_put_audio_mixer),
  5200. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5201. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5202. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5203. msm_routing_put_audio_mixer),
  5204. };
  5205. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5206. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5207. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5208. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5209. msm_routing_put_audio_mixer),
  5210. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5211. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5212. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5213. msm_routing_put_audio_mixer),
  5214. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5215. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5216. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5217. msm_routing_put_audio_mixer),
  5218. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5219. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5220. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5221. msm_routing_put_audio_mixer),
  5222. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5223. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5224. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5225. msm_routing_put_audio_mixer),
  5226. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5227. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5228. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5229. msm_routing_put_audio_mixer),
  5230. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5231. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5232. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5233. msm_routing_put_audio_mixer),
  5234. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5235. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5236. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5237. msm_routing_put_audio_mixer),
  5238. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5239. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5240. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5241. msm_routing_put_audio_mixer),
  5242. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5243. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5251. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5259. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5263. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5264. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5265. msm_routing_put_audio_mixer),
  5266. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. };
  5271. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5272. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5273. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5274. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5275. msm_routing_put_audio_mixer),
  5276. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5277. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5278. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5279. msm_routing_put_audio_mixer),
  5280. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5281. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5283. msm_routing_put_audio_mixer),
  5284. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5285. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5286. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5287. msm_routing_put_audio_mixer),
  5288. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5289. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5290. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5291. msm_routing_put_audio_mixer),
  5292. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5293. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5294. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5295. msm_routing_put_audio_mixer),
  5296. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5297. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5298. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5299. msm_routing_put_audio_mixer),
  5300. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5301. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5302. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5303. msm_routing_put_audio_mixer),
  5304. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5305. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5309. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5313. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5314. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5315. msm_routing_put_audio_mixer),
  5316. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5317. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. };
  5337. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5338. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5359. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5363. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5364. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5365. msm_routing_put_audio_mixer),
  5366. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. };
  5403. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5404. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. };
  5469. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5470. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. };
  5535. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5536. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. };
  5601. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5602. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5603. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5607. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5609. msm_routing_put_audio_mixer),
  5610. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5611. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5615. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5619. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5623. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5624. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5625. msm_routing_put_audio_mixer),
  5626. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5627. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5631. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5635. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. };
  5667. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  5668. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5669. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5670. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5671. msm_routing_put_audio_mixer),
  5672. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5673. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5674. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5675. msm_routing_put_audio_mixer),
  5676. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5677. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5681. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5685. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5686. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5687. msm_routing_put_audio_mixer),
  5688. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5689. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5693. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5697. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5698. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5699. msm_routing_put_audio_mixer),
  5700. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5701. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5702. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5703. msm_routing_put_audio_mixer),
  5704. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5705. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5709. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. };
  5733. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  5734. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5735. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5736. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5737. msm_routing_put_audio_mixer),
  5738. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5739. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5740. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5741. msm_routing_put_audio_mixer),
  5742. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5743. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5747. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5748. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5749. msm_routing_put_audio_mixer),
  5750. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5751. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5753. msm_routing_put_audio_mixer),
  5754. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5755. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5756. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5757. msm_routing_put_audio_mixer),
  5758. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5759. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5760. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5761. msm_routing_put_audio_mixer),
  5762. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5763. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5764. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5765. msm_routing_put_audio_mixer),
  5766. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5767. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5771. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5772. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5773. msm_routing_put_audio_mixer),
  5774. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5775. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5779. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5780. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5781. msm_routing_put_audio_mixer),
  5782. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5783. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5784. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5785. msm_routing_put_audio_mixer),
  5786. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5787. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. };
  5799. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  5800. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5805. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5809. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5813. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5817. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5821. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5825. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5829. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5830. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5831. msm_routing_put_audio_mixer),
  5832. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5833. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5834. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5835. msm_routing_put_audio_mixer),
  5836. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5837. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5841. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5842. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5843. msm_routing_put_audio_mixer),
  5844. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5845. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5846. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5847. msm_routing_put_audio_mixer),
  5848. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5849. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5850. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5851. msm_routing_put_audio_mixer),
  5852. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5853. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5854. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5855. msm_routing_put_audio_mixer),
  5856. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5858. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5859. msm_routing_put_audio_mixer),
  5860. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. };
  5865. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  5866. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5899. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5903. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5904. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5905. msm_routing_put_audio_mixer),
  5906. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5907. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5911. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5915. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5916. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5917. msm_routing_put_audio_mixer),
  5918. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5919. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5923. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5924. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5925. msm_routing_put_audio_mixer),
  5926. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5927. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. };
  5931. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  5932. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5993. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. };
  5997. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5998. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_USB_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_USB_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_USB_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_USB_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_USB_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_USB_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_USB_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_USB_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_USB_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_USB_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_USB_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_USB_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_USB_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_USB_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_USB_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_USB_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. };
  6063. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6064. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6065. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6069. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6070. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6071. msm_routing_put_audio_mixer),
  6072. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6073. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. };
  6149. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6150. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6151. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6155. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6159. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6163. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6167. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. };
  6215. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6216. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6217. MSM_BACKEND_DAI_INT_FM_RX,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6221. MSM_BACKEND_DAI_INT_FM_RX,
  6222. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6223. msm_routing_put_audio_mixer),
  6224. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6225. MSM_BACKEND_DAI_INT_FM_RX,
  6226. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6227. msm_routing_put_audio_mixer),
  6228. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6229. MSM_BACKEND_DAI_INT_FM_RX,
  6230. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6231. msm_routing_put_audio_mixer),
  6232. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6233. MSM_BACKEND_DAI_INT_FM_RX,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6237. MSM_BACKEND_DAI_INT_FM_RX,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6241. MSM_BACKEND_DAI_INT_FM_RX,
  6242. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6243. msm_routing_put_audio_mixer),
  6244. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6245. MSM_BACKEND_DAI_INT_FM_RX,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_INT_FM_RX,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_INT_FM_RX,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6257. MSM_BACKEND_DAI_INT_FM_RX,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6261. MSM_BACKEND_DAI_INT_FM_RX,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6265. MSM_BACKEND_DAI_INT_FM_RX,
  6266. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6267. msm_routing_put_audio_mixer),
  6268. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6269. MSM_BACKEND_DAI_INT_FM_RX,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_INT_FM_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_INT_FM_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_INT_FM_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_INT_FM_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_INT_FM_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_INT_FM_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_INT_FM_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. };
  6301. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6302. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6303. MSM_BACKEND_DAI_AFE_PCM_RX,
  6304. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6305. msm_routing_put_audio_mixer),
  6306. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6307. MSM_BACKEND_DAI_AFE_PCM_RX,
  6308. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6309. msm_routing_put_audio_mixer),
  6310. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6311. MSM_BACKEND_DAI_AFE_PCM_RX,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6315. MSM_BACKEND_DAI_AFE_PCM_RX,
  6316. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6317. msm_routing_put_audio_mixer),
  6318. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6319. MSM_BACKEND_DAI_AFE_PCM_RX,
  6320. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6321. msm_routing_put_audio_mixer),
  6322. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6323. MSM_BACKEND_DAI_AFE_PCM_RX,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6327. MSM_BACKEND_DAI_AFE_PCM_RX,
  6328. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6329. msm_routing_put_audio_mixer),
  6330. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6331. MSM_BACKEND_DAI_AFE_PCM_RX,
  6332. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6333. msm_routing_put_audio_mixer),
  6334. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6335. MSM_BACKEND_DAI_AFE_PCM_RX,
  6336. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6337. msm_routing_put_audio_mixer),
  6338. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6339. MSM_BACKEND_DAI_AFE_PCM_RX,
  6340. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6341. msm_routing_put_audio_mixer),
  6342. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6343. MSM_BACKEND_DAI_AFE_PCM_RX,
  6344. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6345. msm_routing_put_audio_mixer),
  6346. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6347. MSM_BACKEND_DAI_AFE_PCM_RX,
  6348. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6349. msm_routing_put_audio_mixer),
  6350. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6351. MSM_BACKEND_DAI_AFE_PCM_RX,
  6352. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6353. msm_routing_put_audio_mixer),
  6354. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6355. MSM_BACKEND_DAI_AFE_PCM_RX,
  6356. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6357. msm_routing_put_audio_mixer),
  6358. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6359. MSM_BACKEND_DAI_AFE_PCM_RX,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6363. MSM_BACKEND_DAI_AFE_PCM_RX,
  6364. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6365. msm_routing_put_audio_mixer),
  6366. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6367. MSM_BACKEND_DAI_AFE_PCM_RX,
  6368. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6369. msm_routing_put_audio_mixer),
  6370. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6371. MSM_BACKEND_DAI_AFE_PCM_RX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6375. MSM_BACKEND_DAI_AFE_PCM_RX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_AFE_PCM_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_AFE_PCM_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. };
  6387. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6388. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_AUXPCM_RX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_AUXPCM_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_AUXPCM_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6401. MSM_BACKEND_DAI_AUXPCM_RX,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6405. MSM_BACKEND_DAI_AUXPCM_RX,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_AUXPCM_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_AUXPCM_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6417. MSM_BACKEND_DAI_AUXPCM_RX,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6421. MSM_BACKEND_DAI_AUXPCM_RX,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6425. MSM_BACKEND_DAI_AUXPCM_RX,
  6426. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6427. msm_routing_put_audio_mixer),
  6428. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6429. MSM_BACKEND_DAI_AUXPCM_RX,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6433. MSM_BACKEND_DAI_AUXPCM_RX,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_AUXPCM_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_AUXPCM_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_AUXPCM_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_AUXPCM_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_AUXPCM_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6457. MSM_BACKEND_DAI_AUXPCM_RX,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_AUXPCM_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_AUXPCM_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_AUXPCM_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_AUXPCM_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. };
  6477. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6478. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6499. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6511. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6512. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6513. msm_routing_put_audio_mixer),
  6514. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6515. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6519. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6523. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. };
  6567. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  6568. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6569. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6573. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6577. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6578. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6579. msm_routing_put_audio_mixer),
  6580. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6581. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6582. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6583. msm_routing_put_audio_mixer),
  6584. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6585. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6589. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6590. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6591. msm_routing_put_audio_mixer),
  6592. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6593. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6597. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6605. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. };
  6633. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  6634. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6643. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6647. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. };
  6699. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6700. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6713. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6714. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6715. msm_routing_put_audio_mixer),
  6716. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. };
  6765. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  6766. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6767. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6768. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6769. msm_routing_put_audio_mixer),
  6770. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6771. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. };
  6835. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  6836. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6837. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6841. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6842. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6843. msm_routing_put_audio_mixer),
  6844. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6845. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6846. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6847. msm_routing_put_audio_mixer),
  6848. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6849. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6853. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6854. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6855. msm_routing_put_audio_mixer),
  6856. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6857. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6877. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. };
  6905. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  6906. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6907. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6911. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6915. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6916. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6917. msm_routing_put_audio_mixer),
  6918. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6919. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6920. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6921. msm_routing_put_audio_mixer),
  6922. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6923. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6927. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6928. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6929. msm_routing_put_audio_mixer),
  6930. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6931. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6935. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6939. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6940. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6941. msm_routing_put_audio_mixer),
  6942. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6943. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6944. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6945. msm_routing_put_audio_mixer),
  6946. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6947. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6951. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6952. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6953. msm_routing_put_audio_mixer),
  6954. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6955. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. };
  6975. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  6976. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6977. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6981. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6985. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6989. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6993. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6997. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7005. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7009. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7013. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7017. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7018. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7019. msm_routing_put_audio_mixer),
  7020. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7021. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7025. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7026. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7027. msm_routing_put_audio_mixer),
  7028. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. };
  7045. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7046. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7083. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7087. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7088. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7089. msm_routing_put_audio_mixer),
  7090. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7091. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7092. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7093. msm_routing_put_audio_mixer),
  7094. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7095. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7096. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7097. msm_routing_put_audio_mixer),
  7098. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7099. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7103. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7104. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7105. msm_routing_put_audio_mixer),
  7106. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7107. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7108. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7109. msm_routing_put_audio_mixer),
  7110. };
  7111. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7112. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7145. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7149. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7153. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7154. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7155. msm_routing_put_audio_mixer),
  7156. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7157. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7158. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7159. msm_routing_put_audio_mixer),
  7160. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7161. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7162. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7163. msm_routing_put_audio_mixer),
  7164. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7165. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7166. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7167. msm_routing_put_audio_mixer),
  7168. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7169. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7170. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7171. msm_routing_put_audio_mixer),
  7172. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7173. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7174. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7175. msm_routing_put_audio_mixer),
  7176. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7177. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7178. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7179. msm_routing_put_audio_mixer),
  7180. };
  7181. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7182. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7183. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7184. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7185. msm_routing_put_audio_mixer),
  7186. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7187. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7191. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7223. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7227. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7228. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7229. msm_routing_put_audio_mixer),
  7230. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7231. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7232. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7233. msm_routing_put_audio_mixer),
  7234. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7235. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7239. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7240. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7241. msm_routing_put_audio_mixer),
  7242. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7243. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7244. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7245. msm_routing_put_audio_mixer),
  7246. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7247. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. };
  7251. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7252. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7253. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7257. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7258. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7259. msm_routing_put_audio_mixer),
  7260. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7261. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7265. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7297. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7301. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7302. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7303. msm_routing_put_audio_mixer),
  7304. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7305. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7309. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7313. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7314. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7315. msm_routing_put_audio_mixer),
  7316. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7317. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7318. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7319. msm_routing_put_audio_mixer),
  7320. };
  7321. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7322. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7323. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7324. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7325. msm_routing_put_audio_mixer),
  7326. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7327. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7328. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7329. msm_routing_put_audio_mixer),
  7330. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7331. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7332. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7333. msm_routing_put_audio_mixer),
  7334. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7335. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7336. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7337. msm_routing_put_audio_mixer),
  7338. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7339. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7343. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7359. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7360. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7361. msm_routing_put_audio_mixer),
  7362. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7363. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7367. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7368. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7369. msm_routing_put_audio_mixer),
  7370. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7371. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7372. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7373. msm_routing_put_audio_mixer),
  7374. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7375. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7376. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7377. msm_routing_put_audio_mixer),
  7378. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7379. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7380. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7381. msm_routing_put_audio_mixer),
  7382. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7383. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7384. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7385. msm_routing_put_audio_mixer),
  7386. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7387. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7388. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7389. msm_routing_put_audio_mixer),
  7390. };
  7391. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7392. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7393. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7394. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7395. msm_routing_put_audio_mixer),
  7396. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7397. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7401. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7402. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7403. msm_routing_put_audio_mixer),
  7404. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7405. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7409. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7413. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7421. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7422. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7423. msm_routing_put_audio_mixer),
  7424. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7429. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7433. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7434. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7435. msm_routing_put_audio_mixer),
  7436. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7437. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7438. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7439. msm_routing_put_audio_mixer),
  7440. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7441. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7442. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7443. msm_routing_put_audio_mixer),
  7444. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7445. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7446. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7447. msm_routing_put_audio_mixer),
  7448. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7449. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7453. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7454. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7455. msm_routing_put_audio_mixer),
  7456. };
  7457. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7458. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7459. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7460. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7461. msm_routing_put_audio_mixer),
  7462. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7463. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7464. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7465. msm_routing_put_audio_mixer),
  7466. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7467. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7491. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7499. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7503. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7504. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7505. msm_routing_put_audio_mixer),
  7506. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7507. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7508. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7509. msm_routing_put_audio_mixer),
  7510. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7511. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7515. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7519. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7523. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7524. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7525. msm_routing_put_audio_mixer),
  7526. };
  7527. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  7528. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7529. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7530. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7531. msm_routing_put_audio_mixer),
  7532. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7533. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7534. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7535. msm_routing_put_audio_mixer),
  7536. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7550. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7551. msm_routing_put_audio_mixer),
  7552. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7554. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7555. msm_routing_put_audio_mixer),
  7556. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7569. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7570. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7571. msm_routing_put_audio_mixer),
  7572. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7573. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7574. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7575. msm_routing_put_audio_mixer),
  7576. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7577. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7578. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7579. msm_routing_put_audio_mixer),
  7580. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7581. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7582. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7583. msm_routing_put_audio_mixer),
  7584. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7585. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7586. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7587. msm_routing_put_audio_mixer),
  7588. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7589. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7590. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7591. msm_routing_put_audio_mixer),
  7592. };
  7593. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  7594. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7595. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7596. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7597. msm_routing_put_audio_mixer),
  7598. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7599. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7600. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7601. msm_routing_put_audio_mixer),
  7602. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7603. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7604. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7605. msm_routing_put_audio_mixer),
  7606. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7639. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7640. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7641. msm_routing_put_audio_mixer),
  7642. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7643. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7644. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7645. msm_routing_put_audio_mixer),
  7646. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7647. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7648. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7649. msm_routing_put_audio_mixer),
  7650. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7651. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7652. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7653. msm_routing_put_audio_mixer),
  7654. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7655. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7656. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7657. msm_routing_put_audio_mixer),
  7658. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7659. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7660. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7661. msm_routing_put_audio_mixer),
  7662. };
  7663. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  7664. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7665. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7666. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7667. msm_routing_put_audio_mixer),
  7668. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7669. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7670. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7671. msm_routing_put_audio_mixer),
  7672. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7673. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7674. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7675. msm_routing_put_audio_mixer),
  7676. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7705. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7706. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7707. msm_routing_put_audio_mixer),
  7708. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7709. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7710. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7711. msm_routing_put_audio_mixer),
  7712. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7713. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7714. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7715. msm_routing_put_audio_mixer),
  7716. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7717. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7718. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7719. msm_routing_put_audio_mixer),
  7720. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7721. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7722. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7723. msm_routing_put_audio_mixer),
  7724. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7725. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7726. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7727. msm_routing_put_audio_mixer),
  7728. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7729. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7730. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7731. msm_routing_put_audio_mixer),
  7732. };
  7733. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7734. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7735. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7736. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7737. msm_routing_put_audio_mixer),
  7738. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7739. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7740. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7741. msm_routing_put_audio_mixer),
  7742. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7743. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7744. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7745. msm_routing_put_audio_mixer),
  7746. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7747. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7748. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7749. msm_routing_put_audio_mixer),
  7750. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7779. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7780. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7781. msm_routing_put_audio_mixer),
  7782. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7783. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7784. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7785. msm_routing_put_audio_mixer),
  7786. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7787. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7788. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7789. msm_routing_put_audio_mixer),
  7790. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7791. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7792. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7793. msm_routing_put_audio_mixer),
  7794. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7795. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7796. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7797. msm_routing_put_audio_mixer),
  7798. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7799. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7800. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7801. msm_routing_put_audio_mixer),
  7802. };
  7803. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  7804. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7805. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7806. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7807. msm_routing_put_audio_mixer),
  7808. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7809. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7810. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7811. msm_routing_put_audio_mixer),
  7812. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7813. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7814. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7815. msm_routing_put_audio_mixer),
  7816. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7861. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7862. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7863. msm_routing_put_audio_mixer),
  7864. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7865. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7866. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7867. msm_routing_put_audio_mixer),
  7868. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7869. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7870. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7871. msm_routing_put_audio_mixer),
  7872. };
  7873. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  7874. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7875. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7877. msm_routing_put_audio_mixer),
  7878. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7879. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7880. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7881. msm_routing_put_audio_mixer),
  7882. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7883. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7884. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7885. msm_routing_put_audio_mixer),
  7886. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7887. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7888. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7889. msm_routing_put_audio_mixer),
  7890. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7891. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7893. msm_routing_put_audio_mixer),
  7894. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7895. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7896. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7897. msm_routing_put_audio_mixer),
  7898. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7899. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7900. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7901. msm_routing_put_audio_mixer),
  7902. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7903. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7904. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7905. msm_routing_put_audio_mixer),
  7906. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7911. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7912. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7913. msm_routing_put_audio_mixer),
  7914. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7915. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7916. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7917. msm_routing_put_audio_mixer),
  7918. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7919. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7920. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7921. msm_routing_put_audio_mixer),
  7922. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7923. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7924. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7925. msm_routing_put_audio_mixer),
  7926. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7927. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7928. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7929. msm_routing_put_audio_mixer),
  7930. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7931. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7932. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7933. msm_routing_put_audio_mixer),
  7934. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7935. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7936. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7937. msm_routing_put_audio_mixer),
  7938. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7939. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7940. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7941. msm_routing_put_audio_mixer),
  7942. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7943. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7944. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7945. msm_routing_put_audio_mixer),
  7946. };
  7947. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  7948. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7949. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7951. msm_routing_put_audio_mixer),
  7952. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7953. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7954. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7955. msm_routing_put_audio_mixer),
  7956. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7957. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7958. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7959. msm_routing_put_audio_mixer),
  7960. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7961. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7962. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7963. msm_routing_put_audio_mixer),
  7964. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7965. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7966. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7967. msm_routing_put_audio_mixer),
  7968. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7981. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7982. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7983. msm_routing_put_audio_mixer),
  7984. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7985. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7986. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7987. msm_routing_put_audio_mixer),
  7988. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7989. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7990. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7991. msm_routing_put_audio_mixer),
  7992. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7993. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7994. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7995. msm_routing_put_audio_mixer),
  7996. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7997. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7998. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7999. msm_routing_put_audio_mixer),
  8000. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8001. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8002. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8003. msm_routing_put_audio_mixer),
  8004. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8005. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8006. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8007. msm_routing_put_audio_mixer),
  8008. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8009. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8010. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8011. msm_routing_put_audio_mixer),
  8012. };
  8013. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8014. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8015. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8017. msm_routing_put_audio_mixer),
  8018. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8051. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8052. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8053. msm_routing_put_audio_mixer),
  8054. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8055. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8056. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8057. msm_routing_put_audio_mixer),
  8058. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8059. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8060. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8061. msm_routing_put_audio_mixer),
  8062. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8063. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8064. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8065. msm_routing_put_audio_mixer),
  8066. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8067. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8068. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8069. msm_routing_put_audio_mixer),
  8070. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8071. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8072. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8073. msm_routing_put_audio_mixer),
  8074. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8075. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8076. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8077. msm_routing_put_audio_mixer),
  8078. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8079. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8080. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8081. msm_routing_put_audio_mixer),
  8082. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8083. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8084. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8085. msm_routing_put_audio_mixer),
  8086. };
  8087. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8088. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8089. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8091. msm_routing_put_audio_mixer),
  8092. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8093. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8095. msm_routing_put_audio_mixer),
  8096. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8097. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8099. msm_routing_put_audio_mixer),
  8100. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8101. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8102. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8103. msm_routing_put_audio_mixer),
  8104. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8105. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8106. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8107. msm_routing_put_audio_mixer),
  8108. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8121. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8122. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8123. msm_routing_put_audio_mixer),
  8124. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8125. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8126. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8127. msm_routing_put_audio_mixer),
  8128. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8129. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8130. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8131. msm_routing_put_audio_mixer),
  8132. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8133. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8134. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8135. msm_routing_put_audio_mixer),
  8136. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8137. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8138. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8139. msm_routing_put_audio_mixer),
  8140. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8141. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8142. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8143. msm_routing_put_audio_mixer),
  8144. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8145. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8146. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8147. msm_routing_put_audio_mixer),
  8148. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8149. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8151. msm_routing_put_audio_mixer),
  8152. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8153. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8154. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8155. msm_routing_put_audio_mixer),
  8156. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8157. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8158. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8159. msm_routing_put_audio_mixer),
  8160. };
  8161. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8162. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8163. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8164. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8165. msm_routing_put_audio_mixer),
  8166. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8175. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8176. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8177. msm_routing_put_audio_mixer),
  8178. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8179. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8180. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8181. msm_routing_put_audio_mixer),
  8182. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8187. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8188. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8189. msm_routing_put_audio_mixer),
  8190. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8191. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8192. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8193. msm_routing_put_audio_mixer),
  8194. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8195. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8196. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8197. msm_routing_put_audio_mixer),
  8198. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8199. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8200. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8201. msm_routing_put_audio_mixer),
  8202. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8203. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8204. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8205. msm_routing_put_audio_mixer),
  8206. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8207. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8208. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8209. msm_routing_put_audio_mixer),
  8210. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8211. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8212. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8213. msm_routing_put_audio_mixer),
  8214. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8215. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8216. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8217. msm_routing_put_audio_mixer),
  8218. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8219. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8220. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8221. msm_routing_put_audio_mixer),
  8222. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8223. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8224. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8225. msm_routing_put_audio_mixer),
  8226. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8227. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8228. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8229. msm_routing_put_audio_mixer),
  8230. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8231. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8232. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8233. msm_routing_put_audio_mixer),
  8234. };
  8235. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8236. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8265. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8266. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8267. msm_routing_put_audio_mixer),
  8268. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8269. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8270. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8271. msm_routing_put_audio_mixer),
  8272. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8273. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8274. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8275. msm_routing_put_audio_mixer),
  8276. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8277. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8278. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8279. msm_routing_put_audio_mixer),
  8280. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8281. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8282. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8283. msm_routing_put_audio_mixer),
  8284. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8285. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8286. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8287. msm_routing_put_audio_mixer),
  8288. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8289. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8290. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8291. msm_routing_put_audio_mixer),
  8292. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8293. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8294. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8295. msm_routing_put_audio_mixer),
  8296. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8297. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8298. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8299. msm_routing_put_audio_mixer),
  8300. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8301. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8302. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8303. msm_routing_put_audio_mixer),
  8304. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8305. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8306. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8307. msm_routing_put_audio_mixer),
  8308. };
  8309. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8310. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8311. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8312. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8313. msm_routing_put_audio_mixer),
  8314. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8315. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8316. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8317. msm_routing_put_audio_mixer),
  8318. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8339. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8340. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8341. msm_routing_put_audio_mixer),
  8342. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8343. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8344. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8345. msm_routing_put_audio_mixer),
  8346. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8347. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8348. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8349. msm_routing_put_audio_mixer),
  8350. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8351. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8352. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8353. msm_routing_put_audio_mixer),
  8354. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8355. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8356. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8357. msm_routing_put_audio_mixer),
  8358. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8359. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8360. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8361. msm_routing_put_audio_mixer),
  8362. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8363. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8364. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8365. msm_routing_put_audio_mixer),
  8366. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8367. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8368. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8369. msm_routing_put_audio_mixer),
  8370. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8371. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8372. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8373. msm_routing_put_audio_mixer),
  8374. };
  8375. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8376. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8377. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8378. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8379. msm_routing_put_audio_mixer),
  8380. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8381. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8382. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8383. msm_routing_put_audio_mixer),
  8384. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8385. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8386. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8387. msm_routing_put_audio_mixer),
  8388. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8389. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8390. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8391. msm_routing_put_audio_mixer),
  8392. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8393. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8394. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8395. msm_routing_put_audio_mixer),
  8396. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8397. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8398. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8399. msm_routing_put_audio_mixer),
  8400. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8409. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8410. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8411. msm_routing_put_audio_mixer),
  8412. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8413. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8414. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8415. msm_routing_put_audio_mixer),
  8416. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8417. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8418. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8419. msm_routing_put_audio_mixer),
  8420. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8421. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8422. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8423. msm_routing_put_audio_mixer),
  8424. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8425. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8426. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8427. msm_routing_put_audio_mixer),
  8428. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8429. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8430. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8431. msm_routing_put_audio_mixer),
  8432. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8433. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8434. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8435. msm_routing_put_audio_mixer),
  8436. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8437. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8438. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8439. msm_routing_put_audio_mixer),
  8440. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8441. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8442. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8443. msm_routing_put_audio_mixer),
  8444. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8445. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8446. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8447. msm_routing_put_audio_mixer),
  8448. };
  8449. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8450. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8451. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8452. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8453. msm_routing_put_audio_mixer),
  8454. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8455. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8456. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8457. msm_routing_put_audio_mixer),
  8458. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8459. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8460. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8461. msm_routing_put_audio_mixer),
  8462. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8463. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8464. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8465. msm_routing_put_audio_mixer),
  8466. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8467. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8468. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8469. msm_routing_put_audio_mixer),
  8470. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8483. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8484. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8485. msm_routing_put_audio_mixer),
  8486. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8487. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8488. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8489. msm_routing_put_audio_mixer),
  8490. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8491. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8492. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8493. msm_routing_put_audio_mixer),
  8494. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8495. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8496. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8497. msm_routing_put_audio_mixer),
  8498. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8499. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8500. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8501. msm_routing_put_audio_mixer),
  8502. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8503. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8504. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8505. msm_routing_put_audio_mixer),
  8506. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8507. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8508. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8509. msm_routing_put_audio_mixer),
  8510. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8511. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8512. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8513. msm_routing_put_audio_mixer),
  8514. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8515. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8516. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8517. msm_routing_put_audio_mixer),
  8518. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8519. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8520. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8521. msm_routing_put_audio_mixer),
  8522. };
  8523. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  8524. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8525. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8526. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8527. msm_routing_put_audio_mixer),
  8528. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8529. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8530. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8531. msm_routing_put_audio_mixer),
  8532. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8533. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8534. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8535. msm_routing_put_audio_mixer),
  8536. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8537. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8539. msm_routing_put_audio_mixer),
  8540. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8541. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8542. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8543. msm_routing_put_audio_mixer),
  8544. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8549. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8550. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8551. msm_routing_put_audio_mixer),
  8552. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8553. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8554. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8555. msm_routing_put_audio_mixer),
  8556. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8557. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8559. msm_routing_put_audio_mixer),
  8560. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8561. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8562. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8563. msm_routing_put_audio_mixer),
  8564. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8565. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8566. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8567. msm_routing_put_audio_mixer),
  8568. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8569. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8570. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8571. msm_routing_put_audio_mixer),
  8572. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8573. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8574. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8575. msm_routing_put_audio_mixer),
  8576. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8577. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8578. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8579. msm_routing_put_audio_mixer),
  8580. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8581. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8582. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8583. msm_routing_put_audio_mixer),
  8584. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8585. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8586. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8587. msm_routing_put_audio_mixer),
  8588. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8589. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8590. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8591. msm_routing_put_audio_mixer),
  8592. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8593. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8594. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8595. msm_routing_put_audio_mixer),
  8596. };
  8597. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  8598. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  8599. MSM_BACKEND_DAI_PRI_I2S_TX,
  8600. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8601. msm_routing_put_audio_mixer),
  8602. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8603. MSM_BACKEND_DAI_MI2S_TX,
  8604. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8605. msm_routing_put_audio_mixer),
  8606. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8607. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8608. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8609. msm_routing_put_audio_mixer),
  8610. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8611. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8612. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8613. msm_routing_put_audio_mixer),
  8614. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8615. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8616. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8617. msm_routing_put_audio_mixer),
  8618. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8619. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8620. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8621. msm_routing_put_audio_mixer),
  8622. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8623. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8624. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8625. msm_routing_put_audio_mixer),
  8626. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8627. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8628. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8629. msm_routing_put_audio_mixer),
  8630. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8631. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8632. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8633. msm_routing_put_audio_mixer),
  8634. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8635. MSM_BACKEND_DAI_AUXPCM_TX,
  8636. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8637. msm_routing_put_audio_mixer),
  8638. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8639. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8640. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8641. msm_routing_put_audio_mixer),
  8642. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8643. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8644. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8645. msm_routing_put_audio_mixer),
  8646. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8647. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8648. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8649. msm_routing_put_audio_mixer),
  8650. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  8651. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8652. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8653. msm_routing_put_audio_mixer),
  8654. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8655. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8656. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8657. msm_routing_put_audio_mixer),
  8658. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8659. MSM_BACKEND_DAI_INT_FM_TX,
  8660. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8661. msm_routing_put_audio_mixer),
  8662. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8663. MSM_BACKEND_DAI_AFE_PCM_TX,
  8664. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8665. msm_routing_put_audio_mixer),
  8666. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8667. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8668. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8669. msm_routing_put_audio_mixer),
  8670. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8671. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8672. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8673. msm_routing_put_audio_mixer),
  8674. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  8675. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  8676. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8677. msm_routing_put_audio_mixer),
  8678. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8679. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8680. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8681. msm_routing_put_audio_mixer),
  8682. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8683. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8684. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8685. msm_routing_put_audio_mixer),
  8686. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8687. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8688. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8689. msm_routing_put_audio_mixer),
  8690. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8691. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8692. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8693. msm_routing_put_audio_mixer),
  8694. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8695. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8696. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8697. msm_routing_put_audio_mixer),
  8698. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8699. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8700. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8701. msm_routing_put_audio_mixer),
  8702. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8771. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8772. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8773. msm_routing_put_audio_mixer),
  8774. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8775. MSM_BACKEND_DAI_USB_TX,
  8776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8777. msm_routing_put_audio_mixer),
  8778. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8779. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8780. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8781. msm_routing_put_audio_mixer),
  8782. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8783. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8784. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8785. msm_routing_put_audio_mixer),
  8786. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8787. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8788. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8789. msm_routing_put_audio_mixer),
  8790. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8791. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8792. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8793. msm_routing_put_audio_mixer),
  8794. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8795. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8796. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8797. msm_routing_put_audio_mixer),
  8798. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  8799. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  8800. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8801. msm_routing_put_audio_mixer),
  8802. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  8803. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  8804. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8805. msm_routing_put_audio_mixer),
  8806. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  8807. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  8808. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8809. msm_routing_put_audio_mixer),
  8810. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  8811. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  8812. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8813. msm_routing_put_audio_mixer),
  8814. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  8815. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  8816. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8817. msm_routing_put_audio_mixer),
  8818. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  8819. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  8820. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8821. msm_routing_put_audio_mixer),
  8822. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  8823. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  8824. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8825. msm_routing_put_audio_mixer),
  8826. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  8827. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  8828. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8829. msm_routing_put_audio_mixer),
  8830. };
  8831. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  8832. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_INT_FM_TX,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_MI2S_TX,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8845. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8846. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8847. msm_routing_put_audio_mixer),
  8848. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8849. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8850. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8851. msm_routing_put_audio_mixer),
  8852. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8853. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8854. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8855. msm_routing_put_audio_mixer),
  8856. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8857. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8858. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8859. msm_routing_put_audio_mixer),
  8860. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8861. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8862. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8863. msm_routing_put_audio_mixer),
  8864. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8865. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8866. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8867. msm_routing_put_audio_mixer),
  8868. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8869. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8870. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8871. msm_routing_put_audio_mixer),
  8872. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  8873. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8874. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8875. msm_routing_put_audio_mixer),
  8876. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8877. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8878. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8879. msm_routing_put_audio_mixer),
  8880. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8881. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8882. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8883. msm_routing_put_audio_mixer),
  8884. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8885. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8886. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8887. msm_routing_put_audio_mixer),
  8888. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8889. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8890. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8891. msm_routing_put_audio_mixer),
  8892. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8893. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8894. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8895. msm_routing_put_audio_mixer),
  8896. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8897. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8898. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8899. msm_routing_put_audio_mixer),
  8900. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8901. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8902. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8903. msm_routing_put_audio_mixer),
  8904. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8905. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8906. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8907. msm_routing_put_audio_mixer),
  8908. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8909. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8910. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8911. msm_routing_put_audio_mixer),
  8912. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8913. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8914. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8915. msm_routing_put_audio_mixer),
  8916. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8917. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8918. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8919. msm_routing_put_audio_mixer),
  8920. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8921. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8922. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8923. msm_routing_put_audio_mixer),
  8924. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8925. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8926. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8927. msm_routing_put_audio_mixer),
  8928. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8929. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8930. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8931. msm_routing_put_audio_mixer),
  8932. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8933. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8934. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8935. msm_routing_put_audio_mixer),
  8936. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8937. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8938. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8939. msm_routing_put_audio_mixer),
  8940. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8941. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8942. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8943. msm_routing_put_audio_mixer),
  8944. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8945. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8946. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8947. msm_routing_put_audio_mixer),
  8948. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8949. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8950. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8951. msm_routing_put_audio_mixer),
  8952. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8953. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8954. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8955. msm_routing_put_audio_mixer),
  8956. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8957. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8958. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8959. msm_routing_put_audio_mixer),
  8960. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8961. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8962. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8963. msm_routing_put_audio_mixer),
  8964. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8965. MSM_BACKEND_DAI_USB_TX,
  8966. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8967. msm_routing_put_audio_mixer),
  8968. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8969. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8970. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8971. msm_routing_put_audio_mixer),
  8972. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8973. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8974. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8975. msm_routing_put_audio_mixer),
  8976. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8977. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8978. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8979. msm_routing_put_audio_mixer),
  8980. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8981. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8982. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8983. msm_routing_put_audio_mixer),
  8984. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8985. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8986. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8987. msm_routing_put_audio_mixer),
  8988. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  8989. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  8990. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8991. msm_routing_put_audio_mixer),
  8992. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  8993. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  8994. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8995. msm_routing_put_audio_mixer),
  8996. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  8997. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  8998. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8999. msm_routing_put_audio_mixer),
  9000. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9001. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9002. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9003. msm_routing_put_audio_mixer),
  9004. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9005. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9006. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9007. msm_routing_put_audio_mixer),
  9008. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9009. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9010. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9011. msm_routing_put_audio_mixer),
  9012. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9013. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9014. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9015. msm_routing_put_audio_mixer),
  9016. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9017. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9018. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9019. msm_routing_put_audio_mixer),
  9020. };
  9021. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  9022. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_INT_FM_TX,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_MI2S_TX,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_AFE_PCM_TX,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_AUXPCM_TX,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9063. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9064. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9065. msm_routing_put_audio_mixer),
  9066. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9067. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9068. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9069. msm_routing_put_audio_mixer),
  9070. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9075. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9076. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9077. msm_routing_put_audio_mixer),
  9078. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9079. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9080. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9081. msm_routing_put_audio_mixer),
  9082. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9083. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9084. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9085. msm_routing_put_audio_mixer),
  9086. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9087. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9088. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9089. msm_routing_put_audio_mixer),
  9090. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9091. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9092. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9093. msm_routing_put_audio_mixer),
  9094. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9095. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9096. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9097. msm_routing_put_audio_mixer),
  9098. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9099. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9100. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9101. msm_routing_put_audio_mixer),
  9102. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9103. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9104. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9105. msm_routing_put_audio_mixer),
  9106. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9107. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9108. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9109. msm_routing_put_audio_mixer),
  9110. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9111. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9112. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9113. msm_routing_put_audio_mixer),
  9114. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9115. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9116. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9117. msm_routing_put_audio_mixer),
  9118. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9119. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9120. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9121. msm_routing_put_audio_mixer),
  9122. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9123. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9124. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9125. msm_routing_put_audio_mixer),
  9126. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9127. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9128. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9129. msm_routing_put_audio_mixer),
  9130. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9131. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9132. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9133. msm_routing_put_audio_mixer),
  9134. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9135. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9136. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9137. msm_routing_put_audio_mixer),
  9138. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9139. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9140. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9141. msm_routing_put_audio_mixer),
  9142. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9143. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9144. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9145. msm_routing_put_audio_mixer),
  9146. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9147. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9148. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9149. msm_routing_put_audio_mixer),
  9150. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9151. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9152. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9153. msm_routing_put_audio_mixer),
  9154. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9155. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9156. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9157. msm_routing_put_audio_mixer),
  9158. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9159. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9160. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9161. msm_routing_put_audio_mixer),
  9162. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9163. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9164. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9165. msm_routing_put_audio_mixer),
  9166. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9167. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9168. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9169. msm_routing_put_audio_mixer),
  9170. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9171. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9172. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9173. msm_routing_put_audio_mixer),
  9174. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9175. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9176. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9177. msm_routing_put_audio_mixer),
  9178. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9179. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9180. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9181. msm_routing_put_audio_mixer),
  9182. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9183. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9184. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9185. msm_routing_put_audio_mixer),
  9186. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9187. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9188. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9189. msm_routing_put_audio_mixer),
  9190. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9191. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9192. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9193. msm_routing_put_audio_mixer),
  9194. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9195. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9196. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9197. msm_routing_put_audio_mixer),
  9198. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9199. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9200. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9201. msm_routing_put_audio_mixer),
  9202. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9203. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9204. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9205. msm_routing_put_audio_mixer),
  9206. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9207. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9208. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9209. msm_routing_put_audio_mixer),
  9210. };
  9211. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9212. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9213. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9214. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9215. msm_routing_put_audio_mixer),
  9216. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9217. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9218. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9219. msm_routing_put_audio_mixer),
  9220. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9221. MSM_BACKEND_DAI_INT_FM_TX,
  9222. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9223. msm_routing_put_audio_mixer),
  9224. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9225. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9226. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9227. msm_routing_put_audio_mixer),
  9228. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9229. MSM_BACKEND_DAI_AFE_PCM_TX,
  9230. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9231. msm_routing_put_audio_mixer),
  9232. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9233. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9234. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9235. msm_routing_put_audio_mixer),
  9236. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9237. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9238. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9239. msm_routing_put_audio_mixer),
  9240. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9241. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9242. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9243. msm_routing_put_audio_mixer),
  9244. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9245. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9246. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9249. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9250. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9251. msm_routing_put_audio_mixer),
  9252. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9253. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9254. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9255. msm_routing_put_audio_mixer),
  9256. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9257. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9258. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9259. msm_routing_put_audio_mixer),
  9260. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9261. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9262. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9263. msm_routing_put_audio_mixer),
  9264. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9265. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9266. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9267. msm_routing_put_audio_mixer),
  9268. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9269. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9270. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9271. msm_routing_put_audio_mixer),
  9272. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9273. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9274. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9275. msm_routing_put_audio_mixer),
  9276. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9277. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9278. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9279. msm_routing_put_audio_mixer),
  9280. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9281. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9282. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9283. msm_routing_put_audio_mixer),
  9284. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9285. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9286. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9287. msm_routing_put_audio_mixer),
  9288. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9289. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9290. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9291. msm_routing_put_audio_mixer),
  9292. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9293. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9294. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9295. msm_routing_put_audio_mixer),
  9296. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9297. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9298. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9299. msm_routing_put_audio_mixer),
  9300. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9301. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9302. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9303. msm_routing_put_audio_mixer),
  9304. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9305. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9306. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9307. msm_routing_put_audio_mixer),
  9308. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9309. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9310. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9311. msm_routing_put_audio_mixer),
  9312. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9313. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9314. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9315. msm_routing_put_audio_mixer),
  9316. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9317. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9318. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9319. msm_routing_put_audio_mixer),
  9320. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9321. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9322. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9323. msm_routing_put_audio_mixer),
  9324. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9325. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9326. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9327. msm_routing_put_audio_mixer),
  9328. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9329. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9330. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9331. msm_routing_put_audio_mixer),
  9332. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9333. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9334. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9335. msm_routing_put_audio_mixer),
  9336. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9337. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9338. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9339. msm_routing_put_audio_mixer),
  9340. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9341. MSM_BACKEND_DAI_USB_TX,
  9342. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9343. msm_routing_put_audio_mixer),
  9344. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9345. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9346. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9347. msm_routing_put_audio_mixer),
  9348. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9349. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9350. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9351. msm_routing_put_audio_mixer),
  9352. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9353. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9354. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9355. msm_routing_put_audio_mixer),
  9356. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9357. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9358. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9359. msm_routing_put_audio_mixer),
  9360. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9361. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9362. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9363. msm_routing_put_audio_mixer),
  9364. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9365. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9366. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9367. msm_routing_put_audio_mixer),
  9368. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9369. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9370. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9371. msm_routing_put_audio_mixer),
  9372. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9373. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9374. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9375. msm_routing_put_audio_mixer),
  9376. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9377. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9378. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9379. msm_routing_put_audio_mixer),
  9380. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9381. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9382. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9383. msm_routing_put_audio_mixer),
  9384. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9385. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9386. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9387. msm_routing_put_audio_mixer),
  9388. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9389. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9390. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9391. msm_routing_put_audio_mixer),
  9392. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9393. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9394. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9395. msm_routing_put_audio_mixer),
  9396. };
  9397. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9398. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9399. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9400. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9401. msm_routing_put_audio_mixer),
  9402. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9403. MSM_BACKEND_DAI_INT_FM_TX,
  9404. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9405. msm_routing_put_audio_mixer),
  9406. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9407. MSM_BACKEND_DAI_MI2S_TX,
  9408. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9409. msm_routing_put_audio_mixer),
  9410. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9411. MSM_BACKEND_DAI_AFE_PCM_TX,
  9412. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9413. msm_routing_put_audio_mixer),
  9414. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9415. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9416. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9417. msm_routing_put_audio_mixer),
  9418. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9419. MSM_BACKEND_DAI_AUXPCM_TX,
  9420. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9421. msm_routing_put_audio_mixer),
  9422. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9423. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9424. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9425. msm_routing_put_audio_mixer),
  9426. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9427. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9428. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9429. msm_routing_put_audio_mixer),
  9430. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9431. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9432. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9433. msm_routing_put_audio_mixer),
  9434. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9435. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9436. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9437. msm_routing_put_audio_mixer),
  9438. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9439. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9440. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9441. msm_routing_put_audio_mixer),
  9442. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9443. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9444. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9445. msm_routing_put_audio_mixer),
  9446. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9447. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9448. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9449. msm_routing_put_audio_mixer),
  9450. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9451. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9452. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9453. msm_routing_put_audio_mixer),
  9454. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9455. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9456. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9457. msm_routing_put_audio_mixer),
  9458. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9459. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9460. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9461. msm_routing_put_audio_mixer),
  9462. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9463. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9464. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9465. msm_routing_put_audio_mixer),
  9466. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9467. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9468. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9469. msm_routing_put_audio_mixer),
  9470. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9471. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9472. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9473. msm_routing_put_audio_mixer),
  9474. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9475. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9476. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9477. msm_routing_put_audio_mixer),
  9478. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9479. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9480. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9481. msm_routing_put_audio_mixer),
  9482. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9483. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9484. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9485. msm_routing_put_audio_mixer),
  9486. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9487. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9489. msm_routing_put_audio_mixer),
  9490. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9491. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9492. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9493. msm_routing_put_audio_mixer),
  9494. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9495. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9496. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9497. msm_routing_put_audio_mixer),
  9498. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9499. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9500. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9501. msm_routing_put_audio_mixer),
  9502. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9503. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9504. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9505. msm_routing_put_audio_mixer),
  9506. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9507. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9508. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9509. msm_routing_put_audio_mixer),
  9510. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9511. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9512. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9513. msm_routing_put_audio_mixer),
  9514. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9515. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9516. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9517. msm_routing_put_audio_mixer),
  9518. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9519. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9520. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9521. msm_routing_put_audio_mixer),
  9522. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9523. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9524. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9525. msm_routing_put_audio_mixer),
  9526. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9527. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9528. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9529. msm_routing_put_audio_mixer),
  9530. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9531. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9532. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9533. msm_routing_put_audio_mixer),
  9534. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9535. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9536. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9537. msm_routing_put_audio_mixer),
  9538. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9539. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9540. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9541. msm_routing_put_audio_mixer),
  9542. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9543. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9544. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9545. msm_routing_put_audio_mixer),
  9546. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9547. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9548. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9549. msm_routing_put_audio_mixer),
  9550. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9551. MSM_BACKEND_DAI_USB_TX,
  9552. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9553. msm_routing_put_audio_mixer),
  9554. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9555. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9556. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9557. msm_routing_put_audio_mixer),
  9558. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9559. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9560. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9561. msm_routing_put_audio_mixer),
  9562. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9563. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9564. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9565. msm_routing_put_audio_mixer),
  9566. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9567. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9568. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9569. msm_routing_put_audio_mixer),
  9570. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9571. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9572. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9573. msm_routing_put_audio_mixer),
  9574. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9575. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9576. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9577. msm_routing_put_audio_mixer),
  9578. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9579. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9580. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9581. msm_routing_put_audio_mixer),
  9582. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9583. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9584. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9585. msm_routing_put_audio_mixer),
  9586. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9587. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9588. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9589. msm_routing_put_audio_mixer),
  9590. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9591. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9592. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9593. msm_routing_put_audio_mixer),
  9594. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9595. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9596. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9597. msm_routing_put_audio_mixer),
  9598. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9599. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9600. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9601. msm_routing_put_audio_mixer),
  9602. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9603. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9604. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9605. msm_routing_put_audio_mixer),
  9606. };
  9607. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  9608. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9609. MSM_BACKEND_DAI_INT_FM_TX,
  9610. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9611. msm_routing_put_audio_mixer),
  9612. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9613. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9614. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9615. msm_routing_put_audio_mixer),
  9616. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9617. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9618. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9619. msm_routing_put_audio_mixer),
  9620. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9621. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9622. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9623. msm_routing_put_audio_mixer),
  9624. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9625. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9626. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9627. msm_routing_put_audio_mixer),
  9628. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9629. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9630. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9631. msm_routing_put_audio_mixer),
  9632. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9633. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9634. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9635. msm_routing_put_audio_mixer),
  9636. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9637. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9638. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9639. msm_routing_put_audio_mixer),
  9640. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9641. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9642. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9643. msm_routing_put_audio_mixer),
  9644. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9645. MSM_BACKEND_DAI_AUXPCM_TX,
  9646. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9647. msm_routing_put_audio_mixer),
  9648. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9649. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9650. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9651. msm_routing_put_audio_mixer),
  9652. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9653. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9654. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9655. msm_routing_put_audio_mixer),
  9656. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9657. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9658. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9659. msm_routing_put_audio_mixer),
  9660. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9661. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9662. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9663. msm_routing_put_audio_mixer),
  9664. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9665. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9666. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9667. msm_routing_put_audio_mixer),
  9668. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9669. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9670. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9671. msm_routing_put_audio_mixer),
  9672. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9673. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9674. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9675. msm_routing_put_audio_mixer),
  9676. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9677. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9678. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9679. msm_routing_put_audio_mixer),
  9680. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9681. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9682. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9683. msm_routing_put_audio_mixer),
  9684. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9685. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9686. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9687. msm_routing_put_audio_mixer),
  9688. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9689. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9690. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9691. msm_routing_put_audio_mixer),
  9692. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9693. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9694. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9695. msm_routing_put_audio_mixer),
  9696. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9697. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9698. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9699. msm_routing_put_audio_mixer),
  9700. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9701. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9702. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9703. msm_routing_put_audio_mixer),
  9704. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9705. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9706. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9707. msm_routing_put_audio_mixer),
  9708. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9709. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9710. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9711. msm_routing_put_audio_mixer),
  9712. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9713. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9714. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9715. msm_routing_put_audio_mixer),
  9716. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9717. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9718. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9719. msm_routing_put_audio_mixer),
  9720. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9721. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9722. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9723. msm_routing_put_audio_mixer),
  9724. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9725. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9726. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9727. msm_routing_put_audio_mixer),
  9728. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9729. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9730. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9731. msm_routing_put_audio_mixer),
  9732. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9733. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9734. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9735. msm_routing_put_audio_mixer),
  9736. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9737. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9738. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9739. msm_routing_put_audio_mixer),
  9740. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9741. MSM_BACKEND_DAI_USB_TX,
  9742. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9743. msm_routing_put_audio_mixer),
  9744. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9745. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9746. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9747. msm_routing_put_audio_mixer),
  9748. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9749. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9750. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9751. msm_routing_put_audio_mixer),
  9752. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9753. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9754. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9755. msm_routing_put_audio_mixer),
  9756. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9757. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9758. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9759. msm_routing_put_audio_mixer),
  9760. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9761. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9762. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9763. msm_routing_put_audio_mixer),
  9764. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9765. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9766. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9767. msm_routing_put_audio_mixer),
  9768. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9769. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9770. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9771. msm_routing_put_audio_mixer),
  9772. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9773. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9774. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9775. msm_routing_put_audio_mixer),
  9776. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9777. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9778. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9779. msm_routing_put_audio_mixer),
  9780. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9781. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9782. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9783. msm_routing_put_audio_mixer),
  9784. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9785. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9786. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9787. msm_routing_put_audio_mixer),
  9788. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9789. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9790. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9791. msm_routing_put_audio_mixer),
  9792. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9793. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9794. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9795. msm_routing_put_audio_mixer),
  9796. };
  9797. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  9798. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9799. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9800. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9801. msm_routing_put_audio_mixer),
  9802. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9803. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9804. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9805. msm_routing_put_audio_mixer),
  9806. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9807. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9808. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9809. msm_routing_put_audio_mixer),
  9810. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9811. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9812. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9813. msm_routing_put_audio_mixer),
  9814. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9815. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9816. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9817. msm_routing_put_audio_mixer),
  9818. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9819. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9820. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9821. msm_routing_put_audio_mixer),
  9822. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9823. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9824. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9825. msm_routing_put_audio_mixer),
  9826. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9827. MSM_BACKEND_DAI_INT_FM_TX,
  9828. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9829. msm_routing_put_audio_mixer),
  9830. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9831. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9832. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9833. msm_routing_put_audio_mixer),
  9834. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9835. MSM_BACKEND_DAI_AFE_PCM_TX,
  9836. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9837. msm_routing_put_audio_mixer),
  9838. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9840. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9841. msm_routing_put_audio_mixer),
  9842. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9843. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9844. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9845. msm_routing_put_audio_mixer),
  9846. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9847. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9848. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9849. msm_routing_put_audio_mixer),
  9850. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9868. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9869. msm_routing_put_audio_mixer),
  9870. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9872. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9873. msm_routing_put_audio_mixer),
  9874. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9876. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9877. msm_routing_put_audio_mixer),
  9878. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9880. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9881. msm_routing_put_audio_mixer),
  9882. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9884. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9885. msm_routing_put_audio_mixer),
  9886. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9887. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9888. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9889. msm_routing_put_audio_mixer),
  9890. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9891. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9892. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9893. msm_routing_put_audio_mixer),
  9894. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9895. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9896. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9897. msm_routing_put_audio_mixer),
  9898. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9899. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9900. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9901. msm_routing_put_audio_mixer),
  9902. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9903. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9904. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9905. msm_routing_put_audio_mixer),
  9906. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9907. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9908. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9909. msm_routing_put_audio_mixer),
  9910. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9911. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9912. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9913. msm_routing_put_audio_mixer),
  9914. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9915. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9916. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9917. msm_routing_put_audio_mixer),
  9918. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9919. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9920. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9921. msm_routing_put_audio_mixer),
  9922. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9923. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9924. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9925. msm_routing_put_audio_mixer),
  9926. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9927. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9928. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9929. msm_routing_put_audio_mixer),
  9930. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9931. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9932. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9933. msm_routing_put_audio_mixer),
  9934. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9935. MSM_BACKEND_DAI_USB_TX,
  9936. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9937. msm_routing_put_audio_mixer),
  9938. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9939. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9940. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9941. msm_routing_put_audio_mixer),
  9942. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9943. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9944. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9945. msm_routing_put_audio_mixer),
  9946. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9947. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9948. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9949. msm_routing_put_audio_mixer),
  9950. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9951. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9952. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9953. msm_routing_put_audio_mixer),
  9954. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9955. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9956. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9957. msm_routing_put_audio_mixer),
  9958. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9959. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9960. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9961. msm_routing_put_audio_mixer),
  9962. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9963. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9964. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9965. msm_routing_put_audio_mixer),
  9966. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9967. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9968. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9969. msm_routing_put_audio_mixer),
  9970. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9971. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9972. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9973. msm_routing_put_audio_mixer),
  9974. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9975. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9976. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9977. msm_routing_put_audio_mixer),
  9978. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9979. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9980. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9981. msm_routing_put_audio_mixer),
  9982. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9983. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9984. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9985. msm_routing_put_audio_mixer),
  9986. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9987. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9988. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9989. msm_routing_put_audio_mixer),
  9990. };
  9991. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  9992. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9993. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9994. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9995. msm_routing_put_audio_mixer),
  9996. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9997. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9998. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9999. msm_routing_put_audio_mixer),
  10000. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10001. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10002. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10003. msm_routing_put_audio_mixer),
  10004. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10005. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10006. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10007. msm_routing_put_audio_mixer),
  10008. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10009. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10010. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10011. msm_routing_put_audio_mixer),
  10012. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10013. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10014. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10015. msm_routing_put_audio_mixer),
  10016. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10017. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10018. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10019. msm_routing_put_audio_mixer),
  10020. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10021. MSM_BACKEND_DAI_INT_FM_TX,
  10022. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10023. msm_routing_put_audio_mixer),
  10024. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10025. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10026. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10027. msm_routing_put_audio_mixer),
  10028. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10029. MSM_BACKEND_DAI_AFE_PCM_TX,
  10030. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10031. msm_routing_put_audio_mixer),
  10032. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10033. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10034. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10035. msm_routing_put_audio_mixer),
  10036. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10037. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10038. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10039. msm_routing_put_audio_mixer),
  10040. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10041. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10042. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10043. msm_routing_put_audio_mixer),
  10044. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10045. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10046. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10047. msm_routing_put_audio_mixer),
  10048. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10049. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10050. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10051. msm_routing_put_audio_mixer),
  10052. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10053. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10054. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10055. msm_routing_put_audio_mixer),
  10056. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10057. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10058. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10059. msm_routing_put_audio_mixer),
  10060. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10061. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10062. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10063. msm_routing_put_audio_mixer),
  10064. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10065. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10066. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10067. msm_routing_put_audio_mixer),
  10068. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10069. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10070. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10071. msm_routing_put_audio_mixer),
  10072. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10073. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10074. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10075. msm_routing_put_audio_mixer),
  10076. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10077. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10078. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10079. msm_routing_put_audio_mixer),
  10080. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10081. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10082. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10083. msm_routing_put_audio_mixer),
  10084. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10085. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10086. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10087. msm_routing_put_audio_mixer),
  10088. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10089. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10090. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10091. msm_routing_put_audio_mixer),
  10092. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10093. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10094. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10095. msm_routing_put_audio_mixer),
  10096. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10097. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10098. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10099. msm_routing_put_audio_mixer),
  10100. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10101. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10102. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10103. msm_routing_put_audio_mixer),
  10104. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10105. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10106. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10107. msm_routing_put_audio_mixer),
  10108. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10109. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10110. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10111. msm_routing_put_audio_mixer),
  10112. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10113. MSM_BACKEND_DAI_USB_TX,
  10114. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10115. msm_routing_put_audio_mixer),
  10116. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10117. MSM_BACKEND_DAI_MI2S_TX,
  10118. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10119. msm_routing_put_audio_mixer),
  10120. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10121. MSM_BACKEND_DAI_AUXPCM_TX,
  10122. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10123. msm_routing_put_audio_mixer),
  10124. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10125. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10126. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10127. msm_routing_put_audio_mixer),
  10128. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10129. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10130. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10131. msm_routing_put_audio_mixer),
  10132. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10133. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10134. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10135. msm_routing_put_audio_mixer),
  10136. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10137. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10138. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10139. msm_routing_put_audio_mixer),
  10140. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10141. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10142. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10143. msm_routing_put_audio_mixer),
  10144. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10145. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10146. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10147. msm_routing_put_audio_mixer),
  10148. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10149. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10151. msm_routing_put_audio_mixer),
  10152. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10153. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10154. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10155. msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10160. msm_routing_get_audio_mixer,
  10161. msm_routing_put_audio_mixer),
  10162. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10163. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10164. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10165. msm_routing_get_audio_mixer,
  10166. msm_routing_put_audio_mixer),
  10167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10170. msm_routing_get_audio_mixer,
  10171. msm_routing_put_audio_mixer),
  10172. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10173. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10174. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10175. msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10179. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10180. msm_routing_get_audio_mixer,
  10181. msm_routing_put_audio_mixer),
  10182. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10184. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10185. msm_routing_put_audio_mixer),
  10186. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10188. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10189. msm_routing_put_audio_mixer),
  10190. };
  10191. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10192. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10193. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10194. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10195. msm_routing_put_audio_mixer),
  10196. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10197. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10198. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10199. msm_routing_put_audio_mixer),
  10200. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10201. MSM_BACKEND_DAI_INT_FM_TX,
  10202. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10203. msm_routing_put_audio_mixer),
  10204. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10205. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10206. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10207. msm_routing_put_audio_mixer),
  10208. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10209. MSM_BACKEND_DAI_AFE_PCM_TX,
  10210. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10211. msm_routing_put_audio_mixer),
  10212. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10213. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10214. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10215. msm_routing_put_audio_mixer),
  10216. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10217. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10218. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10219. msm_routing_put_audio_mixer),
  10220. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10221. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10222. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10223. msm_routing_put_audio_mixer),
  10224. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10225. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10226. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10227. msm_routing_put_audio_mixer),
  10228. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10229. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10230. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10231. msm_routing_put_audio_mixer),
  10232. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10233. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10234. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10235. msm_routing_put_audio_mixer),
  10236. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10237. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10238. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10239. msm_routing_put_audio_mixer),
  10240. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10241. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10242. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10243. msm_routing_put_audio_mixer),
  10244. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10245. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10246. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10247. msm_routing_put_audio_mixer),
  10248. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10249. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10250. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10251. msm_routing_put_audio_mixer),
  10252. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10253. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10254. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10255. msm_routing_put_audio_mixer),
  10256. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10257. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10258. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10259. msm_routing_put_audio_mixer),
  10260. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10261. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10262. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10263. msm_routing_put_audio_mixer),
  10264. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10265. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10266. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10267. msm_routing_put_audio_mixer),
  10268. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10269. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10270. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10271. msm_routing_put_audio_mixer),
  10272. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10273. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10274. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10275. msm_routing_put_audio_mixer),
  10276. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10277. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10278. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10279. msm_routing_put_audio_mixer),
  10280. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10281. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10282. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10283. msm_routing_put_audio_mixer),
  10284. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10285. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10286. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10287. msm_routing_put_audio_mixer),
  10288. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10290. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10291. msm_routing_put_audio_mixer),
  10292. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10294. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10295. msm_routing_put_audio_mixer),
  10296. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10298. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10299. msm_routing_put_audio_mixer),
  10300. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10302. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10303. msm_routing_put_audio_mixer),
  10304. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10305. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10306. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10307. msm_routing_put_audio_mixer),
  10308. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10309. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10310. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10311. msm_routing_put_audio_mixer),
  10312. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10313. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10314. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10315. msm_routing_put_audio_mixer),
  10316. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10317. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10318. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10319. msm_routing_put_audio_mixer),
  10320. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10321. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10322. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10323. msm_routing_put_audio_mixer),
  10324. };
  10325. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10326. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10327. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10328. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10329. msm_routing_put_audio_mixer),
  10330. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10331. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10332. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10333. msm_routing_put_audio_mixer),
  10334. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10335. MSM_BACKEND_DAI_INT_FM_TX,
  10336. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10337. msm_routing_put_audio_mixer),
  10338. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10339. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10340. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10341. msm_routing_put_audio_mixer),
  10342. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10343. MSM_BACKEND_DAI_AFE_PCM_TX,
  10344. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10345. msm_routing_put_audio_mixer),
  10346. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10347. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10348. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10349. msm_routing_put_audio_mixer),
  10350. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10351. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10353. msm_routing_put_audio_mixer),
  10354. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10355. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10356. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10357. msm_routing_put_audio_mixer),
  10358. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10359. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10360. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10361. msm_routing_put_audio_mixer),
  10362. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10363. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10364. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10365. msm_routing_put_audio_mixer),
  10366. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10367. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10368. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10369. msm_routing_put_audio_mixer),
  10370. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10371. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10372. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10373. msm_routing_put_audio_mixer),
  10374. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10375. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10376. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10377. msm_routing_put_audio_mixer),
  10378. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10379. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10380. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10381. msm_routing_put_audio_mixer),
  10382. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10383. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10384. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10385. msm_routing_put_audio_mixer),
  10386. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10387. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10388. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10389. msm_routing_put_audio_mixer),
  10390. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10391. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10392. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10393. msm_routing_put_audio_mixer),
  10394. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10395. MSM_BACKEND_DAI_USB_TX,
  10396. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10397. msm_routing_put_audio_mixer),
  10398. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10399. MSM_BACKEND_DAI_MI2S_TX,
  10400. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10401. msm_routing_put_audio_mixer),
  10402. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10403. MSM_BACKEND_DAI_AUXPCM_TX,
  10404. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10405. msm_routing_put_audio_mixer),
  10406. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10407. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10408. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10409. msm_routing_put_audio_mixer),
  10410. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10411. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10412. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10413. msm_routing_put_audio_mixer),
  10414. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10415. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10416. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10417. msm_routing_put_audio_mixer),
  10418. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10419. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10420. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10421. msm_routing_put_audio_mixer),
  10422. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10423. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10424. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10425. msm_routing_put_audio_mixer),
  10426. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10427. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10428. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10429. msm_routing_put_audio_mixer),
  10430. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10431. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10432. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10433. msm_routing_put_audio_mixer),
  10434. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10435. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10436. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10437. msm_routing_put_audio_mixer),
  10438. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10439. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10440. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10441. msm_routing_put_audio_mixer),
  10442. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10443. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10444. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10445. msm_routing_put_audio_mixer),
  10446. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10447. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10448. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10449. msm_routing_put_audio_mixer),
  10450. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10452. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10453. msm_routing_get_audio_mixer,
  10454. msm_routing_put_audio_mixer),
  10455. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10457. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10458. msm_routing_get_audio_mixer,
  10459. msm_routing_put_audio_mixer),
  10460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10462. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10463. msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10468. msm_routing_get_audio_mixer,
  10469. msm_routing_put_audio_mixer),
  10470. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10471. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10472. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10473. msm_routing_get_audio_mixer,
  10474. msm_routing_put_audio_mixer),
  10475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10477. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10478. msm_routing_get_audio_mixer,
  10479. msm_routing_put_audio_mixer),
  10480. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10481. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10482. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10483. msm_routing_put_audio_mixer),
  10484. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10485. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10486. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10487. msm_routing_put_audio_mixer),
  10488. };
  10489. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  10490. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10491. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10492. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10493. msm_routing_put_audio_mixer),
  10494. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10495. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10496. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10497. msm_routing_put_audio_mixer),
  10498. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10499. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10500. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10501. msm_routing_put_audio_mixer),
  10502. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10503. MSM_BACKEND_DAI_INT_FM_TX,
  10504. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10505. msm_routing_put_audio_mixer),
  10506. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10507. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10508. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10509. msm_routing_put_audio_mixer),
  10510. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10511. MSM_BACKEND_DAI_AFE_PCM_TX,
  10512. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10513. msm_routing_put_audio_mixer),
  10514. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10515. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10516. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10517. msm_routing_put_audio_mixer),
  10518. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10519. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10520. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10521. msm_routing_put_audio_mixer),
  10522. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10523. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10524. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10525. msm_routing_put_audio_mixer),
  10526. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10527. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10528. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10529. msm_routing_put_audio_mixer),
  10530. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10531. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10532. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10533. msm_routing_put_audio_mixer),
  10534. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10535. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10536. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10537. msm_routing_put_audio_mixer),
  10538. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10539. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10540. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10541. msm_routing_put_audio_mixer),
  10542. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10543. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10544. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10545. msm_routing_put_audio_mixer),
  10546. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10547. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10548. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10549. msm_routing_put_audio_mixer),
  10550. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10551. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10552. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10553. msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10558. msm_routing_get_audio_mixer,
  10559. msm_routing_put_audio_mixer),
  10560. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10561. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10562. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10563. msm_routing_get_audio_mixer,
  10564. msm_routing_put_audio_mixer),
  10565. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10568. msm_routing_get_audio_mixer,
  10569. msm_routing_put_audio_mixer),
  10570. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10571. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10572. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10573. msm_routing_get_audio_mixer,
  10574. msm_routing_put_audio_mixer),
  10575. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10576. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10577. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10578. msm_routing_get_audio_mixer,
  10579. msm_routing_put_audio_mixer),
  10580. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10581. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10582. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10583. msm_routing_put_audio_mixer),
  10584. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10585. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10586. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10587. msm_routing_put_audio_mixer),
  10588. };
  10589. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  10590. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10591. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10592. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10593. msm_routing_put_audio_mixer),
  10594. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10595. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10596. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10597. msm_routing_put_audio_mixer),
  10598. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10599. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10600. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10601. msm_routing_put_audio_mixer),
  10602. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10603. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10604. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10605. msm_routing_put_audio_mixer),
  10606. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10607. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10608. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10609. msm_routing_put_audio_mixer),
  10610. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10611. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10612. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10613. msm_routing_put_audio_mixer),
  10614. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10615. MSM_BACKEND_DAI_INT_FM_TX,
  10616. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10617. msm_routing_put_audio_mixer),
  10618. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10619. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10620. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10621. msm_routing_put_audio_mixer),
  10622. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10623. MSM_BACKEND_DAI_AFE_PCM_TX,
  10624. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10625. msm_routing_put_audio_mixer),
  10626. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10627. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10628. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10629. msm_routing_put_audio_mixer),
  10630. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10631. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10632. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10633. msm_routing_put_audio_mixer),
  10634. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10635. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10636. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10637. msm_routing_put_audio_mixer),
  10638. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10639. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10640. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10641. msm_routing_put_audio_mixer),
  10642. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10643. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10644. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10645. msm_routing_put_audio_mixer),
  10646. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10647. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10648. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10649. msm_routing_put_audio_mixer),
  10650. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10651. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10652. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10653. msm_routing_put_audio_mixer),
  10654. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10655. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10656. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10657. msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10662. msm_routing_get_audio_mixer,
  10663. msm_routing_put_audio_mixer),
  10664. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10665. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10666. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10667. msm_routing_get_audio_mixer,
  10668. msm_routing_put_audio_mixer),
  10669. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10670. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10671. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10672. msm_routing_get_audio_mixer,
  10673. msm_routing_put_audio_mixer),
  10674. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10675. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10676. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10677. msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10682. msm_routing_get_audio_mixer,
  10683. msm_routing_put_audio_mixer),
  10684. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10685. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10686. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10687. msm_routing_put_audio_mixer),
  10688. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10689. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10690. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10691. msm_routing_put_audio_mixer),
  10692. };
  10693. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  10694. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10696. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10697. msm_routing_put_audio_mixer),
  10698. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10700. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10701. msm_routing_put_audio_mixer),
  10702. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10704. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10705. msm_routing_put_audio_mixer),
  10706. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_INT_FM_TX,
  10708. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10709. msm_routing_put_audio_mixer),
  10710. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10711. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10712. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10713. msm_routing_put_audio_mixer),
  10714. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_AFE_PCM_TX,
  10716. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10717. msm_routing_put_audio_mixer),
  10718. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10720. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10721. msm_routing_put_audio_mixer),
  10722. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10723. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10724. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10725. msm_routing_put_audio_mixer),
  10726. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10727. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10728. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10729. msm_routing_put_audio_mixer),
  10730. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10732. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10733. msm_routing_put_audio_mixer),
  10734. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10735. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10736. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10741. msm_routing_put_audio_mixer),
  10742. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10743. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10744. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10745. msm_routing_put_audio_mixer),
  10746. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10747. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10748. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10749. msm_routing_put_audio_mixer),
  10750. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10751. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10752. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10753. msm_routing_put_audio_mixer),
  10754. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10755. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10756. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10757. msm_routing_get_audio_mixer,
  10758. msm_routing_put_audio_mixer),
  10759. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10760. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10761. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10762. msm_routing_get_audio_mixer,
  10763. msm_routing_put_audio_mixer),
  10764. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10765. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10766. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10767. msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10772. msm_routing_get_audio_mixer,
  10773. msm_routing_put_audio_mixer),
  10774. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10775. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10776. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10777. msm_routing_get_audio_mixer,
  10778. msm_routing_put_audio_mixer),
  10779. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10780. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10781. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10782. msm_routing_get_audio_mixer,
  10783. msm_routing_put_audio_mixer),
  10784. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10785. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10786. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10787. msm_routing_put_audio_mixer),
  10788. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10789. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10790. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10791. msm_routing_put_audio_mixer),
  10792. };
  10793. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  10794. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10795. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10796. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10797. msm_routing_put_audio_mixer),
  10798. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10799. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10800. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10801. msm_routing_put_audio_mixer),
  10802. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10803. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10804. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10805. msm_routing_put_audio_mixer),
  10806. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10807. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10808. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10809. msm_routing_put_audio_mixer),
  10810. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10811. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10812. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10813. msm_routing_put_audio_mixer),
  10814. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10815. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10816. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10817. msm_routing_put_audio_mixer),
  10818. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10819. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10820. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10821. msm_routing_put_audio_mixer),
  10822. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10823. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10824. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10825. msm_routing_put_audio_mixer),
  10826. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10827. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10828. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10829. msm_routing_put_audio_mixer),
  10830. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10831. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10832. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10833. msm_routing_put_audio_mixer),
  10834. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10835. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10836. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10837. msm_routing_put_audio_mixer),
  10838. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10839. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10840. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10841. msm_routing_put_audio_mixer),
  10842. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10843. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10844. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10845. msm_routing_put_audio_mixer),
  10846. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10847. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10848. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10849. msm_routing_put_audio_mixer),
  10850. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10851. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10852. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10853. msm_routing_put_audio_mixer),
  10854. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10855. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10856. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10857. msm_routing_put_audio_mixer),
  10858. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10859. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10860. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10861. msm_routing_put_audio_mixer),
  10862. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10863. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10864. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10865. msm_routing_put_audio_mixer),
  10866. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10868. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10869. msm_routing_put_audio_mixer),
  10870. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10871. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10872. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10873. msm_routing_put_audio_mixer),
  10874. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10875. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10876. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10877. msm_routing_put_audio_mixer),
  10878. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10880. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10881. msm_routing_put_audio_mixer),
  10882. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10883. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10884. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10889. msm_routing_put_audio_mixer),
  10890. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10892. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10893. msm_routing_put_audio_mixer),
  10894. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10895. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10896. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10897. msm_routing_put_audio_mixer),
  10898. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10900. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10901. msm_routing_put_audio_mixer),
  10902. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10904. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10905. msm_routing_put_audio_mixer),
  10906. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10907. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10908. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10909. msm_routing_put_audio_mixer),
  10910. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10923. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10924. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10925. msm_routing_put_audio_mixer),
  10926. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10927. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10928. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10929. msm_routing_put_audio_mixer),
  10930. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10931. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10932. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10933. msm_routing_put_audio_mixer),
  10934. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10935. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10936. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10937. msm_routing_put_audio_mixer),
  10938. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10939. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10940. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10941. msm_routing_put_audio_mixer),
  10942. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10943. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10944. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10945. msm_routing_put_audio_mixer),
  10946. };
  10947. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  10948. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_AUXPCM_TX,
  10950. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10951. msm_routing_put_audio_mixer),
  10952. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10954. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10955. msm_routing_put_audio_mixer),
  10956. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10958. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10963. msm_routing_put_audio_mixer),
  10964. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10965. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10966. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10967. msm_routing_put_audio_mixer),
  10968. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10969. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10970. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10971. msm_routing_put_audio_mixer),
  10972. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10973. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10974. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10975. msm_routing_put_audio_mixer),
  10976. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10977. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10978. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10979. msm_routing_put_audio_mixer),
  10980. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10981. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10982. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10983. msm_routing_put_audio_mixer),
  10984. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10986. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10987. msm_routing_put_audio_mixer),
  10988. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10989. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10990. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10991. msm_routing_put_audio_mixer),
  10992. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10993. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10994. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10995. msm_routing_put_audio_mixer),
  10996. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10997. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10998. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10999. msm_routing_put_audio_mixer),
  11000. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11001. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11002. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11003. msm_routing_put_audio_mixer),
  11004. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11006. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11011. msm_routing_put_audio_mixer),
  11012. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11013. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11014. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11015. msm_routing_put_audio_mixer),
  11016. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11017. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11018. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11019. msm_routing_put_audio_mixer),
  11020. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11021. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11022. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11023. msm_routing_put_audio_mixer),
  11024. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11025. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11026. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11027. msm_routing_put_audio_mixer),
  11028. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11029. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11030. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11031. msm_routing_put_audio_mixer),
  11032. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11033. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11034. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11035. msm_routing_put_audio_mixer),
  11036. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11037. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11038. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11039. msm_routing_put_audio_mixer),
  11040. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11041. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11042. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11043. msm_routing_put_audio_mixer),
  11044. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11045. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11046. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11047. msm_routing_put_audio_mixer),
  11048. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11049. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11050. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11051. msm_routing_put_audio_mixer),
  11052. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11053. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11054. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11055. msm_routing_put_audio_mixer),
  11056. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11057. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11058. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11059. msm_routing_put_audio_mixer),
  11060. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11061. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11062. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11063. msm_routing_put_audio_mixer),
  11064. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11065. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11066. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11067. msm_routing_put_audio_mixer),
  11068. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11069. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11070. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11071. msm_routing_put_audio_mixer),
  11072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11074. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11075. msm_routing_put_audio_mixer),
  11076. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11077. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11078. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11079. msm_routing_put_audio_mixer),
  11080. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11081. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11082. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11083. msm_routing_put_audio_mixer),
  11084. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11085. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11086. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11087. msm_routing_put_audio_mixer),
  11088. };
  11089. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  11090. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11091. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11092. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11093. msm_routing_put_audio_mixer),
  11094. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11095. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11096. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11097. msm_routing_put_audio_mixer),
  11098. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11099. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11100. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11101. msm_routing_put_audio_mixer),
  11102. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11103. MSM_BACKEND_DAI_INT_FM_TX,
  11104. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11105. msm_routing_put_audio_mixer),
  11106. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11107. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11108. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11109. msm_routing_put_audio_mixer),
  11110. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11111. MSM_BACKEND_DAI_AFE_PCM_TX,
  11112. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11113. msm_routing_put_audio_mixer),
  11114. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11115. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11116. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11117. msm_routing_put_audio_mixer),
  11118. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11119. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11120. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11121. msm_routing_put_audio_mixer),
  11122. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11123. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11124. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11125. msm_routing_put_audio_mixer),
  11126. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11127. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11128. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11129. msm_routing_put_audio_mixer),
  11130. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11131. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11132. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11133. msm_routing_put_audio_mixer),
  11134. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11135. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11136. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11137. msm_routing_put_audio_mixer),
  11138. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11139. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11140. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11141. msm_routing_put_audio_mixer),
  11142. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11143. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11144. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11145. msm_routing_put_audio_mixer),
  11146. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11147. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11148. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11149. msm_routing_put_audio_mixer),
  11150. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11151. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11152. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11153. msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11158. msm_routing_get_audio_mixer,
  11159. msm_routing_put_audio_mixer),
  11160. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11161. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11162. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11163. msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11168. msm_routing_get_audio_mixer,
  11169. msm_routing_put_audio_mixer),
  11170. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11171. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11172. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11173. msm_routing_get_audio_mixer,
  11174. msm_routing_put_audio_mixer),
  11175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11177. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11178. msm_routing_get_audio_mixer,
  11179. msm_routing_put_audio_mixer),
  11180. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11181. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11182. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11183. msm_routing_put_audio_mixer),
  11184. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11185. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11186. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11187. msm_routing_put_audio_mixer),
  11188. };
  11189. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  11190. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11191. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11192. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11193. msm_routing_put_audio_mixer),
  11194. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11195. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11196. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11201. msm_routing_put_audio_mixer),
  11202. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_INT_FM_TX,
  11204. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11205. msm_routing_put_audio_mixer),
  11206. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11208. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11209. msm_routing_put_audio_mixer),
  11210. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_AFE_PCM_TX,
  11212. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11213. msm_routing_put_audio_mixer),
  11214. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11221. msm_routing_put_audio_mixer),
  11222. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11224. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11225. msm_routing_put_audio_mixer),
  11226. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11227. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11228. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11229. msm_routing_put_audio_mixer),
  11230. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11231. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11232. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11233. msm_routing_put_audio_mixer),
  11234. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11235. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11236. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11237. msm_routing_put_audio_mixer),
  11238. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11239. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11240. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11241. msm_routing_put_audio_mixer),
  11242. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11243. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11244. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11245. msm_routing_put_audio_mixer),
  11246. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11247. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11248. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11249. msm_routing_put_audio_mixer),
  11250. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11251. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11252. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11253. msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11258. msm_routing_get_audio_mixer,
  11259. msm_routing_put_audio_mixer),
  11260. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11261. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11262. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11263. msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11268. msm_routing_get_audio_mixer,
  11269. msm_routing_put_audio_mixer),
  11270. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11271. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11272. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11273. msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11278. msm_routing_get_audio_mixer,
  11279. msm_routing_put_audio_mixer),
  11280. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11281. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11282. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11283. msm_routing_put_audio_mixer),
  11284. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11285. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11286. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11287. msm_routing_put_audio_mixer),
  11288. };
  11289. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  11290. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11291. MSM_BACKEND_DAI_PRI_I2S_RX,
  11292. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11293. msm_routing_put_voice_mixer),
  11294. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11295. MSM_BACKEND_DAI_PRI_I2S_RX,
  11296. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11297. msm_routing_put_voice_mixer),
  11298. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11299. MSM_BACKEND_DAI_PRI_I2S_RX,
  11300. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11301. msm_routing_put_voice_mixer),
  11302. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11303. MSM_BACKEND_DAI_PRI_I2S_RX,
  11304. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11305. msm_routing_put_voice_mixer),
  11306. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11307. MSM_BACKEND_DAI_PRI_I2S_RX,
  11308. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11309. msm_routing_put_voice_mixer),
  11310. };
  11311. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  11312. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11313. MSM_BACKEND_DAI_SEC_I2S_RX,
  11314. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11315. msm_routing_put_voice_mixer),
  11316. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_SEC_I2S_RX,
  11318. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11319. msm_routing_put_voice_mixer),
  11320. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11321. MSM_BACKEND_DAI_SEC_I2S_RX,
  11322. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11323. msm_routing_put_voice_mixer),
  11324. };
  11325. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  11326. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11327. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11328. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11329. msm_routing_put_voice_mixer),
  11330. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11331. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11332. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11333. msm_routing_put_voice_mixer),
  11334. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11335. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11336. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11337. msm_routing_put_voice_mixer),
  11338. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11339. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11340. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11341. msm_routing_put_voice_mixer),
  11342. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11343. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11344. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11345. msm_routing_put_voice_mixer),
  11346. };
  11347. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  11348. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11349. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11350. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11351. msm_routing_put_voice_mixer),
  11352. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11353. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11354. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11355. msm_routing_put_voice_mixer),
  11356. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11357. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11358. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11359. msm_routing_put_voice_mixer),
  11360. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11361. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11362. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11363. msm_routing_put_voice_mixer),
  11364. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11365. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11366. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11367. msm_routing_put_voice_mixer),
  11368. };
  11369. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  11370. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11371. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11372. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11373. msm_routing_put_voice_mixer),
  11374. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11375. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11376. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11377. msm_routing_put_voice_mixer),
  11378. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11379. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11380. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11381. msm_routing_put_voice_mixer),
  11382. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11383. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11384. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11385. msm_routing_put_voice_mixer),
  11386. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11387. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11388. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11389. msm_routing_put_voice_mixer),
  11390. };
  11391. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  11392. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11393. MSM_BACKEND_DAI_USB_RX,
  11394. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11395. msm_routing_put_voice_mixer),
  11396. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11397. MSM_BACKEND_DAI_USB_RX,
  11398. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11399. msm_routing_put_voice_mixer),
  11400. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11401. MSM_BACKEND_DAI_USB_RX,
  11402. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11403. msm_routing_put_voice_mixer),
  11404. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11405. MSM_BACKEND_DAI_USB_RX,
  11406. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11407. msm_routing_put_voice_mixer),
  11408. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_USB_RX,
  11410. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11411. msm_routing_put_voice_mixer),
  11412. };
  11413. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  11414. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11415. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11416. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11417. msm_routing_put_voice_mixer),
  11418. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11419. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11420. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11421. msm_routing_put_voice_mixer),
  11422. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11423. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11424. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11425. msm_routing_put_voice_mixer),
  11426. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11427. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11428. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11429. msm_routing_put_voice_mixer),
  11430. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11431. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11432. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11433. msm_routing_put_voice_mixer),
  11434. };
  11435. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  11436. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11437. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11438. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11439. msm_routing_put_voice_mixer),
  11440. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11442. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11443. msm_routing_put_voice_mixer),
  11444. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11445. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11446. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11447. msm_routing_put_voice_mixer),
  11448. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11450. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11451. msm_routing_put_voice_mixer),
  11452. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11454. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11455. msm_routing_put_voice_mixer),
  11456. };
  11457. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  11458. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11459. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11460. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11461. msm_routing_put_voice_mixer),
  11462. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11463. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11464. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11465. msm_routing_put_voice_mixer),
  11466. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11467. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11468. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11469. msm_routing_put_voice_mixer),
  11470. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11471. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11472. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11473. msm_routing_put_voice_mixer),
  11474. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11475. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11476. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11477. msm_routing_put_voice_mixer),
  11478. };
  11479. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  11480. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11481. MSM_BACKEND_DAI_MI2S_RX,
  11482. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11483. msm_routing_put_voice_mixer),
  11484. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11485. MSM_BACKEND_DAI_MI2S_RX,
  11486. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11487. msm_routing_put_voice_mixer),
  11488. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_MI2S_RX,
  11490. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11491. msm_routing_put_voice_mixer),
  11492. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11493. MSM_BACKEND_DAI_MI2S_RX,
  11494. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11495. msm_routing_put_voice_mixer),
  11496. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11497. MSM_BACKEND_DAI_MI2S_RX,
  11498. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11499. msm_routing_put_voice_mixer),
  11500. };
  11501. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  11502. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11503. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11504. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11505. msm_routing_put_voice_mixer),
  11506. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11507. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11508. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11509. msm_routing_put_voice_mixer),
  11510. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11511. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11512. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11513. msm_routing_put_voice_mixer),
  11514. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11515. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11516. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11517. msm_routing_put_voice_mixer),
  11518. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11519. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11520. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11521. msm_routing_put_voice_mixer),
  11522. };
  11523. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  11524. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11525. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11526. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11527. msm_routing_put_voice_mixer),
  11528. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11529. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11530. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11531. msm_routing_put_voice_mixer),
  11532. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11533. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11534. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11535. msm_routing_put_voice_mixer),
  11536. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11537. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11538. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11539. msm_routing_put_voice_mixer),
  11540. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11541. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11542. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11543. msm_routing_put_voice_mixer),
  11544. };
  11545. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  11546. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11547. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11548. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11549. msm_routing_put_voice_mixer),
  11550. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11551. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11552. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11553. msm_routing_put_voice_mixer),
  11554. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11555. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11556. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11557. msm_routing_put_voice_mixer),
  11558. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11559. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11560. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11561. msm_routing_put_voice_mixer),
  11562. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11563. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11564. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11565. msm_routing_put_voice_mixer),
  11566. };
  11567. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  11568. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11569. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11570. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11571. msm_routing_put_voice_mixer),
  11572. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11573. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11574. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11575. msm_routing_put_voice_mixer),
  11576. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11577. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11578. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11579. msm_routing_put_voice_mixer),
  11580. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11581. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11582. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11583. msm_routing_put_voice_mixer),
  11584. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11585. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11586. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11587. msm_routing_put_voice_mixer),
  11588. };
  11589. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  11590. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11591. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11592. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11593. msm_routing_put_voice_mixer),
  11594. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11595. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11596. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11597. msm_routing_put_voice_mixer),
  11598. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11599. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11600. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11601. msm_routing_put_voice_mixer),
  11602. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11603. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11604. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11605. msm_routing_put_voice_mixer),
  11606. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11607. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11608. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11609. msm_routing_put_voice_mixer),
  11610. };
  11611. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  11612. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11614. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11615. msm_routing_put_voice_mixer),
  11616. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11618. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11619. msm_routing_put_voice_mixer),
  11620. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11622. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11623. msm_routing_put_voice_mixer),
  11624. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11625. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11626. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11627. msm_routing_put_voice_mixer),
  11628. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11629. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11630. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11631. msm_routing_put_voice_mixer),
  11632. };
  11633. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  11634. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11635. MSM_BACKEND_DAI_AFE_PCM_RX,
  11636. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11637. msm_routing_put_voice_mixer),
  11638. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11639. MSM_BACKEND_DAI_AFE_PCM_RX,
  11640. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11641. msm_routing_put_voice_mixer),
  11642. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11643. MSM_BACKEND_DAI_AFE_PCM_RX,
  11644. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11645. msm_routing_put_voice_mixer),
  11646. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11647. MSM_BACKEND_DAI_AFE_PCM_RX,
  11648. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11649. msm_routing_put_voice_mixer),
  11650. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11651. MSM_BACKEND_DAI_AFE_PCM_RX,
  11652. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11653. msm_routing_put_voice_mixer),
  11654. };
  11655. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  11656. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11657. MSM_BACKEND_DAI_AUXPCM_RX,
  11658. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11659. msm_routing_put_voice_mixer),
  11660. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11661. MSM_BACKEND_DAI_AUXPCM_RX,
  11662. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11663. msm_routing_put_voice_mixer),
  11664. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11665. MSM_BACKEND_DAI_AUXPCM_RX,
  11666. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11667. msm_routing_put_voice_mixer),
  11668. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11669. MSM_BACKEND_DAI_AUXPCM_RX,
  11670. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11671. msm_routing_put_voice_mixer),
  11672. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11673. MSM_BACKEND_DAI_AUXPCM_RX,
  11674. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11675. msm_routing_put_voice_mixer),
  11676. };
  11677. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  11678. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11680. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11681. msm_routing_put_voice_mixer),
  11682. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11683. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11684. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11685. msm_routing_put_voice_mixer),
  11686. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11687. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11688. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11689. msm_routing_put_voice_mixer),
  11690. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11691. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11692. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11693. msm_routing_put_voice_mixer),
  11694. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11695. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11696. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11697. msm_routing_put_voice_mixer),
  11698. };
  11699. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  11700. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11701. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11702. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11703. msm_routing_put_voice_mixer),
  11704. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11705. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11706. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11707. msm_routing_put_voice_mixer),
  11708. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11709. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11710. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11711. msm_routing_put_voice_mixer),
  11712. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11713. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11714. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11715. msm_routing_put_voice_mixer),
  11716. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11717. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11718. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11719. msm_routing_put_voice_mixer),
  11720. };
  11721. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  11722. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11723. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11724. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11725. msm_routing_put_voice_mixer),
  11726. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11727. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11728. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11729. msm_routing_put_voice_mixer),
  11730. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11731. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11732. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11733. msm_routing_put_voice_mixer),
  11734. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11735. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11736. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11737. msm_routing_put_voice_mixer),
  11738. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11739. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11740. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11741. msm_routing_put_voice_mixer),
  11742. };
  11743. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  11744. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11745. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11746. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11747. msm_routing_put_voice_mixer),
  11748. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11749. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11750. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11751. msm_routing_put_voice_mixer),
  11752. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11753. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11754. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11755. msm_routing_put_voice_mixer),
  11756. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11757. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11758. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11759. msm_routing_put_voice_mixer),
  11760. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11761. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11762. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11763. msm_routing_put_voice_mixer),
  11764. };
  11765. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  11766. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11767. MSM_BACKEND_DAI_HDMI_RX,
  11768. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11769. msm_routing_put_voice_mixer),
  11770. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11771. MSM_BACKEND_DAI_HDMI_RX,
  11772. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11773. msm_routing_put_voice_mixer),
  11774. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11775. MSM_BACKEND_DAI_HDMI_RX,
  11776. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11777. msm_routing_put_voice_mixer),
  11778. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11779. MSM_BACKEND_DAI_HDMI_RX,
  11780. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11781. msm_routing_put_voice_mixer),
  11782. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11783. MSM_BACKEND_DAI_HDMI_RX,
  11784. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11785. msm_routing_put_voice_mixer),
  11786. };
  11787. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  11788. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11789. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11790. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11791. msm_routing_put_voice_mixer),
  11792. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11793. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11794. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11795. msm_routing_put_voice_mixer),
  11796. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11797. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11798. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11799. msm_routing_put_voice_mixer),
  11800. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11801. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11802. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11803. msm_routing_put_voice_mixer),
  11804. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11805. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11806. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11807. msm_routing_put_voice_mixer),
  11808. };
  11809. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  11810. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11811. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11812. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11813. msm_routing_put_voice_mixer),
  11814. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11815. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11816. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11817. msm_routing_put_voice_mixer),
  11818. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11819. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11820. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11821. msm_routing_put_voice_mixer),
  11822. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11823. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11824. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11825. msm_routing_put_voice_mixer),
  11826. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11827. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11828. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11829. msm_routing_put_voice_mixer),
  11830. };
  11831. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  11832. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11833. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11834. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11835. msm_routing_put_voice_mixer),
  11836. };
  11837. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  11838. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11839. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11840. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11841. msm_routing_put_voice_mixer),
  11842. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11843. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11844. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11845. msm_routing_put_voice_mixer),
  11846. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11847. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11848. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11849. msm_routing_put_voice_mixer),
  11850. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11851. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11852. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11853. msm_routing_put_voice_mixer),
  11854. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11855. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11856. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11857. msm_routing_put_voice_mixer),
  11858. };
  11859. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  11860. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11861. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11862. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11863. msm_routing_put_voice_mixer),
  11864. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11865. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11866. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11867. msm_routing_put_voice_mixer),
  11868. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11869. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11870. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11871. msm_routing_put_voice_mixer),
  11872. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11874. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11875. msm_routing_put_voice_mixer),
  11876. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11877. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11878. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11879. msm_routing_put_voice_mixer),
  11880. };
  11881. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  11882. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11883. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11884. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11885. msm_routing_put_voice_mixer),
  11886. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11887. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11888. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11889. msm_routing_put_voice_mixer),
  11890. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11891. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11892. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11893. msm_routing_put_voice_mixer),
  11894. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11895. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11896. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11897. msm_routing_put_voice_mixer),
  11898. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11899. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11900. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11901. msm_routing_put_voice_mixer),
  11902. };
  11903. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  11904. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11905. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11906. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11907. msm_routing_put_voice_mixer),
  11908. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11909. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11910. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11911. msm_routing_put_voice_mixer),
  11912. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11914. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11915. msm_routing_put_voice_mixer),
  11916. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11918. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11919. msm_routing_put_voice_mixer),
  11920. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11921. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11922. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11923. msm_routing_put_voice_mixer),
  11924. };
  11925. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  11926. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11927. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11928. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11929. msm_routing_put_voice_mixer),
  11930. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11931. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11932. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11933. msm_routing_put_voice_mixer),
  11934. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11935. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11936. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11937. msm_routing_put_voice_mixer),
  11938. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11939. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11940. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11941. msm_routing_put_voice_mixer),
  11942. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11943. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11944. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11945. msm_routing_put_voice_mixer),
  11946. };
  11947. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  11948. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11949. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11950. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11951. msm_routing_put_voice_mixer),
  11952. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11954. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11955. msm_routing_put_voice_mixer),
  11956. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11957. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11958. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11959. msm_routing_put_voice_mixer),
  11960. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11961. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11962. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11963. msm_routing_put_voice_mixer),
  11964. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11965. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11966. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11967. msm_routing_put_voice_mixer),
  11968. };
  11969. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  11970. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11971. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11972. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11973. msm_routing_put_voice_mixer),
  11974. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11976. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11977. msm_routing_put_voice_mixer),
  11978. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11980. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11981. msm_routing_put_voice_mixer),
  11982. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11983. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11984. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11985. msm_routing_put_voice_mixer),
  11986. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11987. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11988. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11989. msm_routing_put_voice_mixer),
  11990. };
  11991. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  11992. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11993. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11994. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11995. msm_routing_put_voice_mixer),
  11996. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11997. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11998. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11999. msm_routing_put_voice_mixer),
  12000. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12001. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12002. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12003. msm_routing_put_voice_mixer),
  12004. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12005. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12006. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12007. msm_routing_put_voice_mixer),
  12008. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12009. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12010. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12011. msm_routing_put_voice_mixer),
  12012. };
  12013. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  12014. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12015. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12016. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12017. msm_routing_put_voice_mixer),
  12018. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12020. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12021. msm_routing_put_voice_mixer),
  12022. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12024. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12025. msm_routing_put_voice_mixer),
  12026. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12027. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12028. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12029. msm_routing_put_voice_mixer),
  12030. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12031. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12032. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12033. msm_routing_put_voice_mixer),
  12034. };
  12035. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  12036. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12037. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12038. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12039. msm_routing_put_voice_mixer),
  12040. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12041. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12042. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12043. msm_routing_put_voice_mixer),
  12044. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12045. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12046. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12047. msm_routing_put_voice_mixer),
  12048. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12049. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12050. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12051. msm_routing_put_voice_mixer),
  12052. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12053. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12054. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12055. msm_routing_put_voice_mixer),
  12056. };
  12057. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  12058. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12059. MSM_BACKEND_DAI_EXTPROC_RX,
  12060. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12061. msm_routing_put_voice_mixer),
  12062. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12063. MSM_BACKEND_DAI_EXTPROC_RX,
  12064. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12065. msm_routing_put_voice_mixer),
  12066. };
  12067. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  12068. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12069. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12070. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12071. msm_routing_put_voice_mixer),
  12072. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12073. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12074. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12075. msm_routing_put_voice_mixer),
  12076. };
  12077. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  12078. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12079. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12080. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12081. msm_routing_put_voice_mixer),
  12082. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12083. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12084. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12085. msm_routing_put_voice_mixer),
  12086. };
  12087. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  12088. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  12089. MSM_BACKEND_DAI_PRI_I2S_TX,
  12090. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12091. msm_routing_put_voice_mixer),
  12092. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  12093. MSM_BACKEND_DAI_MI2S_TX,
  12094. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12095. msm_routing_put_voice_mixer),
  12096. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  12097. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12098. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12099. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12101. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12102. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  12103. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12104. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12105. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12107. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12108. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12109. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12110. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12111. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12113. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12114. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12115. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12116. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12117. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12119. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12120. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  12121. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12122. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12123. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12125. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12126. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  12127. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12128. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12129. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12131. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12132. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  12133. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12134. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12135. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_USB_TX,
  12137. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12138. msm_routing_put_voice_mixer),
  12139. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  12140. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12141. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12142. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12144. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12145. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12147. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12148. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12149. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12150. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12151. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12152. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12153. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12154. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  12155. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  12156. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12157. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  12159. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12160. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  12161. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  12162. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12163. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  12165. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12166. };
  12167. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  12168. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  12169. MSM_BACKEND_DAI_PRI_I2S_TX,
  12170. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12171. msm_routing_put_voice_mixer),
  12172. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  12173. MSM_BACKEND_DAI_MI2S_TX,
  12174. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12175. msm_routing_put_voice_mixer),
  12176. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  12177. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12178. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12179. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12181. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12182. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12184. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12185. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12186. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12187. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12188. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12189. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12190. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12191. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12193. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12194. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12195. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12196. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12197. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12199. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12200. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  12201. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12202. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12203. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12205. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12206. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  12207. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12208. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12209. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12211. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12212. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12214. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12215. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12217. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12218. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12219. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12220. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12221. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12223. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12224. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12225. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12226. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12227. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12229. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12230. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  12231. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  12232. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12233. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  12235. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12236. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  12237. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  12238. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12239. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  12241. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12242. };
  12243. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  12244. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_PRI_I2S_TX,
  12246. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12247. msm_routing_put_voice_mixer),
  12248. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_MI2S_TX,
  12250. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12251. msm_routing_put_voice_mixer),
  12252. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  12253. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12254. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12255. msm_routing_put_voice_mixer),
  12256. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  12257. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12258. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12259. msm_routing_put_voice_mixer),
  12260. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_AFE_PCM_TX,
  12262. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12263. msm_routing_put_voice_mixer),
  12264. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12265. MSM_BACKEND_DAI_AUXPCM_TX,
  12266. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12267. msm_routing_put_voice_mixer),
  12268. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12269. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12270. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12271. msm_routing_put_voice_mixer),
  12272. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12273. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12274. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12275. msm_routing_put_voice_mixer),
  12276. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12277. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12278. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12279. msm_routing_put_voice_mixer),
  12280. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12281. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12282. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12283. msm_routing_put_voice_mixer),
  12284. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  12285. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12286. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12287. msm_routing_put_voice_mixer),
  12288. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  12289. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12290. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12291. msm_routing_put_voice_mixer),
  12292. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  12293. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12294. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12295. msm_routing_put_voice_mixer),
  12296. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  12297. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12298. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12299. msm_routing_put_voice_mixer),
  12300. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  12301. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12302. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12303. msm_routing_put_voice_mixer),
  12304. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  12305. MSM_BACKEND_DAI_USB_TX,
  12306. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12307. msm_routing_put_voice_mixer),
  12308. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12309. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12310. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12311. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12313. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12314. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12315. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12316. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12317. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12319. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12320. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  12321. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  12322. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12323. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  12325. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12326. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  12327. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  12328. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12329. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  12331. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12332. };
  12333. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  12334. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12335. MSM_BACKEND_DAI_EXTPROC_TX,
  12336. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12337. msm_routing_put_voice_stub_mixer),
  12338. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12339. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12340. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12341. msm_routing_put_voice_stub_mixer),
  12342. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12343. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12344. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12345. msm_routing_put_voice_stub_mixer),
  12346. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12347. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12348. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12349. msm_routing_put_voice_stub_mixer),
  12350. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12351. MSM_BACKEND_DAI_MI2S_TX,
  12352. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12353. msm_routing_put_voice_stub_mixer),
  12354. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12355. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12356. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12357. msm_routing_put_voice_stub_mixer),
  12358. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12359. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12360. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12361. msm_routing_put_voice_stub_mixer),
  12362. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12363. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12364. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12365. msm_routing_put_voice_stub_mixer),
  12366. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12367. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12368. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12369. msm_routing_put_voice_stub_mixer),
  12370. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12371. MSM_BACKEND_DAI_AUXPCM_TX,
  12372. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12373. msm_routing_put_voice_stub_mixer),
  12374. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12375. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12376. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12377. msm_routing_put_voice_stub_mixer),
  12378. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12379. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12380. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12381. msm_routing_put_voice_stub_mixer),
  12382. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12383. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12384. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12385. msm_routing_put_voice_stub_mixer),
  12386. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12387. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12388. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12389. msm_routing_put_voice_stub_mixer),
  12390. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12391. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12392. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12393. msm_routing_put_voice_stub_mixer),
  12394. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12395. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12396. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12397. msm_routing_put_voice_stub_mixer),
  12398. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12399. MSM_BACKEND_DAI_AFE_PCM_TX,
  12400. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12401. msm_routing_put_voice_stub_mixer),
  12402. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12403. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12404. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12405. msm_routing_put_voice_stub_mixer),
  12406. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12407. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12408. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12409. msm_routing_put_voice_stub_mixer),
  12410. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12411. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12412. 1, 0, msm_routing_get_voice_stub_mixer,
  12413. msm_routing_put_voice_stub_mixer),
  12414. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12415. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12416. 1, 0, msm_routing_get_voice_stub_mixer,
  12417. msm_routing_put_voice_stub_mixer),
  12418. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12419. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12420. 1, 0, msm_routing_get_voice_stub_mixer,
  12421. msm_routing_put_voice_stub_mixer),
  12422. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12423. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12424. 1, 0, msm_routing_get_voice_stub_mixer,
  12425. msm_routing_put_voice_stub_mixer),
  12426. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12427. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  12428. 1, 0, msm_routing_get_voice_stub_mixer,
  12429. msm_routing_put_voice_stub_mixer),
  12430. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12431. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  12432. 1, 0, msm_routing_get_voice_stub_mixer,
  12433. msm_routing_put_voice_stub_mixer),
  12434. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12435. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  12436. 1, 0, msm_routing_get_voice_stub_mixer,
  12437. msm_routing_put_voice_stub_mixer),
  12438. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12439. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  12440. 1, 0, msm_routing_get_voice_stub_mixer,
  12441. msm_routing_put_voice_stub_mixer),
  12442. };
  12443. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  12444. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12445. MSM_BACKEND_DAI_EXTPROC_TX,
  12446. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12447. msm_routing_put_voice_stub_mixer),
  12448. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12449. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12450. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12451. msm_routing_put_voice_stub_mixer),
  12452. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12453. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12454. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12455. msm_routing_put_voice_stub_mixer),
  12456. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12457. MSM_BACKEND_DAI_AUXPCM_TX,
  12458. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12459. msm_routing_put_voice_stub_mixer),
  12460. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12461. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12462. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12463. msm_routing_put_voice_stub_mixer),
  12464. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12465. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12466. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12467. msm_routing_put_voice_stub_mixer),
  12468. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12469. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12470. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12471. msm_routing_put_voice_stub_mixer),
  12472. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12473. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12474. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12475. msm_routing_put_voice_stub_mixer),
  12476. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12477. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12478. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12479. msm_routing_put_voice_stub_mixer),
  12480. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12481. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12482. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12483. msm_routing_put_voice_stub_mixer),
  12484. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12485. MSM_BACKEND_DAI_AFE_PCM_TX,
  12486. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12487. msm_routing_put_voice_stub_mixer),
  12488. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12489. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12490. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12491. msm_routing_put_voice_stub_mixer),
  12492. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12493. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12494. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12495. msm_routing_put_voice_stub_mixer),
  12496. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12497. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12498. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12499. msm_routing_put_voice_stub_mixer),
  12500. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12501. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12502. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12503. msm_routing_put_voice_stub_mixer),
  12504. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12505. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12506. 1, 0, msm_routing_get_voice_stub_mixer,
  12507. msm_routing_put_voice_stub_mixer),
  12508. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12509. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12510. 1, 0, msm_routing_get_voice_stub_mixer,
  12511. msm_routing_put_voice_stub_mixer),
  12512. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12513. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12514. 1, 0, msm_routing_get_voice_stub_mixer,
  12515. msm_routing_put_voice_stub_mixer),
  12516. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12517. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12518. 1, 0, msm_routing_get_voice_stub_mixer,
  12519. msm_routing_put_voice_stub_mixer),
  12520. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12521. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  12522. 1, 0, msm_routing_get_voice_stub_mixer,
  12523. msm_routing_put_voice_stub_mixer),
  12524. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12525. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  12526. 1, 0, msm_routing_get_voice_stub_mixer,
  12527. msm_routing_put_voice_stub_mixer),
  12528. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12529. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  12530. 1, 0, msm_routing_get_voice_stub_mixer,
  12531. msm_routing_put_voice_stub_mixer),
  12532. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12533. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  12534. 1, 0, msm_routing_get_voice_stub_mixer,
  12535. msm_routing_put_voice_stub_mixer),
  12536. };
  12537. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  12538. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12539. MSM_BACKEND_DAI_EXTPROC_TX,
  12540. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12541. msm_routing_put_voice_stub_mixer),
  12542. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12543. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12544. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12545. msm_routing_put_voice_stub_mixer),
  12546. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12547. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12548. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12549. msm_routing_put_voice_stub_mixer),
  12550. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12551. MSM_BACKEND_DAI_AUXPCM_TX,
  12552. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12553. msm_routing_put_voice_stub_mixer),
  12554. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12556. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12557. msm_routing_put_voice_stub_mixer),
  12558. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12559. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12560. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12561. msm_routing_put_voice_stub_mixer),
  12562. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12564. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12565. msm_routing_put_voice_stub_mixer),
  12566. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12568. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12569. msm_routing_put_voice_stub_mixer),
  12570. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12572. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12573. msm_routing_put_voice_stub_mixer),
  12574. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12575. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12576. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12577. msm_routing_put_voice_stub_mixer),
  12578. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12579. MSM_BACKEND_DAI_AFE_PCM_TX,
  12580. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12581. msm_routing_put_voice_stub_mixer),
  12582. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12584. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12585. msm_routing_put_voice_stub_mixer),
  12586. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12588. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12589. msm_routing_put_voice_stub_mixer),
  12590. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12592. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12593. msm_routing_put_voice_stub_mixer),
  12594. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12596. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12597. msm_routing_put_voice_stub_mixer),
  12598. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12599. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12600. 1, 0, msm_routing_get_voice_stub_mixer,
  12601. msm_routing_put_voice_stub_mixer),
  12602. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12604. 1, 0, msm_routing_get_voice_stub_mixer,
  12605. msm_routing_put_voice_stub_mixer),
  12606. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12608. 1, 0, msm_routing_get_voice_stub_mixer,
  12609. msm_routing_put_voice_stub_mixer),
  12610. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12612. 1, 0, msm_routing_get_voice_stub_mixer,
  12613. msm_routing_put_voice_stub_mixer),
  12614. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12615. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  12616. 1, 0, msm_routing_get_voice_stub_mixer,
  12617. msm_routing_put_voice_stub_mixer),
  12618. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  12620. 1, 0, msm_routing_get_voice_stub_mixer,
  12621. msm_routing_put_voice_stub_mixer),
  12622. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12623. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  12624. 1, 0, msm_routing_get_voice_stub_mixer,
  12625. msm_routing_put_voice_stub_mixer),
  12626. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  12628. 1, 0, msm_routing_get_voice_stub_mixer,
  12629. msm_routing_put_voice_stub_mixer),
  12630. };
  12631. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  12632. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  12633. MSM_BACKEND_DAI_PRI_I2S_TX,
  12634. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12635. msm_routing_put_voice_mixer),
  12636. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  12637. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12638. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12639. msm_routing_put_voice_mixer),
  12640. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  12641. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12642. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  12643. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12644. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  12645. MSM_BACKEND_DAI_AFE_PCM_TX,
  12646. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12647. msm_routing_put_voice_mixer),
  12648. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12649. MSM_BACKEND_DAI_AUXPCM_TX,
  12650. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12651. msm_routing_put_voice_mixer),
  12652. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12653. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12654. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12655. msm_routing_put_voice_mixer),
  12656. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12657. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12658. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12659. msm_routing_put_voice_mixer),
  12660. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12661. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12662. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12663. msm_routing_put_voice_mixer),
  12664. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12665. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12666. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12667. msm_routing_put_voice_mixer),
  12668. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  12669. MSM_BACKEND_DAI_MI2S_TX,
  12670. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12671. msm_routing_put_voice_mixer),
  12672. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12673. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12674. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12675. msm_routing_put_voice_mixer),
  12676. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12677. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12678. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12679. msm_routing_put_voice_mixer),
  12680. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12681. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12682. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12683. msm_routing_put_voice_mixer),
  12684. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  12685. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12686. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12687. msm_routing_put_voice_mixer),
  12688. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  12689. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12690. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12691. msm_routing_put_voice_mixer),
  12692. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  12693. MSM_BACKEND_DAI_USB_TX,
  12694. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12695. msm_routing_put_voice_mixer),
  12696. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  12697. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  12698. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12699. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  12701. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12702. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  12703. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  12704. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12705. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  12707. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12708. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  12710. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12711. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  12713. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12714. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  12715. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  12716. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12717. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  12719. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12720. };
  12721. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  12722. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12723. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12724. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12725. msm_routing_put_port_mixer),
  12726. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12727. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12728. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12729. msm_routing_put_port_mixer),
  12730. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12731. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12732. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12733. msm_routing_put_port_mixer),
  12734. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12735. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12736. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12737. msm_routing_put_port_mixer),
  12738. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12739. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12740. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12741. msm_routing_put_port_mixer),
  12742. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12743. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12744. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12745. msm_routing_put_port_mixer),
  12746. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12747. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12748. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12749. msm_routing_put_port_mixer),
  12750. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12751. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12752. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12753. msm_routing_put_port_mixer),
  12754. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12755. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12756. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12757. msm_routing_put_port_mixer),
  12758. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12759. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12760. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12761. msm_routing_put_port_mixer),
  12762. };
  12763. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  12764. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12765. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12766. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12767. msm_routing_put_port_mixer),
  12768. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12769. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12770. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12771. msm_routing_put_port_mixer),
  12772. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12773. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12774. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12775. msm_routing_put_port_mixer),
  12776. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12777. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12778. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12779. msm_routing_put_port_mixer),
  12780. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12782. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12783. msm_routing_put_port_mixer),
  12784. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12786. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12787. msm_routing_put_port_mixer),
  12788. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12789. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12790. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12791. msm_routing_put_port_mixer),
  12792. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12793. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12794. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12795. msm_routing_put_port_mixer),
  12796. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12797. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12798. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12799. msm_routing_put_port_mixer),
  12800. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12802. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12803. msm_routing_put_port_mixer),
  12804. };
  12805. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  12806. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12807. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12808. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  12809. msm_routing_put_port_mixer),
  12810. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12811. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12812. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  12813. msm_routing_put_port_mixer),
  12814. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12815. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12816. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12817. msm_routing_put_port_mixer),
  12818. };
  12819. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  12820. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12822. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  12823. msm_routing_put_port_mixer),
  12824. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12826. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12827. msm_routing_put_port_mixer),
  12828. };
  12829. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  12830. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12831. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12832. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12833. msm_routing_put_port_mixer),
  12834. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12835. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12836. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12837. msm_routing_put_port_mixer),
  12838. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12839. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12840. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12841. msm_routing_put_port_mixer),
  12842. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12843. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12844. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12845. msm_routing_put_port_mixer),
  12846. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12847. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12848. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12849. msm_routing_put_port_mixer),
  12850. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12851. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12852. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12853. msm_routing_put_port_mixer),
  12854. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12855. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12856. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12857. msm_routing_put_port_mixer),
  12858. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12859. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12860. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12861. msm_routing_put_port_mixer),
  12862. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12863. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12864. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12865. msm_routing_put_port_mixer),
  12866. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12867. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12868. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12869. msm_routing_put_port_mixer),
  12870. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12871. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12872. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12873. msm_routing_put_port_mixer),
  12874. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12875. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12876. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12877. msm_routing_put_port_mixer),
  12878. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12879. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12880. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12881. msm_routing_put_port_mixer),
  12882. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12884. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12885. msm_routing_put_port_mixer),
  12886. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12888. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12889. msm_routing_put_port_mixer),
  12890. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12891. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12892. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12893. msm_routing_put_port_mixer),
  12894. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12895. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12896. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12897. msm_routing_put_port_mixer),
  12898. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  12899. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12900. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12901. msm_routing_put_port_mixer),
  12902. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12904. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12905. msm_routing_put_port_mixer),
  12906. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  12907. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12908. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12909. msm_routing_put_port_mixer),
  12910. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  12911. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12912. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12913. msm_routing_put_port_mixer),
  12914. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  12915. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12916. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12917. msm_routing_put_port_mixer),
  12918. };
  12919. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  12920. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12921. MSM_BACKEND_DAI_AUXPCM_RX,
  12922. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12923. msm_routing_put_port_mixer),
  12924. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12925. MSM_BACKEND_DAI_AUXPCM_RX,
  12926. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12927. msm_routing_put_port_mixer),
  12928. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12929. MSM_BACKEND_DAI_AUXPCM_RX,
  12930. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12931. msm_routing_put_port_mixer),
  12932. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12933. MSM_BACKEND_DAI_AUXPCM_RX,
  12934. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12935. msm_routing_put_port_mixer),
  12936. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_AUXPCM_RX,
  12938. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  12939. msm_routing_put_port_mixer),
  12940. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12941. MSM_BACKEND_DAI_AUXPCM_RX,
  12942. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12943. msm_routing_put_port_mixer),
  12944. };
  12945. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  12946. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12947. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12948. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12949. msm_routing_put_port_mixer),
  12950. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12951. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12952. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12953. msm_routing_put_port_mixer),
  12954. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12955. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12956. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12957. msm_routing_put_port_mixer),
  12958. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12959. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12960. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12961. msm_routing_put_port_mixer),
  12962. };
  12963. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  12964. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12965. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12966. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12967. msm_routing_put_port_mixer),
  12968. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12969. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12970. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12971. msm_routing_put_port_mixer),
  12972. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12973. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12974. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12975. msm_routing_put_port_mixer),
  12976. };
  12977. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  12978. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12980. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12981. msm_routing_put_port_mixer),
  12982. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12983. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12984. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12985. msm_routing_put_port_mixer),
  12986. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12987. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12988. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12989. msm_routing_put_port_mixer),
  12990. };
  12991. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  12992. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12993. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12994. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12995. msm_routing_put_port_mixer),
  12996. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12997. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12998. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12999. msm_routing_put_port_mixer),
  13000. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13001. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13002. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13003. msm_routing_put_port_mixer),
  13004. };
  13005. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  13006. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13007. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13008. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13009. msm_routing_put_port_mixer),
  13010. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13011. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13012. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  13013. msm_routing_put_port_mixer),
  13014. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13015. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13016. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13017. msm_routing_put_port_mixer),
  13018. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13019. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13020. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13021. msm_routing_put_port_mixer),
  13022. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13023. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13024. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13025. msm_routing_put_port_mixer),
  13026. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13028. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13029. msm_routing_put_port_mixer),
  13030. };
  13031. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  13032. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  13033. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13034. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  13035. msm_routing_put_port_mixer),
  13036. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13037. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13038. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13039. msm_routing_put_port_mixer),
  13040. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  13041. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13042. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  13043. msm_routing_put_port_mixer),
  13044. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  13045. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13046. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  13047. msm_routing_put_port_mixer),
  13048. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  13049. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13050. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  13051. msm_routing_put_port_mixer),
  13052. };
  13053. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  13054. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13056. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13057. msm_routing_put_port_mixer),
  13058. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13060. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13061. msm_routing_put_port_mixer),
  13062. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13063. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13064. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13065. msm_routing_put_port_mixer),
  13066. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13068. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13069. msm_routing_put_port_mixer),
  13070. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13071. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13072. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13073. msm_routing_put_port_mixer),
  13074. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13076. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13077. msm_routing_put_port_mixer),
  13078. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13079. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13080. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13081. msm_routing_put_port_mixer),
  13082. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13084. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13085. msm_routing_put_port_mixer),
  13086. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13088. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13089. msm_routing_put_port_mixer),
  13090. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13092. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13093. msm_routing_put_port_mixer),
  13094. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13095. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13096. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13097. msm_routing_put_port_mixer),
  13098. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13099. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13100. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13101. msm_routing_put_port_mixer),
  13102. };
  13103. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  13104. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13105. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13106. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13107. msm_routing_put_port_mixer),
  13108. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13109. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13110. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13111. msm_routing_put_port_mixer),
  13112. };
  13113. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  13114. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13115. MSM_BACKEND_DAI_AFE_PCM_RX,
  13116. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13117. msm_routing_put_port_mixer),
  13118. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13119. MSM_BACKEND_DAI_AFE_PCM_RX,
  13120. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13121. msm_routing_put_port_mixer),
  13122. };
  13123. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  13124. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13125. MSM_BACKEND_DAI_HDMI_RX,
  13126. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13127. msm_routing_put_port_mixer),
  13128. };
  13129. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  13130. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13131. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13132. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13133. msm_routing_put_port_mixer),
  13134. };
  13135. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  13136. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13138. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13139. msm_routing_put_port_mixer),
  13140. };
  13141. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  13142. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13143. MSM_BACKEND_DAI_SEC_I2S_RX,
  13144. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13145. msm_routing_put_port_mixer),
  13146. };
  13147. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  13148. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13149. MSM_BACKEND_DAI_MI2S_RX,
  13150. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13151. msm_routing_put_port_mixer),
  13152. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_MI2S_RX,
  13154. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13155. msm_routing_put_port_mixer),
  13156. };
  13157. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  13158. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13159. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13160. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13161. msm_routing_put_port_mixer),
  13162. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13163. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13164. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13165. msm_routing_put_port_mixer),
  13166. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13167. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13168. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13169. msm_routing_put_port_mixer),
  13170. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13171. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13172. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13173. msm_routing_put_port_mixer),
  13174. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13175. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13176. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13177. msm_routing_put_port_mixer),
  13178. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13179. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13180. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13181. msm_routing_put_port_mixer),
  13182. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13183. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13184. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13185. msm_routing_put_port_mixer),
  13186. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13187. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13188. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13189. msm_routing_put_port_mixer),
  13190. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13191. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13192. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13193. msm_routing_put_port_mixer),
  13194. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13195. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13196. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13197. msm_routing_put_port_mixer),
  13198. };
  13199. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  13200. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13201. MSM_BACKEND_DAI_USB_RX,
  13202. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  13203. msm_routing_put_port_mixer),
  13204. };
  13205. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  13206. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13207. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13208. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13209. msm_routing_put_port_mixer),
  13210. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13211. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13212. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13213. msm_routing_put_port_mixer),
  13214. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13215. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13216. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13217. msm_routing_put_port_mixer),
  13218. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13219. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13220. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13221. msm_routing_put_port_mixer),
  13222. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13223. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13224. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13225. msm_routing_put_port_mixer),
  13226. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13227. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13228. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13229. msm_routing_put_port_mixer),
  13230. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13231. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13232. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13233. msm_routing_put_port_mixer),
  13234. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13235. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13236. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13237. msm_routing_put_port_mixer),
  13238. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13239. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13240. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13241. msm_routing_put_port_mixer),
  13242. };
  13243. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  13244. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13246. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13247. msm_routing_put_port_mixer),
  13248. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13250. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13251. msm_routing_put_port_mixer),
  13252. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13254. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13255. msm_routing_put_port_mixer),
  13256. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13257. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13258. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13259. msm_routing_put_port_mixer),
  13260. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13262. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13263. msm_routing_put_port_mixer),
  13264. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13265. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13266. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13267. msm_routing_put_port_mixer),
  13268. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13270. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13271. msm_routing_put_port_mixer),
  13272. };
  13273. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  13274. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13275. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13276. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13277. msm_routing_get_port_mixer,
  13278. msm_routing_put_port_mixer),
  13279. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13281. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13282. msm_routing_get_port_mixer,
  13283. msm_routing_put_port_mixer),
  13284. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13286. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13287. msm_routing_get_port_mixer,
  13288. msm_routing_put_port_mixer),
  13289. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13291. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13292. msm_routing_get_port_mixer,
  13293. msm_routing_put_port_mixer),
  13294. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13295. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13296. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13297. msm_routing_get_port_mixer,
  13298. msm_routing_put_port_mixer),
  13299. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13301. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13302. msm_routing_get_port_mixer,
  13303. msm_routing_put_port_mixer),
  13304. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13305. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13306. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13307. msm_routing_get_port_mixer,
  13308. msm_routing_put_port_mixer),
  13309. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13311. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13312. msm_routing_get_port_mixer,
  13313. msm_routing_put_port_mixer),
  13314. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13315. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13316. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13317. msm_routing_get_port_mixer,
  13318. msm_routing_put_port_mixer),
  13319. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13321. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13322. msm_routing_get_port_mixer,
  13323. msm_routing_put_port_mixer),
  13324. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13326. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13327. msm_routing_get_port_mixer,
  13328. msm_routing_put_port_mixer),
  13329. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13331. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13332. msm_routing_get_port_mixer,
  13333. msm_routing_put_port_mixer),
  13334. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13336. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13337. msm_routing_get_port_mixer,
  13338. msm_routing_put_port_mixer),
  13339. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13341. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13342. msm_routing_get_port_mixer,
  13343. msm_routing_put_port_mixer),
  13344. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13345. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13346. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13347. msm_routing_get_port_mixer,
  13348. msm_routing_put_port_mixer),
  13349. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13351. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13352. msm_routing_get_port_mixer,
  13353. msm_routing_put_port_mixer),
  13354. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13355. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13356. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13357. msm_routing_get_port_mixer,
  13358. msm_routing_put_port_mixer),
  13359. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13361. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13362. msm_routing_get_port_mixer,
  13363. msm_routing_put_port_mixer),
  13364. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13366. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13367. msm_routing_get_port_mixer,
  13368. msm_routing_put_port_mixer),
  13369. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13371. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13372. msm_routing_get_port_mixer,
  13373. msm_routing_put_port_mixer),
  13374. };
  13375. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  13376. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13377. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13378. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13379. msm_routing_get_port_mixer,
  13380. msm_routing_put_port_mixer),
  13381. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13382. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13383. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13384. msm_routing_get_port_mixer,
  13385. msm_routing_put_port_mixer),
  13386. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13387. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13388. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13389. msm_routing_get_port_mixer,
  13390. msm_routing_put_port_mixer),
  13391. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13393. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13394. msm_routing_get_port_mixer,
  13395. msm_routing_put_port_mixer),
  13396. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13398. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13399. msm_routing_get_port_mixer,
  13400. msm_routing_put_port_mixer),
  13401. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13403. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13404. msm_routing_get_port_mixer,
  13405. msm_routing_put_port_mixer),
  13406. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13407. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13408. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13409. msm_routing_get_port_mixer,
  13410. msm_routing_put_port_mixer),
  13411. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13413. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13414. msm_routing_get_port_mixer,
  13415. msm_routing_put_port_mixer),
  13416. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13418. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13419. msm_routing_get_port_mixer,
  13420. msm_routing_put_port_mixer),
  13421. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13423. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13424. msm_routing_get_port_mixer,
  13425. msm_routing_put_port_mixer),
  13426. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13427. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13428. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13429. msm_routing_get_port_mixer,
  13430. msm_routing_put_port_mixer),
  13431. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13433. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13434. msm_routing_get_port_mixer,
  13435. msm_routing_put_port_mixer),
  13436. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13437. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13438. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13439. msm_routing_get_port_mixer,
  13440. msm_routing_put_port_mixer),
  13441. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13442. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13443. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13444. msm_routing_get_port_mixer,
  13445. msm_routing_put_port_mixer),
  13446. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13448. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13449. msm_routing_get_port_mixer,
  13450. msm_routing_put_port_mixer),
  13451. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13453. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13454. msm_routing_get_port_mixer,
  13455. msm_routing_put_port_mixer),
  13456. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13457. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13458. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13459. msm_routing_get_port_mixer,
  13460. msm_routing_put_port_mixer),
  13461. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13463. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13464. msm_routing_get_port_mixer,
  13465. msm_routing_put_port_mixer),
  13466. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13467. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13468. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13469. msm_routing_get_port_mixer,
  13470. msm_routing_put_port_mixer),
  13471. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13473. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13474. msm_routing_get_port_mixer,
  13475. msm_routing_put_port_mixer),
  13476. };
  13477. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  13478. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13479. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13480. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13481. msm_routing_get_port_mixer,
  13482. msm_routing_put_port_mixer),
  13483. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13485. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13486. msm_routing_get_port_mixer,
  13487. msm_routing_put_port_mixer),
  13488. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13489. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13490. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13491. msm_routing_get_port_mixer,
  13492. msm_routing_put_port_mixer),
  13493. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13494. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13495. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13496. msm_routing_get_port_mixer,
  13497. msm_routing_put_port_mixer),
  13498. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13499. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13500. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13501. msm_routing_get_port_mixer,
  13502. msm_routing_put_port_mixer),
  13503. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13505. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13506. msm_routing_get_port_mixer,
  13507. msm_routing_put_port_mixer),
  13508. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13509. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13510. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13511. msm_routing_get_port_mixer,
  13512. msm_routing_put_port_mixer),
  13513. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13514. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13515. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13516. msm_routing_get_port_mixer,
  13517. msm_routing_put_port_mixer),
  13518. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13519. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13520. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13521. msm_routing_get_port_mixer,
  13522. msm_routing_put_port_mixer),
  13523. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13525. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13526. msm_routing_get_port_mixer,
  13527. msm_routing_put_port_mixer),
  13528. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13529. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13530. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13531. msm_routing_get_port_mixer,
  13532. msm_routing_put_port_mixer),
  13533. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13535. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13536. msm_routing_get_port_mixer,
  13537. msm_routing_put_port_mixer),
  13538. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13540. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13541. msm_routing_get_port_mixer,
  13542. msm_routing_put_port_mixer),
  13543. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13545. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13546. msm_routing_get_port_mixer,
  13547. msm_routing_put_port_mixer),
  13548. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13549. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13550. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13551. msm_routing_get_port_mixer,
  13552. msm_routing_put_port_mixer),
  13553. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13554. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13555. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13556. msm_routing_get_port_mixer,
  13557. msm_routing_put_port_mixer),
  13558. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13559. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13560. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13561. msm_routing_get_port_mixer,
  13562. msm_routing_put_port_mixer),
  13563. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13565. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13566. msm_routing_get_port_mixer,
  13567. msm_routing_put_port_mixer),
  13568. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13569. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13570. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13571. msm_routing_get_port_mixer,
  13572. msm_routing_put_port_mixer),
  13573. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13574. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13575. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13576. msm_routing_get_port_mixer,
  13577. msm_routing_put_port_mixer),
  13578. };
  13579. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  13580. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13581. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13582. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13583. msm_routing_get_port_mixer,
  13584. msm_routing_put_port_mixer),
  13585. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13586. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13587. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13588. msm_routing_get_port_mixer,
  13589. msm_routing_put_port_mixer),
  13590. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13591. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13592. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13593. msm_routing_get_port_mixer,
  13594. msm_routing_put_port_mixer),
  13595. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13597. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13598. msm_routing_get_port_mixer,
  13599. msm_routing_put_port_mixer),
  13600. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13601. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13602. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13603. msm_routing_get_port_mixer,
  13604. msm_routing_put_port_mixer),
  13605. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13606. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13607. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13608. msm_routing_get_port_mixer,
  13609. msm_routing_put_port_mixer),
  13610. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13611. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13612. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13613. msm_routing_get_port_mixer,
  13614. msm_routing_put_port_mixer),
  13615. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13617. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13618. msm_routing_get_port_mixer,
  13619. msm_routing_put_port_mixer),
  13620. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13621. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13622. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13623. msm_routing_get_port_mixer,
  13624. msm_routing_put_port_mixer),
  13625. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13627. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13628. msm_routing_get_port_mixer,
  13629. msm_routing_put_port_mixer),
  13630. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13631. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13632. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13633. msm_routing_get_port_mixer,
  13634. msm_routing_put_port_mixer),
  13635. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13637. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13638. msm_routing_get_port_mixer,
  13639. msm_routing_put_port_mixer),
  13640. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13642. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13643. msm_routing_get_port_mixer,
  13644. msm_routing_put_port_mixer),
  13645. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13647. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13648. msm_routing_get_port_mixer,
  13649. msm_routing_put_port_mixer),
  13650. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13651. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13652. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13653. msm_routing_get_port_mixer,
  13654. msm_routing_put_port_mixer),
  13655. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13657. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13658. msm_routing_get_port_mixer,
  13659. msm_routing_put_port_mixer),
  13660. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13661. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13662. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13663. msm_routing_get_port_mixer,
  13664. msm_routing_put_port_mixer),
  13665. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13667. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13668. msm_routing_get_port_mixer,
  13669. msm_routing_put_port_mixer),
  13670. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13671. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13672. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13673. msm_routing_get_port_mixer,
  13674. msm_routing_put_port_mixer),
  13675. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13677. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13678. msm_routing_get_port_mixer,
  13679. msm_routing_put_port_mixer),
  13680. };
  13681. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  13682. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13683. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13684. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13685. msm_routing_get_port_mixer,
  13686. msm_routing_put_port_mixer),
  13687. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13689. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13690. msm_routing_get_port_mixer,
  13691. msm_routing_put_port_mixer),
  13692. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13693. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13694. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13695. msm_routing_get_port_mixer,
  13696. msm_routing_put_port_mixer),
  13697. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13699. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13700. msm_routing_get_port_mixer,
  13701. msm_routing_put_port_mixer),
  13702. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13703. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13704. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13705. msm_routing_get_port_mixer,
  13706. msm_routing_put_port_mixer),
  13707. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13709. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13710. msm_routing_get_port_mixer,
  13711. msm_routing_put_port_mixer),
  13712. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13713. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13714. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13715. msm_routing_get_port_mixer,
  13716. msm_routing_put_port_mixer),
  13717. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13718. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13719. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13720. msm_routing_get_port_mixer,
  13721. msm_routing_put_port_mixer),
  13722. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13723. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13724. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13725. msm_routing_get_port_mixer,
  13726. msm_routing_put_port_mixer),
  13727. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13729. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13730. msm_routing_get_port_mixer,
  13731. msm_routing_put_port_mixer),
  13732. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13734. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13735. msm_routing_get_port_mixer,
  13736. msm_routing_put_port_mixer),
  13737. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13739. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13740. msm_routing_get_port_mixer,
  13741. msm_routing_put_port_mixer),
  13742. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13744. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13745. msm_routing_get_port_mixer,
  13746. msm_routing_put_port_mixer),
  13747. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13748. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13749. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13750. msm_routing_get_port_mixer,
  13751. msm_routing_put_port_mixer),
  13752. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13753. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13754. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13755. msm_routing_get_port_mixer,
  13756. msm_routing_put_port_mixer),
  13757. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13759. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13760. msm_routing_get_port_mixer,
  13761. msm_routing_put_port_mixer),
  13762. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13763. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13764. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13765. msm_routing_get_port_mixer,
  13766. msm_routing_put_port_mixer),
  13767. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13769. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13770. msm_routing_get_port_mixer,
  13771. msm_routing_put_port_mixer),
  13772. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13773. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13774. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13775. msm_routing_get_port_mixer,
  13776. msm_routing_put_port_mixer),
  13777. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13779. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13780. msm_routing_get_port_mixer,
  13781. msm_routing_put_port_mixer),
  13782. };
  13783. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  13784. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13785. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13786. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13787. msm_routing_get_port_mixer,
  13788. msm_routing_put_port_mixer),
  13789. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13791. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13792. msm_routing_get_port_mixer,
  13793. msm_routing_put_port_mixer),
  13794. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13795. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13796. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13797. msm_routing_get_port_mixer,
  13798. msm_routing_put_port_mixer),
  13799. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13801. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13802. msm_routing_get_port_mixer,
  13803. msm_routing_put_port_mixer),
  13804. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13806. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13807. msm_routing_get_port_mixer,
  13808. msm_routing_put_port_mixer),
  13809. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13811. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13812. msm_routing_get_port_mixer,
  13813. msm_routing_put_port_mixer),
  13814. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13815. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13816. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13817. msm_routing_get_port_mixer,
  13818. msm_routing_put_port_mixer),
  13819. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13821. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13822. msm_routing_get_port_mixer,
  13823. msm_routing_put_port_mixer),
  13824. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13826. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13827. msm_routing_get_port_mixer,
  13828. msm_routing_put_port_mixer),
  13829. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13830. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13831. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13832. msm_routing_get_port_mixer,
  13833. msm_routing_put_port_mixer),
  13834. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13835. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13836. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13837. msm_routing_get_port_mixer,
  13838. msm_routing_put_port_mixer),
  13839. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13841. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13842. msm_routing_get_port_mixer,
  13843. msm_routing_put_port_mixer),
  13844. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13845. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13846. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13847. msm_routing_get_port_mixer,
  13848. msm_routing_put_port_mixer),
  13849. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13850. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13851. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13852. msm_routing_get_port_mixer,
  13853. msm_routing_put_port_mixer),
  13854. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13855. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13856. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13857. msm_routing_get_port_mixer,
  13858. msm_routing_put_port_mixer),
  13859. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13861. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13862. msm_routing_get_port_mixer,
  13863. msm_routing_put_port_mixer),
  13864. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13865. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13866. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13867. msm_routing_get_port_mixer,
  13868. msm_routing_put_port_mixer),
  13869. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13870. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13871. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13872. msm_routing_get_port_mixer,
  13873. msm_routing_put_port_mixer),
  13874. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13875. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13876. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13877. msm_routing_get_port_mixer,
  13878. msm_routing_put_port_mixer),
  13879. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13881. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13882. msm_routing_get_port_mixer,
  13883. msm_routing_put_port_mixer),
  13884. };
  13885. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  13886. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13887. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13888. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13889. msm_routing_get_port_mixer,
  13890. msm_routing_put_port_mixer),
  13891. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13893. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13894. msm_routing_get_port_mixer,
  13895. msm_routing_put_port_mixer),
  13896. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13897. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13898. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13899. msm_routing_get_port_mixer,
  13900. msm_routing_put_port_mixer),
  13901. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13903. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13904. msm_routing_get_port_mixer,
  13905. msm_routing_put_port_mixer),
  13906. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13907. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13908. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13909. msm_routing_get_port_mixer,
  13910. msm_routing_put_port_mixer),
  13911. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13913. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13914. msm_routing_get_port_mixer,
  13915. msm_routing_put_port_mixer),
  13916. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13917. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13918. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13919. msm_routing_get_port_mixer,
  13920. msm_routing_put_port_mixer),
  13921. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13922. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13923. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13924. msm_routing_get_port_mixer,
  13925. msm_routing_put_port_mixer),
  13926. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13927. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13928. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13929. msm_routing_get_port_mixer,
  13930. msm_routing_put_port_mixer),
  13931. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13933. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13934. msm_routing_get_port_mixer,
  13935. msm_routing_put_port_mixer),
  13936. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13937. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13938. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13939. msm_routing_get_port_mixer,
  13940. msm_routing_put_port_mixer),
  13941. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13942. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13943. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13944. msm_routing_get_port_mixer,
  13945. msm_routing_put_port_mixer),
  13946. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13948. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13949. msm_routing_get_port_mixer,
  13950. msm_routing_put_port_mixer),
  13951. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13953. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13954. msm_routing_get_port_mixer,
  13955. msm_routing_put_port_mixer),
  13956. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13957. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13958. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13959. msm_routing_get_port_mixer,
  13960. msm_routing_put_port_mixer),
  13961. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13963. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13964. msm_routing_get_port_mixer,
  13965. msm_routing_put_port_mixer),
  13966. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13967. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13968. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13969. msm_routing_get_port_mixer,
  13970. msm_routing_put_port_mixer),
  13971. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13973. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13974. msm_routing_get_port_mixer,
  13975. msm_routing_put_port_mixer),
  13976. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13977. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13978. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13979. msm_routing_get_port_mixer,
  13980. msm_routing_put_port_mixer),
  13981. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13982. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13983. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13984. msm_routing_get_port_mixer,
  13985. msm_routing_put_port_mixer),
  13986. };
  13987. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  13988. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13989. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13990. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13991. msm_routing_get_port_mixer,
  13992. msm_routing_put_port_mixer),
  13993. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13995. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13996. msm_routing_get_port_mixer,
  13997. msm_routing_put_port_mixer),
  13998. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14000. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14001. msm_routing_get_port_mixer,
  14002. msm_routing_put_port_mixer),
  14003. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14004. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14005. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14006. msm_routing_get_port_mixer,
  14007. msm_routing_put_port_mixer),
  14008. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14009. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14010. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14011. msm_routing_get_port_mixer,
  14012. msm_routing_put_port_mixer),
  14013. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14015. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14016. msm_routing_get_port_mixer,
  14017. msm_routing_put_port_mixer),
  14018. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14019. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14020. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14021. msm_routing_get_port_mixer,
  14022. msm_routing_put_port_mixer),
  14023. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14024. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14025. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14026. msm_routing_get_port_mixer,
  14027. msm_routing_put_port_mixer),
  14028. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14029. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14030. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14031. msm_routing_get_port_mixer,
  14032. msm_routing_put_port_mixer),
  14033. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14035. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14036. msm_routing_get_port_mixer,
  14037. msm_routing_put_port_mixer),
  14038. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14039. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14040. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14041. msm_routing_get_port_mixer,
  14042. msm_routing_put_port_mixer),
  14043. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14044. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14045. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14046. msm_routing_get_port_mixer,
  14047. msm_routing_put_port_mixer),
  14048. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14049. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14050. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14051. msm_routing_get_port_mixer,
  14052. msm_routing_put_port_mixer),
  14053. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14055. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14056. msm_routing_get_port_mixer,
  14057. msm_routing_put_port_mixer),
  14058. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14059. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14060. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14061. msm_routing_get_port_mixer,
  14062. msm_routing_put_port_mixer),
  14063. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14064. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14065. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14066. msm_routing_get_port_mixer,
  14067. msm_routing_put_port_mixer),
  14068. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14069. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14070. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14071. msm_routing_get_port_mixer,
  14072. msm_routing_put_port_mixer),
  14073. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14074. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14075. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14076. msm_routing_get_port_mixer,
  14077. msm_routing_put_port_mixer),
  14078. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14079. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14080. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14081. msm_routing_get_port_mixer,
  14082. msm_routing_put_port_mixer),
  14083. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14084. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14085. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14086. msm_routing_get_port_mixer,
  14087. msm_routing_put_port_mixer),
  14088. };
  14089. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  14090. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14091. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14092. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14093. msm_routing_get_port_mixer,
  14094. msm_routing_put_port_mixer),
  14095. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14097. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14098. msm_routing_get_port_mixer,
  14099. msm_routing_put_port_mixer),
  14100. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14101. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14102. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14103. msm_routing_get_port_mixer,
  14104. msm_routing_put_port_mixer),
  14105. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14107. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14108. msm_routing_get_port_mixer,
  14109. msm_routing_put_port_mixer),
  14110. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14111. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14112. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14113. msm_routing_get_port_mixer,
  14114. msm_routing_put_port_mixer),
  14115. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14116. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14117. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14118. msm_routing_get_port_mixer,
  14119. msm_routing_put_port_mixer),
  14120. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14121. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14122. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14123. msm_routing_get_port_mixer,
  14124. msm_routing_put_port_mixer),
  14125. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14126. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14127. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14128. msm_routing_get_port_mixer,
  14129. msm_routing_put_port_mixer),
  14130. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14131. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14132. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14133. msm_routing_get_port_mixer,
  14134. msm_routing_put_port_mixer),
  14135. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14137. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14138. msm_routing_get_port_mixer,
  14139. msm_routing_put_port_mixer),
  14140. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14141. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14142. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14143. msm_routing_get_port_mixer,
  14144. msm_routing_put_port_mixer),
  14145. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14147. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14148. msm_routing_get_port_mixer,
  14149. msm_routing_put_port_mixer),
  14150. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14151. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14152. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14153. msm_routing_get_port_mixer,
  14154. msm_routing_put_port_mixer),
  14155. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14156. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14157. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14158. msm_routing_get_port_mixer,
  14159. msm_routing_put_port_mixer),
  14160. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14161. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14162. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14163. msm_routing_get_port_mixer,
  14164. msm_routing_put_port_mixer),
  14165. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14166. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14167. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14168. msm_routing_get_port_mixer,
  14169. msm_routing_put_port_mixer),
  14170. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14171. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14172. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14173. msm_routing_get_port_mixer,
  14174. msm_routing_put_port_mixer),
  14175. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14177. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14178. msm_routing_get_port_mixer,
  14179. msm_routing_put_port_mixer),
  14180. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14181. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14182. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14183. msm_routing_get_port_mixer,
  14184. msm_routing_put_port_mixer),
  14185. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14186. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14187. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14188. msm_routing_get_port_mixer,
  14189. msm_routing_put_port_mixer),
  14190. };
  14191. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  14192. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14193. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14194. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14195. msm_routing_get_port_mixer,
  14196. msm_routing_put_port_mixer),
  14197. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14199. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14200. msm_routing_get_port_mixer,
  14201. msm_routing_put_port_mixer),
  14202. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14203. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14204. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14205. msm_routing_get_port_mixer,
  14206. msm_routing_put_port_mixer),
  14207. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14208. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14209. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14210. msm_routing_get_port_mixer,
  14211. msm_routing_put_port_mixer),
  14212. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14213. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14214. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14215. msm_routing_get_port_mixer,
  14216. msm_routing_put_port_mixer),
  14217. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14219. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14220. msm_routing_get_port_mixer,
  14221. msm_routing_put_port_mixer),
  14222. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14223. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14224. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14225. msm_routing_get_port_mixer,
  14226. msm_routing_put_port_mixer),
  14227. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14228. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14229. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14230. msm_routing_get_port_mixer,
  14231. msm_routing_put_port_mixer),
  14232. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14233. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14234. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14235. msm_routing_get_port_mixer,
  14236. msm_routing_put_port_mixer),
  14237. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14239. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14240. msm_routing_get_port_mixer,
  14241. msm_routing_put_port_mixer),
  14242. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14243. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14244. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14245. msm_routing_get_port_mixer,
  14246. msm_routing_put_port_mixer),
  14247. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14248. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14249. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14250. msm_routing_get_port_mixer,
  14251. msm_routing_put_port_mixer),
  14252. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14253. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14254. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14255. msm_routing_get_port_mixer,
  14256. msm_routing_put_port_mixer),
  14257. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14259. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14260. msm_routing_get_port_mixer,
  14261. msm_routing_put_port_mixer),
  14262. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14263. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14264. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14265. msm_routing_get_port_mixer,
  14266. msm_routing_put_port_mixer),
  14267. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14268. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14269. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14270. msm_routing_get_port_mixer,
  14271. msm_routing_put_port_mixer),
  14272. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14273. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14274. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14275. msm_routing_get_port_mixer,
  14276. msm_routing_put_port_mixer),
  14277. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14278. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14279. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14280. msm_routing_get_port_mixer,
  14281. msm_routing_put_port_mixer),
  14282. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14283. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14284. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14285. msm_routing_get_port_mixer,
  14286. msm_routing_put_port_mixer),
  14287. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14289. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14290. msm_routing_get_port_mixer,
  14291. msm_routing_put_port_mixer),
  14292. };
  14293. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  14294. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14295. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14296. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14297. msm_routing_get_port_mixer,
  14298. msm_routing_put_port_mixer),
  14299. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14300. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14301. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14302. msm_routing_get_port_mixer,
  14303. msm_routing_put_port_mixer),
  14304. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14305. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14306. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14307. msm_routing_get_port_mixer,
  14308. msm_routing_put_port_mixer),
  14309. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14311. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14312. msm_routing_get_port_mixer,
  14313. msm_routing_put_port_mixer),
  14314. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14315. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14316. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14317. msm_routing_get_port_mixer,
  14318. msm_routing_put_port_mixer),
  14319. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14320. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14321. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14322. msm_routing_get_port_mixer,
  14323. msm_routing_put_port_mixer),
  14324. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14325. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14326. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14327. msm_routing_get_port_mixer,
  14328. msm_routing_put_port_mixer),
  14329. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14330. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14331. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14332. msm_routing_get_port_mixer,
  14333. msm_routing_put_port_mixer),
  14334. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14335. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14336. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14337. msm_routing_get_port_mixer,
  14338. msm_routing_put_port_mixer),
  14339. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14340. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14341. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14342. msm_routing_get_port_mixer,
  14343. msm_routing_put_port_mixer),
  14344. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14345. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14346. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14347. msm_routing_get_port_mixer,
  14348. msm_routing_put_port_mixer),
  14349. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14351. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14352. msm_routing_get_port_mixer,
  14353. msm_routing_put_port_mixer),
  14354. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14355. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14356. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14357. msm_routing_get_port_mixer,
  14358. msm_routing_put_port_mixer),
  14359. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14360. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14361. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14362. msm_routing_get_port_mixer,
  14363. msm_routing_put_port_mixer),
  14364. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14365. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14366. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14367. msm_routing_get_port_mixer,
  14368. msm_routing_put_port_mixer),
  14369. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14370. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14371. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14372. msm_routing_get_port_mixer,
  14373. msm_routing_put_port_mixer),
  14374. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14375. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14376. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14377. msm_routing_get_port_mixer,
  14378. msm_routing_put_port_mixer),
  14379. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14381. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14382. msm_routing_get_port_mixer,
  14383. msm_routing_put_port_mixer),
  14384. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14385. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14386. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14387. msm_routing_get_port_mixer,
  14388. msm_routing_put_port_mixer),
  14389. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14391. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14392. msm_routing_get_port_mixer,
  14393. msm_routing_put_port_mixer),
  14394. };
  14395. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  14396. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14397. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14398. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14399. msm_routing_get_port_mixer,
  14400. msm_routing_put_port_mixer),
  14401. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14403. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14404. msm_routing_get_port_mixer,
  14405. msm_routing_put_port_mixer),
  14406. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14407. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14408. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14409. msm_routing_get_port_mixer,
  14410. msm_routing_put_port_mixer),
  14411. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14413. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14414. msm_routing_get_port_mixer,
  14415. msm_routing_put_port_mixer),
  14416. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14417. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14418. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14419. msm_routing_get_port_mixer,
  14420. msm_routing_put_port_mixer),
  14421. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14422. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14423. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14424. msm_routing_get_port_mixer,
  14425. msm_routing_put_port_mixer),
  14426. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14427. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14428. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14429. msm_routing_get_port_mixer,
  14430. msm_routing_put_port_mixer),
  14431. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14432. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14433. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14434. msm_routing_get_port_mixer,
  14435. msm_routing_put_port_mixer),
  14436. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14437. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14438. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14439. msm_routing_get_port_mixer,
  14440. msm_routing_put_port_mixer),
  14441. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14443. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14444. msm_routing_get_port_mixer,
  14445. msm_routing_put_port_mixer),
  14446. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14447. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14448. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14449. msm_routing_get_port_mixer,
  14450. msm_routing_put_port_mixer),
  14451. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14452. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14453. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14454. msm_routing_get_port_mixer,
  14455. msm_routing_put_port_mixer),
  14456. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14457. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14458. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14459. msm_routing_get_port_mixer,
  14460. msm_routing_put_port_mixer),
  14461. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14463. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14464. msm_routing_get_port_mixer,
  14465. msm_routing_put_port_mixer),
  14466. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14467. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14468. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14469. msm_routing_get_port_mixer,
  14470. msm_routing_put_port_mixer),
  14471. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14472. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14473. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14474. msm_routing_get_port_mixer,
  14475. msm_routing_put_port_mixer),
  14476. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14477. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14478. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14479. msm_routing_get_port_mixer,
  14480. msm_routing_put_port_mixer),
  14481. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14483. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14484. msm_routing_get_port_mixer,
  14485. msm_routing_put_port_mixer),
  14486. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14487. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14488. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14489. msm_routing_get_port_mixer,
  14490. msm_routing_put_port_mixer),
  14491. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14492. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14493. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14494. msm_routing_get_port_mixer,
  14495. msm_routing_put_port_mixer),
  14496. };
  14497. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  14498. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14499. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14500. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14501. msm_routing_get_port_mixer,
  14502. msm_routing_put_port_mixer),
  14503. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14504. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14505. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14506. msm_routing_get_port_mixer,
  14507. msm_routing_put_port_mixer),
  14508. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14509. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14510. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14511. msm_routing_get_port_mixer,
  14512. msm_routing_put_port_mixer),
  14513. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14514. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14515. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14516. msm_routing_get_port_mixer,
  14517. msm_routing_put_port_mixer),
  14518. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14519. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14520. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14521. msm_routing_get_port_mixer,
  14522. msm_routing_put_port_mixer),
  14523. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14524. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14525. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14526. msm_routing_get_port_mixer,
  14527. msm_routing_put_port_mixer),
  14528. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14529. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14530. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14531. msm_routing_get_port_mixer,
  14532. msm_routing_put_port_mixer),
  14533. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14534. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14535. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14536. msm_routing_get_port_mixer,
  14537. msm_routing_put_port_mixer),
  14538. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14539. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14540. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14541. msm_routing_get_port_mixer,
  14542. msm_routing_put_port_mixer),
  14543. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14545. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14546. msm_routing_get_port_mixer,
  14547. msm_routing_put_port_mixer),
  14548. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14549. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14550. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14551. msm_routing_get_port_mixer,
  14552. msm_routing_put_port_mixer),
  14553. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14554. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14555. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14556. msm_routing_get_port_mixer,
  14557. msm_routing_put_port_mixer),
  14558. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14559. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14560. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14561. msm_routing_get_port_mixer,
  14562. msm_routing_put_port_mixer),
  14563. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14564. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14565. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14566. msm_routing_get_port_mixer,
  14567. msm_routing_put_port_mixer),
  14568. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14569. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14570. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14571. msm_routing_get_port_mixer,
  14572. msm_routing_put_port_mixer),
  14573. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14574. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14575. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14576. msm_routing_get_port_mixer,
  14577. msm_routing_put_port_mixer),
  14578. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14579. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14580. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14581. msm_routing_get_port_mixer,
  14582. msm_routing_put_port_mixer),
  14583. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14584. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14585. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14586. msm_routing_get_port_mixer,
  14587. msm_routing_put_port_mixer),
  14588. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14589. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14590. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14591. msm_routing_get_port_mixer,
  14592. msm_routing_put_port_mixer),
  14593. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14594. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14595. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14596. msm_routing_get_port_mixer,
  14597. msm_routing_put_port_mixer),
  14598. };
  14599. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  14600. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14601. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14602. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14603. msm_routing_get_port_mixer,
  14604. msm_routing_put_port_mixer),
  14605. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14606. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14607. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14608. msm_routing_get_port_mixer,
  14609. msm_routing_put_port_mixer),
  14610. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14611. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14612. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14613. msm_routing_get_port_mixer,
  14614. msm_routing_put_port_mixer),
  14615. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14616. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14617. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14618. msm_routing_get_port_mixer,
  14619. msm_routing_put_port_mixer),
  14620. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14621. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14622. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14623. msm_routing_get_port_mixer,
  14624. msm_routing_put_port_mixer),
  14625. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14627. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14628. msm_routing_get_port_mixer,
  14629. msm_routing_put_port_mixer),
  14630. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14631. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14632. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14633. msm_routing_get_port_mixer,
  14634. msm_routing_put_port_mixer),
  14635. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14636. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14637. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14638. msm_routing_get_port_mixer,
  14639. msm_routing_put_port_mixer),
  14640. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14641. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14642. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14643. msm_routing_get_port_mixer,
  14644. msm_routing_put_port_mixer),
  14645. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14646. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14647. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14648. msm_routing_get_port_mixer,
  14649. msm_routing_put_port_mixer),
  14650. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14651. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14652. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14653. msm_routing_get_port_mixer,
  14654. msm_routing_put_port_mixer),
  14655. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14656. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14657. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14658. msm_routing_get_port_mixer,
  14659. msm_routing_put_port_mixer),
  14660. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14661. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14662. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14663. msm_routing_get_port_mixer,
  14664. msm_routing_put_port_mixer),
  14665. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14667. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14668. msm_routing_get_port_mixer,
  14669. msm_routing_put_port_mixer),
  14670. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14671. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14672. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14673. msm_routing_get_port_mixer,
  14674. msm_routing_put_port_mixer),
  14675. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14676. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14677. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14678. msm_routing_get_port_mixer,
  14679. msm_routing_put_port_mixer),
  14680. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14681. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14682. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14683. msm_routing_get_port_mixer,
  14684. msm_routing_put_port_mixer),
  14685. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14686. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14687. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14688. msm_routing_get_port_mixer,
  14689. msm_routing_put_port_mixer),
  14690. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14691. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14692. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14693. msm_routing_get_port_mixer,
  14694. msm_routing_put_port_mixer),
  14695. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14697. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14698. msm_routing_get_port_mixer,
  14699. msm_routing_put_port_mixer),
  14700. };
  14701. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  14702. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14703. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14704. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14705. msm_routing_get_port_mixer,
  14706. msm_routing_put_port_mixer),
  14707. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14708. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14709. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14710. msm_routing_get_port_mixer,
  14711. msm_routing_put_port_mixer),
  14712. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14713. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14714. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14715. msm_routing_get_port_mixer,
  14716. msm_routing_put_port_mixer),
  14717. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14718. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14719. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14720. msm_routing_get_port_mixer,
  14721. msm_routing_put_port_mixer),
  14722. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14723. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14724. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14725. msm_routing_get_port_mixer,
  14726. msm_routing_put_port_mixer),
  14727. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14728. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14729. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14730. msm_routing_get_port_mixer,
  14731. msm_routing_put_port_mixer),
  14732. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14733. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14734. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14735. msm_routing_get_port_mixer,
  14736. msm_routing_put_port_mixer),
  14737. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14738. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14739. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14740. msm_routing_get_port_mixer,
  14741. msm_routing_put_port_mixer),
  14742. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14743. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14744. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14745. msm_routing_get_port_mixer,
  14746. msm_routing_put_port_mixer),
  14747. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14748. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14749. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14750. msm_routing_get_port_mixer,
  14751. msm_routing_put_port_mixer),
  14752. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14753. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14754. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14755. msm_routing_get_port_mixer,
  14756. msm_routing_put_port_mixer),
  14757. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14759. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14760. msm_routing_get_port_mixer,
  14761. msm_routing_put_port_mixer),
  14762. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14763. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14764. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14765. msm_routing_get_port_mixer,
  14766. msm_routing_put_port_mixer),
  14767. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14768. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14769. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14770. msm_routing_get_port_mixer,
  14771. msm_routing_put_port_mixer),
  14772. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14773. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14774. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14775. msm_routing_get_port_mixer,
  14776. msm_routing_put_port_mixer),
  14777. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14778. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14779. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14780. msm_routing_get_port_mixer,
  14781. msm_routing_put_port_mixer),
  14782. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14783. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14784. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14785. msm_routing_get_port_mixer,
  14786. msm_routing_put_port_mixer),
  14787. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14789. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14790. msm_routing_get_port_mixer,
  14791. msm_routing_put_port_mixer),
  14792. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14793. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14794. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14795. msm_routing_get_port_mixer,
  14796. msm_routing_put_port_mixer),
  14797. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14798. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14799. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14800. msm_routing_get_port_mixer,
  14801. msm_routing_put_port_mixer),
  14802. };
  14803. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  14804. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14805. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14806. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14807. msm_routing_get_port_mixer,
  14808. msm_routing_put_port_mixer),
  14809. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14811. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14812. msm_routing_get_port_mixer,
  14813. msm_routing_put_port_mixer),
  14814. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14815. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14816. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14817. msm_routing_get_port_mixer,
  14818. msm_routing_put_port_mixer),
  14819. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14820. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14821. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14822. msm_routing_get_port_mixer,
  14823. msm_routing_put_port_mixer),
  14824. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14825. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14826. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14827. msm_routing_get_port_mixer,
  14828. msm_routing_put_port_mixer),
  14829. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14830. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14831. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14832. msm_routing_get_port_mixer,
  14833. msm_routing_put_port_mixer),
  14834. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14835. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14836. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14837. msm_routing_get_port_mixer,
  14838. msm_routing_put_port_mixer),
  14839. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14841. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14842. msm_routing_get_port_mixer,
  14843. msm_routing_put_port_mixer),
  14844. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14845. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14846. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14847. msm_routing_get_port_mixer,
  14848. msm_routing_put_port_mixer),
  14849. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14850. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14851. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14852. msm_routing_get_port_mixer,
  14853. msm_routing_put_port_mixer),
  14854. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14855. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14856. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14857. msm_routing_get_port_mixer,
  14858. msm_routing_put_port_mixer),
  14859. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14860. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14861. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14862. msm_routing_get_port_mixer,
  14863. msm_routing_put_port_mixer),
  14864. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14865. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14866. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14867. msm_routing_get_port_mixer,
  14868. msm_routing_put_port_mixer),
  14869. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14871. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14872. msm_routing_get_port_mixer,
  14873. msm_routing_put_port_mixer),
  14874. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14875. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14876. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14877. msm_routing_get_port_mixer,
  14878. msm_routing_put_port_mixer),
  14879. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14880. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14881. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14882. msm_routing_get_port_mixer,
  14883. msm_routing_put_port_mixer),
  14884. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14885. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14886. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14887. msm_routing_get_port_mixer,
  14888. msm_routing_put_port_mixer),
  14889. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14890. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14891. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14892. msm_routing_get_port_mixer,
  14893. msm_routing_put_port_mixer),
  14894. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14895. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14896. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14897. msm_routing_get_port_mixer,
  14898. msm_routing_put_port_mixer),
  14899. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14900. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14901. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14902. msm_routing_get_port_mixer,
  14903. msm_routing_put_port_mixer),
  14904. };
  14905. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  14906. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14907. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14908. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14909. msm_routing_get_port_mixer,
  14910. msm_routing_put_port_mixer),
  14911. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14913. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14914. msm_routing_get_port_mixer,
  14915. msm_routing_put_port_mixer),
  14916. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14917. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14918. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14919. msm_routing_get_port_mixer,
  14920. msm_routing_put_port_mixer),
  14921. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14922. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14923. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14924. msm_routing_get_port_mixer,
  14925. msm_routing_put_port_mixer),
  14926. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14927. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14928. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14929. msm_routing_get_port_mixer,
  14930. msm_routing_put_port_mixer),
  14931. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14932. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14933. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14934. msm_routing_get_port_mixer,
  14935. msm_routing_put_port_mixer),
  14936. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14937. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14938. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14939. msm_routing_get_port_mixer,
  14940. msm_routing_put_port_mixer),
  14941. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14942. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14943. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14944. msm_routing_get_port_mixer,
  14945. msm_routing_put_port_mixer),
  14946. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14947. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14948. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14949. msm_routing_get_port_mixer,
  14950. msm_routing_put_port_mixer),
  14951. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14953. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14954. msm_routing_get_port_mixer,
  14955. msm_routing_put_port_mixer),
  14956. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14957. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14958. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14959. msm_routing_get_port_mixer,
  14960. msm_routing_put_port_mixer),
  14961. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14962. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14963. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14964. msm_routing_get_port_mixer,
  14965. msm_routing_put_port_mixer),
  14966. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14967. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14968. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14969. msm_routing_get_port_mixer,
  14970. msm_routing_put_port_mixer),
  14971. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14973. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14974. msm_routing_get_port_mixer,
  14975. msm_routing_put_port_mixer),
  14976. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14977. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14978. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14979. msm_routing_get_port_mixer,
  14980. msm_routing_put_port_mixer),
  14981. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14982. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14983. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14984. msm_routing_get_port_mixer,
  14985. msm_routing_put_port_mixer),
  14986. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14987. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14988. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14989. msm_routing_get_port_mixer,
  14990. msm_routing_put_port_mixer),
  14991. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14993. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14994. msm_routing_get_port_mixer,
  14995. msm_routing_put_port_mixer),
  14996. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14997. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14998. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14999. msm_routing_get_port_mixer,
  15000. msm_routing_put_port_mixer),
  15001. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15002. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15003. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15004. msm_routing_get_port_mixer,
  15005. msm_routing_put_port_mixer),
  15006. };
  15007. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  15008. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15009. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15010. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15011. msm_routing_get_port_mixer,
  15012. msm_routing_put_port_mixer),
  15013. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15014. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15015. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15016. msm_routing_get_port_mixer,
  15017. msm_routing_put_port_mixer),
  15018. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15019. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15020. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15021. msm_routing_get_port_mixer,
  15022. msm_routing_put_port_mixer),
  15023. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15024. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15025. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15026. msm_routing_get_port_mixer,
  15027. msm_routing_put_port_mixer),
  15028. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15029. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15030. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15031. msm_routing_get_port_mixer,
  15032. msm_routing_put_port_mixer),
  15033. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15035. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15036. msm_routing_get_port_mixer,
  15037. msm_routing_put_port_mixer),
  15038. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15039. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15040. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15041. msm_routing_get_port_mixer,
  15042. msm_routing_put_port_mixer),
  15043. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15045. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15046. msm_routing_get_port_mixer,
  15047. msm_routing_put_port_mixer),
  15048. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15049. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15050. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15051. msm_routing_get_port_mixer,
  15052. msm_routing_put_port_mixer),
  15053. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15054. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15055. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15056. msm_routing_get_port_mixer,
  15057. msm_routing_put_port_mixer),
  15058. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15059. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15060. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15061. msm_routing_get_port_mixer,
  15062. msm_routing_put_port_mixer),
  15063. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15064. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15065. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15066. msm_routing_get_port_mixer,
  15067. msm_routing_put_port_mixer),
  15068. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15069. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15070. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15071. msm_routing_get_port_mixer,
  15072. msm_routing_put_port_mixer),
  15073. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15074. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15075. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15076. msm_routing_get_port_mixer,
  15077. msm_routing_put_port_mixer),
  15078. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15079. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15080. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15081. msm_routing_get_port_mixer,
  15082. msm_routing_put_port_mixer),
  15083. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15085. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15086. msm_routing_get_port_mixer,
  15087. msm_routing_put_port_mixer),
  15088. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15089. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15090. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15091. msm_routing_get_port_mixer,
  15092. msm_routing_put_port_mixer),
  15093. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15094. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15095. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15096. msm_routing_get_port_mixer,
  15097. msm_routing_put_port_mixer),
  15098. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15099. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15100. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15101. msm_routing_get_port_mixer,
  15102. msm_routing_put_port_mixer),
  15103. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15104. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15105. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15106. msm_routing_get_port_mixer,
  15107. msm_routing_put_port_mixer),
  15108. };
  15109. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  15110. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15111. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15112. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15113. msm_routing_get_port_mixer,
  15114. msm_routing_put_port_mixer),
  15115. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15117. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15118. msm_routing_get_port_mixer,
  15119. msm_routing_put_port_mixer),
  15120. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15121. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15122. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15123. msm_routing_get_port_mixer,
  15124. msm_routing_put_port_mixer),
  15125. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15126. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15127. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15128. msm_routing_get_port_mixer,
  15129. msm_routing_put_port_mixer),
  15130. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15131. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15132. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15133. msm_routing_get_port_mixer,
  15134. msm_routing_put_port_mixer),
  15135. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15136. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15137. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15138. msm_routing_get_port_mixer,
  15139. msm_routing_put_port_mixer),
  15140. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15141. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15142. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15143. msm_routing_get_port_mixer,
  15144. msm_routing_put_port_mixer),
  15145. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15146. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15147. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15148. msm_routing_get_port_mixer,
  15149. msm_routing_put_port_mixer),
  15150. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15151. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15152. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15153. msm_routing_get_port_mixer,
  15154. msm_routing_put_port_mixer),
  15155. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15156. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15157. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15158. msm_routing_get_port_mixer,
  15159. msm_routing_put_port_mixer),
  15160. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15161. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15162. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15163. msm_routing_get_port_mixer,
  15164. msm_routing_put_port_mixer),
  15165. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15166. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15167. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15168. msm_routing_get_port_mixer,
  15169. msm_routing_put_port_mixer),
  15170. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15171. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15172. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15173. msm_routing_get_port_mixer,
  15174. msm_routing_put_port_mixer),
  15175. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15176. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15177. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15178. msm_routing_get_port_mixer,
  15179. msm_routing_put_port_mixer),
  15180. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15181. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15182. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15183. msm_routing_get_port_mixer,
  15184. msm_routing_put_port_mixer),
  15185. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15186. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15187. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15188. msm_routing_get_port_mixer,
  15189. msm_routing_put_port_mixer),
  15190. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15191. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15192. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15193. msm_routing_get_port_mixer,
  15194. msm_routing_put_port_mixer),
  15195. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15196. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15197. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15198. msm_routing_get_port_mixer,
  15199. msm_routing_put_port_mixer),
  15200. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15201. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15202. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15203. msm_routing_get_port_mixer,
  15204. msm_routing_put_port_mixer),
  15205. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15206. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15207. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15208. msm_routing_get_port_mixer,
  15209. msm_routing_put_port_mixer),
  15210. };
  15211. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  15212. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15213. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15214. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15215. msm_routing_get_port_mixer,
  15216. msm_routing_put_port_mixer),
  15217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15218. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15219. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15220. msm_routing_get_port_mixer,
  15221. msm_routing_put_port_mixer),
  15222. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15223. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15224. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15225. msm_routing_get_port_mixer,
  15226. msm_routing_put_port_mixer),
  15227. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15228. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15229. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15230. msm_routing_get_port_mixer,
  15231. msm_routing_put_port_mixer),
  15232. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15233. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15234. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15235. msm_routing_get_port_mixer,
  15236. msm_routing_put_port_mixer),
  15237. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15239. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15240. msm_routing_get_port_mixer,
  15241. msm_routing_put_port_mixer),
  15242. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15243. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15244. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15245. msm_routing_get_port_mixer,
  15246. msm_routing_put_port_mixer),
  15247. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15248. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15249. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15250. msm_routing_get_port_mixer,
  15251. msm_routing_put_port_mixer),
  15252. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15253. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15254. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15255. msm_routing_get_port_mixer,
  15256. msm_routing_put_port_mixer),
  15257. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15258. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15259. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15260. msm_routing_get_port_mixer,
  15261. msm_routing_put_port_mixer),
  15262. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15263. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15264. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15265. msm_routing_get_port_mixer,
  15266. msm_routing_put_port_mixer),
  15267. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15268. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15269. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15270. msm_routing_get_port_mixer,
  15271. msm_routing_put_port_mixer),
  15272. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15273. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15274. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15275. msm_routing_get_port_mixer,
  15276. msm_routing_put_port_mixer),
  15277. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15279. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15280. msm_routing_get_port_mixer,
  15281. msm_routing_put_port_mixer),
  15282. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15283. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15284. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15285. msm_routing_get_port_mixer,
  15286. msm_routing_put_port_mixer),
  15287. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15288. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15289. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15290. msm_routing_get_port_mixer,
  15291. msm_routing_put_port_mixer),
  15292. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15293. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15294. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15295. msm_routing_get_port_mixer,
  15296. msm_routing_put_port_mixer),
  15297. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15299. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15300. msm_routing_get_port_mixer,
  15301. msm_routing_put_port_mixer),
  15302. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15303. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15304. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15305. msm_routing_get_port_mixer,
  15306. msm_routing_put_port_mixer),
  15307. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15308. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15309. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15310. msm_routing_get_port_mixer,
  15311. msm_routing_put_port_mixer),
  15312. };
  15313. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  15314. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15315. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15316. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15317. msm_routing_put_port_mixer),
  15318. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15319. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15320. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15321. msm_routing_put_port_mixer),
  15322. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15323. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15324. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15325. msm_routing_put_port_mixer),
  15326. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15327. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15328. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15329. msm_routing_put_port_mixer),
  15330. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15331. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15332. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15333. msm_routing_put_port_mixer),
  15334. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15335. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15336. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15337. msm_routing_put_port_mixer),
  15338. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15339. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15340. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15341. msm_routing_put_port_mixer),
  15342. };
  15343. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  15344. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15345. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15346. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15347. msm_routing_put_port_mixer),
  15348. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15349. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15350. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15351. msm_routing_put_port_mixer),
  15352. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15353. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15354. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15355. msm_routing_put_port_mixer),
  15356. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15357. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15358. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15359. msm_routing_put_port_mixer),
  15360. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15361. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15362. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15363. msm_routing_put_port_mixer),
  15364. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15365. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15366. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15367. msm_routing_put_port_mixer),
  15368. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15369. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15370. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15371. msm_routing_put_port_mixer),
  15372. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15374. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15375. msm_routing_put_port_mixer),
  15376. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15378. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15379. msm_routing_put_port_mixer),
  15380. };
  15381. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  15382. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15383. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15384. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15385. msm_routing_put_listen_mixer),
  15386. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15387. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15388. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15389. msm_routing_put_listen_mixer),
  15390. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15391. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15392. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15393. msm_routing_put_listen_mixer),
  15394. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15396. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15397. msm_routing_put_listen_mixer),
  15398. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15400. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15401. msm_routing_put_listen_mixer),
  15402. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15404. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15405. msm_routing_put_listen_mixer),
  15406. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15408. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15409. msm_routing_put_listen_mixer),
  15410. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15411. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15412. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15413. msm_routing_put_listen_mixer),
  15414. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15415. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15416. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15417. msm_routing_put_listen_mixer),
  15418. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15419. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15420. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15421. msm_routing_put_listen_mixer),
  15422. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15423. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15424. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15425. msm_routing_put_listen_mixer),
  15426. };
  15427. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  15428. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15430. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15431. msm_routing_put_listen_mixer),
  15432. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  15433. SND_SOC_NOPM,
  15434. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15435. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15436. msm_routing_put_listen_mixer),
  15437. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15438. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15439. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15440. msm_routing_put_listen_mixer),
  15441. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15442. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15443. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15444. msm_routing_put_listen_mixer),
  15445. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15446. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15447. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15448. msm_routing_put_listen_mixer),
  15449. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15450. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15451. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15452. msm_routing_put_listen_mixer),
  15453. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15454. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15455. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15456. msm_routing_put_listen_mixer),
  15457. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15458. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15459. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15460. msm_routing_put_listen_mixer),
  15461. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15462. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15463. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15464. msm_routing_put_listen_mixer),
  15465. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15466. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15467. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15468. msm_routing_put_listen_mixer),
  15469. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15470. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15471. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15472. msm_routing_put_listen_mixer),
  15473. };
  15474. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  15475. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15476. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15477. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15478. msm_routing_put_listen_mixer),
  15479. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15480. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15481. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15482. msm_routing_put_listen_mixer),
  15483. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15484. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15485. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15486. msm_routing_put_listen_mixer),
  15487. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15488. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15489. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15490. msm_routing_put_listen_mixer),
  15491. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15492. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15493. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15494. msm_routing_put_listen_mixer),
  15495. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15496. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15497. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15498. msm_routing_put_listen_mixer),
  15499. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15500. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15501. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15502. msm_routing_put_listen_mixer),
  15503. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15504. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15505. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15506. msm_routing_put_listen_mixer),
  15507. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15508. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15509. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15510. msm_routing_put_listen_mixer),
  15511. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15512. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15513. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15514. msm_routing_put_listen_mixer),
  15515. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15517. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15518. msm_routing_put_listen_mixer),
  15519. };
  15520. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  15521. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15522. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15523. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15524. msm_routing_put_listen_mixer),
  15525. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15526. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15527. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15528. msm_routing_put_listen_mixer),
  15529. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15530. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15531. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15532. msm_routing_put_listen_mixer),
  15533. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15534. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15535. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15536. msm_routing_put_listen_mixer),
  15537. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15538. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15539. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15540. msm_routing_put_listen_mixer),
  15541. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15542. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15543. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15544. msm_routing_put_listen_mixer),
  15545. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15546. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15547. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15548. msm_routing_put_listen_mixer),
  15549. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15550. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15551. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15552. msm_routing_put_listen_mixer),
  15553. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15554. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15555. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15556. msm_routing_put_listen_mixer),
  15557. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15558. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15559. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15560. msm_routing_put_listen_mixer),
  15561. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15562. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15563. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15564. msm_routing_put_listen_mixer),
  15565. };
  15566. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  15567. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15568. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15569. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15570. msm_routing_put_listen_mixer),
  15571. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15572. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15573. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15574. msm_routing_put_listen_mixer),
  15575. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15576. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15577. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15578. msm_routing_put_listen_mixer),
  15579. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15580. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15581. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15582. msm_routing_put_listen_mixer),
  15583. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15584. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15585. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15586. msm_routing_put_listen_mixer),
  15587. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15588. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15589. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15590. msm_routing_put_listen_mixer),
  15591. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15592. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15593. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15594. msm_routing_put_listen_mixer),
  15595. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15596. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15597. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15598. msm_routing_put_listen_mixer),
  15599. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15600. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15601. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15602. msm_routing_put_listen_mixer),
  15603. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15604. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15605. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15606. msm_routing_put_listen_mixer),
  15607. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15608. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15609. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15610. msm_routing_put_listen_mixer),
  15611. };
  15612. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  15613. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15614. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15615. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15616. msm_routing_put_listen_mixer),
  15617. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15618. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15619. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15620. msm_routing_put_listen_mixer),
  15621. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15622. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15623. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15624. msm_routing_put_listen_mixer),
  15625. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15626. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15627. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15628. msm_routing_put_listen_mixer),
  15629. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15630. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15631. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15632. msm_routing_put_listen_mixer),
  15633. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15634. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15635. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15636. msm_routing_put_listen_mixer),
  15637. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15639. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15640. msm_routing_put_listen_mixer),
  15641. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15642. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15643. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15644. msm_routing_put_listen_mixer),
  15645. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15646. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15647. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15648. msm_routing_put_listen_mixer),
  15649. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15650. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15651. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15652. msm_routing_put_listen_mixer),
  15653. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15654. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15655. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15656. msm_routing_put_listen_mixer),
  15657. };
  15658. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  15659. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15660. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15661. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15662. msm_routing_put_listen_mixer),
  15663. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15664. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15665. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15666. msm_routing_put_listen_mixer),
  15667. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15669. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15670. msm_routing_put_listen_mixer),
  15671. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15673. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15674. msm_routing_put_listen_mixer),
  15675. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15676. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15677. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15678. msm_routing_put_listen_mixer),
  15679. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15681. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15682. msm_routing_put_listen_mixer),
  15683. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15685. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15686. msm_routing_put_listen_mixer),
  15687. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15688. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15689. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15690. msm_routing_put_listen_mixer),
  15691. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15692. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15693. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15694. msm_routing_put_listen_mixer),
  15695. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15696. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15697. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15698. msm_routing_put_listen_mixer),
  15699. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15700. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15701. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15702. msm_routing_put_listen_mixer),
  15703. };
  15704. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  15705. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15706. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15707. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15708. msm_routing_put_listen_mixer),
  15709. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15710. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15711. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15712. msm_routing_put_listen_mixer),
  15713. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15714. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15715. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15716. msm_routing_put_listen_mixer),
  15717. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15718. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15719. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15720. msm_routing_put_listen_mixer),
  15721. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15722. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15723. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15724. msm_routing_put_listen_mixer),
  15725. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15726. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15727. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15728. msm_routing_put_listen_mixer),
  15729. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15730. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15731. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15732. msm_routing_put_listen_mixer),
  15733. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15734. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15735. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15736. msm_routing_put_listen_mixer),
  15737. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15738. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15739. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15740. msm_routing_put_listen_mixer),
  15741. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15742. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15743. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15744. msm_routing_put_listen_mixer),
  15745. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15746. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15747. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15748. msm_routing_put_listen_mixer),
  15749. };
  15750. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  15751. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15752. 0, 1, 0, msm_routing_get_switch_mixer,
  15753. msm_routing_put_switch_mixer);
  15754. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  15755. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15756. 0, 1, 0, msm_routing_get_switch_mixer,
  15757. msm_routing_put_switch_mixer);
  15758. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  15759. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15760. 0, 1, 0, msm_routing_get_switch_mixer,
  15761. msm_routing_put_switch_mixer);
  15762. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  15763. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15764. 0, 1, 0, msm_routing_get_switch_mixer,
  15765. msm_routing_put_switch_mixer);
  15766. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  15767. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15768. 0, 1, 0, msm_routing_get_switch_mixer,
  15769. msm_routing_put_switch_mixer);
  15770. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  15771. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15772. 0, 1, 0, msm_routing_get_switch_mixer,
  15773. msm_routing_put_switch_mixer);
  15774. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  15775. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15776. 0, 1, 0, msm_routing_get_switch_mixer,
  15777. msm_routing_put_switch_mixer);
  15778. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  15779. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15780. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  15781. msm_routing_put_fm_pcmrx_switch_mixer);
  15782. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  15783. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15784. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  15785. msm_routing_put_int0_mi2s_switch_mixer);
  15786. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  15787. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15788. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  15789. msm_routing_put_int4_mi2s_switch_mixer);
  15790. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  15791. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15792. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  15793. msm_routing_put_pri_mi2s_switch_mixer);
  15794. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  15795. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15796. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  15797. msm_routing_put_sec_mi2s_switch_mixer);
  15798. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  15799. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15800. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  15801. msm_routing_put_tert_mi2s_switch_mixer);
  15802. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  15803. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15804. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  15805. msm_routing_put_quat_mi2s_switch_mixer);
  15806. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  15807. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15808. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  15809. msm_routing_put_quin_mi2s_switch_mixer);
  15810. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  15811. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15812. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15813. msm_routing_put_hfp_switch_mixer);
  15814. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  15815. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15816. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15817. msm_routing_put_hfp_switch_mixer);
  15818. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  15819. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15820. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15821. msm_routing_put_hfp_switch_mixer);
  15822. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  15823. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15824. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15825. msm_routing_put_hfp_switch_mixer);
  15826. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  15827. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15828. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  15829. msm_routing_put_usb_switch_mixer);
  15830. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  15831. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15832. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  15833. msm_routing_a2dp_switch_mixer_put);
  15834. static const struct soc_enum lsm_port_enum =
  15835. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  15836. static const char * const lsm_func_text[] = {
  15837. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  15838. };
  15839. static const struct soc_enum lsm_func_enum =
  15840. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  15841. static const struct snd_kcontrol_new lsm_controls[] = {
  15842. /* kcontrol of lsm_function */
  15843. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15844. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15845. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15846. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15847. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15848. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15849. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15850. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15851. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15852. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15853. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15854. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15855. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15856. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15857. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15858. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15859. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15860. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15861. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15862. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15863. /* kcontrol of lsm_port */
  15864. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  15865. msm_routing_lsm_port_get,
  15866. msm_routing_lsm_port_put),
  15867. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  15868. msm_routing_lsm_port_get,
  15869. msm_routing_lsm_port_put),
  15870. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  15871. msm_routing_lsm_port_get,
  15872. msm_routing_lsm_port_put),
  15873. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  15874. msm_routing_lsm_port_get,
  15875. msm_routing_lsm_port_put),
  15876. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  15877. msm_routing_lsm_port_get,
  15878. msm_routing_lsm_port_put),
  15879. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  15880. msm_routing_lsm_port_get,
  15881. msm_routing_lsm_port_put),
  15882. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  15883. msm_routing_lsm_port_get,
  15884. msm_routing_lsm_port_put),
  15885. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  15886. msm_routing_lsm_port_get,
  15887. msm_routing_lsm_port_put),
  15888. };
  15889. static const char * const aanc_slim_0_rx_text[] = {
  15890. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  15891. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  15892. };
  15893. static const struct soc_enum aanc_slim_0_rx_enum =
  15894. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  15895. aanc_slim_0_rx_text);
  15896. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  15897. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  15898. msm_routing_slim_0_rx_aanc_mux_get,
  15899. msm_routing_slim_0_rx_aanc_mux_put)
  15900. };
  15901. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  15902. struct snd_ctl_elem_value *ucontrol)
  15903. {
  15904. ucontrol->value.integer.value[0] = aanc_level;
  15905. return 0;
  15906. }
  15907. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  15908. struct snd_ctl_elem_value *ucontrol)
  15909. {
  15910. int ret = 0;
  15911. mutex_lock(&routing_lock);
  15912. aanc_level = ucontrol->value.integer.value[0];
  15913. pr_debug("%s: value: %ld\n",
  15914. __func__, ucontrol->value.integer.value[0]);
  15915. ret = afe_set_aanc_noise_level(aanc_level);
  15916. mutex_unlock(&routing_lock);
  15917. return ret;
  15918. }
  15919. static const struct snd_kcontrol_new aanc_noise_level[] = {
  15920. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  15921. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  15922. };
  15923. static int msm_routing_get_stereo_to_custom_stereo_control(
  15924. struct snd_kcontrol *kcontrol,
  15925. struct snd_ctl_elem_value *ucontrol)
  15926. {
  15927. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  15928. return 0;
  15929. }
  15930. static int msm_routing_put_stereo_to_custom_stereo_control(
  15931. struct snd_kcontrol *kcontrol,
  15932. struct snd_ctl_elem_value *ucontrol)
  15933. {
  15934. int flag = 0, i = 0, rc = 0, idx = 0;
  15935. int be_index = 0, port_id, topo_id;
  15936. unsigned int session_id = 0;
  15937. uint16_t op_FL_ip_FL_weight = 0;
  15938. uint16_t op_FL_ip_FR_weight = 0;
  15939. uint16_t op_FR_ip_FL_weight = 0;
  15940. uint16_t op_FR_ip_FR_weight = 0;
  15941. flag = ucontrol->value.integer.value[0];
  15942. pr_debug("%s E flag %d\n", __func__, flag);
  15943. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  15944. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  15945. __func__, is_custom_stereo_on, flag);
  15946. return 0;
  15947. }
  15948. is_custom_stereo_on = flag ? true : false;
  15949. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  15950. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  15951. port_id = msm_bedais[be_index].port_id;
  15952. if (!msm_bedais[be_index].active)
  15953. continue;
  15954. if ((port_id != SLIMBUS_0_RX) &&
  15955. (port_id != RT_PROXY_PORT_001_RX) &&
  15956. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  15957. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  15958. continue;
  15959. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  15960. MSM_FRONTEND_DAI_MM_SIZE) {
  15961. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  15962. LEGACY_PCM_MODE)
  15963. goto skip_send_custom_stereo;
  15964. session_id =
  15965. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  15966. if (is_custom_stereo_on) {
  15967. op_FL_ip_FL_weight =
  15968. Q14_GAIN_ZERO_POINT_FIVE;
  15969. op_FL_ip_FR_weight =
  15970. Q14_GAIN_ZERO_POINT_FIVE;
  15971. op_FR_ip_FL_weight =
  15972. Q14_GAIN_ZERO_POINT_FIVE;
  15973. op_FR_ip_FR_weight =
  15974. Q14_GAIN_ZERO_POINT_FIVE;
  15975. } else {
  15976. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  15977. op_FL_ip_FR_weight = 0;
  15978. op_FR_ip_FL_weight = 0;
  15979. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  15980. }
  15981. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15982. unsigned long copp =
  15983. session_copp_map[i]
  15984. [SESSION_TYPE_RX][be_index];
  15985. if (!test_bit(idx, &copp))
  15986. goto skip_send_custom_stereo;
  15987. topo_id = adm_get_topology_for_port_copp_idx(
  15988. msm_bedais[be_index].port_id, idx);
  15989. if (topo_id < 0)
  15990. pr_debug("%s:Err:custom stereo topo %d",
  15991. __func__, topo_id);
  15992. pr_debug("idx %d\n", idx);
  15993. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  15994. rc = msm_ds2_dap_set_custom_stereo_onoff
  15995. (msm_bedais[be_index].port_id,
  15996. idx, is_custom_stereo_on);
  15997. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  15998. rc = dolby_dap_set_custom_stereo_onoff(
  15999. msm_bedais[be_index].port_id,
  16000. idx, is_custom_stereo_on);
  16001. else
  16002. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  16003. (msm_bedais[be_index].port_id,
  16004. idx, session_id,
  16005. op_FL_ip_FL_weight,
  16006. op_FL_ip_FR_weight,
  16007. op_FR_ip_FL_weight,
  16008. op_FR_ip_FR_weight);
  16009. if (rc < 0)
  16010. skip_send_custom_stereo:
  16011. pr_err("%s: err setting custom stereo\n",
  16012. __func__);
  16013. }
  16014. }
  16015. }
  16016. return 0;
  16017. }
  16018. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  16019. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  16020. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  16021. msm_routing_put_stereo_to_custom_stereo_control),
  16022. };
  16023. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16024. struct snd_ctl_elem_value *ucontrol)
  16025. {
  16026. return 0;
  16027. }
  16028. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16029. struct snd_ctl_elem_value *ucontrol)
  16030. {
  16031. int i = 0, j;
  16032. int num_app_types = ucontrol->value.integer.value[i++];
  16033. pr_debug("%s\n", __func__);
  16034. memset(app_type_cfg, 0, MAX_APP_TYPES*
  16035. sizeof(struct msm_pcm_routing_app_type_data));
  16036. if (num_app_types > MAX_APP_TYPES) {
  16037. pr_err("%s: number of app types exceed the max supported\n",
  16038. __func__);
  16039. return -EINVAL;
  16040. }
  16041. for (j = 0; j < num_app_types; j++) {
  16042. app_type_cfg[j].app_type =
  16043. ucontrol->value.integer.value[i++];
  16044. app_type_cfg[j].sample_rate =
  16045. ucontrol->value.integer.value[i++];
  16046. app_type_cfg[j].bit_width =
  16047. ucontrol->value.integer.value[i++];
  16048. }
  16049. return 0;
  16050. }
  16051. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  16052. struct snd_ctl_elem_value *ucontrol)
  16053. {
  16054. int j, fe_id, be_id, port_type;
  16055. int ret = 0;
  16056. unsigned long copp;
  16057. struct msm_pcm_routing_bdai_data *bedai;
  16058. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16059. SESSION_TYPE_RX;
  16060. int app_type = ucontrol->value.integer.value[1];
  16061. int gain = (ucontrol->value.integer.value[2] +
  16062. ucontrol->value.integer.value[3])/2;
  16063. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16064. MSM_AFE_PORT_TYPE_TX;
  16065. mutex_lock(&routing_lock);
  16066. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16067. if (is_be_dai_extproc(be_id))
  16068. continue;
  16069. bedai = &msm_bedais[be_id];
  16070. if (afe_get_port_type(bedai->port_id) != port_type)
  16071. continue;
  16072. if (!bedai->active)
  16073. continue;
  16074. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16075. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16076. continue;
  16077. if (app_type !=
  16078. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16079. continue;
  16080. copp = session_copp_map[fe_id][dir][be_id];
  16081. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  16082. if (!test_bit(j, &copp))
  16083. continue;
  16084. ret |= adm_set_volume(bedai->port_id, j, gain);
  16085. }
  16086. }
  16087. }
  16088. mutex_unlock(&routing_lock);
  16089. return ret ? -EINVAL : 0;
  16090. }
  16091. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  16092. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  16093. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  16094. msm_routing_put_app_type_cfg_control),
  16095. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  16096. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  16097. };
  16098. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  16099. struct snd_ctl_elem_value *ucontrol)
  16100. {
  16101. int copp_idx, fe_id, be_id, port_type;
  16102. int ret = 0;
  16103. unsigned long copp;
  16104. struct msm_pcm_routing_bdai_data *bedai;
  16105. u8 *packed_params = NULL;
  16106. struct param_hdr_v3 param_hdr;
  16107. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  16108. sizeof(uint32_t));
  16109. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16110. SESSION_TYPE_RX;
  16111. int app_type = ucontrol->value.integer.value[1];
  16112. int module_id = ucontrol->value.integer.value[2];
  16113. int instance_id = ucontrol->value.integer.value[3];
  16114. int param_id = ucontrol->value.integer.value[4];
  16115. int param_value = ucontrol->value.integer.value[5];
  16116. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16117. MSM_AFE_PORT_TYPE_TX;
  16118. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  16119. __func__, app_type, module_id,
  16120. instance_id, param_id, param_value);
  16121. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  16122. if (!packed_params)
  16123. return -ENOMEM;
  16124. memset(&param_hdr, 0, sizeof(param_hdr));
  16125. param_hdr.module_id = module_id;
  16126. param_hdr.instance_id = instance_id;
  16127. param_hdr.param_id = param_id;
  16128. param_hdr.param_size = sizeof(uint32_t);
  16129. packed_param_size = 0;
  16130. mutex_lock(&routing_lock);
  16131. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16132. if (is_be_dai_extproc(be_id))
  16133. continue;
  16134. bedai = &msm_bedais[be_id];
  16135. if (afe_get_port_type(bedai->port_id) != port_type)
  16136. continue;
  16137. if (!bedai->active)
  16138. continue;
  16139. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16140. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16141. continue;
  16142. if (app_type !=
  16143. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16144. continue;
  16145. copp = session_copp_map[fe_id][dir][be_id];
  16146. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  16147. copp_idx++) {
  16148. if (!test_bit(copp_idx, &copp))
  16149. continue;
  16150. ret = q6common_pack_pp_params(packed_params,
  16151. &param_hdr,
  16152. (u8 *) &param_value,
  16153. &packed_param_size);
  16154. if (ret) {
  16155. pr_err("%s: Failed to pack params, error %d\n",
  16156. __func__, ret);
  16157. goto done;
  16158. }
  16159. ret = adm_set_pp_params(bedai->port_id,
  16160. copp_idx, NULL,
  16161. packed_params,
  16162. packed_param_size);
  16163. if (ret) {
  16164. pr_err("%s: Setting param failed with err=%d\n",
  16165. __func__, ret);
  16166. ret = -EINVAL;
  16167. goto done;
  16168. }
  16169. }
  16170. }
  16171. }
  16172. done:
  16173. mutex_unlock(&routing_lock);
  16174. kfree(packed_params);
  16175. return ret;
  16176. }
  16177. static const struct snd_kcontrol_new module_cfg_controls[] = {
  16178. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  16179. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  16180. };
  16181. static int msm_routing_get_lsm_app_type_cfg_control(
  16182. struct snd_kcontrol *kcontrol,
  16183. struct snd_ctl_elem_value *ucontrol)
  16184. {
  16185. return 0;
  16186. }
  16187. static int msm_routing_put_lsm_app_type_cfg_control(
  16188. struct snd_kcontrol *kcontrol,
  16189. struct snd_ctl_elem_value *ucontrol)
  16190. {
  16191. int shift = ((struct soc_multi_mixer_control *)
  16192. kcontrol->private_value)->shift;
  16193. int i = 0, j;
  16194. int num_app_types = ucontrol->value.integer.value[i++];
  16195. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  16196. sizeof(struct msm_pcm_routing_app_type_data));
  16197. if (num_app_types > MAX_APP_TYPES) {
  16198. pr_err("%s: number of app types exceed the max supported\n",
  16199. __func__);
  16200. return -EINVAL;
  16201. }
  16202. for (j = 0; j < num_app_types; j++) {
  16203. lsm_app_type_cfg[j].app_type =
  16204. ucontrol->value.integer.value[i++];
  16205. lsm_app_type_cfg[j].sample_rate =
  16206. ucontrol->value.integer.value[i++];
  16207. lsm_app_type_cfg[j].bit_width =
  16208. ucontrol->value.integer.value[i++];
  16209. /* Shift of 1 indicates this is V2 mixer control */
  16210. if (shift == 1)
  16211. lsm_app_type_cfg[j].num_out_channels =
  16212. ucontrol->value.integer.value[i++];
  16213. }
  16214. return 0;
  16215. }
  16216. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  16217. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  16218. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16219. msm_routing_put_lsm_app_type_cfg_control),
  16220. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  16221. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16222. msm_routing_put_lsm_app_type_cfg_control),
  16223. };
  16224. static int msm_routing_get_use_ds1_or_ds2_control(
  16225. struct snd_kcontrol *kcontrol,
  16226. struct snd_ctl_elem_value *ucontrol)
  16227. {
  16228. ucontrol->value.integer.value[0] = is_ds2_on;
  16229. return 0;
  16230. }
  16231. static int msm_routing_put_use_ds1_or_ds2_control(
  16232. struct snd_kcontrol *kcontrol,
  16233. struct snd_ctl_elem_value *ucontrol)
  16234. {
  16235. is_ds2_on = ucontrol->value.integer.value[0];
  16236. return 0;
  16237. }
  16238. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  16239. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  16240. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  16241. msm_routing_put_use_ds1_or_ds2_control),
  16242. };
  16243. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  16244. struct snd_ctl_elem_value *ucontrol) {
  16245. int rc = 0;
  16246. int be_idx = 0;
  16247. char *param_value;
  16248. int *update_param_value;
  16249. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  16250. struct param_hdr_v3 param_hdr;
  16251. param_value = kzalloc(param_size, GFP_KERNEL);
  16252. if (!param_value)
  16253. return -ENOMEM;
  16254. memset(&param_hdr, 0, sizeof(param_hdr));
  16255. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  16256. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  16257. break;
  16258. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  16259. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  16260. param_hdr.instance_id = INSTANCE_ID_0;
  16261. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  16262. param_hdr.param_size = param_size;
  16263. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  16264. NULL, &param_hdr, (u8 *) param_value);
  16265. if (rc) {
  16266. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  16267. kfree(param_value);
  16268. return -EINVAL;
  16269. }
  16270. update_param_value = (int *)param_value;
  16271. ucontrol->value.integer.value[0] = update_param_value[0];
  16272. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  16273. __func__, update_param_value[0]);
  16274. }
  16275. kfree(param_value);
  16276. return 0;
  16277. }
  16278. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  16279. struct snd_ctl_elem_value *ucontrol)
  16280. {
  16281. voc_session_id = ucontrol->value.integer.value[0];
  16282. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  16283. return 0;
  16284. }
  16285. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  16286. struct snd_ctl_elem_value *ucontrol)
  16287. {
  16288. ucontrol->value.integer.value[0] = voc_session_id;
  16289. return 0;
  16290. }
  16291. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  16292. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  16293. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  16294. msm_voc_session_id_put),
  16295. };
  16296. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  16297. struct snd_ctl_elem_info *uinfo)
  16298. {
  16299. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16300. uinfo->count = sizeof(struct sound_focus_param);
  16301. return 0;
  16302. }
  16303. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  16304. struct snd_ctl_elem_value *ucontrol)
  16305. {
  16306. int ret = 0;
  16307. struct sound_focus_param soundFocusData;
  16308. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16309. sizeof(struct sound_focus_param));
  16310. ret = voc_set_sound_focus(soundFocusData);
  16311. if (ret) {
  16312. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16313. __func__, ret);
  16314. ret = -EINVAL;
  16315. }
  16316. return ret;
  16317. }
  16318. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  16319. struct snd_ctl_elem_value *ucontrol)
  16320. {
  16321. int ret = 0;
  16322. struct sound_focus_param soundFocusData;
  16323. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  16324. ret = voc_get_sound_focus(&soundFocusData);
  16325. if (ret) {
  16326. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16327. __func__, ret);
  16328. ret = -EINVAL;
  16329. goto done;
  16330. }
  16331. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16332. sizeof(struct sound_focus_param));
  16333. done:
  16334. return ret;
  16335. }
  16336. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  16337. struct snd_ctl_elem_info *uinfo)
  16338. {
  16339. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16340. uinfo->count = sizeof(struct source_tracking_param);
  16341. return 0;
  16342. }
  16343. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  16344. struct snd_ctl_elem_value *ucontrol)
  16345. {
  16346. int ret = 0;
  16347. struct source_tracking_param sourceTrackingData;
  16348. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  16349. ret = voc_get_source_tracking(&sourceTrackingData);
  16350. if (ret) {
  16351. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  16352. __func__, ret);
  16353. ret = -EINVAL;
  16354. goto done;
  16355. }
  16356. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16357. sizeof(struct source_tracking_param));
  16358. done:
  16359. return ret;
  16360. }
  16361. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  16362. int *copp_idx)
  16363. {
  16364. int i, idx, be_idx;
  16365. int ret = 0;
  16366. unsigned long copp;
  16367. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  16368. ret = q6audio_validate_port(port_id);
  16369. if (ret < 0) {
  16370. pr_err("%s: port validation failed id 0x%x ret %d\n",
  16371. __func__, port_id, ret);
  16372. ret = -EINVAL;
  16373. goto done;
  16374. }
  16375. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16376. if (msm_bedais[be_idx].port_id == port_id)
  16377. break;
  16378. }
  16379. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16380. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  16381. ret = -EINVAL;
  16382. goto done;
  16383. }
  16384. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  16385. MSM_FRONTEND_DAI_MM_SIZE) {
  16386. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16387. copp = session_copp_map[i]
  16388. [session_type][be_idx];
  16389. if (test_bit(idx, &copp))
  16390. break;
  16391. }
  16392. if (idx >= MAX_COPPS_PER_PORT)
  16393. continue;
  16394. else
  16395. break;
  16396. }
  16397. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  16398. pr_err("%s: Invalid FE, exiting\n", __func__);
  16399. ret = -EINVAL;
  16400. goto done;
  16401. }
  16402. *copp_idx = idx;
  16403. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  16404. done:
  16405. return ret;
  16406. }
  16407. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  16408. const char *prefix, int *port_id)
  16409. {
  16410. int ret = 0;
  16411. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  16412. /*
  16413. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  16414. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  16415. * and compare the string with the backend name to derive the port id.
  16416. */
  16417. if (!strcmp(kcontrol->id.name + strlen(prefix),
  16418. "SLIMBUS_0")) {
  16419. *port_id = SLIMBUS_0_TX;
  16420. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16421. "TERT_MI2S")) {
  16422. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  16423. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16424. "INT3_MI2S")) {
  16425. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  16426. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16427. "VA_CDC_DMA_TX_0")) {
  16428. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  16429. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16430. "TX_CDC_DMA_TX_3")) {
  16431. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  16432. } else {
  16433. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  16434. __func__, kcontrol->id.name);
  16435. ret = -EINVAL;
  16436. goto done;
  16437. }
  16438. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  16439. __func__, kcontrol->id.name, *port_id);
  16440. done:
  16441. return ret;
  16442. }
  16443. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  16444. struct snd_ctl_elem_value *ucontrol)
  16445. {
  16446. int ret = 0;
  16447. struct sound_focus_param soundFocusData;
  16448. int port_id, copp_idx;
  16449. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16450. "Sound Focus Audio Tx ", &port_id);
  16451. if (ret != 0) {
  16452. pr_err("%s: Error in deriving port id, err=%d\n",
  16453. __func__, ret);
  16454. ret = -EINVAL;
  16455. goto done;
  16456. }
  16457. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16458. &copp_idx);
  16459. if (ret) {
  16460. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16461. __func__, port_id);
  16462. ret = -EINVAL;
  16463. goto done;
  16464. }
  16465. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16466. sizeof(struct sound_focus_param));
  16467. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  16468. if (ret) {
  16469. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16470. __func__, ret);
  16471. ret = -EINVAL;
  16472. goto done;
  16473. }
  16474. done:
  16475. return ret;
  16476. }
  16477. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  16478. struct snd_ctl_elem_value *ucontrol)
  16479. {
  16480. int ret = 0;
  16481. struct sound_focus_param soundFocusData;
  16482. int port_id, copp_idx;
  16483. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16484. "Sound Focus Audio Tx ", &port_id);
  16485. if (ret) {
  16486. pr_err("%s: Error in deriving port id, err=%d\n",
  16487. __func__, ret);
  16488. ret = -EINVAL;
  16489. goto done;
  16490. }
  16491. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16492. &copp_idx);
  16493. if (ret) {
  16494. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16495. __func__, port_id);
  16496. ret = -EINVAL;
  16497. goto done;
  16498. }
  16499. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  16500. if (ret) {
  16501. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16502. __func__, ret);
  16503. ret = -EINVAL;
  16504. goto done;
  16505. }
  16506. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16507. sizeof(struct sound_focus_param));
  16508. done:
  16509. return ret;
  16510. }
  16511. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  16512. struct snd_ctl_elem_value *ucontrol)
  16513. {
  16514. int ret = 0;
  16515. struct source_tracking_param sourceTrackingData;
  16516. int port_id, copp_idx;
  16517. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16518. "Source Tracking Audio Tx ", &port_id);
  16519. if (ret) {
  16520. pr_err("%s: Error in deriving port id, err=%d\n",
  16521. __func__, ret);
  16522. ret = -EINVAL;
  16523. goto done;
  16524. }
  16525. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16526. &copp_idx);
  16527. if (ret) {
  16528. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16529. __func__, port_id);
  16530. ret = -EINVAL;
  16531. goto done;
  16532. }
  16533. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  16534. if (ret) {
  16535. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  16536. __func__, ret);
  16537. ret = -EINVAL;
  16538. goto done;
  16539. }
  16540. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16541. sizeof(struct source_tracking_param));
  16542. done:
  16543. return ret;
  16544. }
  16545. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  16546. {
  16547. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16548. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16549. .name = "Sound Focus Voice Tx SLIMBUS_0",
  16550. .info = msm_sound_focus_info,
  16551. .get = msm_voice_sound_focus_get,
  16552. .put = msm_voice_sound_focus_put,
  16553. },
  16554. {
  16555. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16556. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16557. .name = "Source Tracking Voice Tx SLIMBUS_0",
  16558. .info = msm_source_tracking_info,
  16559. .get = msm_voice_source_tracking_get,
  16560. },
  16561. {
  16562. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16563. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16564. .name = "Sound Focus Audio Tx SLIMBUS_0",
  16565. .info = msm_sound_focus_info,
  16566. .get = msm_audio_sound_focus_get,
  16567. .put = msm_audio_sound_focus_put,
  16568. },
  16569. {
  16570. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16571. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16572. .name = "Source Tracking Audio Tx SLIMBUS_0",
  16573. .info = msm_source_tracking_info,
  16574. .get = msm_audio_source_tracking_get,
  16575. },
  16576. {
  16577. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16578. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16579. .name = "Sound Focus Voice Tx TERT_MI2S",
  16580. .info = msm_sound_focus_info,
  16581. .get = msm_voice_sound_focus_get,
  16582. .put = msm_voice_sound_focus_put,
  16583. },
  16584. {
  16585. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16586. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16587. .name = "Source Tracking Voice Tx TERT_MI2S",
  16588. .info = msm_source_tracking_info,
  16589. .get = msm_voice_source_tracking_get,
  16590. },
  16591. {
  16592. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16593. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16594. .name = "Sound Focus Audio Tx TERT_MI2S",
  16595. .info = msm_sound_focus_info,
  16596. .get = msm_audio_sound_focus_get,
  16597. .put = msm_audio_sound_focus_put,
  16598. },
  16599. {
  16600. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16601. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16602. .name = "Source Tracking Audio Tx TERT_MI2S",
  16603. .info = msm_source_tracking_info,
  16604. .get = msm_audio_source_tracking_get,
  16605. },
  16606. {
  16607. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16608. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16609. .name = "Sound Focus Voice Tx INT3_MI2S",
  16610. .info = msm_sound_focus_info,
  16611. .get = msm_voice_sound_focus_get,
  16612. .put = msm_voice_sound_focus_put,
  16613. },
  16614. {
  16615. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16616. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16617. .name = "Source Tracking Voice Tx INT3_MI2S",
  16618. .info = msm_source_tracking_info,
  16619. .get = msm_voice_source_tracking_get,
  16620. },
  16621. {
  16622. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16623. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16624. .name = "Sound Focus Audio Tx INT3_MI2S",
  16625. .info = msm_sound_focus_info,
  16626. .get = msm_audio_sound_focus_get,
  16627. .put = msm_audio_sound_focus_put,
  16628. },
  16629. {
  16630. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16631. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16632. .name = "Source Tracking Audio Tx INT3_MI2S",
  16633. .info = msm_source_tracking_info,
  16634. .get = msm_audio_source_tracking_get,
  16635. },
  16636. {
  16637. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16638. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16639. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  16640. .info = msm_sound_focus_info,
  16641. .get = msm_voice_sound_focus_get,
  16642. .put = msm_voice_sound_focus_put,
  16643. },
  16644. {
  16645. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16646. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16647. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  16648. .info = msm_source_tracking_info,
  16649. .get = msm_voice_source_tracking_get,
  16650. },
  16651. {
  16652. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16653. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16654. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  16655. .info = msm_sound_focus_info,
  16656. .get = msm_audio_sound_focus_get,
  16657. .put = msm_audio_sound_focus_put,
  16658. },
  16659. {
  16660. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16661. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16662. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  16663. .info = msm_source_tracking_info,
  16664. .get = msm_audio_source_tracking_get,
  16665. },
  16666. {
  16667. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16668. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16669. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  16670. .info = msm_sound_focus_info,
  16671. .get = msm_voice_sound_focus_get,
  16672. .put = msm_voice_sound_focus_put,
  16673. },
  16674. {
  16675. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16676. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16677. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  16678. .info = msm_source_tracking_info,
  16679. .get = msm_voice_source_tracking_get,
  16680. },
  16681. {
  16682. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16683. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16684. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  16685. .info = msm_sound_focus_info,
  16686. .get = msm_audio_sound_focus_get,
  16687. .put = msm_audio_sound_focus_put,
  16688. },
  16689. {
  16690. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16691. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16692. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  16693. .info = msm_source_tracking_info,
  16694. .get = msm_audio_source_tracking_get,
  16695. },
  16696. };
  16697. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  16698. struct snd_ctl_elem_value *ucontrol)
  16699. {
  16700. int ret = 0;
  16701. int item;
  16702. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  16703. pr_debug("%s item is %d\n", __func__,
  16704. ucontrol->value.enumerated.item[0]);
  16705. mutex_lock(&routing_lock);
  16706. item = ucontrol->value.enumerated.item[0];
  16707. if (item < e->items) {
  16708. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  16709. __func__, e->shift_l, e->values[item]);
  16710. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  16711. e->values[item] < MSM_BACKEND_DAI_MAX)
  16712. /* Enable feedback TX path */
  16713. ret = afe_spk_prot_feed_back_cfg(
  16714. msm_bedais[e->values[item]].port_id,
  16715. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  16716. else {
  16717. pr_debug("%s values are out of range item %d\n",
  16718. __func__, e->values[item]);
  16719. /* Disable feedback TX path */
  16720. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  16721. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  16722. else
  16723. ret = -EINVAL;
  16724. }
  16725. } else {
  16726. pr_err("%s item value is out of range item\n", __func__);
  16727. ret = -EINVAL;
  16728. }
  16729. mutex_unlock(&routing_lock);
  16730. return ret;
  16731. }
  16732. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  16733. struct snd_ctl_elem_value *ucontrol)
  16734. {
  16735. int ret = 0;
  16736. int item;
  16737. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  16738. pr_debug("%s item is %d\n", __func__,
  16739. ucontrol->value.enumerated.item[0]);
  16740. mutex_lock(&routing_lock);
  16741. item = ucontrol->value.enumerated.item[0];
  16742. if (item < e->items) {
  16743. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  16744. __func__, e->shift_l, e->values[item]);
  16745. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  16746. e->values[item] < MSM_BACKEND_DAI_MAX)
  16747. /* Enable feedback TX path */
  16748. ret = afe_spk_prot_feed_back_cfg(
  16749. msm_bedais[e->values[item]].port_id,
  16750. msm_bedais[e->shift_l].port_id,
  16751. 1, 1, 1);
  16752. else {
  16753. pr_debug("%s values are out of range item %d\n",
  16754. __func__, e->values[item]);
  16755. /* Disable feedback TX path */
  16756. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  16757. ret = afe_spk_prot_feed_back_cfg(0,
  16758. 0, 0, 0, 0);
  16759. else
  16760. ret = -EINVAL;
  16761. }
  16762. } else {
  16763. pr_err("%s item value is out of range item\n", __func__);
  16764. ret = -EINVAL;
  16765. }
  16766. mutex_unlock(&routing_lock);
  16767. return ret;
  16768. }
  16769. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  16770. struct snd_ctl_elem_value *ucontrol)
  16771. {
  16772. pr_debug("%s\n", __func__);
  16773. return 0;
  16774. }
  16775. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  16776. struct snd_ctl_elem_value *ucontrol)
  16777. {
  16778. pr_debug("%s\n", __func__);
  16779. ucontrol->value.enumerated.item[0] = 0;
  16780. return 0;
  16781. }
  16782. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  16783. "ZERO", "SLIM4_TX"
  16784. };
  16785. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  16786. "ZERO", "SLIM4_TX"
  16787. };
  16788. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  16789. "ZERO", "WSA_CDC_DMA_TX_0"
  16790. };
  16791. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  16792. "ZERO", "WSA_CDC_DMA_TX_0"
  16793. };
  16794. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  16795. "ZERO", "SENARY_TX"
  16796. };
  16797. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  16798. "ZERO", "INT5_MI2S_TX"
  16799. };
  16800. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  16801. "ZERO", "INT5_MI2S_TX"
  16802. };
  16803. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  16804. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  16805. };
  16806. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  16807. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  16808. };
  16809. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  16810. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  16811. };
  16812. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  16813. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  16814. };
  16815. static const int const mi2s_rx_vi_fb_tx_value[] = {
  16816. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  16817. };
  16818. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  16819. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  16820. };
  16821. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  16822. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  16823. };
  16824. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  16825. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  16826. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  16827. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  16828. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  16829. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  16830. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  16831. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  16832. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  16833. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  16834. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  16835. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  16836. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  16837. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  16838. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  16839. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  16840. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  16841. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  16842. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  16843. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  16844. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  16845. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  16846. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  16847. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  16848. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  16849. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  16850. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  16851. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  16852. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  16853. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  16854. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  16855. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  16856. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  16857. spkr_prot_put_vi_lch_port);
  16858. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  16859. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  16860. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  16861. spkr_prot_put_vi_rch_port);
  16862. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  16863. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  16864. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  16865. spkr_prot_put_vi_lch_port);
  16866. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  16867. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  16868. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  16869. spkr_prot_put_vi_rch_port);
  16870. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  16871. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  16872. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  16873. spkr_prot_put_vi_lch_port);
  16874. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  16875. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  16876. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  16877. spkr_prot_put_vi_lch_port);
  16878. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  16879. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  16880. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  16881. spkr_prot_put_vi_rch_port);
  16882. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  16883. /* Frontend AIF */
  16884. /* Widget name equals to Front-End DAI name<Need confirmation>,
  16885. * Stream name must contains substring of front-end dai name
  16886. */
  16887. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  16888. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  16889. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  16890. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  16891. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  16892. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  16893. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  16894. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  16895. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  16896. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  16897. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  16898. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  16899. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  16900. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  16901. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  16902. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  16903. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  16904. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  16905. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  16906. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  16907. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  16908. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  16909. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  16910. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  16911. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  16912. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  16913. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  16914. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  16915. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  16916. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  16917. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  16918. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  16919. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  16920. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  16921. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  16922. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  16923. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  16924. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  16925. "VoiceMMode1 Playback", 0, 0, 0, 0),
  16926. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  16927. "VoiceMMode1 Capture", 0, 0, 0, 0),
  16928. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  16929. "VoiceMMode2 Playback", 0, 0, 0, 0),
  16930. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  16931. "VoiceMMode2 Capture", 0, 0, 0, 0),
  16932. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  16933. 0, 0, 0, 0),
  16934. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  16935. 0, 0, 0, 0),
  16936. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  16937. 0, 0, 0, 0),
  16938. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  16939. 0, 0, 0, 0),
  16940. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  16941. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  16942. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  16943. 0, 0, 0, 0),
  16944. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  16945. 0, 0, 0, 0),
  16946. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  16947. 0, 0, 0, 0),
  16948. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  16949. 0, 0, 0, 0),
  16950. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  16951. 0, 0, 0, 0),
  16952. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  16953. 0, 0, 0, 0),
  16954. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  16955. 0, 0, 0, 0),
  16956. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  16957. 0, 0, 0, 0),
  16958. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  16959. 0, 0, 0, 0),
  16960. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  16961. 0, 0, 0, 0),
  16962. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  16963. 0, 0, 0, 0),
  16964. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  16965. 0, 0, 0, 0),
  16966. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  16967. 0, 0, 0, 0),
  16968. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  16969. 0, 0, 0, 0),
  16970. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  16971. 0, 0, 0, 0),
  16972. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  16973. 0, 0, 0, 0),
  16974. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  16975. 0, 0, 0, 0),
  16976. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  16977. 0, 0, 0, 0),
  16978. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  16979. 0, 0, 0, 0),
  16980. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  16981. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  16982. 0, 0, 0, 0),
  16983. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  16984. "INT0 MI2S_RX Hostless Playback",
  16985. 0, 0, 0, 0),
  16986. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  16987. "INT4 MI2S_RX Hostless Playback",
  16988. 0, 0, 0, 0),
  16989. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  16990. "Primary MI2S_RX Hostless Playback",
  16991. 0, 0, 0, 0),
  16992. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  16993. "Secondary MI2S_RX Hostless Playback",
  16994. 0, 0, 0, 0),
  16995. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  16996. "Tertiary MI2S_RX Hostless Playback",
  16997. 0, 0, 0, 0),
  16998. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  16999. "Quaternary MI2S_RX Hostless Playback",
  17000. 0, 0, 0, 0),
  17001. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  17002. "Quinary MI2S_RX Hostless Playback",
  17003. 0, 0, 0, 0),
  17004. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  17005. 0, 0, 0, 0),
  17006. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  17007. 0, 0, 0, 0),
  17008. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  17009. 0, 0, 0, 0),
  17010. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  17011. 0, 0, 0, 0),
  17012. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  17013. 0, 0, 0, 0),
  17014. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  17015. "INT3 MI2S_TX Hostless Capture",
  17016. 0, 0, 0, 0),
  17017. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  17018. "Tertiary MI2S_TX Hostless Capture",
  17019. 0, 0, 0, 0),
  17020. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  17021. "Secondary MI2S_TX Hostless Capture",
  17022. 0, 0, 0, 0),
  17023. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  17024. "Primary MI2S_TX Hostless Capture",
  17025. 0, 0, 0, 0),
  17026. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  17027. 0, 0, 0, 0),
  17028. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  17029. 0, 0, 0, 0),
  17030. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  17031. "Quaternary MI2S_TX Hostless Capture",
  17032. 0, 0, 0, 0),
  17033. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  17034. "Quinary MI2S_TX Hostless Capture",
  17035. 0, 0, 0, 0),
  17036. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  17037. "Primary TDM0 Hostless Playback",
  17038. 0, 0, 0, 0),
  17039. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  17040. "Primary TDM0 Hostless Capture",
  17041. 0, 0, 0, 0),
  17042. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  17043. "Primary TDM1 Hostless Playback",
  17044. 0, 0, 0, 0),
  17045. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  17046. "Primary TDM1 Hostless Capture",
  17047. 0, 0, 0, 0),
  17048. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  17049. "Primary TDM2 Hostless Playback",
  17050. 0, 0, 0, 0),
  17051. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  17052. "Primary TDM2 Hostless Capture",
  17053. 0, 0, 0, 0),
  17054. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  17055. "Primary TDM3 Hostless Playback",
  17056. 0, 0, 0, 0),
  17057. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  17058. "Primary TDM3 Hostless Capture",
  17059. 0, 0, 0, 0),
  17060. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  17061. "Primary TDM4 Hostless Playback",
  17062. 0, 0, 0, 0),
  17063. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  17064. "Primary TDM4 Hostless Capture",
  17065. 0, 0, 0, 0),
  17066. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  17067. "Primary TDM5 Hostless Playback",
  17068. 0, 0, 0, 0),
  17069. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  17070. "Primary TDM5 Hostless Capture",
  17071. 0, 0, 0, 0),
  17072. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  17073. "Primary TDM6 Hostless Playback",
  17074. 0, 0, 0, 0),
  17075. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  17076. "Primary TDM6 Hostless Capture",
  17077. 0, 0, 0, 0),
  17078. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  17079. "Primary TDM7 Hostless Playback",
  17080. 0, 0, 0, 0),
  17081. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  17082. "Primary TDM7 Hostless Capture",
  17083. 0, 0, 0, 0),
  17084. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  17085. "Secondary TDM0 Hostless Playback",
  17086. 0, 0, 0, 0),
  17087. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  17088. "Secondary TDM0 Hostless Capture",
  17089. 0, 0, 0, 0),
  17090. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  17091. "Secondary TDM1 Hostless Playback",
  17092. 0, 0, 0, 0),
  17093. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  17094. "Secondary TDM1 Hostless Capture",
  17095. 0, 0, 0, 0),
  17096. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  17097. "Secondary TDM2 Hostless Playback",
  17098. 0, 0, 0, 0),
  17099. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  17100. "Secondary TDM2 Hostless Capture",
  17101. 0, 0, 0, 0),
  17102. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  17103. "Secondary TDM3 Hostless Playback",
  17104. 0, 0, 0, 0),
  17105. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  17106. "Secondary TDM3 Hostless Capture",
  17107. 0, 0, 0, 0),
  17108. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  17109. "Secondary TDM4 Hostless Playback",
  17110. 0, 0, 0, 0),
  17111. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  17112. "Secondary TDM4 Hostless Capture",
  17113. 0, 0, 0, 0),
  17114. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  17115. "Secondary TDM5 Hostless Playback",
  17116. 0, 0, 0, 0),
  17117. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  17118. "Secondary TDM5 Hostless Capture",
  17119. 0, 0, 0, 0),
  17120. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  17121. "Secondary TDM6 Hostless Playback",
  17122. 0, 0, 0, 0),
  17123. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  17124. "Secondary TDM6 Hostless Capture",
  17125. 0, 0, 0, 0),
  17126. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  17127. "Secondary TDM7 Hostless Playback",
  17128. 0, 0, 0, 0),
  17129. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  17130. "Secondary TDM7 Hostless Capture",
  17131. 0, 0, 0, 0),
  17132. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  17133. "Tertiary TDM0 Hostless Playback",
  17134. 0, 0, 0, 0),
  17135. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  17136. "Tertiary TDM0 Hostless Capture",
  17137. 0, 0, 0, 0),
  17138. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  17139. "Tertiary TDM1 Hostless Playback",
  17140. 0, 0, 0, 0),
  17141. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  17142. "Tertiary TDM1 Hostless Capture",
  17143. 0, 0, 0, 0),
  17144. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  17145. "Tertiary TDM2 Hostless Playback",
  17146. 0, 0, 0, 0),
  17147. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  17148. "Tertiary TDM2 Hostless Capture",
  17149. 0, 0, 0, 0),
  17150. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  17151. "Tertiary TDM3 Hostless Playback",
  17152. 0, 0, 0, 0),
  17153. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  17154. "Tertiary TDM3 Hostless Capture",
  17155. 0, 0, 0, 0),
  17156. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  17157. "Tertiary TDM4 Hostless Playback",
  17158. 0, 0, 0, 0),
  17159. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  17160. "Tertiary TDM4 Hostless Capture",
  17161. 0, 0, 0, 0),
  17162. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  17163. "Tertiary TDM5 Hostless Playback",
  17164. 0, 0, 0, 0),
  17165. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  17166. "Tertiary TDM5 Hostless Capture",
  17167. 0, 0, 0, 0),
  17168. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  17169. "Tertiary TDM6 Hostless Playback",
  17170. 0, 0, 0, 0),
  17171. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  17172. "Tertiary TDM6 Hostless Capture",
  17173. 0, 0, 0, 0),
  17174. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  17175. "Tertiary TDM7 Hostless Playback",
  17176. 0, 0, 0, 0),
  17177. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  17178. "Tertiary TDM7 Hostless Capture",
  17179. 0, 0, 0, 0),
  17180. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  17181. "Quaternary TDM0 Hostless Playback",
  17182. 0, 0, 0, 0),
  17183. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  17184. "Quaternary TDM0 Hostless Capture",
  17185. 0, 0, 0, 0),
  17186. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  17187. "Quaternary TDM1 Hostless Playback",
  17188. 0, 0, 0, 0),
  17189. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  17190. "Quaternary TDM1 Hostless Capture",
  17191. 0, 0, 0, 0),
  17192. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  17193. "Quaternary TDM2 Hostless Playback",
  17194. 0, 0, 0, 0),
  17195. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  17196. "Quaternary TDM2 Hostless Capture",
  17197. 0, 0, 0, 0),
  17198. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  17199. "Quaternary TDM3 Hostless Playback",
  17200. 0, 0, 0, 0),
  17201. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  17202. "Quaternary TDM3 Hostless Capture",
  17203. 0, 0, 0, 0),
  17204. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  17205. "Quaternary TDM4 Hostless Playback",
  17206. 0, 0, 0, 0),
  17207. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  17208. "Quaternary TDM4 Hostless Capture",
  17209. 0, 0, 0, 0),
  17210. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  17211. "Quaternary TDM5 Hostless Playback",
  17212. 0, 0, 0, 0),
  17213. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  17214. "Quaternary TDM5 Hostless Capture",
  17215. 0, 0, 0, 0),
  17216. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  17217. "Quaternary TDM6 Hostless Playback",
  17218. 0, 0, 0, 0),
  17219. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  17220. "Quaternary TDM6 Hostless Capture",
  17221. 0, 0, 0, 0),
  17222. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  17223. "Quaternary TDM7 Hostless Playback",
  17224. 0, 0, 0, 0),
  17225. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  17226. "Quaternary TDM7 Hostless Capture",
  17227. 0, 0, 0, 0),
  17228. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  17229. "Quinary TDM0 Hostless Playback",
  17230. 0, 0, 0, 0),
  17231. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  17232. "Quinary TDM0 Hostless Capture",
  17233. 0, 0, 0, 0),
  17234. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  17235. "Quinary TDM1 Hostless Playback",
  17236. 0, 0, 0, 0),
  17237. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  17238. "Quinary TDM1 Hostless Capture",
  17239. 0, 0, 0, 0),
  17240. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  17241. "Quinary TDM2 Hostless Playback",
  17242. 0, 0, 0, 0),
  17243. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  17244. "Quinary TDM2 Hostless Capture",
  17245. 0, 0, 0, 0),
  17246. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  17247. "Quinary TDM3 Hostless Playback",
  17248. 0, 0, 0, 0),
  17249. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  17250. "Quinary TDM3 Hostless Capture",
  17251. 0, 0, 0, 0),
  17252. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  17253. "Quinary TDM4 Hostless Playback",
  17254. 0, 0, 0, 0),
  17255. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  17256. "Quinary TDM4 Hostless Capture",
  17257. 0, 0, 0, 0),
  17258. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  17259. "Quinary TDM5 Hostless Playback",
  17260. 0, 0, 0, 0),
  17261. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  17262. "Quinary TDM5 Hostless Capture",
  17263. 0, 0, 0, 0),
  17264. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  17265. "Quinary TDM6 Hostless Playback",
  17266. 0, 0, 0, 0),
  17267. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  17268. "Quinary TDM6 Hostless Capture",
  17269. 0, 0, 0, 0),
  17270. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  17271. "Quinary TDM7 Hostless Playback",
  17272. 0, 0, 0, 0),
  17273. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  17274. "Quinary TDM7 Hostless Capture",
  17275. 0, 0, 0, 0),
  17276. /* LSM */
  17277. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  17278. 0, 0, 0, 0),
  17279. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  17280. 0, 0, 0, 0),
  17281. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  17282. 0, 0, 0, 0),
  17283. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  17284. 0, 0, 0, 0),
  17285. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  17286. 0, 0, 0, 0),
  17287. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  17288. 0, 0, 0, 0),
  17289. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  17290. 0, 0, 0, 0),
  17291. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  17292. 0, 0, 0, 0),
  17293. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  17294. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  17295. /* Backend AIF */
  17296. /* Stream name equals to backend dai link stream name */
  17297. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  17298. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  17299. 0, 0, 0, 0),
  17300. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  17301. 0, 0, 0, 0),
  17302. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  17303. 0, 0, 0, 0),
  17304. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  17305. 0, 0, 0, 0),
  17306. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  17307. 0, 0, 0, 0),
  17308. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  17309. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  17310. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  17311. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  17312. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  17313. 0, 0, 0, 0),
  17314. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  17315. 0, 0, 0, 0),
  17316. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  17317. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  17318. 0, 0, 0, 0),
  17319. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  17320. 0, 0, 0, 0),
  17321. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  17322. 0, 0, 0, 0),
  17323. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  17324. "Secondary MI2S Playback SD1",
  17325. 0, 0, 0, 0),
  17326. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  17327. 0, 0, 0, 0),
  17328. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  17329. 0, 0, 0, 0),
  17330. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  17331. 0, 0, 0, 0),
  17332. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  17333. 0, 0, 0, 0),
  17334. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  17335. 0, 0, 0, 0),
  17336. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  17337. 0, 0, 0, 0),
  17338. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  17339. 0, 0, 0, 0),
  17340. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  17341. 0, 0, 0, 0),
  17342. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  17343. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  17344. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  17345. 0, 0, 0, 0),
  17346. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  17347. 0, 0, 0, 0),
  17348. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  17349. 0, 0, 0, 0),
  17350. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  17351. 0, 0, 0, 0),
  17352. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  17353. 0, 0, 0, 0),
  17354. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  17355. 0, 0, 0, 0),
  17356. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  17357. 0, 0, 0, 0),
  17358. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  17359. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  17360. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  17361. 0, 0, 0, 0),
  17362. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  17363. 0, 0, 0, 0),
  17364. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  17365. 0, 0, 0, 0),
  17366. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  17367. 0, 0, 0, 0),
  17368. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  17369. 0, 0, 0, 0),
  17370. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  17371. 0, 0, 0, 0),
  17372. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  17373. 0, 0, 0, 0),
  17374. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  17375. 0, 0, 0, 0),
  17376. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  17377. 0, 0, 0, 0),
  17378. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  17379. 0, 0, 0, 0),
  17380. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  17381. 0, 0, 0, 0),
  17382. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  17383. 0, 0, 0, 0),
  17384. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  17385. 0, 0, 0, 0),
  17386. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  17387. 0, 0, 0, 0),
  17388. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  17389. 0, 0, 0, 0),
  17390. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  17391. 0, 0, 0, 0),
  17392. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  17393. 0, 0, 0, 0),
  17394. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  17395. 0, 0, 0, 0),
  17396. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  17397. 0, 0, 0, 0),
  17398. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  17399. 0, 0, 0, 0),
  17400. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  17401. 0, 0, 0, 0),
  17402. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  17403. 0, 0, 0, 0),
  17404. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  17405. 0, 0, 0, 0),
  17406. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  17407. 0, 0, 0, 0),
  17408. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  17409. 0, 0, 0, 0),
  17410. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  17411. 0, 0, 0, 0),
  17412. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  17413. 0, 0, 0, 0),
  17414. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  17415. 0, 0, 0, 0),
  17416. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  17417. 0, 0, 0, 0),
  17418. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  17419. 0, 0, 0, 0),
  17420. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  17421. 0, 0, 0, 0),
  17422. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  17423. 0, 0, 0, 0),
  17424. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  17425. 0, 0, 0, 0),
  17426. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  17427. 0, 0, 0, 0),
  17428. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  17429. 0, 0, 0, 0),
  17430. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  17431. 0, 0, 0, 0),
  17432. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  17433. 0, 0, 0, 0),
  17434. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  17435. 0, 0, 0, 0),
  17436. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  17437. 0, 0, 0, 0),
  17438. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  17439. 0, 0, 0, 0),
  17440. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  17441. 0, 0, 0, 0),
  17442. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  17443. 0, 0, 0, 0),
  17444. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  17445. 0, 0, 0, 0),
  17446. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  17447. 0, 0, 0, 0),
  17448. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  17449. 0, 0, 0, 0),
  17450. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  17451. 0, 0, 0, 0),
  17452. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  17453. 0, 0, 0, 0),
  17454. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  17455. 0, 0, 0, 0),
  17456. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  17457. 0, 0, 0, 0),
  17458. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  17459. 0, 0, 0, 0),
  17460. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  17461. 0, 0, 0, 0),
  17462. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  17463. 0, 0, 0, 0),
  17464. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  17465. 0, 0, 0, 0),
  17466. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  17467. 0, 0, 0, 0),
  17468. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  17469. 0, 0, 0, 0),
  17470. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  17471. 0, 0, 0, 0),
  17472. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  17473. 0, 0, 0, 0),
  17474. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  17475. 0, 0, 0, 0),
  17476. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  17477. 0, 0, 0, 0),
  17478. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  17479. 0, 0, 0, 0),
  17480. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  17481. 0, 0, 0, 0),
  17482. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  17483. 0, 0, 0, 0),
  17484. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  17485. 0, 0, 0, 0),
  17486. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  17487. 0, 0, 0, 0),
  17488. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  17489. 0, 0, 0, 0),
  17490. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  17491. 0, 0, 0, 0),
  17492. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  17493. 0, 0, 0, 0),
  17494. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  17495. 0, 0, 0, 0),
  17496. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  17497. 0, 0, 0, 0),
  17498. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  17499. 0, 0, 0, 0),
  17500. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  17501. 0, 0, 0, 0),
  17502. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  17503. 0, 0, 0, 0),
  17504. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  17505. 0, 0, 0, 0),
  17506. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  17507. 0, 0, 0, 0),
  17508. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  17509. 0, 0, 0, 0),
  17510. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  17511. 0, 0, 0, 0),
  17512. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  17513. 0, 0, 0, 0),
  17514. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  17515. 0, 0, 0, 0),
  17516. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  17517. 0, 0, 0, 0),
  17518. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  17519. 0, 0, 0, 0),
  17520. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  17521. 0, 0, 0, 0),
  17522. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  17523. 0, 0, 0, 0),
  17524. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  17525. 0, 0, 0, 0),
  17526. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  17527. 0, 0, 0, 0),
  17528. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  17529. 0, 0, 0, 0),
  17530. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  17531. 0, 0, 0, 0),
  17532. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  17533. 0, 0, 0, 0),
  17534. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  17535. 0, 0, 0, 0),
  17536. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  17537. 0, 0, 0, 0),
  17538. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  17539. 0, 0, 0, 0),
  17540. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  17541. 0, 0, 0, 0),
  17542. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  17543. 0, 0, 0, 0),
  17544. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  17545. 0, 0, 0, 0),
  17546. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  17547. 0, 0, 0, 0),
  17548. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  17549. 0, 0, 0, 0),
  17550. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  17551. 0, 0, 0, 0),
  17552. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  17553. 0, 0, 0, 0),
  17554. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  17555. 0, 0, 0, 0),
  17556. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  17557. 0, 0, 0, 0),
  17558. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  17559. 0, 0, 0, 0),
  17560. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  17561. 0, 0, 0, 0),
  17562. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  17563. 0, 0, 0, 0),
  17564. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  17565. 0, 0, 0, 0),
  17566. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  17567. 0, 0, 0, 0),
  17568. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  17569. 0, 0, 0, 0),
  17570. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  17571. 0, 0, 0, 0),
  17572. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  17573. 0, 0, 0, 0),
  17574. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  17575. 0, 0, 0, 0),
  17576. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  17577. 0, 0, 0, 0),
  17578. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  17579. 0, 0, 0, 0),
  17580. /* incall */
  17581. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  17582. 0, 0, 0, 0),
  17583. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  17584. 0, 0, 0, 0),
  17585. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  17586. 0, 0, 0, 0),
  17587. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  17588. 0, 0, 0, 0),
  17589. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  17590. 0, 0, 0, 0),
  17591. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  17592. 0, 0, 0, 0),
  17593. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  17594. 0, 0, 0, 0),
  17595. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  17596. 0, 0, 0, 0),
  17597. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  17598. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  17599. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  17600. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  17601. 0, 0, 0, 0),
  17602. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  17603. 0, 0, 0, 0),
  17604. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  17605. 0, 0, 0, 0),
  17606. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  17607. 0, 0, 0, 0),
  17608. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  17609. 0, 0, 0, 0),
  17610. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  17611. 0, 0, 0, 0),
  17612. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  17613. 0, 0, 0, 0),
  17614. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  17615. 0, 0, 0, 0),
  17616. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  17617. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  17618. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  17619. 0, 0, 0, 0),
  17620. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  17621. 0, 0, 0, 0),
  17622. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  17623. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  17624. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  17625. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  17626. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  17627. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  17628. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  17629. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  17630. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  17631. /* In- call recording */
  17632. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  17633. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  17634. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  17635. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  17636. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  17637. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  17638. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  17639. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  17640. /* Switch Definitions */
  17641. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  17642. &slim_fm_switch_mixer_controls),
  17643. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  17644. &slim1_fm_switch_mixer_controls),
  17645. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  17646. &slim3_fm_switch_mixer_controls),
  17647. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  17648. &slim4_fm_switch_mixer_controls),
  17649. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  17650. &slim6_fm_switch_mixer_controls),
  17651. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17652. &pcm_rx_switch_mixer_controls),
  17653. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17654. &int0_mi2s_rx_switch_mixer_controls),
  17655. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17656. &int4_mi2s_rx_switch_mixer_controls),
  17657. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17658. &pri_mi2s_rx_switch_mixer_controls),
  17659. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17660. &sec_mi2s_rx_switch_mixer_controls),
  17661. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17662. &tert_mi2s_rx_switch_mixer_controls),
  17663. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17664. &quat_mi2s_rx_switch_mixer_controls),
  17665. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17666. &quin_mi2s_rx_switch_mixer_controls),
  17667. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  17668. &hfp_pri_aux_switch_mixer_controls),
  17669. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  17670. &hfp_aux_switch_mixer_controls),
  17671. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  17672. &hfp_int_switch_mixer_controls),
  17673. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  17674. &hfp_slim7_switch_mixer_controls),
  17675. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  17676. &usb_switch_mixer_controls),
  17677. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  17678. &a2dp_slim7_switch_mixer_controls),
  17679. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  17680. &cdc_dma_wsa_switch_mixer_controls),
  17681. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  17682. &cdc_dma_rx_switch_mixer_controls),
  17683. /* Mixer definitions */
  17684. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17685. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  17686. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17687. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  17688. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17689. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  17690. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17691. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  17692. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17693. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  17694. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17695. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  17696. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  17697. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  17698. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  17699. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  17700. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  17701. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  17702. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17703. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  17704. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17705. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  17706. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17707. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  17708. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17709. quaternary_mi2s_rx_mixer_controls,
  17710. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  17711. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17712. tertiary_mi2s_rx_mixer_controls,
  17713. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  17714. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17715. secondary_mi2s_rx_mixer_controls,
  17716. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  17717. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17718. secondary_mi2s_rx2_mixer_controls,
  17719. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  17720. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17721. primary_mi2s_rx_mixer_controls,
  17722. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  17723. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17724. int0_mi2s_rx_mixer_controls,
  17725. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  17726. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17727. int4_mi2s_rx_mixer_controls,
  17728. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  17729. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17730. quinary_mi2s_rx_mixer_controls,
  17731. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  17732. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17733. pri_tdm_rx_0_mixer_controls,
  17734. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  17735. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17736. pri_tdm_rx_1_mixer_controls,
  17737. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  17738. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17739. pri_tdm_rx_2_mixer_controls,
  17740. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  17741. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17742. pri_tdm_rx_3_mixer_controls,
  17743. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  17744. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17745. pri_tdm_tx_0_mixer_controls,
  17746. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  17747. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17748. sec_tdm_rx_0_mixer_controls,
  17749. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  17750. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17751. sec_tdm_rx_1_mixer_controls,
  17752. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  17753. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17754. sec_tdm_rx_2_mixer_controls,
  17755. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  17756. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17757. sec_tdm_rx_3_mixer_controls,
  17758. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  17759. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17760. sec_tdm_tx_0_mixer_controls,
  17761. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  17762. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17763. tert_tdm_rx_0_mixer_controls,
  17764. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  17765. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17766. tert_tdm_tx_0_mixer_controls,
  17767. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  17768. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17769. tert_tdm_rx_1_mixer_controls,
  17770. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  17771. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17772. tert_tdm_rx_2_mixer_controls,
  17773. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  17774. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17775. tert_tdm_rx_3_mixer_controls,
  17776. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  17777. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17778. tert_tdm_rx_4_mixer_controls,
  17779. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  17780. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17781. quat_tdm_rx_0_mixer_controls,
  17782. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  17783. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17784. quat_tdm_tx_0_mixer_controls,
  17785. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  17786. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17787. quat_tdm_rx_1_mixer_controls,
  17788. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  17789. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17790. quat_tdm_rx_2_mixer_controls,
  17791. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  17792. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17793. quat_tdm_rx_3_mixer_controls,
  17794. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  17795. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17796. quin_tdm_rx_0_mixer_controls,
  17797. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  17798. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17799. quin_tdm_tx_0_mixer_controls,
  17800. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  17801. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17802. quin_tdm_rx_1_mixer_controls,
  17803. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  17804. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17805. quin_tdm_rx_2_mixer_controls,
  17806. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  17807. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17808. quin_tdm_rx_3_mixer_controls,
  17809. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  17810. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17811. wsa_cdc_dma_rx_0_mixer_controls,
  17812. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  17813. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17814. wsa_cdc_dma_rx_1_mixer_controls,
  17815. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  17816. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17817. rx_cdc_dma_rx_0_mixer_controls,
  17818. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  17819. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17820. rx_cdc_dma_rx_1_mixer_controls,
  17821. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  17822. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17823. rx_cdc_dma_rx_2_mixer_controls,
  17824. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  17825. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17826. rx_cdc_dma_rx_3_mixer_controls,
  17827. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  17828. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17829. rx_cdc_dma_rx_4_mixer_controls,
  17830. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  17831. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17832. rx_cdc_dma_rx_5_mixer_controls,
  17833. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  17834. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17835. rx_cdc_dma_rx_6_mixer_controls,
  17836. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  17837. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17838. rx_cdc_dma_rx_7_mixer_controls,
  17839. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  17840. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  17841. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  17842. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  17843. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  17844. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  17845. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  17846. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  17847. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  17848. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  17849. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  17850. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  17851. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  17852. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  17853. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  17854. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  17855. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  17856. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  17857. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  17858. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  17859. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  17860. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  17861. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  17862. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  17863. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  17864. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  17865. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  17866. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  17867. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  17868. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  17869. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  17870. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  17871. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  17872. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  17873. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  17874. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17875. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  17876. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17877. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  17878. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17879. tert_auxpcm_rx_mixer_controls,
  17880. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  17881. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17882. quat_auxpcm_rx_mixer_controls,
  17883. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  17884. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17885. quin_auxpcm_rx_mixer_controls,
  17886. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  17887. /* incall */
  17888. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  17889. incall_music_delivery_mixer_controls,
  17890. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  17891. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17892. incall_music2_delivery_mixer_controls,
  17893. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  17894. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17895. slimbus_4_rx_mixer_controls,
  17896. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  17897. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17898. slimbus_6_rx_mixer_controls,
  17899. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  17900. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17901. usb_audio_rx_mixer_controls,
  17902. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  17903. /* Voice Mixer */
  17904. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  17905. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  17906. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  17907. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  17908. SND_SOC_NOPM, 0, 0,
  17909. sec_i2s_rx_voice_mixer_controls,
  17910. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  17911. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  17912. SND_SOC_NOPM, 0, 0,
  17913. sec_mi2s_rx_voice_mixer_controls,
  17914. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  17915. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  17916. SND_SOC_NOPM, 0, 0,
  17917. slimbus_rx_voice_mixer_controls,
  17918. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  17919. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  17920. SND_SOC_NOPM, 0, 0,
  17921. bt_sco_rx_voice_mixer_controls,
  17922. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  17923. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  17924. SND_SOC_NOPM, 0, 0,
  17925. afe_pcm_rx_voice_mixer_controls,
  17926. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  17927. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  17928. SND_SOC_NOPM, 0, 0,
  17929. aux_pcm_rx_voice_mixer_controls,
  17930. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  17931. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  17932. SND_SOC_NOPM, 0, 0,
  17933. sec_aux_pcm_rx_voice_mixer_controls,
  17934. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  17935. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  17936. SND_SOC_NOPM, 0, 0,
  17937. tert_aux_pcm_rx_voice_mixer_controls,
  17938. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  17939. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  17940. SND_SOC_NOPM, 0, 0,
  17941. quat_aux_pcm_rx_voice_mixer_controls,
  17942. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  17943. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  17944. SND_SOC_NOPM, 0, 0,
  17945. quin_aux_pcm_rx_voice_mixer_controls,
  17946. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  17947. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  17948. SND_SOC_NOPM, 0, 0,
  17949. hdmi_rx_voice_mixer_controls,
  17950. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  17951. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  17952. SND_SOC_NOPM, 0, 0,
  17953. mi2s_rx_voice_mixer_controls,
  17954. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  17955. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  17956. SND_SOC_NOPM, 0, 0,
  17957. pri_mi2s_rx_voice_mixer_controls,
  17958. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  17959. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  17960. SND_SOC_NOPM, 0, 0,
  17961. int0_mi2s_rx_voice_mixer_controls,
  17962. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  17963. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  17964. SND_SOC_NOPM, 0, 0,
  17965. int4_mi2s_rx_voice_mixer_controls,
  17966. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  17967. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  17968. SND_SOC_NOPM, 0, 0,
  17969. tert_mi2s_rx_voice_mixer_controls,
  17970. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  17971. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  17972. SND_SOC_NOPM, 0, 0,
  17973. quat_mi2s_rx_voice_mixer_controls,
  17974. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  17975. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  17976. SND_SOC_NOPM, 0, 0,
  17977. quin_mi2s_rx_voice_mixer_controls,
  17978. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  17979. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  17980. SND_SOC_NOPM, 0, 0,
  17981. quat_tdm_rx_2_voice_mixer_controls,
  17982. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  17983. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  17984. SND_SOC_NOPM, 0, 0,
  17985. wsa_cdc_dma_rx_0_voice_mixer_controls,
  17986. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  17987. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  17988. SND_SOC_NOPM, 0, 0,
  17989. rx_cdc_dma_rx_0_voice_mixer_controls,
  17990. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  17991. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  17992. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  17993. ARRAY_SIZE(tx_voip_mixer_controls)),
  17994. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  17995. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  17996. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  17997. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  17998. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  17999. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  18000. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18001. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  18002. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18003. int_bt_a2dp_rx_mixer_controls,
  18004. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  18005. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18006. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  18007. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18008. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  18009. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18010. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  18011. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18012. tx_voice2_stub_mixer_controls,
  18013. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  18014. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18015. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  18016. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  18017. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  18018. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  18019. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  18020. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18021. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  18022. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  18023. SND_SOC_NOPM, 0, 0,
  18024. slimbus_6_rx_voice_mixer_controls,
  18025. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  18026. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18027. slimbus_7_rx_voice_mixer_controls,
  18028. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  18029. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18030. slimbus_8_rx_voice_mixer_controls,
  18031. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  18032. /* port mixer */
  18033. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  18034. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  18035. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  18036. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  18037. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  18038. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  18039. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  18040. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  18041. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  18042. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  18043. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  18044. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  18045. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  18046. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  18047. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  18048. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  18049. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  18050. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  18051. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18052. sbus_1_rx_port_mixer_controls,
  18053. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  18054. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18055. bt_sco_rx_port_mixer_controls,
  18056. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  18057. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  18058. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  18059. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  18060. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  18061. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  18062. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  18063. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  18064. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  18065. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  18066. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  18067. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  18068. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  18069. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  18070. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  18071. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  18072. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  18073. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  18074. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  18075. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  18076. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  18077. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  18078. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18079. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  18080. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18081. primary_mi2s_rx_port_mixer_controls,
  18082. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  18083. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18084. sec_mi2s_rx_port_mixer_controls,
  18085. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  18086. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18087. tert_mi2s_rx_port_mixer_controls,
  18088. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  18089. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18090. quat_mi2s_rx_port_mixer_controls,
  18091. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  18092. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18093. quin_mi2s_rx_port_mixer_controls,
  18094. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  18095. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18096. pri_tdm_rx_0_port_mixer_controls,
  18097. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  18098. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18099. pri_tdm_rx_1_port_mixer_controls,
  18100. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  18101. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18102. pri_tdm_rx_2_port_mixer_controls,
  18103. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  18104. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18105. pri_tdm_rx_3_port_mixer_controls,
  18106. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  18107. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18108. sec_tdm_rx_0_port_mixer_controls,
  18109. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  18110. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18111. sec_tdm_rx_1_port_mixer_controls,
  18112. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  18113. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18114. sec_tdm_rx_2_port_mixer_controls,
  18115. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  18116. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18117. sec_tdm_rx_3_port_mixer_controls,
  18118. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  18119. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18120. tert_tdm_rx_0_port_mixer_controls,
  18121. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  18122. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18123. tert_tdm_rx_1_port_mixer_controls,
  18124. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  18125. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18126. tert_tdm_rx_2_port_mixer_controls,
  18127. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  18128. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18129. tert_tdm_rx_3_port_mixer_controls,
  18130. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  18131. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18132. quat_tdm_rx_0_port_mixer_controls,
  18133. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  18134. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18135. quat_tdm_rx_1_port_mixer_controls,
  18136. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  18137. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18138. quat_tdm_rx_2_port_mixer_controls,
  18139. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  18140. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18141. quat_tdm_rx_3_port_mixer_controls,
  18142. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  18143. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18144. quin_tdm_rx_0_port_mixer_controls,
  18145. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  18146. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18147. quin_tdm_rx_1_port_mixer_controls,
  18148. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  18149. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18150. quin_tdm_rx_2_port_mixer_controls,
  18151. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  18152. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18153. quin_tdm_rx_3_port_mixer_controls,
  18154. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  18155. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18156. int0_mi2s_rx_port_mixer_controls,
  18157. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  18158. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18159. int4_mi2s_rx_port_mixer_controls,
  18160. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  18161. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18162. wsa_cdc_dma_rx_0_port_mixer_controls,
  18163. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  18164. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18165. rx_cdc_dma_rx_0_port_mixer_controls,
  18166. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  18167. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  18168. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  18169. ARRAY_SIZE(tx_qchat_mixer_controls)),
  18170. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  18171. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  18172. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  18173. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  18174. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  18175. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  18176. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  18177. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  18178. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  18179. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  18180. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  18181. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  18182. /* lsm mixer definitions */
  18183. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  18184. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  18185. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  18186. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  18187. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  18188. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  18189. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  18190. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  18191. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  18192. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  18193. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  18194. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  18195. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  18196. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  18197. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  18198. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  18199. /* Virtual Pins to force backends ON atm */
  18200. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  18201. SND_SOC_DAPM_INPUT("BE_IN"),
  18202. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18203. &slim0_rx_vi_fb_lch_mux),
  18204. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18205. &slim0_rx_vi_fb_rch_mux),
  18206. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18207. &wsa_rx_0_vi_fb_lch_mux),
  18208. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18209. &wsa_rx_0_vi_fb_rch_mux),
  18210. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  18211. &mi2s_rx_vi_fb_mux),
  18212. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18213. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  18214. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18215. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  18216. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  18217. &voc_ext_ec_mux),
  18218. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  18219. &ext_ec_ref_mux_ul1),
  18220. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  18221. &ext_ec_ref_mux_ul2),
  18222. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  18223. &ext_ec_ref_mux_ul3),
  18224. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  18225. &ext_ec_ref_mux_ul4),
  18226. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  18227. &ext_ec_ref_mux_ul5),
  18228. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  18229. &ext_ec_ref_mux_ul6),
  18230. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  18231. &ext_ec_ref_mux_ul8),
  18232. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  18233. &ext_ec_ref_mux_ul9),
  18234. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  18235. &ext_ec_ref_mux_ul10),
  18236. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  18237. &ext_ec_ref_mux_ul16),
  18238. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  18239. &ext_ec_ref_mux_ul17),
  18240. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  18241. &ext_ec_ref_mux_ul18),
  18242. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  18243. &ext_ec_ref_mux_ul19),
  18244. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  18245. &ext_ec_ref_mux_ul28),
  18246. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  18247. &ext_ec_ref_mux_ul29),
  18248. };
  18249. static const struct snd_soc_dapm_route intercon[] = {
  18250. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18251. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18252. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18253. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18254. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18255. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18256. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18257. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18258. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18259. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18260. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18261. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18262. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18263. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18264. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18265. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18266. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  18267. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18268. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18269. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18270. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18271. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18272. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18273. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18274. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18275. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18276. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18277. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18278. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18279. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18280. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18281. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18282. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18283. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  18284. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18285. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18286. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18287. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18288. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18289. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18290. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18291. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18292. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18293. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18294. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18295. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18296. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18297. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18298. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18299. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18300. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  18301. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18302. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18303. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18304. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18305. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18306. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18307. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18308. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18309. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18310. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18311. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18312. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18313. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18314. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18315. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18316. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18317. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  18318. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18319. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18320. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18321. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18322. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18323. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18324. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18325. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18326. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18327. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18328. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18329. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18330. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18331. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18332. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18333. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18334. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  18335. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18336. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18337. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18338. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18339. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18340. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18341. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18342. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18343. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18344. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18345. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18346. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18347. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18348. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18349. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18350. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18351. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  18352. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18353. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18354. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18355. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18356. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18357. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18358. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18359. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18360. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18361. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18362. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18363. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18364. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18365. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18366. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18367. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18368. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  18369. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18370. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18371. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18372. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18373. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18374. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18375. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18376. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18377. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18378. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18379. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18380. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18381. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18382. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18383. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18384. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18385. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  18386. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18387. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18388. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18389. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18390. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18391. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18392. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18393. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18394. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18395. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18396. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18397. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18398. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18399. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18400. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18401. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18402. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  18403. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18404. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18405. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18406. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18407. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18408. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18409. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18410. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18411. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18412. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18413. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18414. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18415. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18416. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18417. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18418. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18419. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  18420. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18421. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18422. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18423. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18424. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18425. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18426. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18427. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18428. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18429. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18430. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18431. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18432. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18433. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18434. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18435. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18436. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  18437. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18438. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18439. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18440. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18441. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18442. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18443. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18444. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18445. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18446. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18447. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18448. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18449. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18450. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18451. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18452. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18453. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  18454. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18455. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18456. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18457. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18458. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18459. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18460. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18461. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18462. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18463. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18464. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18465. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18466. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18467. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18468. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18469. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18470. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  18471. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18472. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18473. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18474. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18475. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18476. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18477. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18478. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18479. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18480. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18481. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18482. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18483. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18484. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18485. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18486. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18487. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  18488. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18489. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18490. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18491. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18492. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18493. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18494. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18495. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18496. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18497. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18498. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18499. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18500. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18501. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18502. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18503. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18504. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  18505. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  18506. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  18507. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  18508. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  18509. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  18510. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  18511. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  18512. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  18513. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  18514. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  18515. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  18516. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  18517. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  18518. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  18519. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  18520. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  18521. {"HDMI", NULL, "HDMI Mixer"},
  18522. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  18523. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  18524. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  18525. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  18526. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  18527. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  18528. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  18529. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  18530. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  18531. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  18532. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  18533. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  18534. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  18535. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  18536. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  18537. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  18538. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  18539. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  18540. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  18541. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  18542. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  18543. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  18544. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  18545. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  18546. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  18547. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  18548. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  18549. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  18550. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  18551. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  18552. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  18553. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  18554. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  18555. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  18556. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18557. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18558. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18559. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18560. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18561. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18562. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18563. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18564. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18565. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18566. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18567. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18568. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18569. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18570. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18571. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18572. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  18573. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18574. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18575. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18576. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18577. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18578. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18579. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18580. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18581. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18582. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18583. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18584. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18585. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18586. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18587. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18588. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18589. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  18590. /* incall */
  18591. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  18592. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  18593. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  18594. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  18595. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  18596. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18597. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18598. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18599. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18600. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  18601. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18602. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18603. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18604. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18605. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  18606. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18607. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18608. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18609. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18610. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18611. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18612. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18613. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18614. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18615. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18616. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18617. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18618. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18619. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18620. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18621. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18622. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  18623. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18624. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18625. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18626. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18627. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18628. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18629. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18630. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18631. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18632. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18633. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18634. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18635. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18636. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18637. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18638. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18639. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  18640. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18641. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18642. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18643. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18644. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18645. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18646. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18647. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18648. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18649. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18650. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18651. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18652. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18653. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18654. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18655. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18656. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  18657. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  18658. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  18659. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  18660. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  18661. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  18662. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  18663. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  18664. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  18665. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18666. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18667. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  18668. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18669. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18670. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18671. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18672. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18673. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18674. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18675. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18676. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18677. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18678. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18679. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18680. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18681. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18682. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18683. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18684. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18685. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18686. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18687. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18688. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18689. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18690. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18691. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18692. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18693. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18694. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18695. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18696. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18697. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18698. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18699. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18700. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18701. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18702. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18703. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  18704. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  18705. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18706. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18707. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18708. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18709. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18710. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18711. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18712. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18713. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18714. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18715. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18716. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18717. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18718. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18719. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18720. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18721. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  18722. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18723. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18724. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18725. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18726. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18727. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18728. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18729. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18730. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18731. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18732. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18733. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18734. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18735. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18736. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18737. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  18738. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18739. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18740. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18741. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18742. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18743. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18744. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18745. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18746. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18747. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18748. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18749. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18750. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18751. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18752. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  18753. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18754. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18755. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18756. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18757. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18758. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18759. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18760. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18761. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18762. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18763. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18764. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18765. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18766. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18767. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  18768. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18769. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  18770. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18771. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18772. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18773. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18774. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18775. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18776. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18777. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18778. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18779. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18780. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18781. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18782. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18783. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18784. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18785. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18786. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18787. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  18788. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18789. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18790. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18791. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18792. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18793. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18794. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18795. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18796. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18797. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18798. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18799. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18800. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18801. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18802. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18803. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  18804. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18805. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18806. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18807. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18808. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18809. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18810. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18811. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18812. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18813. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18814. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18815. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18816. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18817. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18818. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18819. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  18820. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18821. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18822. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18823. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18824. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18825. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18826. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18827. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18828. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18829. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18830. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18831. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18832. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18833. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18834. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18835. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18836. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18837. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  18838. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18839. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18840. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18841. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18842. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18843. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18844. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18845. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18846. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18847. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18848. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18849. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18850. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18851. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18852. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18853. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18854. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18855. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  18856. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18857. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18858. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18859. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18860. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18861. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18862. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18863. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18864. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18865. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18866. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18867. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18868. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18869. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18870. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18871. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18872. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18873. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  18874. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18875. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18876. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18877. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18878. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18879. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18880. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18881. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18882. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18883. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18884. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18885. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18886. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18887. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18888. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18889. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18890. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18891. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  18892. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18893. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18894. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18895. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18896. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18897. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18898. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18899. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18900. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18901. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18902. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18903. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18904. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18905. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18906. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18907. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18908. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18909. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  18910. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18911. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18912. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18913. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18914. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18915. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18916. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18917. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18918. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18919. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18920. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18921. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18922. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18923. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18924. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18925. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18926. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  18927. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18928. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18929. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18930. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18931. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18932. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18933. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18934. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18935. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18936. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18937. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18938. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18939. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18940. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18941. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18942. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18943. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18944. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  18945. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18946. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18947. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18948. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18949. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18950. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18951. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18952. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18953. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18954. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18955. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18956. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18957. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18958. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18959. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18960. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18961. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18962. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  18963. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18964. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18965. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18966. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18967. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18968. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18969. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18970. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18971. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18972. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18973. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18974. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18975. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18976. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18977. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18978. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18979. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18980. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  18981. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18982. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18983. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18984. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18985. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18986. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18987. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18988. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18989. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18990. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18991. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18992. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18993. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18994. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18995. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18996. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18997. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18998. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  18999. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19000. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19001. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19002. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19003. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19004. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19005. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19006. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19007. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19008. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19009. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19010. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19011. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19012. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19013. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19014. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19015. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  19016. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19017. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19018. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19019. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19020. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19021. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19022. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19023. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19024. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19025. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19026. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19027. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19028. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19029. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19030. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19031. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19032. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19033. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  19034. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19035. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19036. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19037. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19038. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19039. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19040. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19041. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19042. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19043. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19044. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19045. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19046. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19047. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19048. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19049. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19050. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  19051. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19052. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19053. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19054. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19055. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19056. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19057. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19058. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19059. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19060. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19061. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19062. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19063. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19064. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19065. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19066. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19067. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19068. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  19069. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19070. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19071. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19072. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19073. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19074. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19075. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19076. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19077. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19078. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19079. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19080. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19081. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19082. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19083. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19084. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19085. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19086. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  19087. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19088. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19089. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19090. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19091. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19092. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19093. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19094. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19095. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19096. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19097. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19098. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19099. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19100. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19101. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19102. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19103. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19104. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  19105. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19106. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19107. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19108. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19109. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19110. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19111. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19112. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19113. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19114. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19115. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19116. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19117. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19118. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19119. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19120. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19121. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19122. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  19123. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19124. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19125. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19126. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19127. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19128. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19129. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19130. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19131. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19132. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19133. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19134. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19135. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19136. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19137. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19138. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19139. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19140. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19141. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  19142. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19143. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19144. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19145. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19146. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19147. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19148. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19149. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19150. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19151. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19152. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19153. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19154. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19155. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19156. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19157. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19158. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  19159. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19160. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19161. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19162. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19163. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19164. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19165. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19166. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19167. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19168. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19169. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19170. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19171. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19172. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19173. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19174. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19175. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19176. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19177. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  19178. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19179. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19180. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19181. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19182. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19183. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19184. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19185. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19186. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19187. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19188. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19189. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19190. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19191. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19192. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19193. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19194. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19195. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19196. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  19197. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19198. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19199. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19200. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19201. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19202. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19203. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19204. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19205. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19206. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19207. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19208. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19209. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19210. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19211. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19212. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19213. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19214. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19215. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  19216. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19217. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19218. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19219. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19220. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19221. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19222. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19223. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19224. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19225. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19226. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19227. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19228. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19229. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19230. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19231. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19232. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19233. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19234. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  19235. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19236. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19237. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19238. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19239. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19240. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19241. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19242. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19243. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19244. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19245. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19246. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19247. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19248. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19249. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19250. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19251. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  19252. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19253. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19254. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19255. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19256. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19257. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19258. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19259. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19260. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19261. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19262. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19263. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19264. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19265. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19266. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19267. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19268. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19269. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19270. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  19271. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19272. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19273. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19274. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19275. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19276. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19277. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19278. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19279. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19280. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19281. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19282. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19283. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19284. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19285. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19286. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19287. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19288. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19289. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  19290. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19291. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19292. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19293. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19294. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19295. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19296. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19297. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19298. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19299. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19300. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19301. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19302. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19303. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19304. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19305. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19306. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19307. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19308. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  19309. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  19310. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  19311. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  19312. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  19313. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  19314. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  19315. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  19316. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19317. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19318. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19319. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19320. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19321. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19322. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19323. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19324. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19325. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19326. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19327. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19328. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19329. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19330. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19331. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19332. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19333. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19334. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19335. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19336. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19337. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19338. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  19339. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19340. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19341. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19342. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  19343. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19344. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19345. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19346. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19347. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  19348. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19349. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19350. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19351. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19352. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19353. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19354. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19355. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19356. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19357. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19358. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19359. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19360. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19361. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19362. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19363. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19364. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19365. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19366. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19367. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19368. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19369. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19370. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19371. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19372. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19373. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19374. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19375. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19376. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19377. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19378. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19379. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19380. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19381. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19382. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19383. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19384. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19385. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19386. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19387. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19388. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19389. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19390. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19391. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19392. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19393. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19394. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19395. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19396. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19397. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19398. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19399. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19400. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19401. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19402. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19403. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19404. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19405. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19406. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19407. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19408. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19409. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19410. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19411. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19412. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19413. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19414. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19415. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19416. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19417. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19418. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19419. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19420. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19421. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19422. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19423. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19424. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19425. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19426. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19427. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19428. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19429. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19430. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19431. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19432. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19433. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19434. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19435. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19436. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19437. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19438. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19439. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19440. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19441. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19442. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19443. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19444. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19445. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19446. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19447. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19448. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19449. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19450. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19451. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19452. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19453. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19454. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19455. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19456. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19457. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19458. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19459. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19460. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19461. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19462. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19463. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19464. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19465. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19466. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19467. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19468. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19469. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19470. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19471. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19472. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19473. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19474. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19475. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19476. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19477. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19478. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19479. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19480. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19481. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19482. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19483. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19484. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19485. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19486. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19487. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19488. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19489. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19490. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19491. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19492. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19493. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19494. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19495. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19496. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19497. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19498. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19499. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19500. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19501. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19502. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19503. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19504. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19505. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19506. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19507. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19508. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19509. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19510. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19511. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19512. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19513. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19514. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19515. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19516. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19517. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19518. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19519. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19520. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19521. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19522. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19523. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19524. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19525. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19526. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19527. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19528. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19529. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19530. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19531. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19532. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19533. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19534. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19535. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19536. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19537. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19538. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19539. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19540. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19541. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19542. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19543. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19544. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19545. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19546. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19547. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19548. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19549. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19550. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19551. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19552. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19553. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19554. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19555. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19556. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19557. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19558. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19559. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19560. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19561. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19562. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19563. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19564. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19565. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19566. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19567. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19568. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19569. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19570. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19571. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19572. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19573. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19574. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19575. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19576. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19577. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19578. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19579. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19580. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19581. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19582. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19583. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19584. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19585. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19586. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19587. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19588. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19589. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19590. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19591. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19592. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19593. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19594. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19595. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19596. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19597. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19598. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19599. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19600. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19601. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19602. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19603. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19604. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19605. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19606. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19607. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19608. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19609. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19610. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19611. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19612. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19613. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19614. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19615. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19616. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19617. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19618. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19619. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19620. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19621. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19622. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19623. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19624. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19625. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19626. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19627. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19628. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19629. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19630. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19631. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19632. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19633. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19634. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19635. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19636. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19637. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19638. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19639. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19640. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19641. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19642. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19643. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19644. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19645. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19646. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19647. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19648. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19649. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19650. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19651. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19652. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19653. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19654. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19655. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19656. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19657. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19658. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19659. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19660. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19661. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19662. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19663. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19664. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19665. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19666. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19667. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19668. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19669. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19670. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19671. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19672. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19673. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19674. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19675. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19676. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19677. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19678. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19679. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19680. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19681. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19682. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19683. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19684. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19685. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19686. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19687. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19688. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19689. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19690. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19691. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19692. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19693. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19694. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19695. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19696. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19697. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19698. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19699. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19700. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19701. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19702. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19703. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19704. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19705. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19706. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19707. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19708. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19709. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19710. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19711. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19712. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19713. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19714. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19715. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19716. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19717. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19718. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19719. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19720. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19721. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19722. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19723. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19724. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19725. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19726. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19727. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19728. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19729. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19730. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19731. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19732. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19733. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19734. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19735. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19736. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19737. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19738. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19739. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19740. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19741. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19742. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19743. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19744. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19745. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19746. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19747. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19748. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19749. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19750. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19751. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19752. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19753. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19754. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19755. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19756. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19757. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19758. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19759. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19760. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19761. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19762. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19763. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19764. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19765. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19766. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19767. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19768. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19769. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19770. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19771. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19772. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19773. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19774. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19775. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19776. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19777. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19778. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19779. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19780. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19781. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19782. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19783. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19784. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19785. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19786. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19787. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19788. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19789. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19790. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19791. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19792. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19793. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19794. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19795. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19796. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19797. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19798. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19799. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19800. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19801. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19802. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19803. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19804. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19805. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19806. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19807. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19808. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  19809. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  19810. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19811. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19812. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19813. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19814. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19815. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19816. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19817. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19818. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19819. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19820. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19821. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19822. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19823. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19824. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19825. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19826. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  19827. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  19828. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19829. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19830. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19831. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19832. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19833. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19834. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19835. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19836. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19837. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19838. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19839. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19840. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19841. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19842. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19843. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19844. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  19845. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19846. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19847. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19848. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19849. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19850. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19851. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19852. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19853. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19854. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19855. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19856. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19857. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19858. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19859. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19860. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19861. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  19862. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19863. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19864. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19865. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19866. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19867. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19868. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19869. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19870. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19871. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19872. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19873. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19874. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19875. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19876. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19877. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19878. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19879. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19880. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19881. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19882. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19883. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19884. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19885. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19886. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19887. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19888. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19889. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19890. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19891. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19892. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19893. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19894. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19895. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19896. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19897. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  19898. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19899. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  19900. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  19901. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  19902. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  19903. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  19904. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  19905. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  19906. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  19907. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  19908. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  19909. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  19910. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  19911. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  19912. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  19913. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  19914. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  19915. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19916. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19917. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19918. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19919. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19920. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19921. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19922. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19923. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19924. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19925. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19926. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19927. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19928. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19929. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19930. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19931. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  19932. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  19933. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19934. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19935. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19936. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19937. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19938. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19939. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19940. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19941. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19942. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19943. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19944. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19945. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19946. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19947. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19948. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19949. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  19950. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  19951. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19952. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19953. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19954. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19955. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19956. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19957. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19958. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19959. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19960. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19961. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19962. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19963. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19964. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19965. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19966. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19967. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  19968. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19969. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19970. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19971. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19972. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19973. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19974. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19975. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19976. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19977. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19978. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19979. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19980. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19981. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19982. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19983. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19984. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  19985. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19986. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19987. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19988. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19989. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19990. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19991. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19992. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19993. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19994. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19995. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19996. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19997. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19998. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19999. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20000. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20001. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  20002. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20003. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20004. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20005. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20006. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20007. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  20008. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20009. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20010. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20011. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  20012. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20013. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20014. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20015. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20016. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20017. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  20018. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20019. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20020. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20021. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20022. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20023. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  20024. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20025. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20026. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20027. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20028. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20029. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  20030. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20031. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20032. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20033. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20034. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20035. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  20036. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20037. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20038. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20039. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20040. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20041. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  20042. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  20043. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20044. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20045. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20046. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20047. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  20048. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20049. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20050. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20051. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20052. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20053. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  20054. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20055. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20056. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20057. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20058. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20059. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  20060. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20061. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20062. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20063. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20064. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20065. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  20066. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20067. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20068. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20069. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20070. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20071. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  20072. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20073. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20074. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20075. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20076. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20077. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  20078. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20079. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20080. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20081. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20082. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20083. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  20084. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20085. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20086. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20087. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20088. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20089. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  20090. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20091. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20092. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20093. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20094. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20095. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  20096. {"HDMI", NULL, "HDMI_DL_HL"},
  20097. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20098. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20099. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20100. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20101. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20102. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  20103. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20104. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20105. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20106. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20107. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20108. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  20109. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20110. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20111. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20112. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20113. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20114. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  20115. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20116. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20117. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20118. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20119. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20120. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  20121. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20122. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20123. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20124. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20125. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20126. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  20127. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20128. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20129. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20130. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20131. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  20132. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20133. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20134. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20135. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20136. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  20137. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20138. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  20139. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20140. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20141. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  20142. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20143. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20144. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  20145. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20146. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20147. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20148. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20149. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20150. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20151. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  20152. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  20153. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  20154. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  20155. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20156. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20157. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20158. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20159. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20160. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20161. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20162. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20163. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20164. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20165. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20166. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20167. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20168. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20169. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20170. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20171. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20172. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20173. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20174. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20175. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20176. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20177. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20178. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20179. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20180. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20181. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20182. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20183. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20184. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20185. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20186. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20187. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20188. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20189. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20190. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20191. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20192. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20193. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20194. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20195. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20196. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20197. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20198. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20199. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20200. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20201. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20202. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20203. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20204. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20205. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20206. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20207. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20208. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20209. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20210. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20211. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20212. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20213. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20214. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20215. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20216. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20217. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20218. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20219. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20220. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20221. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20222. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20223. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20224. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20225. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20226. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20227. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20228. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20229. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20230. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20231. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20232. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20233. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20234. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20235. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20236. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  20237. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  20238. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  20239. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  20240. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  20241. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  20242. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  20243. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  20244. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  20245. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  20246. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  20247. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  20248. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  20249. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  20250. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  20251. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  20252. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  20253. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  20254. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  20255. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  20256. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  20257. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  20258. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  20259. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  20260. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  20261. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  20262. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  20263. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  20264. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  20265. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  20266. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  20267. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  20268. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  20269. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  20270. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  20271. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  20272. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  20273. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  20274. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  20275. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  20276. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  20277. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  20278. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  20279. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  20280. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  20281. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  20282. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  20283. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  20284. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  20285. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  20286. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  20287. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  20288. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  20289. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  20290. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  20291. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  20292. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  20293. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  20294. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  20295. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  20296. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  20297. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  20298. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  20299. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  20300. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  20301. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  20302. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  20303. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  20304. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  20305. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  20306. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  20307. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  20308. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  20309. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  20310. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  20311. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  20312. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  20313. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  20314. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  20315. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  20316. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  20317. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  20318. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  20319. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  20320. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  20321. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  20322. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  20323. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  20324. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  20325. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  20326. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  20327. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  20328. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  20329. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20330. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  20331. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  20332. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20333. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  20334. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  20335. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20336. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20337. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20338. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20339. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20340. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20341. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20342. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20343. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20344. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20345. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20346. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  20347. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20348. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20349. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20350. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20351. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20352. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20353. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20354. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20355. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20356. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20357. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20358. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  20359. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20360. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20361. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20362. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20363. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20364. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20365. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20366. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20367. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20368. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20369. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20370. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  20371. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20372. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20373. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20374. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20375. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20376. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20377. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20378. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20379. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20380. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20381. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20382. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  20383. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20384. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20385. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20386. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20387. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20388. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20389. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20390. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20391. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20392. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20393. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20394. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  20395. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20396. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20397. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20398. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20399. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20400. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20401. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20402. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20403. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20404. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  20405. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20406. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20407. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20408. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20409. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20410. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20411. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20412. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20413. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20414. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  20415. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20416. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20417. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20418. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20419. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20420. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20421. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20422. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20423. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20424. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  20425. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  20426. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  20427. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  20428. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  20429. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  20430. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  20431. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  20432. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  20433. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  20434. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  20435. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  20436. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  20437. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  20438. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  20439. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  20440. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  20441. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  20442. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  20443. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  20444. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  20445. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  20446. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  20447. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  20448. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  20449. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  20450. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  20451. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  20452. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20453. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  20454. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  20455. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  20456. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20457. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  20458. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  20459. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  20460. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  20461. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  20462. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  20463. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  20464. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  20465. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20466. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  20467. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20468. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  20469. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  20470. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  20471. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  20472. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  20473. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  20474. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  20475. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  20476. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  20477. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  20478. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  20479. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20480. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  20481. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20482. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  20483. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  20484. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  20485. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  20486. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  20487. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  20488. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  20489. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  20490. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  20491. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  20492. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  20493. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  20494. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  20495. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  20496. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  20497. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  20498. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  20499. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  20500. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  20501. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  20502. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  20503. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  20504. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  20505. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  20506. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  20507. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  20508. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  20509. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  20510. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  20511. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  20512. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  20513. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  20514. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  20515. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  20516. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  20517. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  20518. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  20519. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  20520. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  20521. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  20522. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  20523. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  20524. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  20525. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  20526. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  20527. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  20528. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  20529. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20530. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20531. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20532. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20533. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20534. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20535. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20536. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20537. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20538. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20539. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20540. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20541. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20542. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20543. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20544. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20545. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20546. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20547. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20548. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20549. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  20550. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20551. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20552. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20553. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20554. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20555. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20556. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20557. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20558. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20559. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20560. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20561. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20562. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20563. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20564. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20565. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20566. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20567. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20568. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20569. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20570. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  20571. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20572. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20573. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20574. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20575. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20576. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20577. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20578. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20579. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20580. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20581. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20582. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20583. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20584. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20585. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20586. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20587. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20588. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20589. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20590. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20591. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  20592. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20593. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20594. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20595. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20596. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20597. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20598. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20599. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20600. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20601. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20602. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20603. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20604. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20605. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20606. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20607. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20608. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20609. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20610. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20611. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20612. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  20613. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20614. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20615. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20616. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20617. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20618. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20619. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20620. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20621. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20622. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20623. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20624. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20625. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20626. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20627. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20628. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20629. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20630. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20631. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20632. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20633. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  20634. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20635. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20636. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20637. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20638. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20639. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20640. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20641. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20642. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20643. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20644. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20645. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20646. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20647. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20648. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20649. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20650. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20651. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20652. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20653. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20654. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  20655. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20656. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20657. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20658. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20659. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20660. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20661. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20662. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20663. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20664. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20665. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20666. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20667. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20668. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20669. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20670. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20671. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20672. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20673. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20674. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20675. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  20676. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20677. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20678. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20679. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20680. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20681. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20682. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20683. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20684. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20685. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20686. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20687. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20688. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20689. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20690. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20691. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20692. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20693. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20694. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20695. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20696. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  20697. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20698. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20699. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20700. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20701. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20702. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20703. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20704. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20705. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20706. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20707. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20708. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20709. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20710. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20711. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20712. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20713. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20714. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20715. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20716. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20717. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  20718. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20719. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20720. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20721. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20722. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20723. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20724. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20725. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20726. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20727. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20728. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20729. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20730. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20731. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20732. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20733. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20734. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20735. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20736. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20737. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20738. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  20739. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20740. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20741. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20742. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20743. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20744. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20745. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20746. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20747. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20748. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20749. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20750. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20751. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20752. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20753. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20754. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20755. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20756. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20757. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20758. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20759. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  20760. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20761. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20762. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20763. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20764. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20765. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20766. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20767. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20768. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20769. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20770. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20771. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20772. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20773. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20774. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20775. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20776. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20777. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20778. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20779. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20780. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  20781. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20782. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20783. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20784. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20785. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20786. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20787. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20788. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20789. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20790. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20791. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20792. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20793. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20794. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20795. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20796. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20797. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20798. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20799. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20800. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20801. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  20802. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20803. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20804. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20805. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20806. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20807. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20808. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20809. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20810. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20811. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20812. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20813. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20814. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20815. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20816. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20817. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20818. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20819. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20820. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20821. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20822. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  20823. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20824. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20825. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20826. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20827. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20828. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20829. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20830. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20831. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20832. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20833. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20834. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20835. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20836. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20837. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20838. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20839. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20840. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20841. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20842. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20843. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  20844. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20845. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20846. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20847. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20848. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20849. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20850. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20851. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20852. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20853. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20854. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20855. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20856. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20857. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20858. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20859. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20860. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20861. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20862. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20863. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20864. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  20865. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20866. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20867. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20868. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20869. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20870. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20871. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20872. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20873. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20874. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20875. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20876. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20877. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20878. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20879. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20880. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20881. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20882. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20883. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20884. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20885. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  20886. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20887. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20888. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20889. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20890. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20891. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20892. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20893. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20894. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20895. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20896. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20897. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20898. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20899. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20900. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20901. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20902. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20903. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20904. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20905. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20906. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  20907. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20908. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20909. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20910. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20911. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20912. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20913. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20914. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20915. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20916. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20917. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20918. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20919. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20920. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20921. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20922. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20923. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20924. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20925. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20926. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20927. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  20928. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20929. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20930. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20931. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20932. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20933. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20934. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20935. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20936. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20937. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20938. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20939. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20940. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20941. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20942. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20943. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20944. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20945. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20946. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20947. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20948. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  20949. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20950. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20951. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20952. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20953. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20954. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20955. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20956. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20957. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20958. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20959. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  20960. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20961. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20962. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20963. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20964. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20965. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20966. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20967. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20968. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20969. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20970. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  20971. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20972. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20973. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20974. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20975. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20976. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20977. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20978. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20979. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20980. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20981. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20982. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20983. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  20984. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  20985. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  20986. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20987. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20988. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20989. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20990. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20991. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20992. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20993. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  20994. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20995. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20996. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  20997. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20998. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  20999. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  21000. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  21001. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  21002. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21003. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21004. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21005. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21006. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21007. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21008. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  21009. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21010. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21011. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21012. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21013. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  21014. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21015. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21016. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21017. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  21018. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21019. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21020. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21021. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  21022. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21023. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21024. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21025. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  21026. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21027. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21028. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21029. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21030. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21031. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21032. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21033. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21034. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21035. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  21036. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21037. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21038. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21039. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21040. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21041. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21042. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21043. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21044. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21045. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  21046. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21047. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21048. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21049. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21050. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21051. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21052. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21053. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21054. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21055. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21056. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21057. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  21058. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21059. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21060. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21061. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21062. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21063. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21064. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21065. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21066. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21067. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21068. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21069. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  21070. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21071. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21072. {"STUB_RX", NULL, "STUB_RX Mixer"},
  21073. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21074. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21075. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  21076. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21077. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21078. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  21079. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21080. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21081. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21082. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21083. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21084. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  21085. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21086. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21087. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21088. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21089. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21090. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  21091. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21092. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21093. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21094. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  21095. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21096. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21097. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  21098. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  21099. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21100. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  21101. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  21102. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  21103. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  21104. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21105. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21106. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21107. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21108. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21109. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21110. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21111. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21112. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21113. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21114. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21115. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21116. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  21117. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21118. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  21119. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21120. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  21121. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  21122. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  21123. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21124. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  21125. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21126. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21127. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  21128. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21129. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21130. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21131. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21132. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21133. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21134. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21135. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21136. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21137. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21138. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  21139. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21140. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21141. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21142. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21143. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21144. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21145. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21146. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21147. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21148. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  21149. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21150. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21151. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21152. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21153. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21154. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21155. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21156. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  21157. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21158. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21159. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21160. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21161. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21162. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21163. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21164. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21165. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21166. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  21167. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21168. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21169. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21170. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21171. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21172. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21173. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21174. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  21175. /* Backend Enablement */
  21176. {"BE_OUT", NULL, "PRI_I2S_RX"},
  21177. {"BE_OUT", NULL, "SEC_I2S_RX"},
  21178. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  21179. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  21180. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  21181. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21182. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  21183. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  21184. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  21185. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  21186. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  21187. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  21188. {"BE_OUT", NULL, "HDMI"},
  21189. {"BE_OUT", NULL, "DISPLAY_PORT"},
  21190. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  21191. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  21192. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  21193. {"BE_OUT", NULL, "MI2S_RX"},
  21194. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  21195. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  21196. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  21197. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  21198. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  21199. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  21200. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  21201. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  21202. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  21203. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  21204. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  21205. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21206. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  21207. {"BE_OUT", NULL, "INT_FM_RX"},
  21208. {"BE_OUT", NULL, "PCM_RX"},
  21209. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21210. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21211. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  21212. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  21213. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  21214. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  21215. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21216. {"BE_OUT", NULL, "INT_FM_RX"},
  21217. {"BE_OUT", NULL, "PCM_RX"},
  21218. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21219. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  21220. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  21221. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  21222. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  21223. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  21224. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  21225. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  21226. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  21227. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  21228. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  21229. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  21230. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  21231. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  21232. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  21233. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  21234. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  21235. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  21236. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  21237. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  21238. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  21239. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  21240. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  21241. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  21242. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  21243. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  21244. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  21245. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  21246. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  21247. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  21248. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  21249. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  21250. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  21251. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  21252. {"PRI_I2S_TX", NULL, "BE_IN"},
  21253. {"MI2S_TX", NULL, "BE_IN"},
  21254. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  21255. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  21256. {"PRI_MI2S_TX", NULL, "BE_IN"},
  21257. {"TERT_MI2S_TX", NULL, "BE_IN"},
  21258. {"INT0_MI2S_TX", NULL, "BE_IN"},
  21259. {"INT2_MI2S_TX", NULL, "BE_IN"},
  21260. {"INT3_MI2S_TX", NULL, "BE_IN"},
  21261. {"INT4_MI2S_TX", NULL, "BE_IN"},
  21262. {"INT5_MI2S_TX", NULL, "BE_IN"},
  21263. {"SEC_MI2S_TX", NULL, "BE_IN"},
  21264. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  21265. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  21266. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  21267. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  21268. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  21269. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  21270. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  21271. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  21272. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  21273. {"USB_AUDIO_TX", NULL, "BE_IN" },
  21274. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  21275. {"INT_FM_TX", NULL, "BE_IN"},
  21276. {"PCM_TX", NULL, "BE_IN"},
  21277. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21278. {"BE_OUT", NULL, "STUB_RX"},
  21279. {"STUB_TX", NULL, "BE_IN"},
  21280. {"STUB_1_TX", NULL, "BE_IN"},
  21281. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21282. {"AUX_PCM_TX", NULL, "BE_IN"},
  21283. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  21284. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  21285. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  21286. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  21287. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  21288. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  21289. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21290. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21291. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21292. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21293. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  21294. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21295. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21296. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  21297. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  21298. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  21299. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  21300. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  21301. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  21302. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  21303. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  21304. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  21305. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  21306. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  21307. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  21308. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  21309. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  21310. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  21311. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  21312. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  21313. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  21314. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  21315. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  21316. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  21317. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  21318. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  21319. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  21320. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  21321. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  21322. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  21323. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21324. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21325. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  21326. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21327. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21328. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  21329. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  21330. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  21331. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  21332. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  21333. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  21334. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  21335. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  21336. };
  21337. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  21338. struct snd_pcm_hw_params *params)
  21339. {
  21340. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21341. unsigned int be_id = rtd->dai_link->id;
  21342. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21343. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21344. return -EINVAL;
  21345. }
  21346. mutex_lock(&routing_lock);
  21347. msm_bedais[be_id].sample_rate = params_rate(params);
  21348. msm_bedais[be_id].channel = params_channels(params);
  21349. msm_bedais[be_id].format = params_format(params);
  21350. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  21351. __func__, msm_bedais[be_id].sample_rate,
  21352. msm_bedais[be_id].format, be_id);
  21353. mutex_unlock(&routing_lock);
  21354. return 0;
  21355. }
  21356. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  21357. {
  21358. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21359. unsigned int be_id = rtd->dai_link->id;
  21360. int i, session_type, path_type, topology;
  21361. struct msm_pcm_routing_bdai_data *bedai;
  21362. struct msm_pcm_routing_fdai_data *fdai;
  21363. pr_debug("%s: substream->pcm->id:%s\n",
  21364. __func__, substream->pcm->id);
  21365. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21366. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21367. return -EINVAL;
  21368. }
  21369. bedai = &msm_bedais[be_id];
  21370. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  21371. 0 : 1);
  21372. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21373. path_type = ADM_PATH_PLAYBACK;
  21374. else
  21375. path_type = ADM_PATH_LIVE_REC;
  21376. mutex_lock(&routing_lock);
  21377. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21378. if (!is_mm_lsm_fe_id(i))
  21379. continue;
  21380. fdai = &fe_dai_map[i][session_type];
  21381. if (fdai->strm_id != INVALID_SESSION) {
  21382. int idx;
  21383. int port_id;
  21384. unsigned long copp =
  21385. session_copp_map[i][session_type][be_id];
  21386. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  21387. if (test_bit(idx, &copp))
  21388. break;
  21389. fdai->be_srate = bedai->sample_rate;
  21390. port_id = bedai->port_id;
  21391. topology = adm_get_topology_for_port_copp_idx(port_id,
  21392. idx);
  21393. msm_routing_unload_topology(topology);
  21394. adm_close(bedai->port_id, fdai->perf_mode, idx);
  21395. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  21396. __func__, copp, i, session_type, be_id,
  21397. topology);
  21398. clear_bit(idx,
  21399. &session_copp_map[i][session_type][be_id]);
  21400. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  21401. (bedai->passthr_mode[i] == LEGACY_PCM))
  21402. msm_pcm_routing_deinit_pp(bedai->port_id,
  21403. topology);
  21404. }
  21405. }
  21406. bedai->active = 0;
  21407. bedai->sample_rate = 0;
  21408. bedai->channel = 0;
  21409. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  21410. if (bedai->passthr_mode[i] != LISTEN)
  21411. bedai->passthr_mode[i] = LEGACY_PCM;
  21412. }
  21413. mutex_unlock(&routing_lock);
  21414. return 0;
  21415. }
  21416. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  21417. {
  21418. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21419. unsigned int be_id = rtd->dai_link->id;
  21420. int i, path_type, topology;
  21421. int session_type = INVALID_SESSION;
  21422. struct msm_pcm_routing_bdai_data *bedai;
  21423. u32 channels, sample_rate;
  21424. uint16_t bits_per_sample = 16, voc_path_type;
  21425. struct msm_pcm_routing_fdai_data *fdai;
  21426. u32 session_id;
  21427. struct media_format_info voc_be_media_format;
  21428. bool is_lsm;
  21429. pr_debug("%s: substream->pcm->id:%s\n",
  21430. __func__, substream->pcm->id);
  21431. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21432. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21433. return -EINVAL;
  21434. }
  21435. bedai = &msm_bedais[be_id];
  21436. mutex_lock(&routing_lock);
  21437. if (bedai->active == 1)
  21438. goto done; /* Ignore prepare if back-end already active */
  21439. /* AFE port is not active at this point. However, still
  21440. * go ahead setting active flag under the notion that
  21441. * QDSP6 is able to handle ADM starting before AFE port
  21442. * is started.
  21443. */
  21444. bedai->active = 1;
  21445. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21446. if (!(is_mm_lsm_fe_id(i) &&
  21447. route_check_fe_id_adm_support(i)))
  21448. continue;
  21449. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  21450. if (bedai->passthr_mode[i] != LEGACY_PCM)
  21451. path_type = ADM_PATH_COMPRESSED_RX;
  21452. else
  21453. path_type = ADM_PATH_PLAYBACK;
  21454. session_type = SESSION_TYPE_RX;
  21455. } else {
  21456. if ((bedai->passthr_mode[i] != LEGACY_PCM) &&
  21457. (bedai->passthr_mode[i] != LISTEN))
  21458. path_type = ADM_PATH_COMPRESSED_TX;
  21459. else
  21460. path_type = ADM_PATH_LIVE_REC;
  21461. session_type = SESSION_TYPE_TX;
  21462. }
  21463. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  21464. (i <= MSM_FRONTEND_DAI_LSM8);
  21465. fdai = &fe_dai_map[i][session_type];
  21466. if (fdai->strm_id != INVALID_SESSION) {
  21467. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  21468. if (session_type == SESSION_TYPE_TX &&
  21469. fdai->be_srate &&
  21470. (fdai->be_srate != bedai->sample_rate)) {
  21471. pr_debug("%s: flush strm %d diff BE rates\n",
  21472. __func__,
  21473. fdai->strm_id);
  21474. if (fdai->event_info.event_func)
  21475. fdai->event_info.event_func(
  21476. MSM_PCM_RT_EVT_BUF_RECFG,
  21477. fdai->event_info.priv_data);
  21478. fdai->be_srate = 0; /* might not need it */
  21479. }
  21480. bits_per_sample = msm_routing_get_bit_width(
  21481. bedai->format);
  21482. app_type =
  21483. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  21484. if (app_type && is_lsm) {
  21485. app_type_idx =
  21486. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  21487. sample_rate =
  21488. fe_dai_app_type_cfg[i][session_type][be_id]
  21489. .sample_rate;
  21490. bits_per_sample =
  21491. lsm_app_type_cfg[app_type_idx].bit_width;
  21492. } else if (app_type) {
  21493. app_type_idx =
  21494. msm_pcm_routing_get_app_type_idx(app_type);
  21495. sample_rate =
  21496. fe_dai_app_type_cfg[i][session_type]
  21497. [be_id].sample_rate;
  21498. bits_per_sample =
  21499. app_type_cfg[app_type_idx].bit_width;
  21500. } else
  21501. sample_rate = bedai->sample_rate;
  21502. /*
  21503. * check if ADM needs to be configured with different
  21504. * channel mapping than backend
  21505. */
  21506. if (!bedai->adm_override_ch)
  21507. channels = bedai->channel;
  21508. else
  21509. channels = bedai->adm_override_ch;
  21510. acdb_dev_id =
  21511. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  21512. topology = msm_routing_get_adm_topology(i, session_type,
  21513. be_id);
  21514. if ((bedai->passthr_mode[i] ==
  21515. COMPRESSED_PASSTHROUGH_DSD)
  21516. || (bedai->passthr_mode[i] ==
  21517. COMPRESSED_PASSTHROUGH_GEN)
  21518. || (bedai->passthr_mode[i] ==
  21519. COMPRESSED_PASSTHROUGH_IEC61937))
  21520. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  21521. copp_idx = adm_open(bedai->port_id, path_type,
  21522. sample_rate, channels, topology,
  21523. fdai->perf_mode, bits_per_sample,
  21524. app_type, acdb_dev_id);
  21525. if ((copp_idx < 0) ||
  21526. (copp_idx >= MAX_COPPS_PER_PORT)) {
  21527. pr_err("%s: adm open failed\n", __func__);
  21528. mutex_unlock(&routing_lock);
  21529. return -EINVAL;
  21530. }
  21531. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  21532. __func__, i, session_type, be_id);
  21533. set_bit(copp_idx,
  21534. &session_copp_map[i][session_type][be_id]);
  21535. if (msm_is_resample_needed(
  21536. sample_rate,
  21537. bedai->sample_rate))
  21538. adm_copp_mfc_cfg(
  21539. bedai->port_id, copp_idx,
  21540. bedai->sample_rate);
  21541. msm_pcm_routing_build_matrix(i, session_type, path_type,
  21542. fdai->perf_mode,
  21543. bedai->passthr_mode[i]);
  21544. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  21545. (bedai->passthr_mode[i] == LEGACY_PCM))
  21546. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  21547. topology, channels);
  21548. }
  21549. }
  21550. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21551. session_id = msm_pcm_routing_get_voc_sessionid(i);
  21552. if (session_id) {
  21553. pr_debug("%s voice session_id: 0x%x\n", __func__,
  21554. session_id);
  21555. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21556. voc_path_type = RX_PATH;
  21557. else
  21558. voc_path_type = TX_PATH;
  21559. voc_set_route_flag(session_id, voc_path_type, 1);
  21560. memset(&voc_be_media_format, 0,
  21561. sizeof(struct media_format_info));
  21562. voc_be_media_format.port_id = bedai->port_id;
  21563. voc_be_media_format.num_channels = bedai->channel;
  21564. voc_be_media_format.sample_rate = bedai->sample_rate;
  21565. voc_be_media_format.bits_per_sample = bedai->format;
  21566. /* Defaulting this to 1 for voice call usecases */
  21567. voc_be_media_format.channel_mapping[0] = 1;
  21568. voc_set_device_config(session_id, voc_path_type,
  21569. &voc_be_media_format);
  21570. if (voc_get_route_flag(session_id, RX_PATH) &&
  21571. voc_get_route_flag(session_id, TX_PATH))
  21572. voc_enable_device(session_id);
  21573. }
  21574. }
  21575. /* Check if backend is an external ec ref port and set as needed */
  21576. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  21577. memset(&voc_be_media_format, 0,
  21578. sizeof(struct media_format_info));
  21579. /* Get format info for ec ref port from msm_bedais[] */
  21580. voc_be_media_format.port_id = bedai->port_id;
  21581. voc_be_media_format.num_channels = bedai->channel;
  21582. voc_be_media_format.bits_per_sample = bedai->format;
  21583. voc_be_media_format.sample_rate = bedai->sample_rate;
  21584. /* Defaulting this to 1 for voice call usecases */
  21585. voc_be_media_format.channel_mapping[0] = 1;
  21586. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  21587. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  21588. __func__, voc_be_media_format.port_id,
  21589. voc_be_media_format.num_channels,
  21590. voc_be_media_format.bits_per_sample,
  21591. voc_be_media_format.sample_rate);
  21592. }
  21593. done:
  21594. mutex_unlock(&routing_lock);
  21595. return 0;
  21596. }
  21597. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  21598. int fe_id)
  21599. {
  21600. int index, topo_id, be_idx;
  21601. unsigned long pp_config = 0;
  21602. bool mute_on;
  21603. int latency;
  21604. bool compr_passthr_mode = true;
  21605. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  21606. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  21607. pr_err("%s: Device pp params on invalid port %d\n",
  21608. __func__, port_id);
  21609. return -EINVAL;
  21610. }
  21611. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21612. if (port_id == msm_bedais[be_idx].port_id)
  21613. break;
  21614. }
  21615. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21616. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  21617. return -EINVAL;
  21618. }
  21619. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  21620. if (msm_bedais_pp_params[index].port_id == port_id)
  21621. break;
  21622. }
  21623. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  21624. pr_err("%s: Invalid backend pp params index %d\n",
  21625. __func__, index);
  21626. return -EINVAL;
  21627. }
  21628. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  21629. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  21630. pr_err("%s: Invalid passthrough topology 0x%x\n",
  21631. __func__, topo_id);
  21632. return -EINVAL;
  21633. }
  21634. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  21635. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  21636. compr_passthr_mode = false;
  21637. pp_config = msm_bedais_pp_params[index].pp_params_config;
  21638. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  21639. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  21640. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  21641. mute_on = msm_bedais_pp_params[index].mute_on;
  21642. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21643. adm_send_compressed_device_mute(port_id,
  21644. copp_idx,
  21645. mute_on);
  21646. }
  21647. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  21648. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  21649. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  21650. &pp_config);
  21651. latency = msm_bedais_pp_params[index].latency;
  21652. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21653. adm_send_compressed_device_latency(port_id,
  21654. copp_idx,
  21655. latency);
  21656. }
  21657. return 0;
  21658. }
  21659. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  21660. {
  21661. uint32_t topology = NULL_COPP_TOPOLOGY;
  21662. void *cal_info = NULL;
  21663. uint32_t size = 0;
  21664. /* Retrieve cal_info size from cal data*/
  21665. size = data_size - sizeof(struct audio_cal_type_basic);
  21666. cal_info = kzalloc(size, GFP_KERNEL);
  21667. if (!cal_info)
  21668. goto done;
  21669. memcpy(cal_info,
  21670. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  21671. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  21672. kfree(cal_info);
  21673. cal_info = NULL;
  21674. done:
  21675. pr_debug("%s: Using topology %d\n", __func__, topology);
  21676. return topology;
  21677. }
  21678. static void msm_routing_load_topology(size_t data_size, void *data)
  21679. {
  21680. uint32_t topology_id;
  21681. int ret = -EINVAL;
  21682. topology_id = msm_routing_get_topology(data_size, data);
  21683. if (topology_id != NULL_COPP_TOPOLOGY)
  21684. ret = q6core_load_unload_topo_modules(topology_id,
  21685. CORE_LOAD_TOPOLOGY);
  21686. if (ret < 0)
  21687. pr_debug("%s %d load topology failed\n",
  21688. __func__, topology_id);
  21689. }
  21690. static void msm_routing_unload_topology(uint32_t topology_id)
  21691. {
  21692. int ret = -EINVAL;
  21693. if (topology_id != NULL_COPP_TOPOLOGY)
  21694. ret = q6core_load_unload_topo_modules(topology_id,
  21695. CORE_UNLOAD_TOPOLOGY);
  21696. if (ret < 0)
  21697. pr_debug("%s %d unload topology failed\n",
  21698. __func__, topology_id);
  21699. }
  21700. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  21701. struct snd_ctl_elem_value *ucontrol)
  21702. {
  21703. int pp_id = ucontrol->value.integer.value[0];
  21704. int port_id = 0;
  21705. int index, be_idx, i, topo_id, idx;
  21706. bool mute;
  21707. int latency;
  21708. bool compr_passthr_mode = true;
  21709. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  21710. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21711. port_id = msm_bedais[be_idx].port_id;
  21712. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  21713. break;
  21714. }
  21715. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21716. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  21717. return -EINVAL;
  21718. }
  21719. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  21720. if (msm_bedais_pp_params[index].port_id == port_id)
  21721. break;
  21722. }
  21723. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  21724. pr_err("%s: Invalid pp params backend index %d\n",
  21725. __func__, index);
  21726. return -EINVAL;
  21727. }
  21728. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21729. MSM_FRONTEND_DAI_MM_SIZE) {
  21730. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  21731. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  21732. compr_passthr_mode = false;
  21733. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21734. unsigned long copp =
  21735. session_copp_map[i]
  21736. [SESSION_TYPE_RX][be_idx];
  21737. if (!test_bit(idx, &copp))
  21738. continue;
  21739. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  21740. idx);
  21741. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  21742. continue;
  21743. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  21744. __func__, port_id, copp, msm_bedais[be_idx].active,
  21745. msm_bedais[be_idx].passthr_mode[i]);
  21746. switch (pp_id) {
  21747. case ADM_PP_PARAM_MUTE_ID:
  21748. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  21749. mute = ucontrol->value.integer.value[1] ? true : false;
  21750. msm_bedais_pp_params[index].mute_on = mute;
  21751. set_bit(ADM_PP_PARAM_MUTE_BIT,
  21752. &msm_bedais_pp_params[index].pp_params_config);
  21753. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21754. adm_send_compressed_device_mute(port_id,
  21755. idx, mute);
  21756. break;
  21757. case ADM_PP_PARAM_LATENCY_ID:
  21758. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  21759. msm_bedais_pp_params[index].latency =
  21760. ucontrol->value.integer.value[1];
  21761. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  21762. &msm_bedais_pp_params[index].pp_params_config);
  21763. latency = msm_bedais_pp_params[index].latency =
  21764. ucontrol->value.integer.value[1];
  21765. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21766. adm_send_compressed_device_latency(port_id,
  21767. idx, latency);
  21768. break;
  21769. default:
  21770. pr_info("%s, device pp param %d not supported\n",
  21771. __func__, pp_id);
  21772. break;
  21773. }
  21774. }
  21775. }
  21776. return 0;
  21777. }
  21778. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  21779. struct snd_ctl_elem_value *ucontrol)
  21780. {
  21781. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  21782. return 0;
  21783. }
  21784. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  21785. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  21786. 0, 3, msm_routing_get_device_pp_params_mixer,
  21787. msm_routing_put_device_pp_params_mixer),
  21788. };
  21789. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  21790. struct snd_ctl_elem_value *ucontrol)
  21791. {
  21792. ucontrol->value.integer.value[0] =
  21793. core_get_license_status(ASM_MEDIA_FMT_APTX);
  21794. pr_debug("%s: status %ld\n", __func__,
  21795. ucontrol->value.integer.value[0]);
  21796. return 0;
  21797. }
  21798. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  21799. struct snd_ctl_elem_value *ucontrol)
  21800. {
  21801. int32_t status = 0;
  21802. status = core_set_license(ucontrol->value.integer.value[0],
  21803. APTX_CLASSIC_DEC_LICENSE_ID);
  21804. pr_debug("%s: status %d\n", __func__, status);
  21805. return status;
  21806. }
  21807. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  21808. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  21809. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  21810. msm_aptx_dec_license_control_put),
  21811. };
  21812. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  21813. struct snd_ctl_elem_info *uinfo)
  21814. {
  21815. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21816. uinfo->count = sizeof(be_dai_name_table);
  21817. return 0;
  21818. }
  21819. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  21820. unsigned int __user *bytes,
  21821. unsigned int size)
  21822. {
  21823. int i;
  21824. int ret = 0;
  21825. if (size < sizeof(be_dai_name_table)) {
  21826. pr_err("%s: invalid size %d requested, returning\n",
  21827. __func__, size);
  21828. ret = -EINVAL;
  21829. goto done;
  21830. }
  21831. /*
  21832. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  21833. * needed when adding new backends
  21834. */
  21835. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  21836. be_dai_name_table[i].be_id = i;
  21837. strlcpy(be_dai_name_table[i].be_name,
  21838. msm_bedais[i].name,
  21839. LPASS_BE_NAME_MAX_LENGTH);
  21840. }
  21841. ret = copy_to_user(bytes, &be_dai_name_table,
  21842. sizeof(be_dai_name_table));
  21843. if (ret) {
  21844. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  21845. ret = -EFAULT;
  21846. }
  21847. done:
  21848. return ret;
  21849. }
  21850. static const struct snd_kcontrol_new
  21851. msm_routing_be_dai_name_table_mixer_controls[] = {
  21852. {
  21853. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  21854. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  21855. .info = msm_routing_be_dai_name_table_info,
  21856. .name = "Backend DAI Name Table",
  21857. .tlv.c = snd_soc_bytes_tlv_callback,
  21858. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  21859. .max = sizeof(be_dai_name_table),
  21860. .get = msm_routing_be_dai_name_table_tlv_get,
  21861. }
  21862. },
  21863. };
  21864. static int msm_routing_stereo_channel_reverse_control_get(
  21865. struct snd_kcontrol *kcontrol,
  21866. struct snd_ctl_elem_value *ucontrol)
  21867. {
  21868. ucontrol->value.integer.value[0] = swap_ch;
  21869. pr_debug("%s: Swap channel value: %ld\n", __func__,
  21870. ucontrol->value.integer.value[0]);
  21871. return 0;
  21872. }
  21873. static int msm_routing_stereo_channel_reverse_control_put(
  21874. struct snd_kcontrol *kcontrol,
  21875. struct snd_ctl_elem_value *ucontrol)
  21876. {
  21877. int i, idx, be_index, port_id;
  21878. int ret = 0;
  21879. unsigned long copp;
  21880. pr_debug("%s Swap channel value:%ld\n", __func__,
  21881. ucontrol->value.integer.value[0]);
  21882. swap_ch = ucontrol->value.integer.value[0];
  21883. mutex_lock(&routing_lock);
  21884. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21885. port_id = msm_bedais[be_index].port_id;
  21886. if (!msm_bedais[be_index].active)
  21887. continue;
  21888. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21889. MSM_FRONTEND_DAI_MM_SIZE) {
  21890. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  21891. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21892. if (!test_bit(idx, &copp))
  21893. continue;
  21894. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  21895. __func__, port_id, idx);
  21896. ret = adm_swap_speaker_channels(
  21897. port_id, idx,
  21898. msm_bedais[be_index].sample_rate,
  21899. swap_ch);
  21900. if (ret) {
  21901. pr_err("%s:Swap_channel failed, err=%d\n",
  21902. __func__, ret);
  21903. goto done;
  21904. }
  21905. }
  21906. }
  21907. }
  21908. done:
  21909. mutex_unlock(&routing_lock);
  21910. return ret;
  21911. }
  21912. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  21913. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  21914. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  21915. msm_routing_stereo_channel_reverse_control_put),
  21916. };
  21917. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  21918. struct snd_ctl_elem_info *uinfo)
  21919. {
  21920. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  21921. uinfo->count = 1;
  21922. return 0;
  21923. }
  21924. static int msm_routing_instance_id_support_put(
  21925. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  21926. {
  21927. bool supported = ucontrol->value.integer.value[0] ? true : false;
  21928. q6common_update_instance_id_support(supported);
  21929. return 0;
  21930. }
  21931. static int msm_routing_instance_id_support_get(
  21932. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  21933. {
  21934. bool supported = false;
  21935. supported = q6common_is_instance_id_supported();
  21936. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  21937. return 0;
  21938. }
  21939. static const struct snd_kcontrol_new
  21940. msm_routing_feature_support_mixer_controls[] = {
  21941. {
  21942. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  21943. SNDRV_CTL_ELEM_ACCESS_WRITE,
  21944. .info = msm_routing_instance_id_support_info,
  21945. .name = "Instance ID Support",
  21946. .put = msm_routing_instance_id_support_put,
  21947. .get = msm_routing_instance_id_support_get,
  21948. },
  21949. };
  21950. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  21951. .hw_params = msm_pcm_routing_hw_params,
  21952. .close = msm_pcm_routing_close,
  21953. .prepare = msm_pcm_routing_prepare,
  21954. };
  21955. /* Not used but frame seems to require it */
  21956. static int msm_routing_probe(struct snd_soc_platform *platform)
  21957. {
  21958. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  21959. ARRAY_SIZE(msm_qdsp6_widgets));
  21960. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  21961. ARRAY_SIZE(intercon));
  21962. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  21963. snd_soc_add_platform_controls(platform, lsm_controls,
  21964. ARRAY_SIZE(lsm_controls));
  21965. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  21966. ARRAY_SIZE(aanc_slim_0_rx_mux));
  21967. snd_soc_add_platform_controls(platform, aanc_noise_level,
  21968. ARRAY_SIZE(aanc_noise_level));
  21969. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  21970. ARRAY_SIZE(msm_voc_session_controls));
  21971. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  21972. ARRAY_SIZE(app_type_cfg_controls));
  21973. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  21974. ARRAY_SIZE(lsm_app_type_cfg_controls));
  21975. snd_soc_add_platform_controls(platform, module_cfg_controls,
  21976. ARRAY_SIZE(module_cfg_controls));
  21977. snd_soc_add_platform_controls(platform,
  21978. stereo_to_custom_stereo_controls,
  21979. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  21980. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  21981. ARRAY_SIZE(ec_ref_param_controls));
  21982. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  21983. ARRAY_SIZE(channel_mixer_controls));
  21984. msm_qti_pp_add_controls(platform);
  21985. msm_dts_srs_tm_add_controls(platform);
  21986. msm_dolby_dap_add_controls(platform);
  21987. snd_soc_add_platform_controls(platform,
  21988. use_ds1_or_ds2_controls,
  21989. ARRAY_SIZE(use_ds1_or_ds2_controls));
  21990. snd_soc_add_platform_controls(platform,
  21991. device_pp_params_mixer_controls,
  21992. ARRAY_SIZE(device_pp_params_mixer_controls));
  21993. snd_soc_add_platform_controls(platform,
  21994. msm_routing_be_dai_name_table_mixer_controls,
  21995. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  21996. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  21997. ARRAY_SIZE(msm_source_tracking_controls));
  21998. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  21999. ARRAY_SIZE(adm_channel_config_controls));
  22000. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  22001. ARRAY_SIZE(aptx_dec_license_controls));
  22002. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  22003. ARRAY_SIZE(stereo_channel_reverse_control));
  22004. snd_soc_add_platform_controls(
  22005. platform, msm_routing_feature_support_mixer_controls,
  22006. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  22007. return 0;
  22008. }
  22009. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  22010. {
  22011. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  22012. }
  22013. void msm_routing_pcm_free(struct snd_pcm *pcm)
  22014. {
  22015. msm_pcm_routing_hwdep_free(pcm);
  22016. }
  22017. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  22018. .ops = &msm_routing_pcm_ops,
  22019. .probe = msm_routing_probe,
  22020. .pcm_new = msm_routing_pcm_new,
  22021. .pcm_free = msm_routing_pcm_free,
  22022. };
  22023. static int msm_routing_pcm_probe(struct platform_device *pdev)
  22024. {
  22025. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  22026. return snd_soc_register_platform(&pdev->dev,
  22027. &msm_soc_routing_platform);
  22028. }
  22029. static int msm_routing_pcm_remove(struct platform_device *pdev)
  22030. {
  22031. snd_soc_unregister_platform(&pdev->dev);
  22032. return 0;
  22033. }
  22034. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  22035. {.compatible = "qcom,msm-pcm-routing"},
  22036. {}
  22037. };
  22038. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  22039. static struct platform_driver msm_routing_pcm_driver = {
  22040. .driver = {
  22041. .name = "msm-pcm-routing",
  22042. .owner = THIS_MODULE,
  22043. .of_match_table = msm_pcm_routing_dt_match,
  22044. },
  22045. .probe = msm_routing_pcm_probe,
  22046. .remove = msm_routing_pcm_remove,
  22047. };
  22048. int msm_routing_check_backend_enabled(int fedai_id)
  22049. {
  22050. int i;
  22051. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  22052. /* bad ID assigned in machine driver */
  22053. pr_err("%s: bad MM ID\n", __func__);
  22054. return 0;
  22055. }
  22056. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22057. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  22058. return msm_bedais[i].active;
  22059. }
  22060. return 0;
  22061. }
  22062. static int get_cal_type_index(int32_t cal_type)
  22063. {
  22064. int ret = -EINVAL;
  22065. switch (cal_type) {
  22066. case ADM_TOPOLOGY_CAL_TYPE:
  22067. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  22068. break;
  22069. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  22070. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  22071. break;
  22072. default:
  22073. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  22074. }
  22075. return ret;
  22076. }
  22077. static int msm_routing_set_cal(int32_t cal_type,
  22078. size_t data_size, void *data)
  22079. {
  22080. int ret = 0;
  22081. int cal_index;
  22082. pr_debug("%s\n", __func__);
  22083. cal_index = get_cal_type_index(cal_type);
  22084. if (cal_index < 0) {
  22085. pr_err("%s: Could not get cal index %d\n",
  22086. __func__, cal_index);
  22087. ret = -EINVAL;
  22088. goto done;
  22089. }
  22090. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  22091. if (ret < 0) {
  22092. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  22093. __func__, ret, cal_type);
  22094. ret = -EINVAL;
  22095. goto done;
  22096. }
  22097. /* Pre-load if it is ADM topology */
  22098. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  22099. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  22100. msm_routing_load_topology(data_size, data);
  22101. }
  22102. done:
  22103. return ret;
  22104. }
  22105. static void msm_routing_delete_cal_data(void)
  22106. {
  22107. pr_debug("%s\n", __func__);
  22108. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  22109. }
  22110. static int msm_routing_init_cal_data(void)
  22111. {
  22112. int ret = 0;
  22113. struct cal_type_info cal_type_info[] = {
  22114. {{ADM_TOPOLOGY_CAL_TYPE,
  22115. {NULL, NULL, NULL,
  22116. msm_routing_set_cal, NULL, NULL} },
  22117. {NULL, NULL, cal_utils_match_buf_num} },
  22118. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  22119. {NULL, NULL, NULL,
  22120. msm_routing_set_cal, NULL, NULL} },
  22121. {NULL, NULL, cal_utils_match_buf_num} },
  22122. };
  22123. pr_debug("%s\n", __func__);
  22124. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  22125. &cal_type_info[0]);
  22126. if (ret < 0) {
  22127. pr_err("%s: could not create cal type!\n",
  22128. __func__);
  22129. ret = -EINVAL;
  22130. goto err;
  22131. }
  22132. return ret;
  22133. err:
  22134. msm_routing_delete_cal_data();
  22135. return ret;
  22136. }
  22137. int __init msm_soc_routing_platform_init(void)
  22138. {
  22139. mutex_init(&routing_lock);
  22140. if (msm_routing_init_cal_data())
  22141. pr_err("%s: could not init cal data!\n", __func__);
  22142. afe_set_routing_callback(
  22143. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  22144. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22145. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  22146. return platform_driver_register(&msm_routing_pcm_driver);
  22147. }
  22148. void msm_soc_routing_platform_exit(void)
  22149. {
  22150. msm_routing_delete_cal_data();
  22151. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22152. mutex_destroy(&routing_lock);
  22153. platform_driver_unregister(&msm_routing_pcm_driver);
  22154. }
  22155. MODULE_DESCRIPTION("MSM routing platform driver");
  22156. MODULE_LICENSE("GPL v2");