msm-pcm-routing-v2.c 911 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. static int aanc_level;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* input BE for each FE */
  84. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  85. enum {
  86. MADNONE,
  87. MADAUDIO,
  88. MADBEACON,
  89. MADULTRASOUND,
  90. MADSWAUDIO,
  91. };
  92. #define ADM_LSM_PORT_INDEX 9
  93. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  94. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  95. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  96. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  97. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  98. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  99. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  100. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  101. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  102. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  103. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  104. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  105. #define LSM_FUNCTION_TEXT "LSM Function"
  106. static const char * const lsm_port_text[] = {
  107. "None",
  108. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  109. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  110. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  111. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT
  112. };
  113. struct msm_pcm_route_bdai_pp_params {
  114. u16 port_id; /* AFE port ID */
  115. unsigned long pp_params_config;
  116. bool mute_on;
  117. int latency;
  118. };
  119. static struct msm_pcm_route_bdai_pp_params
  120. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  121. {HDMI_RX, 0, 0, 0},
  122. {DISPLAY_PORT_RX, 0, 0, 0},
  123. };
  124. /*
  125. * The be_dai_name_table is passed to HAL so that it can specify the
  126. * BE ID for the BE it wants to enable based on the name. Thus there
  127. * is a matching table and structure in HAL that need to be updated
  128. * if any changes to these are made.
  129. */
  130. struct msm_pcm_route_bdai_name {
  131. unsigned int be_id;
  132. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  133. };
  134. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  135. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  136. int fe_id);
  137. static void msm_routing_load_topology(size_t data_size, void *data);
  138. static void msm_routing_unload_topology(uint32_t topology_id);
  139. static int msm_routing_get_bit_width(unsigned int format)
  140. {
  141. int bit_width;
  142. switch (format) {
  143. case SNDRV_PCM_FORMAT_S32_LE:
  144. bit_width = 32;
  145. break;
  146. case SNDRV_PCM_FORMAT_S24_LE:
  147. case SNDRV_PCM_FORMAT_S24_3LE:
  148. bit_width = 24;
  149. break;
  150. case SNDRV_PCM_FORMAT_S16_LE:
  151. default:
  152. bit_width = 16;
  153. }
  154. return bit_width;
  155. }
  156. static bool msm_is_resample_needed(int input_sr, int output_sr)
  157. {
  158. bool rc = false;
  159. if (input_sr != output_sr)
  160. rc = true;
  161. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  162. (rc ? "oh yes" : "not really"),
  163. input_sr, output_sr);
  164. return rc;
  165. }
  166. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  167. int channels)
  168. {
  169. int rc = 0;
  170. switch (topology) {
  171. case SRS_TRUMEDIA_TOPOLOGY_ID:
  172. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  173. msm_dts_srs_tm_init(port_id, copp_idx);
  174. break;
  175. case DS2_ADM_COPP_TOPOLOGY_ID:
  176. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  177. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  178. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  179. is_custom_stereo_on);
  180. if (rc < 0)
  181. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  182. __func__, topology, port_id,
  183. is_custom_stereo_on, rc);
  184. break;
  185. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  186. if (is_ds2_on) {
  187. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  192. __func__, topology, port_id, rc);
  193. } else {
  194. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  195. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  196. is_custom_stereo_on);
  197. if (rc < 0)
  198. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  199. __func__, topology, port_id, rc);
  200. }
  201. break;
  202. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  203. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  204. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  205. if (rc < 0)
  206. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  207. __func__, topology, port_id, copp_idx, rc);
  208. break;
  209. default:
  210. /* custom topology specific feature param handlers */
  211. break;
  212. }
  213. }
  214. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  215. {
  216. switch (topology) {
  217. case SRS_TRUMEDIA_TOPOLOGY_ID:
  218. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  219. msm_dts_srs_tm_deinit(port_id);
  220. break;
  221. case DS2_ADM_COPP_TOPOLOGY_ID:
  222. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  223. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  224. msm_ds2_dap_deinit(port_id);
  225. break;
  226. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  227. if (is_ds2_on) {
  228. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  229. msm_ds2_dap_deinit(port_id);
  230. } else {
  231. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  232. msm_dolby_dap_deinit(port_id);
  233. }
  234. break;
  235. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  236. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  237. msm_qti_pp_asphere_deinit(port_id);
  238. break;
  239. default:
  240. /* custom topology specific feature deinit handlers */
  241. break;
  242. }
  243. }
  244. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  245. int path_type, int perf_mode)
  246. {
  247. int itr = 0, rc = 0;
  248. if ((path_type == ADM_PATH_PLAYBACK) &&
  249. (perf_mode == LEGACY_PCM_MODE) &&
  250. is_custom_stereo_on) {
  251. for (itr = 0; itr < payload.num_copps; itr++) {
  252. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  253. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  254. continue;
  255. }
  256. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  257. payload.port_id[itr],
  258. payload.copp_idx[itr],
  259. payload.session_id,
  260. Q14_GAIN_ZERO_POINT_FIVE,
  261. Q14_GAIN_ZERO_POINT_FIVE,
  262. Q14_GAIN_ZERO_POINT_FIVE,
  263. Q14_GAIN_ZERO_POINT_FIVE);
  264. if (rc < 0)
  265. pr_err("%s: err setting custom stereo\n",
  266. __func__);
  267. }
  268. }
  269. }
  270. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  271. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  272. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  273. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  274. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  275. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  276. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  277. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  278. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  279. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  280. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  281. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  282. LPASS_BE_AFE_PCM_RX},
  283. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  284. LPASS_BE_AFE_PCM_TX},
  285. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  286. LPASS_BE_AUXPCM_RX},
  287. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  288. LPASS_BE_AUXPCM_TX},
  289. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  290. LPASS_BE_VOICE_PLAYBACK_TX},
  291. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  292. LPASS_BE_VOICE2_PLAYBACK_TX},
  293. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  294. LPASS_BE_INCALL_RECORD_RX},
  295. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  296. LPASS_BE_INCALL_RECORD_TX},
  297. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  298. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  299. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  300. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  301. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  302. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  303. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  304. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  305. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  306. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  307. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  308. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  309. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  310. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  311. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  312. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  313. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  314. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  315. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  316. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  317. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  318. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  319. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  320. LPASS_BE_QUAT_MI2S_RX},
  321. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  322. LPASS_BE_QUAT_MI2S_TX},
  323. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  324. LPASS_BE_SEC_MI2S_RX},
  325. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  326. LPASS_BE_SEC_MI2S_TX},
  327. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  328. LPASS_BE_PRI_MI2S_RX},
  329. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  330. LPASS_BE_PRI_MI2S_TX},
  331. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  332. LPASS_BE_TERT_MI2S_RX},
  333. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  334. LPASS_BE_TERT_MI2S_TX},
  335. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  336. LPASS_BE_AUDIO_I2S_RX},
  337. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  338. LPASS_BE_SEC_AUXPCM_RX},
  339. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  340. LPASS_BE_SEC_AUXPCM_TX},
  341. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  342. LPASS_BE_PRI_SPDIF_RX},
  343. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  344. LPASS_BE_SEC_MI2S_RX_SD1},
  345. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  346. LPASS_BE_QUIN_MI2S_RX},
  347. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  348. LPASS_BE_QUIN_MI2S_TX},
  349. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  350. LPASS_BE_SENARY_MI2S_TX},
  351. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  352. LPASS_BE_PRI_TDM_RX_0},
  353. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  354. LPASS_BE_PRI_TDM_TX_0},
  355. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  356. LPASS_BE_PRI_TDM_RX_1},
  357. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  358. LPASS_BE_PRI_TDM_TX_1},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  360. LPASS_BE_PRI_TDM_RX_2},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  362. LPASS_BE_PRI_TDM_TX_2},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  364. LPASS_BE_PRI_TDM_RX_3},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  366. LPASS_BE_PRI_TDM_TX_3},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  368. LPASS_BE_PRI_TDM_RX_4},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  370. LPASS_BE_PRI_TDM_TX_4},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  372. LPASS_BE_PRI_TDM_RX_5},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  374. LPASS_BE_PRI_TDM_TX_5},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  376. LPASS_BE_PRI_TDM_RX_6},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  378. LPASS_BE_PRI_TDM_TX_6},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  380. LPASS_BE_PRI_TDM_RX_7},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  382. LPASS_BE_PRI_TDM_TX_7},
  383. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  384. LPASS_BE_SEC_TDM_RX_0},
  385. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  386. LPASS_BE_SEC_TDM_TX_0},
  387. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  388. LPASS_BE_SEC_TDM_RX_1},
  389. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  390. LPASS_BE_SEC_TDM_TX_1},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  392. LPASS_BE_SEC_TDM_RX_2},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  394. LPASS_BE_SEC_TDM_TX_2},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  396. LPASS_BE_SEC_TDM_RX_3},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  398. LPASS_BE_SEC_TDM_TX_3},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  400. LPASS_BE_SEC_TDM_RX_4},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  402. LPASS_BE_SEC_TDM_TX_4},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  404. LPASS_BE_SEC_TDM_RX_5},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  406. LPASS_BE_SEC_TDM_TX_5},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  408. LPASS_BE_SEC_TDM_RX_6},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  410. LPASS_BE_SEC_TDM_TX_6},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  412. LPASS_BE_SEC_TDM_RX_7},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  414. LPASS_BE_SEC_TDM_TX_7},
  415. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  416. LPASS_BE_TERT_TDM_RX_0},
  417. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  418. LPASS_BE_TERT_TDM_TX_0},
  419. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  420. LPASS_BE_TERT_TDM_RX_1},
  421. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  422. LPASS_BE_TERT_TDM_TX_1},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  424. LPASS_BE_TERT_TDM_RX_2},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  426. LPASS_BE_TERT_TDM_TX_2},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  428. LPASS_BE_TERT_TDM_RX_3},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  430. LPASS_BE_TERT_TDM_TX_3},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  432. LPASS_BE_TERT_TDM_RX_4},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  434. LPASS_BE_TERT_TDM_TX_4},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  436. LPASS_BE_TERT_TDM_RX_5},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  438. LPASS_BE_TERT_TDM_TX_5},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  440. LPASS_BE_TERT_TDM_RX_6},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  442. LPASS_BE_TERT_TDM_TX_6},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  444. LPASS_BE_TERT_TDM_RX_7},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  446. LPASS_BE_TERT_TDM_TX_7},
  447. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  448. LPASS_BE_QUAT_TDM_RX_0},
  449. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  450. LPASS_BE_QUAT_TDM_TX_0},
  451. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  452. LPASS_BE_QUAT_TDM_RX_1},
  453. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  454. LPASS_BE_QUAT_TDM_TX_1},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  456. LPASS_BE_QUAT_TDM_RX_2},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  458. LPASS_BE_QUAT_TDM_TX_2},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  460. LPASS_BE_QUAT_TDM_RX_3},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  462. LPASS_BE_QUAT_TDM_TX_3},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  464. LPASS_BE_QUAT_TDM_RX_4},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  466. LPASS_BE_QUAT_TDM_TX_4},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  468. LPASS_BE_QUAT_TDM_RX_5},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  470. LPASS_BE_QUAT_TDM_TX_5},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  472. LPASS_BE_QUAT_TDM_RX_6},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  474. LPASS_BE_QUAT_TDM_TX_6},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  476. LPASS_BE_QUAT_TDM_RX_7},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  478. LPASS_BE_QUAT_TDM_TX_7},
  479. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  480. LPASS_BE_QUIN_TDM_RX_0},
  481. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  482. LPASS_BE_QUIN_TDM_TX_0},
  483. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  484. LPASS_BE_QUIN_TDM_RX_1},
  485. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  486. LPASS_BE_QUIN_TDM_TX_1},
  487. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  488. LPASS_BE_QUIN_TDM_RX_2},
  489. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  490. LPASS_BE_QUIN_TDM_TX_2},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  492. LPASS_BE_QUIN_TDM_RX_3},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  494. LPASS_BE_QUIN_TDM_TX_3},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  496. LPASS_BE_QUIN_TDM_RX_4},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  498. LPASS_BE_QUIN_TDM_TX_4},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  500. LPASS_BE_QUIN_TDM_RX_5},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  502. LPASS_BE_QUIN_TDM_TX_5},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  504. LPASS_BE_QUIN_TDM_RX_6},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  506. LPASS_BE_QUIN_TDM_TX_6},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  508. LPASS_BE_QUIN_TDM_RX_7},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  510. LPASS_BE_QUIN_TDM_TX_7},
  511. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  512. LPASS_BE_INT_BT_A2DP_RX},
  513. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  514. LPASS_BE_USB_AUDIO_RX},
  515. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  516. LPASS_BE_USB_AUDIO_TX},
  517. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  518. LPASS_BE_DISPLAY_PORT},
  519. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  520. LPASS_BE_DISPLAY_PORT1},
  521. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  522. LPASS_BE_TERT_AUXPCM_RX},
  523. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  524. LPASS_BE_TERT_AUXPCM_TX},
  525. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  526. LPASS_BE_QUAT_AUXPCM_RX},
  527. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  528. LPASS_BE_QUAT_AUXPCM_TX},
  529. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  530. LPASS_BE_QUIN_AUXPCM_RX},
  531. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  532. LPASS_BE_QUIN_AUXPCM_TX},
  533. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  534. LPASS_BE_INT0_MI2S_RX},
  535. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  536. LPASS_BE_INT0_MI2S_TX},
  537. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  538. LPASS_BE_INT1_MI2S_RX},
  539. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  540. LPASS_BE_INT1_MI2S_TX},
  541. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  542. LPASS_BE_INT2_MI2S_RX},
  543. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  544. LPASS_BE_INT2_MI2S_TX},
  545. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  546. LPASS_BE_INT3_MI2S_RX},
  547. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  548. LPASS_BE_INT3_MI2S_TX},
  549. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  550. LPASS_BE_INT4_MI2S_RX},
  551. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  552. LPASS_BE_INT4_MI2S_TX},
  553. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  554. LPASS_BE_INT5_MI2S_RX},
  555. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  556. LPASS_BE_INT5_MI2S_TX},
  557. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  558. LPASS_BE_INT6_MI2S_RX},
  559. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  560. LPASS_BE_INT6_MI2S_TX},
  561. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  562. LPASS_BE_WSA_CDC_DMA_RX_0},
  563. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  564. LPASS_BE_WSA_CDC_DMA_TX_0},
  565. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  566. LPASS_BE_WSA_CDC_DMA_RX_1},
  567. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  568. LPASS_BE_WSA_CDC_DMA_TX_1},
  569. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  570. LPASS_BE_WSA_CDC_DMA_TX_2},
  571. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  572. LPASS_BE_VA_CDC_DMA_TX_0},
  573. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  574. LPASS_BE_VA_CDC_DMA_TX_1},
  575. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  576. LPASS_BE_RX_CDC_DMA_RX_0},
  577. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  578. LPASS_BE_TX_CDC_DMA_TX_0},
  579. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  580. LPASS_BE_RX_CDC_DMA_RX_1},
  581. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  582. LPASS_BE_TX_CDC_DMA_TX_1},
  583. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  584. LPASS_BE_RX_CDC_DMA_RX_2},
  585. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  586. LPASS_BE_TX_CDC_DMA_TX_2},
  587. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  588. LPASS_BE_RX_CDC_DMA_RX_3},
  589. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  590. LPASS_BE_TX_CDC_DMA_TX_3},
  591. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  592. LPASS_BE_RX_CDC_DMA_RX_4},
  593. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  594. LPASS_BE_TX_CDC_DMA_TX_4},
  595. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  596. LPASS_BE_RX_CDC_DMA_RX_5},
  597. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  598. LPASS_BE_TX_CDC_DMA_TX_5},
  599. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  600. LPASS_BE_RX_CDC_DMA_RX_6},
  601. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  602. LPASS_BE_RX_CDC_DMA_RX_7},
  603. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  604. LPASS_BE_PRI_SPDIF_TX},
  605. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  606. LPASS_BE_SEC_SPDIF_RX},
  607. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  608. LPASS_BE_SEC_SPDIF_TX},
  609. };
  610. /* Track ASM playback & capture sessions of DAI
  611. * Track LSM listen sessions
  612. */
  613. static struct msm_pcm_routing_fdai_data
  614. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  615. /* MULTIMEDIA1 */
  616. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  617. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  618. /* MULTIMEDIA2 */
  619. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  620. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  621. /* MULTIMEDIA3 */
  622. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  623. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  624. /* MULTIMEDIA4 */
  625. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  626. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  627. /* MULTIMEDIA5 */
  628. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  629. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  630. /* MULTIMEDIA6 */
  631. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  632. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  633. /* MULTIMEDIA7*/
  634. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  635. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  636. /* MULTIMEDIA8 */
  637. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  638. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  639. /* MULTIMEDIA9 */
  640. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  641. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  642. /* MULTIMEDIA10 */
  643. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  644. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  645. /* MULTIMEDIA11 */
  646. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  647. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  648. /* MULTIMEDIA12 */
  649. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  650. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  651. /* MULTIMEDIA13 */
  652. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  653. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  654. /* MULTIMEDIA14 */
  655. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  656. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  657. /* MULTIMEDIA15 */
  658. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  659. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  660. /* MULTIMEDIA16 */
  661. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  662. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  663. /* MULTIMEDIA17 */
  664. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  665. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  666. /* MULTIMEDIA18 */
  667. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  668. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  669. /* MULTIMEDIA19 */
  670. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  671. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  672. /* MULTIMEDIA20 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  675. /* MULTIMEDIA21 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  678. /* MULTIMEDIA28 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  681. /* MULTIMEDIA29 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  684. /* VOIP */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  687. /* AFE_RX */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  690. /* AFE_TX */
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  693. /* VOICE_STUB */
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  696. /* DTMF_RX */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  699. /* QCHAT */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  702. /* VOLTE_STUB */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  705. /* LSM1 */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  708. /* LSM2 */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  711. /* LSM3 */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  714. /* LSM4 */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  717. /* LSM5 */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  720. /* LSM6 */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  723. /* LSM7 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  726. /* LSM8 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  729. /* VOICE2_STUB */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  732. /* VOICEMMODE1 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  735. /* VOICEMMODE2 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  738. };
  739. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  740. [MSM_BACKEND_DAI_MAX];
  741. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  742. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  743. static struct msm_pcm_stream_app_type_cfg
  744. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  745. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  746. /* The caller of this should aqcuire routing lock */
  747. void msm_pcm_routing_get_bedai_info(int be_idx,
  748. struct msm_pcm_routing_bdai_data *be_dai)
  749. {
  750. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  751. memcpy(be_dai, &msm_bedais[be_idx],
  752. sizeof(struct msm_pcm_routing_bdai_data));
  753. }
  754. /* The caller of this should aqcuire routing lock */
  755. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  756. struct msm_pcm_routing_fdai_data *fe_dai)
  757. {
  758. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  759. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  760. sizeof(struct msm_pcm_routing_fdai_data));
  761. }
  762. void msm_pcm_routing_acquire_lock(void)
  763. {
  764. mutex_lock(&routing_lock);
  765. }
  766. void msm_pcm_routing_release_lock(void)
  767. {
  768. mutex_unlock(&routing_lock);
  769. }
  770. static int msm_pcm_routing_get_app_type_idx(int app_type)
  771. {
  772. int idx;
  773. pr_debug("%s: app_type: %d\n", __func__, app_type);
  774. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  775. if (app_type_cfg[idx].app_type == app_type)
  776. return idx;
  777. }
  778. pr_info("%s: App type not available, fallback to default\n", __func__);
  779. return 0;
  780. }
  781. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  782. {
  783. int idx;
  784. pr_debug("%s: app_type: %d\n", __func__, app_type);
  785. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  786. if (lsm_app_type_cfg[idx].app_type == app_type)
  787. return idx;
  788. }
  789. pr_debug("%s: App type not available, fallback to default\n", __func__);
  790. return 0;
  791. }
  792. static bool is_mm_lsm_fe_id(int fe_id)
  793. {
  794. bool rc = true;
  795. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  796. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  797. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  798. rc = false;
  799. }
  800. return rc;
  801. }
  802. /*
  803. * msm_pcm_routing_send_chmix_cfg:
  804. * send the channel mixer command to mix the input channels
  805. * into output channels.
  806. *
  807. * @fe_id: front end id
  808. * @ip_channel_cnt: input channel count
  809. * @op_channel_cnt: output channel count
  810. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  811. * @session_type: indicates session is of type TX or RX
  812. * @stream_type: indicates either Audio or Listen stream type
  813. */
  814. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  815. int op_channel_cnt, int *ch_wght_coeff,
  816. int session_type, int stream_type)
  817. {
  818. int rc = 0, idx = 0;
  819. int be_index = 0, port_id;
  820. unsigned int session_id = 0;
  821. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  822. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  823. stream_type);
  824. if (!is_mm_lsm_fe_id(fe_id)) {
  825. /* bad ID assigned in machine driver */
  826. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  827. return -EINVAL;
  828. }
  829. if (ch_wght_coeff == NULL) {
  830. pr_err("%s: Null channel weightage coefficients passed\n",
  831. __func__);
  832. return -EINVAL;
  833. }
  834. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  835. port_id = msm_bedais[be_index].port_id;
  836. if (!msm_bedais[be_index].active ||
  837. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  838. continue;
  839. session_id = fe_dai_map[fe_id][session_type].strm_id;
  840. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  841. unsigned long copp =
  842. session_copp_map[fe_id][session_type][be_index];
  843. if (!test_bit(idx, &copp))
  844. continue;
  845. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  846. session_id, ip_channel_cnt,
  847. op_channel_cnt, ch_wght_coeff,
  848. session_type, stream_type);
  849. if (rc < 0)
  850. pr_err("%s: err setting channel mix config\n",
  851. __func__);
  852. }
  853. }
  854. return 0;
  855. }
  856. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  857. int msm_pcm_routing_reg_stream_app_type_cfg(
  858. int fedai_id, int session_type, int be_id,
  859. struct msm_pcm_stream_app_type_cfg *cfg_data)
  860. {
  861. int ret = 0;
  862. if (cfg_data == NULL) {
  863. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  864. ret = -EINVAL;
  865. goto done;
  866. }
  867. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  868. __func__, fedai_id, session_type, be_id,
  869. cfg_data->app_type, cfg_data->acdb_dev_id,
  870. cfg_data->sample_rate);
  871. if (!is_mm_lsm_fe_id(fedai_id)) {
  872. pr_err("%s: Invalid machine driver ID %d\n",
  873. __func__, fedai_id);
  874. ret = -EINVAL;
  875. goto done;
  876. }
  877. if (session_type != SESSION_TYPE_RX &&
  878. session_type != SESSION_TYPE_TX) {
  879. pr_err("%s: Invalid session type %d\n",
  880. __func__, session_type);
  881. ret = -EINVAL;
  882. goto done;
  883. }
  884. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  885. pr_err("%s: Received out of bounds be_id %d\n",
  886. __func__, be_id);
  887. ret = -EINVAL;
  888. goto done;
  889. }
  890. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  891. /*
  892. * Store the BE ID of the configuration information set as the latest so
  893. * the get mixer control knows what to return.
  894. */
  895. last_be_id_configured[fedai_id][session_type] = be_id;
  896. done:
  897. return ret;
  898. }
  899. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  900. /**
  901. * msm_pcm_routing_get_stream_app_type_cfg
  902. *
  903. * Receives fedai_id, session_type, be_id, and populates app_type,
  904. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  905. * -EINVAL and does not alter passed values.
  906. *
  907. * fedai_id - Passed value, front end ID for which app type config is wanted
  908. * session_type - Passed value, session type for which app type config
  909. * is wanted
  910. * be_id - Returned value, back end device id the app type config data is for
  911. * cfg_data - Returned value, configuration data used by app type config
  912. */
  913. int msm_pcm_routing_get_stream_app_type_cfg(
  914. int fedai_id, int session_type, int *bedai_id,
  915. struct msm_pcm_stream_app_type_cfg *cfg_data)
  916. {
  917. int be_id;
  918. int ret = 0;
  919. if (bedai_id == NULL) {
  920. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  921. ret = -EINVAL;
  922. goto done;
  923. } else if (cfg_data == NULL) {
  924. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  925. ret = -EINVAL;
  926. goto done;
  927. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  928. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  929. ret = -EINVAL;
  930. goto done;
  931. } else if (session_type != SESSION_TYPE_RX &&
  932. session_type != SESSION_TYPE_TX) {
  933. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  934. ret = -EINVAL;
  935. goto done;
  936. }
  937. be_id = last_be_id_configured[fedai_id][session_type];
  938. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  939. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  940. ret = -EINVAL;
  941. goto done;
  942. }
  943. *bedai_id = be_id;
  944. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  945. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  946. __func__, fedai_id, session_type, *bedai_id,
  947. cfg_data->app_type, cfg_data->acdb_dev_id,
  948. cfg_data->sample_rate);
  949. done:
  950. return ret;
  951. }
  952. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  953. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  954. int cal_index)
  955. {
  956. struct list_head *ptr, *next;
  957. struct cal_block_data *cal_block = NULL;
  958. pr_debug("%s\n", __func__);
  959. list_for_each_safe(ptr, next,
  960. &cal_data[cal_index]->cal_blocks) {
  961. cal_block = list_entry(ptr,
  962. struct cal_block_data, list);
  963. if (cal_utils_is_cal_stale(cal_block))
  964. continue;
  965. if (((struct audio_cal_info_adm_top *)cal_block
  966. ->cal_info)->path == path) {
  967. return cal_block;
  968. }
  969. }
  970. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  971. return NULL;
  972. }
  973. static struct cal_block_data *msm_routing_find_topology(int path,
  974. int app_type,
  975. int acdb_id,
  976. int cal_index)
  977. {
  978. struct list_head *ptr, *next;
  979. struct cal_block_data *cal_block = NULL;
  980. struct audio_cal_info_adm_top *cal_info;
  981. pr_debug("%s\n", __func__);
  982. list_for_each_safe(ptr, next,
  983. &cal_data[cal_index]->cal_blocks) {
  984. cal_block = list_entry(ptr,
  985. struct cal_block_data, list);
  986. if (cal_utils_is_cal_stale(cal_block))
  987. continue;
  988. cal_info = (struct audio_cal_info_adm_top *)
  989. cal_block->cal_info;
  990. if ((cal_info->path == path) &&
  991. (cal_info->app_type == app_type) &&
  992. (cal_info->acdb_id == acdb_id)) {
  993. return cal_block;
  994. }
  995. }
  996. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  997. __func__, path, app_type, acdb_id);
  998. return msm_routing_find_topology_by_path(path, cal_index);
  999. }
  1000. /*
  1001. * Retrieving cal_block will mark cal_block as stale.
  1002. * Hence it cannot be reused or resent unless the flag
  1003. * is reset.
  1004. */
  1005. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1006. int be_id)
  1007. {
  1008. int topology = NULL_COPP_TOPOLOGY;
  1009. struct cal_block_data *cal_block = NULL;
  1010. int app_type = 0, acdb_dev_id = 0;
  1011. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1012. __func__, fedai_id, session_type, be_id);
  1013. if (cal_data == NULL)
  1014. goto done;
  1015. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1016. acdb_dev_id =
  1017. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1018. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1019. cal_block = msm_routing_find_topology(session_type, app_type,
  1020. acdb_dev_id,
  1021. ADM_TOPOLOGY_CAL_TYPE_IDX);
  1022. if (cal_block != NULL) {
  1023. topology = ((struct audio_cal_info_adm_top *)
  1024. cal_block->cal_info)->topology;
  1025. cal_utils_mark_cal_used(cal_block);
  1026. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1027. } else {
  1028. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1029. pr_debug("%s: Check for LSM topology\n", __func__);
  1030. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1031. cal_block = msm_routing_find_topology(session_type, app_type,
  1032. acdb_dev_id,
  1033. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1034. if (cal_block != NULL) {
  1035. topology = ((struct audio_cal_info_adm_top *)
  1036. cal_block->cal_info)->topology;
  1037. cal_utils_mark_cal_used(cal_block);
  1038. }
  1039. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1040. }
  1041. done:
  1042. pr_debug("%s: Using topology %d\n", __func__, topology);
  1043. return topology;
  1044. }
  1045. static uint8_t is_be_dai_extproc(int be_dai)
  1046. {
  1047. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1048. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1049. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1050. return 1;
  1051. else
  1052. return 0;
  1053. }
  1054. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1055. int path_type, int perf_mode,
  1056. uint32_t passthr_mode)
  1057. {
  1058. int i, port_type, j, num_copps = 0;
  1059. struct route_payload payload;
  1060. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1061. path_type == ADM_PATH_COMPRESSED_RX) ?
  1062. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1063. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1064. if (!is_be_dai_extproc(i) &&
  1065. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1066. (msm_bedais[i].active) &&
  1067. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1068. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1069. unsigned long copp =
  1070. session_copp_map[fedai_id][sess_type][i];
  1071. if (test_bit(j, &copp)) {
  1072. payload.port_id[num_copps] =
  1073. msm_bedais[i].port_id;
  1074. payload.copp_idx[num_copps] = j;
  1075. payload.app_type[num_copps] =
  1076. fe_dai_app_type_cfg
  1077. [fedai_id][sess_type][i]
  1078. .app_type;
  1079. payload.acdb_dev_id[num_copps] =
  1080. fe_dai_app_type_cfg
  1081. [fedai_id][sess_type][i]
  1082. .acdb_dev_id;
  1083. payload.sample_rate[num_copps] =
  1084. fe_dai_app_type_cfg
  1085. [fedai_id][sess_type][i]
  1086. .sample_rate;
  1087. num_copps++;
  1088. }
  1089. }
  1090. }
  1091. }
  1092. if (num_copps) {
  1093. payload.num_copps = num_copps;
  1094. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1095. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1096. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1097. }
  1098. }
  1099. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1100. int stream_type)
  1101. {
  1102. int i, session_type, path_type, port_type;
  1103. u32 mode = 0;
  1104. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1105. /* bad ID assigned in machine driver */
  1106. pr_err("%s: bad MM ID\n", __func__);
  1107. return;
  1108. }
  1109. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1110. session_type = SESSION_TYPE_RX;
  1111. path_type = ADM_PATH_PLAYBACK;
  1112. port_type = MSM_AFE_PORT_TYPE_RX;
  1113. } else {
  1114. session_type = SESSION_TYPE_TX;
  1115. path_type = ADM_PATH_LIVE_REC;
  1116. port_type = MSM_AFE_PORT_TYPE_TX;
  1117. }
  1118. mutex_lock(&routing_lock);
  1119. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1120. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1121. if (!is_be_dai_extproc(i) &&
  1122. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1123. (msm_bedais[i].active) &&
  1124. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1125. mode = afe_get_port_type(msm_bedais[i].port_id);
  1126. adm_connect_afe_port(mode, dspst_id,
  1127. msm_bedais[i].port_id);
  1128. break;
  1129. }
  1130. }
  1131. mutex_unlock(&routing_lock);
  1132. }
  1133. static bool route_check_fe_id_adm_support(int fe_id)
  1134. {
  1135. bool rc = true;
  1136. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1137. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1138. /* fe id is listen while port is set to afe */
  1139. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1140. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1141. __func__, fe_id, lsm_port_index);
  1142. rc = false;
  1143. }
  1144. }
  1145. return rc;
  1146. }
  1147. /*
  1148. * msm_pcm_routing_get_pp_ch_cnt:
  1149. * Read the processed channel count
  1150. *
  1151. * @fe_id: Front end ID
  1152. * @session_type: Inidicates RX or TX session type
  1153. */
  1154. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1155. {
  1156. struct msm_pcm_stream_app_type_cfg cfg_data;
  1157. int be_id = 0, app_type_idx = 0, app_type = 0;
  1158. int ret = -EINVAL;
  1159. memset(&cfg_data, 0, sizeof(cfg_data));
  1160. if (!is_mm_lsm_fe_id(fe_id)) {
  1161. pr_err("%s: bad MM ID\n", __func__);
  1162. return -EINVAL;
  1163. }
  1164. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1165. &be_id, &cfg_data);
  1166. if (ret) {
  1167. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1168. return ret;
  1169. }
  1170. app_type = cfg_data.app_type;
  1171. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1172. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1173. }
  1174. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1175. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1176. int dspst_id, int stream_type,
  1177. uint32_t passthr_mode)
  1178. {
  1179. int i, j, session_type, path_type, port_type, topology;
  1180. int num_copps = 0;
  1181. struct route_payload payload;
  1182. u32 channels, sample_rate;
  1183. u16 bit_width = 16;
  1184. bool is_lsm;
  1185. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1186. __func__, fe_id, perf_mode, dspst_id,
  1187. stream_type, passthr_mode);
  1188. if (!is_mm_lsm_fe_id(fe_id)) {
  1189. /* bad ID assigned in machine driver */
  1190. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1191. return -EINVAL;
  1192. }
  1193. if (!route_check_fe_id_adm_support(fe_id)) {
  1194. /* ignore adm open if not supported for fe_id */
  1195. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1196. return 0;
  1197. }
  1198. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1199. session_type = SESSION_TYPE_RX;
  1200. if (passthr_mode != LEGACY_PCM)
  1201. path_type = ADM_PATH_COMPRESSED_RX;
  1202. else
  1203. path_type = ADM_PATH_PLAYBACK;
  1204. port_type = MSM_AFE_PORT_TYPE_RX;
  1205. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1206. session_type = SESSION_TYPE_TX;
  1207. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1208. path_type = ADM_PATH_COMPRESSED_TX;
  1209. else
  1210. path_type = ADM_PATH_LIVE_REC;
  1211. port_type = MSM_AFE_PORT_TYPE_TX;
  1212. } else {
  1213. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1214. return -EINVAL;
  1215. }
  1216. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1217. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1218. mutex_lock(&routing_lock);
  1219. payload.num_copps = 0; /* only RX needs to use payload */
  1220. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1221. /* re-enable EQ if active */
  1222. msm_qti_pp_send_eq_values(fe_id);
  1223. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1224. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1225. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1226. if (!is_be_dai_extproc(i) &&
  1227. (afe_get_port_type(msm_bedais[i].port_id) ==
  1228. port_type) &&
  1229. (msm_bedais[i].active) &&
  1230. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1231. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1232. /*
  1233. * check if ADM needs to be configured with different
  1234. * channel mapping than backend
  1235. */
  1236. if (!msm_bedais[i].adm_override_ch)
  1237. channels = msm_bedais[i].channel;
  1238. else
  1239. channels = msm_bedais[i].adm_override_ch;
  1240. bit_width = msm_routing_get_bit_width(
  1241. msm_bedais[i].format);
  1242. app_type =
  1243. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1244. if (app_type && is_lsm) {
  1245. app_type_idx =
  1246. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1247. sample_rate =
  1248. fe_dai_app_type_cfg[fe_id][session_type][i]
  1249. .sample_rate;
  1250. bit_width =
  1251. lsm_app_type_cfg[app_type_idx].bit_width;
  1252. } else if (app_type) {
  1253. app_type_idx =
  1254. msm_pcm_routing_get_app_type_idx(
  1255. app_type);
  1256. sample_rate =
  1257. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1258. bit_width =
  1259. app_type_cfg[app_type_idx].bit_width;
  1260. } else {
  1261. sample_rate = msm_bedais[i].sample_rate;
  1262. }
  1263. acdb_dev_id =
  1264. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1265. topology = msm_routing_get_adm_topology(fe_id,
  1266. session_type,
  1267. i);
  1268. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1269. || (passthr_mode ==
  1270. COMPRESSED_PASSTHROUGH_GEN)
  1271. || (passthr_mode ==
  1272. COMPRESSED_PASSTHROUGH_IEC61937))
  1273. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1274. pr_debug("%s: Before adm open topology %d\n", __func__,
  1275. topology);
  1276. copp_idx =
  1277. adm_open(msm_bedais[i].port_id,
  1278. path_type, sample_rate, channels,
  1279. topology, perf_mode, bit_width,
  1280. app_type, acdb_dev_id);
  1281. if ((copp_idx < 0) ||
  1282. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1283. pr_err("%s:adm open failed coppid:%d\n",
  1284. __func__, copp_idx);
  1285. mutex_unlock(&routing_lock);
  1286. return -EINVAL;
  1287. }
  1288. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1289. __func__, fe_id, session_type, i);
  1290. set_bit(copp_idx,
  1291. &session_copp_map[fe_id][session_type][i]);
  1292. if (msm_is_resample_needed(
  1293. sample_rate,
  1294. msm_bedais[i].sample_rate))
  1295. adm_copp_mfc_cfg(
  1296. msm_bedais[i].port_id, copp_idx,
  1297. msm_bedais[i].sample_rate);
  1298. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1299. unsigned long copp =
  1300. session_copp_map[fe_id][session_type][i];
  1301. if (test_bit(j, &copp)) {
  1302. payload.port_id[num_copps] =
  1303. msm_bedais[i].port_id;
  1304. payload.copp_idx[num_copps] = j;
  1305. payload.app_type[num_copps] =
  1306. fe_dai_app_type_cfg
  1307. [fe_id][session_type][i]
  1308. .app_type;
  1309. payload.acdb_dev_id[num_copps] =
  1310. fe_dai_app_type_cfg
  1311. [fe_id][session_type][i]
  1312. .acdb_dev_id;
  1313. payload.sample_rate[num_copps] =
  1314. fe_dai_app_type_cfg
  1315. [fe_id][session_type][i]
  1316. .sample_rate;
  1317. num_copps++;
  1318. }
  1319. }
  1320. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1321. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1322. && passthr_mode !=
  1323. COMPRESSED_PASSTHROUGH_IEC61937)
  1324. msm_routing_send_device_pp_params(
  1325. msm_bedais[i].port_id,
  1326. copp_idx, fe_id);
  1327. }
  1328. }
  1329. if (num_copps) {
  1330. payload.num_copps = num_copps;
  1331. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1332. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1333. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1334. }
  1335. mutex_unlock(&routing_lock);
  1336. return 0;
  1337. }
  1338. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1339. {
  1340. u32 session_id;
  1341. switch (val) {
  1342. case MSM_FRONTEND_DAI_QCHAT:
  1343. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1344. break;
  1345. case MSM_FRONTEND_DAI_VOIP:
  1346. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1347. break;
  1348. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1349. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1350. break;
  1351. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1352. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1353. break;
  1354. default:
  1355. session_id = 0;
  1356. }
  1357. pr_debug("%s session_id 0x%x", __func__, session_id);
  1358. return session_id;
  1359. }
  1360. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1361. int dspst_id, int stream_type)
  1362. {
  1363. int copp_idx = 0;
  1364. int sess_type = 0;
  1365. int i = 0, j = 0, be_id;
  1366. int ret = 0;
  1367. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1368. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1369. return 0;
  1370. }
  1371. if (!(channel_mixer[fe_id].enable)) {
  1372. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1373. __func__, fe_id);
  1374. return 0;
  1375. }
  1376. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1377. sess_type = SESSION_TYPE_RX;
  1378. else
  1379. sess_type = SESSION_TYPE_TX;
  1380. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1381. ++i) {
  1382. be_id = channel_input[fe_id][i] - 1;
  1383. channel_mixer[fe_id].input_channels[i] =
  1384. msm_bedais[be_id].channel;
  1385. if ((msm_bedais[be_id].active) &&
  1386. test_bit(fe_id,
  1387. &msm_bedais[be_id].fe_sessions[0])) {
  1388. unsigned long copp =
  1389. session_copp_map[fe_id][sess_type][be_id];
  1390. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1391. if (test_bit(j, &copp)) {
  1392. copp_idx = j;
  1393. break;
  1394. }
  1395. }
  1396. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1397. __func__,
  1398. fe_id, be_id, msm_bedais[be_id].channel,
  1399. copp_idx);
  1400. ret = adm_programable_channel_mixer(
  1401. msm_bedais[be_id].port_id,
  1402. copp_idx, dspst_id, sess_type,
  1403. channel_mixer + fe_id, i);
  1404. }
  1405. }
  1406. return ret;
  1407. }
  1408. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1409. int dspst_id, int stream_type)
  1410. {
  1411. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1412. struct route_payload payload;
  1413. u32 channels, sample_rate;
  1414. uint16_t bits_per_sample = 16;
  1415. uint32_t passthr_mode = LEGACY_PCM;
  1416. int ret = 0;
  1417. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1418. /* bad ID assigned in machine driver */
  1419. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1420. return -EINVAL;
  1421. }
  1422. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1423. session_type = SESSION_TYPE_RX;
  1424. path_type = ADM_PATH_PLAYBACK;
  1425. port_type = MSM_AFE_PORT_TYPE_RX;
  1426. } else {
  1427. session_type = SESSION_TYPE_TX;
  1428. path_type = ADM_PATH_LIVE_REC;
  1429. port_type = MSM_AFE_PORT_TYPE_TX;
  1430. }
  1431. mutex_lock(&routing_lock);
  1432. payload.num_copps = 0; /* only RX needs to use payload */
  1433. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1434. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1435. /* re-enable EQ if active */
  1436. msm_qti_pp_send_eq_values(fedai_id);
  1437. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1438. if (!is_be_dai_extproc(i) &&
  1439. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1440. (msm_bedais[i].active) &&
  1441. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1442. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1443. /*
  1444. * check if ADM needs to be configured with different
  1445. * channel mapping than backend
  1446. */
  1447. if (!msm_bedais[i].adm_override_ch)
  1448. channels = msm_bedais[i].channel;
  1449. else
  1450. channels = msm_bedais[i].adm_override_ch;
  1451. msm_bedais[i].passthr_mode[fedai_id] =
  1452. LEGACY_PCM;
  1453. bits_per_sample = msm_routing_get_bit_width(
  1454. msm_bedais[i].format);
  1455. app_type =
  1456. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1457. if (app_type) {
  1458. app_type_idx =
  1459. msm_pcm_routing_get_app_type_idx(app_type);
  1460. sample_rate =
  1461. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1462. .sample_rate;
  1463. bits_per_sample =
  1464. app_type_cfg[app_type_idx].bit_width;
  1465. } else
  1466. sample_rate = msm_bedais[i].sample_rate;
  1467. acdb_dev_id =
  1468. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1469. .acdb_dev_id;
  1470. topology = msm_routing_get_adm_topology(fedai_id,
  1471. session_type,
  1472. i);
  1473. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1474. sample_rate, channels, topology,
  1475. perf_mode, bits_per_sample,
  1476. app_type, acdb_dev_id);
  1477. if ((copp_idx < 0) ||
  1478. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1479. pr_err("%s: adm open failed copp_idx:%d\n",
  1480. __func__, copp_idx);
  1481. mutex_unlock(&routing_lock);
  1482. return -EINVAL;
  1483. }
  1484. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1485. __func__, fedai_id, session_type, i);
  1486. set_bit(copp_idx,
  1487. &session_copp_map[fedai_id][session_type][i]);
  1488. if (msm_is_resample_needed(
  1489. sample_rate,
  1490. msm_bedais[i].sample_rate))
  1491. adm_copp_mfc_cfg(
  1492. msm_bedais[i].port_id, copp_idx,
  1493. msm_bedais[i].sample_rate);
  1494. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1495. unsigned long copp =
  1496. session_copp_map[fedai_id][session_type][i];
  1497. if (test_bit(j, &copp)) {
  1498. payload.port_id[num_copps] =
  1499. msm_bedais[i].port_id;
  1500. payload.copp_idx[num_copps] = j;
  1501. payload.app_type[num_copps] =
  1502. fe_dai_app_type_cfg
  1503. [fedai_id][session_type]
  1504. [i].app_type;
  1505. payload.acdb_dev_id[num_copps] =
  1506. fe_dai_app_type_cfg
  1507. [fedai_id][session_type]
  1508. [i].acdb_dev_id;
  1509. payload.sample_rate[num_copps] =
  1510. fe_dai_app_type_cfg
  1511. [fedai_id][session_type]
  1512. [i].sample_rate;
  1513. num_copps++;
  1514. }
  1515. }
  1516. if ((perf_mode == LEGACY_PCM_MODE) &&
  1517. (msm_bedais[i].passthr_mode[fedai_id] ==
  1518. LEGACY_PCM))
  1519. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1520. copp_idx, topology,
  1521. channels);
  1522. }
  1523. }
  1524. if (num_copps) {
  1525. payload.num_copps = num_copps;
  1526. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1527. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1528. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1529. }
  1530. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1531. dspst_id, stream_type);
  1532. mutex_unlock(&routing_lock);
  1533. return ret;
  1534. }
  1535. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1536. int dspst_id, int stream_type,
  1537. struct msm_pcm_routing_evt event_info)
  1538. {
  1539. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1540. stream_type)) {
  1541. pr_err("%s: failed to reg phy stream\n", __func__);
  1542. return -EINVAL;
  1543. }
  1544. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1545. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1546. else
  1547. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1548. return 0;
  1549. }
  1550. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1551. {
  1552. int i, port_type, session_type, path_type, topology;
  1553. struct msm_pcm_routing_fdai_data *fdai;
  1554. if (!is_mm_lsm_fe_id(fedai_id)) {
  1555. /* bad ID assigned in machine driver */
  1556. pr_err("%s: bad MM ID\n", __func__);
  1557. return;
  1558. }
  1559. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1560. port_type = MSM_AFE_PORT_TYPE_RX;
  1561. session_type = SESSION_TYPE_RX;
  1562. path_type = ADM_PATH_PLAYBACK;
  1563. } else {
  1564. port_type = MSM_AFE_PORT_TYPE_TX;
  1565. session_type = SESSION_TYPE_TX;
  1566. path_type = ADM_PATH_LIVE_REC;
  1567. }
  1568. mutex_lock(&routing_lock);
  1569. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1570. if (!is_be_dai_extproc(i) &&
  1571. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1572. (msm_bedais[i].active) &&
  1573. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1574. int idx;
  1575. unsigned long copp =
  1576. session_copp_map[fedai_id][session_type][i];
  1577. fdai = &fe_dai_map[fedai_id][session_type];
  1578. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1579. if (test_bit(idx, &copp))
  1580. break;
  1581. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1582. pr_debug("%s: copp idx is invalid, exiting\n",
  1583. __func__);
  1584. continue;
  1585. }
  1586. topology = adm_get_topology_for_port_copp_idx(
  1587. msm_bedais[i].port_id, idx);
  1588. msm_routing_unload_topology(topology);
  1589. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1590. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1591. __func__, copp, fedai_id, session_type, i);
  1592. clear_bit(idx,
  1593. &session_copp_map[fedai_id][session_type][i]);
  1594. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1595. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1596. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1597. (msm_bedais[i].passthr_mode[fedai_id] ==
  1598. LEGACY_PCM))
  1599. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1600. topology);
  1601. }
  1602. }
  1603. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1604. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1605. mutex_unlock(&routing_lock);
  1606. }
  1607. /* Check if FE/BE route is set */
  1608. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1609. {
  1610. bool rc = false;
  1611. if (!is_mm_lsm_fe_id(fe_id)) {
  1612. /* recheck FE ID in the mixer control defined in this file */
  1613. pr_err("%s: bad MM ID\n", __func__);
  1614. return rc;
  1615. }
  1616. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1617. rc = true;
  1618. return rc;
  1619. }
  1620. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1621. {
  1622. int session_type, path_type, topology;
  1623. u32 channels, sample_rate;
  1624. uint16_t bits_per_sample = 16;
  1625. struct msm_pcm_routing_fdai_data *fdai;
  1626. uint32_t passthr_mode;
  1627. bool is_lsm;
  1628. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1629. if (!is_mm_lsm_fe_id(val)) {
  1630. /* recheck FE ID in the mixer control defined in this file */
  1631. pr_err("%s: bad MM ID\n", __func__);
  1632. return;
  1633. }
  1634. if (!route_check_fe_id_adm_support(val)) {
  1635. /* ignore adm open if not supported for fe_id */
  1636. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1637. return;
  1638. }
  1639. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1640. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1641. MSM_AFE_PORT_TYPE_RX) {
  1642. session_type = SESSION_TYPE_RX;
  1643. if (passthr_mode != LEGACY_PCM)
  1644. path_type = ADM_PATH_COMPRESSED_RX;
  1645. else
  1646. path_type = ADM_PATH_PLAYBACK;
  1647. } else {
  1648. session_type = SESSION_TYPE_TX;
  1649. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1650. path_type = ADM_PATH_COMPRESSED_TX;
  1651. else
  1652. path_type = ADM_PATH_LIVE_REC;
  1653. }
  1654. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1655. (val <= MSM_FRONTEND_DAI_LSM8);
  1656. mutex_lock(&routing_lock);
  1657. if (set) {
  1658. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1659. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1660. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1661. voc_start_playback(set, msm_bedais[reg].port_id);
  1662. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1663. fdai = &fe_dai_map[val][session_type];
  1664. if (msm_bedais[reg].active && fdai->strm_id !=
  1665. INVALID_SESSION) {
  1666. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1667. /*
  1668. * check if ADM needs to be configured with different
  1669. * channel mapping than backend
  1670. */
  1671. if (!msm_bedais[reg].adm_override_ch)
  1672. channels = msm_bedais[reg].channel;
  1673. else
  1674. channels = msm_bedais[reg].adm_override_ch;
  1675. if (session_type == SESSION_TYPE_TX &&
  1676. fdai->be_srate &&
  1677. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1678. pr_debug("%s: flush strm %d diff BE rates\n",
  1679. __func__, fdai->strm_id);
  1680. if (fdai->event_info.event_func)
  1681. fdai->event_info.event_func(
  1682. MSM_PCM_RT_EVT_BUF_RECFG,
  1683. fdai->event_info.priv_data);
  1684. fdai->be_srate = 0; /* might not need it */
  1685. }
  1686. bits_per_sample = msm_routing_get_bit_width(
  1687. msm_bedais[reg].format);
  1688. app_type =
  1689. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1690. if (app_type && is_lsm) {
  1691. app_type_idx =
  1692. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1693. sample_rate =
  1694. fe_dai_app_type_cfg[val][session_type][reg]
  1695. .sample_rate;
  1696. bits_per_sample =
  1697. lsm_app_type_cfg[app_type_idx].bit_width;
  1698. } else if (app_type) {
  1699. app_type_idx =
  1700. msm_pcm_routing_get_app_type_idx(app_type);
  1701. sample_rate =
  1702. fe_dai_app_type_cfg[val][session_type][reg]
  1703. .sample_rate;
  1704. bits_per_sample =
  1705. app_type_cfg[app_type_idx].bit_width;
  1706. } else
  1707. sample_rate = msm_bedais[reg].sample_rate;
  1708. topology = msm_routing_get_adm_topology(val,
  1709. session_type,
  1710. reg);
  1711. acdb_dev_id =
  1712. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1713. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1714. sample_rate, channels, topology,
  1715. fdai->perf_mode, bits_per_sample,
  1716. app_type, acdb_dev_id);
  1717. if ((copp_idx < 0) ||
  1718. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1719. pr_err("%s: adm open failed\n", __func__);
  1720. mutex_unlock(&routing_lock);
  1721. return;
  1722. }
  1723. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1724. __func__, val, session_type, reg);
  1725. set_bit(copp_idx,
  1726. &session_copp_map[val][session_type][reg]);
  1727. if (msm_is_resample_needed(
  1728. sample_rate,
  1729. msm_bedais[reg].sample_rate))
  1730. adm_copp_mfc_cfg(
  1731. msm_bedais[reg].port_id, copp_idx,
  1732. msm_bedais[reg].sample_rate);
  1733. if (session_type == SESSION_TYPE_RX &&
  1734. fdai->event_info.event_func)
  1735. fdai->event_info.event_func(
  1736. MSM_PCM_RT_EVT_DEVSWITCH,
  1737. fdai->event_info.priv_data);
  1738. msm_pcm_routing_build_matrix(val, session_type,
  1739. path_type,
  1740. fdai->perf_mode,
  1741. passthr_mode);
  1742. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1743. (passthr_mode == LEGACY_PCM))
  1744. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1745. copp_idx, topology,
  1746. channels);
  1747. }
  1748. } else {
  1749. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1750. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1751. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1752. voc_start_playback(set, msm_bedais[reg].port_id);
  1753. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1754. fdai = &fe_dai_map[val][session_type];
  1755. if (msm_bedais[reg].active && fdai->strm_id !=
  1756. INVALID_SESSION) {
  1757. int idx;
  1758. int port_id;
  1759. unsigned long copp =
  1760. session_copp_map[val][session_type][reg];
  1761. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1762. if (test_bit(idx, &copp))
  1763. break;
  1764. port_id = msm_bedais[reg].port_id;
  1765. topology = adm_get_topology_for_port_copp_idx(port_id,
  1766. idx);
  1767. msm_routing_unload_topology(topology);
  1768. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1769. idx);
  1770. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1771. __func__, copp, val, session_type, reg,
  1772. topology);
  1773. clear_bit(idx,
  1774. &session_copp_map[val][session_type][reg]);
  1775. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1776. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1777. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1778. (passthr_mode == LEGACY_PCM))
  1779. msm_pcm_routing_deinit_pp(
  1780. msm_bedais[reg].port_id,
  1781. topology);
  1782. msm_pcm_routing_build_matrix(val, session_type,
  1783. path_type,
  1784. fdai->perf_mode,
  1785. passthr_mode);
  1786. }
  1787. }
  1788. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1789. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1790. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1791. mutex_unlock(&routing_lock);
  1792. }
  1793. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1794. struct snd_ctl_elem_value *ucontrol)
  1795. {
  1796. struct soc_mixer_control *mc =
  1797. (struct soc_mixer_control *)kcontrol->private_value;
  1798. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1799. ucontrol->value.integer.value[0] = 1;
  1800. else
  1801. ucontrol->value.integer.value[0] = 0;
  1802. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1803. ucontrol->value.integer.value[0]);
  1804. return 0;
  1805. }
  1806. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1807. struct snd_ctl_elem_value *ucontrol)
  1808. {
  1809. struct snd_soc_dapm_widget *widget =
  1810. snd_soc_dapm_kcontrol_widget(kcontrol);
  1811. struct soc_mixer_control *mc =
  1812. (struct soc_mixer_control *)kcontrol->private_value;
  1813. struct snd_soc_dapm_update *update = NULL;
  1814. if (ucontrol->value.integer.value[0] &&
  1815. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1816. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1817. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1818. update);
  1819. } else if (!ucontrol->value.integer.value[0] &&
  1820. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1821. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1822. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1823. update);
  1824. }
  1825. return 1;
  1826. }
  1827. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1828. struct snd_ctl_elem_value *ucontrol)
  1829. {
  1830. struct soc_mixer_control *mc =
  1831. (struct soc_mixer_control *)kcontrol->private_value;
  1832. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1833. ucontrol->value.integer.value[0] = 1;
  1834. else
  1835. ucontrol->value.integer.value[0] = 0;
  1836. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1837. ucontrol->value.integer.value[0]);
  1838. return 0;
  1839. }
  1840. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1841. struct snd_ctl_elem_value *ucontrol)
  1842. {
  1843. struct snd_soc_dapm_widget *widget =
  1844. snd_soc_dapm_kcontrol_widget(kcontrol);
  1845. struct soc_mixer_control *mc =
  1846. (struct soc_mixer_control *)kcontrol->private_value;
  1847. struct snd_soc_dapm_update *update = NULL;
  1848. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1849. ucontrol->value.integer.value[0]);
  1850. if (ucontrol->value.integer.value[0]) {
  1851. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1852. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1853. snd_soc_dapm_mixer_update_power(widget->dapm,
  1854. kcontrol, 1, update);
  1855. } else if (!ucontrol->value.integer.value[0]) {
  1856. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1857. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1858. snd_soc_dapm_mixer_update_power(widget->dapm,
  1859. kcontrol, 0, update);
  1860. }
  1861. return 1;
  1862. }
  1863. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1864. {
  1865. u32 session_id = 0;
  1866. u16 path_type;
  1867. struct media_format_info voc_be_media_format;
  1868. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1869. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1870. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1871. __func__, val, session_id);
  1872. mutex_lock(&routing_lock);
  1873. if (set)
  1874. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1875. else
  1876. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1877. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1878. afe_get_port_type(msm_bedais[reg].port_id) ==
  1879. MSM_AFE_PORT_TYPE_RX) {
  1880. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1881. __func__, set, msm_bedais[reg].port_id);
  1882. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1883. }
  1884. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1885. MSM_AFE_PORT_TYPE_RX)
  1886. path_type = RX_PATH;
  1887. else
  1888. path_type = TX_PATH;
  1889. if (set) {
  1890. if (msm_bedais[reg].active) {
  1891. voc_set_route_flag(session_id, path_type, 1);
  1892. memset(&voc_be_media_format, 0,
  1893. sizeof(struct media_format_info));
  1894. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1895. voc_be_media_format.num_channels =
  1896. msm_bedais[reg].channel;
  1897. voc_be_media_format.sample_rate =
  1898. msm_bedais[reg].sample_rate;
  1899. voc_be_media_format.bits_per_sample =
  1900. msm_bedais[reg].format;
  1901. /* Defaulting this to 1 for voice call usecases */
  1902. voc_be_media_format.channel_mapping[0] = 1;
  1903. voc_set_device_config(session_id, path_type,
  1904. &voc_be_media_format);
  1905. if (voc_get_route_flag(session_id, TX_PATH) &&
  1906. voc_get_route_flag(session_id, RX_PATH))
  1907. voc_enable_device(session_id);
  1908. } else {
  1909. pr_debug("%s BE is not active\n", __func__);
  1910. }
  1911. } else {
  1912. voc_set_route_flag(session_id, path_type, 0);
  1913. voc_disable_device(session_id);
  1914. }
  1915. mutex_unlock(&routing_lock);
  1916. }
  1917. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1918. struct snd_ctl_elem_value *ucontrol)
  1919. {
  1920. struct soc_mixer_control *mc =
  1921. (struct soc_mixer_control *)kcontrol->private_value;
  1922. mutex_lock(&routing_lock);
  1923. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1924. ucontrol->value.integer.value[0] = 1;
  1925. else
  1926. ucontrol->value.integer.value[0] = 0;
  1927. mutex_unlock(&routing_lock);
  1928. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1929. ucontrol->value.integer.value[0]);
  1930. return 0;
  1931. }
  1932. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1933. struct snd_ctl_elem_value *ucontrol)
  1934. {
  1935. struct snd_soc_dapm_widget *widget =
  1936. snd_soc_dapm_kcontrol_widget(kcontrol);
  1937. struct soc_mixer_control *mc =
  1938. (struct soc_mixer_control *)kcontrol->private_value;
  1939. struct snd_soc_dapm_update *update = NULL;
  1940. if (ucontrol->value.integer.value[0]) {
  1941. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1942. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1943. update);
  1944. } else {
  1945. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1946. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1947. update);
  1948. }
  1949. return 1;
  1950. }
  1951. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1952. struct snd_ctl_elem_value *ucontrol)
  1953. {
  1954. struct soc_mixer_control *mc =
  1955. (struct soc_mixer_control *)kcontrol->private_value;
  1956. mutex_lock(&routing_lock);
  1957. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1958. ucontrol->value.integer.value[0] = 1;
  1959. else
  1960. ucontrol->value.integer.value[0] = 0;
  1961. mutex_unlock(&routing_lock);
  1962. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1963. ucontrol->value.integer.value[0]);
  1964. return 0;
  1965. }
  1966. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1967. struct snd_ctl_elem_value *ucontrol)
  1968. {
  1969. struct snd_soc_dapm_widget *widget =
  1970. snd_soc_dapm_kcontrol_widget(kcontrol);
  1971. struct soc_mixer_control *mc =
  1972. (struct soc_mixer_control *)kcontrol->private_value;
  1973. struct snd_soc_dapm_update *update = NULL;
  1974. if (ucontrol->value.integer.value[0]) {
  1975. mutex_lock(&routing_lock);
  1976. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1977. mutex_unlock(&routing_lock);
  1978. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1979. update);
  1980. } else {
  1981. mutex_lock(&routing_lock);
  1982. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1983. mutex_unlock(&routing_lock);
  1984. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1985. update);
  1986. }
  1987. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1988. ucontrol->value.integer.value[0]);
  1989. return 1;
  1990. }
  1991. /*
  1992. * Return the mapping between port ID and backend ID to enable the AFE callback
  1993. * to determine the acdb_dev_id from the port id
  1994. */
  1995. int msm_pcm_get_be_id_from_port_id(int port_id)
  1996. {
  1997. int i;
  1998. int be_id = -EINVAL;
  1999. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2000. if (msm_bedais[i].port_id == port_id) {
  2001. be_id = i;
  2002. break;
  2003. }
  2004. }
  2005. return be_id;
  2006. }
  2007. /*
  2008. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2009. * correct AFE calibration information by comparing the header information.
  2010. */
  2011. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2012. {
  2013. int acdb_id = -EINVAL;
  2014. int i = 0;
  2015. int session;
  2016. int port_type = afe_get_port_type(port_id);
  2017. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2018. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2019. __func__, port_id, be_id, port_type);
  2020. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2021. session = SESSION_TYPE_TX;
  2022. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2023. session = SESSION_TYPE_RX;
  2024. } else {
  2025. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2026. acdb_id = -EINVAL;
  2027. goto exit;
  2028. }
  2029. if (be_id < 0) {
  2030. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2031. goto exit;
  2032. }
  2033. mutex_lock(&routing_lock);
  2034. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2035. MSM_FRONTEND_DAI_MAX);
  2036. if (i < MSM_FRONTEND_DAI_MAX)
  2037. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2038. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2039. __func__, i, session, be_id, acdb_id);
  2040. mutex_unlock(&routing_lock);
  2041. exit:
  2042. return acdb_id;
  2043. }
  2044. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2045. struct snd_ctl_elem_value *ucontrol)
  2046. {
  2047. ucontrol->value.integer.value[0] = fm_switch_enable;
  2048. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2049. ucontrol->value.integer.value[0]);
  2050. return 0;
  2051. }
  2052. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2053. struct snd_ctl_elem_value *ucontrol)
  2054. {
  2055. struct snd_soc_dapm_widget *widget =
  2056. snd_soc_dapm_kcontrol_widget(kcontrol);
  2057. struct snd_soc_dapm_update *update = NULL;
  2058. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2059. ucontrol->value.integer.value[0]);
  2060. if (ucontrol->value.integer.value[0])
  2061. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2062. update);
  2063. else
  2064. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2065. update);
  2066. fm_switch_enable = ucontrol->value.integer.value[0];
  2067. return 1;
  2068. }
  2069. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2070. struct snd_ctl_elem_value *ucontrol)
  2071. {
  2072. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2073. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2074. ucontrol->value.integer.value[0]);
  2075. return 0;
  2076. }
  2077. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2078. struct snd_ctl_elem_value *ucontrol)
  2079. {
  2080. struct snd_soc_dapm_widget *widget =
  2081. snd_soc_dapm_kcontrol_widget(kcontrol);
  2082. struct snd_soc_dapm_update *update = NULL;
  2083. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2084. ucontrol->value.integer.value[0]);
  2085. if (ucontrol->value.integer.value[0])
  2086. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2087. 1, update);
  2088. else
  2089. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2090. 0, update);
  2091. hfp_switch_enable = ucontrol->value.integer.value[0];
  2092. return 1;
  2093. }
  2094. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2095. struct snd_ctl_elem_value *ucontrol)
  2096. {
  2097. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2098. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2099. ucontrol->value.integer.value[0]);
  2100. return 0;
  2101. }
  2102. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2103. struct snd_ctl_elem_value *ucontrol)
  2104. {
  2105. struct snd_soc_dapm_widget *widget =
  2106. snd_soc_dapm_kcontrol_widget(kcontrol);
  2107. struct snd_soc_dapm_update *update = NULL;
  2108. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2109. ucontrol->value.integer.value[0]);
  2110. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2111. if (a2dp_switch_enable)
  2112. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2113. 1, update);
  2114. else
  2115. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2116. 0, update);
  2117. return 1;
  2118. }
  2119. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2120. struct snd_ctl_elem_value *ucontrol)
  2121. {
  2122. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2123. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2124. ucontrol->value.integer.value[0]);
  2125. return 0;
  2126. }
  2127. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2128. struct snd_ctl_elem_value *ucontrol)
  2129. {
  2130. struct snd_soc_dapm_widget *widget =
  2131. snd_soc_dapm_kcontrol_widget(kcontrol);
  2132. struct snd_soc_dapm_update *update = NULL;
  2133. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2134. ucontrol->value.integer.value[0]);
  2135. if (ucontrol->value.integer.value[0])
  2136. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2137. update);
  2138. else
  2139. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2140. update);
  2141. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2142. return 1;
  2143. }
  2144. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2145. struct snd_ctl_elem_value *ucontrol)
  2146. {
  2147. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2148. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2149. ucontrol->value.integer.value[0]);
  2150. return 0;
  2151. }
  2152. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2153. struct snd_ctl_elem_value *ucontrol)
  2154. {
  2155. struct snd_soc_dapm_widget *widget =
  2156. snd_soc_dapm_kcontrol_widget(kcontrol);
  2157. struct snd_soc_dapm_update *update = NULL;
  2158. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2159. ucontrol->value.integer.value[0]);
  2160. if (ucontrol->value.integer.value[0])
  2161. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2162. update);
  2163. else
  2164. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2165. update);
  2166. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2167. return 1;
  2168. }
  2169. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2170. struct snd_ctl_elem_value *ucontrol)
  2171. {
  2172. ucontrol->value.integer.value[0] = usb_switch_enable;
  2173. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2174. ucontrol->value.integer.value[0]);
  2175. return 0;
  2176. }
  2177. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2178. struct snd_ctl_elem_value *ucontrol)
  2179. {
  2180. struct snd_soc_dapm_widget *widget =
  2181. snd_soc_dapm_kcontrol_widget(kcontrol);
  2182. struct snd_soc_dapm_update *update = NULL;
  2183. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2184. ucontrol->value.integer.value[0]);
  2185. if (ucontrol->value.integer.value[0])
  2186. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2187. 1, update);
  2188. else
  2189. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2190. 0, update);
  2191. usb_switch_enable = ucontrol->value.integer.value[0];
  2192. return 1;
  2193. }
  2194. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2195. struct snd_ctl_elem_value *ucontrol)
  2196. {
  2197. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2198. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2199. ucontrol->value.integer.value[0]);
  2200. return 0;
  2201. }
  2202. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2203. struct snd_ctl_elem_value *ucontrol)
  2204. {
  2205. struct snd_soc_dapm_widget *widget =
  2206. snd_soc_dapm_kcontrol_widget(kcontrol);
  2207. struct snd_soc_dapm_update *update = NULL;
  2208. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2209. ucontrol->value.integer.value[0]);
  2210. if (ucontrol->value.integer.value[0])
  2211. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2212. update);
  2213. else
  2214. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2215. update);
  2216. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2217. return 1;
  2218. }
  2219. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2220. struct snd_ctl_elem_value *ucontrol)
  2221. {
  2222. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2223. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2224. ucontrol->value.integer.value[0]);
  2225. return 0;
  2226. }
  2227. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2228. struct snd_ctl_elem_value *ucontrol)
  2229. {
  2230. struct snd_soc_dapm_widget *widget =
  2231. snd_soc_dapm_kcontrol_widget(kcontrol);
  2232. struct snd_soc_dapm_update *update = NULL;
  2233. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2234. ucontrol->value.integer.value[0]);
  2235. if (ucontrol->value.integer.value[0])
  2236. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2237. update);
  2238. else
  2239. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2240. update);
  2241. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2242. return 1;
  2243. }
  2244. static int msm_routing_get_tert_mi2s_switch_mixer(
  2245. struct snd_kcontrol *kcontrol,
  2246. struct snd_ctl_elem_value *ucontrol)
  2247. {
  2248. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2249. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2250. ucontrol->value.integer.value[0]);
  2251. return 0;
  2252. }
  2253. static int msm_routing_put_tert_mi2s_switch_mixer(
  2254. struct snd_kcontrol *kcontrol,
  2255. struct snd_ctl_elem_value *ucontrol)
  2256. {
  2257. struct snd_soc_dapm_widget *widget =
  2258. snd_soc_dapm_kcontrol_widget(kcontrol);
  2259. struct snd_soc_dapm_update *update = NULL;
  2260. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2261. ucontrol->value.integer.value[0]);
  2262. if (ucontrol->value.integer.value[0])
  2263. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2264. update);
  2265. else
  2266. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2267. update);
  2268. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2269. return 1;
  2270. }
  2271. static int msm_routing_get_quat_mi2s_switch_mixer(
  2272. struct snd_kcontrol *kcontrol,
  2273. struct snd_ctl_elem_value *ucontrol)
  2274. {
  2275. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2276. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2277. ucontrol->value.integer.value[0]);
  2278. return 0;
  2279. }
  2280. static int msm_routing_put_quat_mi2s_switch_mixer(
  2281. struct snd_kcontrol *kcontrol,
  2282. struct snd_ctl_elem_value *ucontrol)
  2283. {
  2284. struct snd_soc_dapm_widget *widget =
  2285. snd_soc_dapm_kcontrol_widget(kcontrol);
  2286. struct snd_soc_dapm_update *update = NULL;
  2287. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2288. ucontrol->value.integer.value[0]);
  2289. if (ucontrol->value.integer.value[0])
  2290. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2291. update);
  2292. else
  2293. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2294. update);
  2295. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2296. return 1;
  2297. }
  2298. static int msm_routing_get_quin_mi2s_switch_mixer(
  2299. struct snd_kcontrol *kcontrol,
  2300. struct snd_ctl_elem_value *ucontrol)
  2301. {
  2302. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2303. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2304. ucontrol->value.integer.value[0]);
  2305. return 0;
  2306. }
  2307. static int msm_routing_put_quin_mi2s_switch_mixer(
  2308. struct snd_kcontrol *kcontrol,
  2309. struct snd_ctl_elem_value *ucontrol)
  2310. {
  2311. struct snd_soc_dapm_widget *widget =
  2312. snd_soc_dapm_kcontrol_widget(kcontrol);
  2313. struct snd_soc_dapm_update *update = NULL;
  2314. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2315. ucontrol->value.integer.value[0]);
  2316. if (ucontrol->value.integer.value[0])
  2317. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2318. update);
  2319. else
  2320. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2321. update);
  2322. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2323. return 1;
  2324. }
  2325. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2326. struct snd_ctl_elem_value *ucontrol)
  2327. {
  2328. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2329. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2330. ucontrol->value.integer.value[0]);
  2331. return 0;
  2332. }
  2333. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2334. struct snd_ctl_elem_value *ucontrol)
  2335. {
  2336. struct snd_soc_dapm_widget *widget =
  2337. snd_soc_dapm_kcontrol_widget(kcontrol);
  2338. struct snd_soc_dapm_update *update = NULL;
  2339. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2340. ucontrol->value.integer.value[0]);
  2341. if (ucontrol->value.integer.value[0])
  2342. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2343. update);
  2344. else
  2345. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2346. update);
  2347. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2348. return 1;
  2349. }
  2350. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2351. struct snd_ctl_elem_value *ucontrol)
  2352. {
  2353. ucontrol->value.integer.value[0] = lsm_port_index;
  2354. return 0;
  2355. }
  2356. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2357. struct snd_ctl_elem_value *ucontrol)
  2358. {
  2359. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2360. int mux = ucontrol->value.enumerated.item[0];
  2361. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2362. if (mux >= e->items) {
  2363. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2364. return -EINVAL;
  2365. }
  2366. pr_debug("%s: LSM enable %ld\n", __func__,
  2367. ucontrol->value.integer.value[0]);
  2368. switch (ucontrol->value.integer.value[0]) {
  2369. case 1:
  2370. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2371. break;
  2372. case 2:
  2373. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2374. break;
  2375. case 3:
  2376. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2377. break;
  2378. case 4:
  2379. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2380. break;
  2381. case 5:
  2382. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2383. break;
  2384. case 6:
  2385. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2386. break;
  2387. case 7:
  2388. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2389. break;
  2390. case 8:
  2391. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2392. break;
  2393. case 9:
  2394. lsm_port = ADM_LSM_PORT_ID;
  2395. break;
  2396. case 10:
  2397. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2398. break;
  2399. case 11:
  2400. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2401. break;
  2402. case 12:
  2403. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2404. break;
  2405. default:
  2406. pr_err("Default lsm port");
  2407. break;
  2408. }
  2409. set_lsm_port(lsm_port);
  2410. lsm_port_index = ucontrol->value.integer.value[0];
  2411. return 0;
  2412. }
  2413. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2414. struct snd_ctl_elem_value *ucontrol)
  2415. {
  2416. int i;
  2417. u16 port_id;
  2418. enum afe_mad_type mad_type;
  2419. pr_debug("%s: enter\n", __func__);
  2420. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2421. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2422. strlen(lsm_port_text[i])))
  2423. break;
  2424. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2425. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2426. return -EINVAL;
  2427. }
  2428. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2429. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2430. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2431. strlen(lsm_port_text[7])))
  2432. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2433. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2434. strlen(lsm_port_text[8])))
  2435. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2436. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2437. strlen(lsm_port_text[10])))
  2438. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2439. mad_type = afe_port_get_mad_type(port_id);
  2440. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2441. mad_type);
  2442. switch (mad_type) {
  2443. case MAD_HW_NONE:
  2444. ucontrol->value.integer.value[0] = MADNONE;
  2445. break;
  2446. case MAD_HW_AUDIO:
  2447. ucontrol->value.integer.value[0] = MADAUDIO;
  2448. break;
  2449. case MAD_HW_BEACON:
  2450. ucontrol->value.integer.value[0] = MADBEACON;
  2451. break;
  2452. case MAD_HW_ULTRASOUND:
  2453. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2454. break;
  2455. case MAD_SW_AUDIO:
  2456. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2457. break;
  2458. default:
  2459. WARN(1, "Unknown\n");
  2460. return -EINVAL;
  2461. }
  2462. return 0;
  2463. }
  2464. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2465. struct snd_ctl_elem_value *ucontrol)
  2466. {
  2467. int i;
  2468. u16 port_id;
  2469. enum afe_mad_type mad_type;
  2470. pr_debug("%s: enter\n", __func__);
  2471. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2472. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2473. strlen(lsm_port_text[i])))
  2474. break;
  2475. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2476. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2477. return -EINVAL;
  2478. }
  2479. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2480. switch (ucontrol->value.integer.value[0]) {
  2481. case MADNONE:
  2482. mad_type = MAD_HW_NONE;
  2483. break;
  2484. case MADAUDIO:
  2485. mad_type = MAD_HW_AUDIO;
  2486. break;
  2487. case MADBEACON:
  2488. mad_type = MAD_HW_BEACON;
  2489. break;
  2490. case MADULTRASOUND:
  2491. mad_type = MAD_HW_ULTRASOUND;
  2492. break;
  2493. case MADSWAUDIO:
  2494. mad_type = MAD_SW_AUDIO;
  2495. break;
  2496. default:
  2497. WARN(1, "Unknown\n");
  2498. return -EINVAL;
  2499. }
  2500. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2501. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2502. strlen(lsm_port_text[7])))
  2503. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2504. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2505. strlen(lsm_port_text[8])))
  2506. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2507. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2508. strlen(lsm_port_text[10])))
  2509. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2510. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2511. mad_type);
  2512. return afe_port_set_mad_type(port_id, mad_type);
  2513. }
  2514. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2515. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2516. adm_override_chs_text);
  2517. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2518. {
  2519. int backend_id;
  2520. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2521. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2522. } else {
  2523. pr_err("%s: unsupported backend id: %s",
  2524. __func__, kcontrol->id.name);
  2525. return -EINVAL;
  2526. }
  2527. return backend_id;
  2528. }
  2529. static int msm_routing_adm_channel_config_get(
  2530. struct snd_kcontrol *kcontrol,
  2531. struct snd_ctl_elem_value *ucontrol)
  2532. {
  2533. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2534. if (backend_id >= 0) {
  2535. mutex_lock(&routing_lock);
  2536. ucontrol->value.integer.value[0] =
  2537. msm_bedais[backend_id].adm_override_ch;
  2538. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2539. ucontrol->value.integer.value[0], backend_id);
  2540. mutex_unlock(&routing_lock);
  2541. }
  2542. return 0;
  2543. }
  2544. static int msm_routing_adm_channel_config_put(
  2545. struct snd_kcontrol *kcontrol,
  2546. struct snd_ctl_elem_value *ucontrol)
  2547. {
  2548. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2549. if (backend_id >= 0) {
  2550. mutex_lock(&routing_lock);
  2551. msm_bedais[backend_id].adm_override_ch =
  2552. ucontrol->value.integer.value[0];
  2553. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2554. __func__, backend_id,
  2555. msm_bedais[backend_id].adm_override_ch);
  2556. mutex_unlock(&routing_lock);
  2557. }
  2558. return 0;
  2559. }
  2560. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2561. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2562. msm_routing_adm_channel_config_get,
  2563. msm_routing_adm_channel_config_put),
  2564. };
  2565. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2566. struct snd_ctl_elem_value *ucontrol)
  2567. {
  2568. mutex_lock(&routing_lock);
  2569. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2570. mutex_unlock(&routing_lock);
  2571. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2572. ucontrol->value.integer.value[0]);
  2573. return 0;
  2574. };
  2575. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2576. struct snd_ctl_elem_value *ucontrol)
  2577. {
  2578. struct aanc_data aanc_info;
  2579. mutex_lock(&routing_lock);
  2580. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2581. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2582. ucontrol->value.integer.value[0]);
  2583. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2584. if (ucontrol->value.integer.value[0] == 0) {
  2585. aanc_info.aanc_active = false;
  2586. aanc_info.aanc_tx_port = 0;
  2587. aanc_info.aanc_rx_port = 0;
  2588. } else {
  2589. aanc_info.aanc_active = true;
  2590. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2591. aanc_info.aanc_tx_port =
  2592. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2593. }
  2594. afe_set_aanc_info(&aanc_info);
  2595. mutex_unlock(&routing_lock);
  2596. return 0;
  2597. };
  2598. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2599. struct snd_ctl_elem_value *ucontrol)
  2600. {
  2601. int idx = 0, shift = 0;
  2602. struct soc_mixer_control *mc =
  2603. (struct soc_mixer_control *)kcontrol->private_value;
  2604. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2605. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2606. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2607. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2608. return -EINVAL;
  2609. }
  2610. if (test_bit(shift,
  2611. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2612. ucontrol->value.integer.value[0] = 1;
  2613. else
  2614. ucontrol->value.integer.value[0] = 0;
  2615. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2616. ucontrol->value.integer.value[0]);
  2617. return 0;
  2618. }
  2619. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2620. struct snd_ctl_elem_value *ucontrol)
  2621. {
  2622. int idx = 0, shift = 0;
  2623. struct soc_mixer_control *mc =
  2624. (struct soc_mixer_control *)kcontrol->private_value;
  2625. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2626. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2627. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2628. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2629. return -EINVAL;
  2630. }
  2631. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2632. __func__, mc->shift, mc->rshift,
  2633. ucontrol->value.integer.value[0], idx, shift);
  2634. if (ucontrol->value.integer.value[0]) {
  2635. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2636. msm_bedais[mc->rshift].port_id);
  2637. set_bit(shift,
  2638. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2639. } else {
  2640. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2641. msm_bedais[mc->rshift].port_id);
  2642. clear_bit(shift,
  2643. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2644. }
  2645. return 1;
  2646. }
  2647. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2648. struct snd_ctl_elem_value *ucontrol)
  2649. {
  2650. u16 fe_id = 0;
  2651. fe_id = ((struct soc_mixer_control *)
  2652. kcontrol->private_value)->shift;
  2653. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2654. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2655. return -EINVAL;
  2656. }
  2657. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2658. return 0;
  2659. }
  2660. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2661. struct snd_ctl_elem_value *ucontrol)
  2662. {
  2663. u16 fe_id = 0;
  2664. fe_id = ((struct soc_mixer_control *)
  2665. kcontrol->private_value)->shift;
  2666. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2667. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2668. return -EINVAL;
  2669. }
  2670. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2671. return 1;
  2672. }
  2673. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2674. struct snd_ctl_elem_value *ucontrol)
  2675. {
  2676. u16 fe_id = 0;
  2677. fe_id = ((struct soc_multi_mixer_control *)
  2678. kcontrol->private_value)->shift;
  2679. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2680. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2681. return -EINVAL;
  2682. }
  2683. ucontrol->value.integer.value[0] =
  2684. channel_mixer[fe_id].output_channel;
  2685. return 0;
  2686. }
  2687. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2688. struct snd_ctl_elem_value *ucontrol)
  2689. {
  2690. u16 fe_id = 0;
  2691. fe_id = ((struct soc_multi_mixer_control *)
  2692. kcontrol->private_value)->shift;
  2693. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2694. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2695. return -EINVAL;
  2696. }
  2697. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2698. fe_id,
  2699. (unsigned int)(ucontrol->value.integer.value[0]));
  2700. channel_mixer[fe_id].output_channel =
  2701. (unsigned int)(ucontrol->value.integer.value[0]);
  2702. return 1;
  2703. }
  2704. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2705. /* If new backend is added, need update this array */
  2706. static const char *const be_name[] = {
  2707. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2708. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2709. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2710. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2711. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2712. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2713. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2714. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2715. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2716. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2717. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2718. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2719. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2720. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2721. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2722. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2723. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2724. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2725. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2726. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2727. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2728. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2729. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2730. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2731. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2732. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2733. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2734. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2735. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2736. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2737. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2738. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2739. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2740. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2741. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2742. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2743. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2744. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2745. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2746. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2747. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2748. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2749. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1",
  2750. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2751. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2752. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2753. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2754. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2755. };
  2756. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2757. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2758. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2759. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2760. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2761. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2762. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2763. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2764. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2765. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2766. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2767. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2768. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2769. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2770. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2771. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2772. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2773. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2774. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2775. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2776. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2777. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2778. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2779. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2780. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2781. unsigned int channels,
  2782. unsigned int items, const char *const names[])
  2783. {
  2784. if (uinfo->value.enumerated.item >= items)
  2785. uinfo->value.enumerated.item = items - 1;
  2786. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2787. sizeof(uinfo->value.enumerated.name),
  2788. "ALSA: too long item name '%s'\n",
  2789. names[uinfo->value.enumerated.item]);
  2790. strlcpy(uinfo->value.enumerated.name,
  2791. names[uinfo->value.enumerated.item],
  2792. sizeof(uinfo->value.enumerated.name));
  2793. return 0;
  2794. }
  2795. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2796. struct snd_ctl_elem_info *uinfo)
  2797. {
  2798. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2799. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2800. uinfo->count = 1;
  2801. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2802. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2803. return 0;
  2804. }
  2805. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2806. struct snd_ctl_elem_value *ucontrol)
  2807. {
  2808. u16 fe_id = 0;
  2809. fe_id = ((struct soc_enum *)
  2810. kcontrol->private_value)->shift_l;
  2811. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2812. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2813. return -EINVAL;
  2814. }
  2815. pr_debug("%s: FE %d %s\n", __func__,
  2816. fe_id,
  2817. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2818. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2819. return 0;
  2820. }
  2821. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2822. struct snd_ctl_elem_value *ucontrol)
  2823. {
  2824. u16 fe_id = 0;
  2825. fe_id = ((struct soc_enum *)
  2826. kcontrol->private_value)->shift_l;
  2827. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2828. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2829. return -EINVAL;
  2830. }
  2831. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2832. pr_debug("%s: %s FE %d\n", __func__,
  2833. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2834. fe_id);
  2835. return 0;
  2836. }
  2837. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2838. struct snd_ctl_elem_info *uinfo)
  2839. {
  2840. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2841. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2842. uinfo->count = 1;
  2843. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2844. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2845. return 0;
  2846. }
  2847. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2848. struct snd_ctl_elem_value *ucontrol)
  2849. {
  2850. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2851. u16 fe_id = 0, in_ch = 0;
  2852. fe_id = e->shift_l;
  2853. in_ch = e->shift_r;
  2854. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2855. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2856. return -EINVAL;
  2857. }
  2858. if (in_ch >= ADM_MAX_CHANNELS) {
  2859. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2860. return -EINVAL;
  2861. }
  2862. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2863. return 1;
  2864. }
  2865. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2866. struct snd_ctl_elem_value *ucontrol)
  2867. {
  2868. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2869. u16 fe_id = 0, in_ch = 0;
  2870. fe_id = e->shift_l;
  2871. in_ch = e->shift_r;
  2872. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2873. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2874. return -EINVAL;
  2875. }
  2876. if (in_ch >= ADM_MAX_CHANNELS) {
  2877. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2878. return -EINVAL;
  2879. }
  2880. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2881. return 1;
  2882. }
  2883. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2884. struct snd_ctl_elem_info *uinfo)
  2885. {
  2886. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2887. uinfo->count = ADM_MAX_CHANNELS;
  2888. uinfo->value.integer.min = 0;
  2889. uinfo->value.integer.max = WEIGHT_0_DB;
  2890. return 0;
  2891. }
  2892. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2893. struct snd_ctl_elem_value *ucontrol)
  2894. {
  2895. u16 fe_id = 0, out_ch = 0;
  2896. int i, weight;
  2897. fe_id = ((struct soc_multi_mixer_control *)
  2898. kcontrol->private_value)->shift;
  2899. out_ch = ((struct soc_multi_mixer_control *)
  2900. kcontrol->private_value)->rshift;
  2901. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2902. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2903. return -EINVAL;
  2904. }
  2905. if (out_ch >= ADM_MAX_CHANNELS) {
  2906. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2907. return -EINVAL;
  2908. }
  2909. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2910. __func__, fe_id,
  2911. ucontrol->value.integer.value[0],
  2912. ucontrol->value.integer.value[1],
  2913. ucontrol->value.integer.value[2],
  2914. ucontrol->value.integer.value[3],
  2915. ucontrol->value.integer.value[4],
  2916. ucontrol->value.integer.value[5],
  2917. ucontrol->value.integer.value[6],
  2918. ucontrol->value.integer.value[7]);
  2919. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2920. weight = ucontrol->value.integer.value[i];
  2921. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2922. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2923. __func__, fe_id, out_ch, i,
  2924. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2925. }
  2926. return 0;
  2927. }
  2928. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2929. struct snd_ctl_elem_value *ucontrol)
  2930. {
  2931. u16 fe_id = 0, out_ch = 0;
  2932. int i;
  2933. fe_id = ((struct soc_multi_mixer_control *)
  2934. kcontrol->private_value)->shift;
  2935. out_ch = ((struct soc_multi_mixer_control *)
  2936. kcontrol->private_value)->rshift;
  2937. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2938. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2939. return -EINVAL;
  2940. }
  2941. if (out_ch >= ADM_MAX_CHANNELS) {
  2942. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2943. return -EINVAL;
  2944. }
  2945. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2946. ucontrol->value.integer.value[i] =
  2947. channel_mixer[fe_id].channel_weight[out_ch][i];
  2948. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2949. __func__, fe_id,
  2950. ucontrol->value.integer.value[0],
  2951. ucontrol->value.integer.value[1],
  2952. ucontrol->value.integer.value[2],
  2953. ucontrol->value.integer.value[3],
  2954. ucontrol->value.integer.value[4],
  2955. ucontrol->value.integer.value[5],
  2956. ucontrol->value.integer.value[6],
  2957. ucontrol->value.integer.value[7]);
  2958. return 0;
  2959. }
  2960. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2961. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2962. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2963. msm_pcm_get_channel_rule_index,
  2964. msm_pcm_put_channel_rule_index),
  2965. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2966. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2967. msm_pcm_get_channel_rule_index,
  2968. msm_pcm_put_channel_rule_index),
  2969. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2970. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2971. msm_pcm_get_channel_rule_index,
  2972. msm_pcm_put_channel_rule_index),
  2973. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2974. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2975. msm_pcm_get_channel_rule_index,
  2976. msm_pcm_put_channel_rule_index),
  2977. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2978. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2979. msm_pcm_get_channel_rule_index,
  2980. msm_pcm_put_channel_rule_index),
  2981. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2982. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2983. msm_pcm_get_channel_rule_index,
  2984. msm_pcm_put_channel_rule_index),
  2985. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2986. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2987. msm_pcm_get_out_chs,
  2988. msm_pcm_put_out_chs),
  2989. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2990. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2991. msm_pcm_get_out_chs,
  2992. msm_pcm_put_out_chs),
  2993. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2994. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2995. msm_pcm_get_out_chs,
  2996. msm_pcm_put_out_chs),
  2997. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2998. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2999. msm_pcm_get_out_chs,
  3000. msm_pcm_put_out_chs),
  3001. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3002. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3003. msm_pcm_get_out_chs,
  3004. msm_pcm_put_out_chs),
  3005. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3006. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3007. msm_pcm_get_out_chs,
  3008. msm_pcm_put_out_chs),
  3009. {
  3010. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3011. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3012. .name = "MultiMedia1 Channel Mixer",
  3013. .info = msm_pcm_channel_mixer_info,
  3014. .get = msm_pcm_channel_mixer_get,
  3015. .put = msm_pcm_channel_mixer_put,
  3016. .private_value = (unsigned long)&(mm1_channel_mux)
  3017. },
  3018. {
  3019. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3021. .name = "MultiMedia2 Channel Mixer",
  3022. .info = msm_pcm_channel_mixer_info,
  3023. .get = msm_pcm_channel_mixer_get,
  3024. .put = msm_pcm_channel_mixer_put,
  3025. .private_value = (unsigned long)&(mm2_channel_mux)
  3026. },
  3027. {
  3028. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3029. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3030. .name = "MultiMedia3 Channel Mixer",
  3031. .info = msm_pcm_channel_mixer_info,
  3032. .get = msm_pcm_channel_mixer_get,
  3033. .put = msm_pcm_channel_mixer_put,
  3034. .private_value = (unsigned long)&(mm3_channel_mux)
  3035. },
  3036. {
  3037. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3038. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3039. .name = "MultiMedia4 Channel Mixer",
  3040. .info = msm_pcm_channel_mixer_info,
  3041. .get = msm_pcm_channel_mixer_get,
  3042. .put = msm_pcm_channel_mixer_put,
  3043. .private_value = (unsigned long)&(mm4_channel_mux)
  3044. },
  3045. {
  3046. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3047. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3048. .name = "MultiMedia1 Output Channel1",
  3049. .info = msm_pcm_channel_weight_info,
  3050. .get = msm_pcm_channel_weight_get,
  3051. .put = msm_pcm_channel_weight_put,
  3052. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3053. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3054. },
  3055. {
  3056. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3057. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3058. .name = "MultiMedia1 Output Channel2",
  3059. .info = msm_pcm_channel_weight_info,
  3060. .get = msm_pcm_channel_weight_get,
  3061. .put = msm_pcm_channel_weight_put,
  3062. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3063. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3064. },
  3065. {
  3066. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3067. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3068. .name = "MultiMedia1 Output Channel3",
  3069. .info = msm_pcm_channel_weight_info,
  3070. .get = msm_pcm_channel_weight_get,
  3071. .put = msm_pcm_channel_weight_put,
  3072. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3073. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3074. },
  3075. {
  3076. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3077. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3078. .name = "MultiMedia1 Output Channel4",
  3079. .info = msm_pcm_channel_weight_info,
  3080. .get = msm_pcm_channel_weight_get,
  3081. .put = msm_pcm_channel_weight_put,
  3082. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3083. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3084. },
  3085. {
  3086. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3087. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3088. .name = "MultiMedia1 Output Channel5",
  3089. .info = msm_pcm_channel_weight_info,
  3090. .get = msm_pcm_channel_weight_get,
  3091. .put = msm_pcm_channel_weight_put,
  3092. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3093. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3094. },
  3095. {
  3096. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3097. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3098. .name = "MultiMedia1 Output Channel6",
  3099. .info = msm_pcm_channel_weight_info,
  3100. .get = msm_pcm_channel_weight_get,
  3101. .put = msm_pcm_channel_weight_put,
  3102. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3103. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3104. },
  3105. {
  3106. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3107. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3108. .name = "MultiMedia1 Output Channel7",
  3109. .info = msm_pcm_channel_weight_info,
  3110. .get = msm_pcm_channel_weight_get,
  3111. .put = msm_pcm_channel_weight_put,
  3112. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3113. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3114. },
  3115. {
  3116. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3117. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3118. .name = "MultiMedia1 Output Channel8",
  3119. .info = msm_pcm_channel_weight_info,
  3120. .get = msm_pcm_channel_weight_get,
  3121. .put = msm_pcm_channel_weight_put,
  3122. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3123. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3124. },
  3125. {
  3126. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3127. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3128. .name = "MultiMedia2 Output Channel1",
  3129. .info = msm_pcm_channel_weight_info,
  3130. .get = msm_pcm_channel_weight_get,
  3131. .put = msm_pcm_channel_weight_put,
  3132. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3133. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3134. },
  3135. {
  3136. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3137. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3138. .name = "MultiMedia2 Output Channel2",
  3139. .info = msm_pcm_channel_weight_info,
  3140. .get = msm_pcm_channel_weight_get,
  3141. .put = msm_pcm_channel_weight_put,
  3142. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3143. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3144. },
  3145. {
  3146. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3147. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3148. .name = "MultiMedia2 Output Channel3",
  3149. .info = msm_pcm_channel_weight_info,
  3150. .get = msm_pcm_channel_weight_get,
  3151. .put = msm_pcm_channel_weight_put,
  3152. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3153. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3154. },
  3155. {
  3156. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3157. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3158. .name = "MultiMedia3 Output Channel1",
  3159. .info = msm_pcm_channel_weight_info,
  3160. .get = msm_pcm_channel_weight_get,
  3161. .put = msm_pcm_channel_weight_put,
  3162. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3163. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3164. },
  3165. {
  3166. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3167. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3168. .name = "MultiMedia3 Output Channel2",
  3169. .info = msm_pcm_channel_weight_info,
  3170. .get = msm_pcm_channel_weight_get,
  3171. .put = msm_pcm_channel_weight_put,
  3172. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3173. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3174. },
  3175. {
  3176. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3177. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3178. .name = "MultiMedia1 Channel1",
  3179. .info = msm_pcm_channel_input_be_info,
  3180. .get = msm_pcm_channel_input_be_get,
  3181. .put = msm_pcm_channel_input_be_put,
  3182. .private_value = (unsigned long)&(mm1_ch1_enum)
  3183. },
  3184. {
  3185. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3186. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3187. .name = "MultiMedia1 Channel2",
  3188. .info = msm_pcm_channel_input_be_info,
  3189. .get = msm_pcm_channel_input_be_get,
  3190. .put = msm_pcm_channel_input_be_put,
  3191. .private_value = (unsigned long)&(mm1_ch2_enum)
  3192. },
  3193. {
  3194. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3195. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3196. .name = "MultiMedia1 Channel3",
  3197. .info = msm_pcm_channel_input_be_info,
  3198. .get = msm_pcm_channel_input_be_get,
  3199. .put = msm_pcm_channel_input_be_put,
  3200. .private_value = (unsigned long)&(mm1_ch3_enum)
  3201. },
  3202. {
  3203. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3204. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3205. .name = "MultiMedia1 Channel4",
  3206. .info = msm_pcm_channel_input_be_info,
  3207. .get = msm_pcm_channel_input_be_get,
  3208. .put = msm_pcm_channel_input_be_put,
  3209. .private_value = (unsigned long)&(mm1_ch4_enum)
  3210. },
  3211. {
  3212. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3213. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3214. .name = "MultiMedia1 Channel5",
  3215. .info = msm_pcm_channel_input_be_info,
  3216. .get = msm_pcm_channel_input_be_get,
  3217. .put = msm_pcm_channel_input_be_put,
  3218. .private_value = (unsigned long)&(mm1_ch5_enum)
  3219. },
  3220. {
  3221. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3222. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3223. .name = "MultiMedia1 Channel6",
  3224. .info = msm_pcm_channel_input_be_info,
  3225. .get = msm_pcm_channel_input_be_get,
  3226. .put = msm_pcm_channel_input_be_put,
  3227. .private_value = (unsigned long)&(mm1_ch6_enum)
  3228. },
  3229. {
  3230. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3231. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3232. .name = "MultiMedia1 Channel7",
  3233. .info = msm_pcm_channel_input_be_info,
  3234. .get = msm_pcm_channel_input_be_get,
  3235. .put = msm_pcm_channel_input_be_put,
  3236. .private_value = (unsigned long)&(mm1_ch7_enum)
  3237. },
  3238. {
  3239. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3240. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3241. .name = "MultiMedia1 Channel8",
  3242. .info = msm_pcm_channel_input_be_info,
  3243. .get = msm_pcm_channel_input_be_get,
  3244. .put = msm_pcm_channel_input_be_put,
  3245. .private_value = (unsigned long)&(mm1_ch8_enum)
  3246. },
  3247. };
  3248. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3249. struct snd_ctl_elem_value *ucontrol)
  3250. {
  3251. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3252. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3253. ucontrol->value.integer.value[0]);
  3254. return 0;
  3255. }
  3256. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3257. struct snd_ctl_elem_value *ucontrol)
  3258. {
  3259. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3260. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3261. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3262. return 0;
  3263. }
  3264. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3265. "Four", "Five", "Six", "Seven", "Eight"};
  3266. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3267. struct snd_ctl_elem_value *ucontrol)
  3268. {
  3269. switch (msm_ec_ref_bit_format) {
  3270. case SNDRV_PCM_FORMAT_S24_LE:
  3271. ucontrol->value.integer.value[0] = 2;
  3272. break;
  3273. case SNDRV_PCM_FORMAT_S16_LE:
  3274. ucontrol->value.integer.value[0] = 1;
  3275. break;
  3276. default:
  3277. ucontrol->value.integer.value[0] = 0;
  3278. break;
  3279. }
  3280. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3281. __func__, ucontrol->value.integer.value[0]);
  3282. return 0;
  3283. }
  3284. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3285. struct snd_ctl_elem_value *ucontrol)
  3286. {
  3287. u16 bit_width = 0;
  3288. switch (ucontrol->value.integer.value[0]) {
  3289. case 2:
  3290. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3291. break;
  3292. case 1:
  3293. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3294. break;
  3295. default:
  3296. msm_ec_ref_bit_format = 0;
  3297. break;
  3298. }
  3299. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3300. bit_width = 16;
  3301. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3302. bit_width = 24;
  3303. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3304. __func__, msm_ec_ref_bit_format);
  3305. adm_ec_ref_rx_bit_width(bit_width);
  3306. return 0;
  3307. }
  3308. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3309. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3310. struct snd_ctl_elem_value *ucontrol)
  3311. {
  3312. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3313. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3314. __func__, ucontrol->value.integer.value[0]);
  3315. return 0;
  3316. }
  3317. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3318. struct snd_ctl_elem_value *ucontrol)
  3319. {
  3320. switch (ucontrol->value.integer.value[0]) {
  3321. case 0:
  3322. msm_ec_ref_sampling_rate = 0;
  3323. break;
  3324. case 1:
  3325. msm_ec_ref_sampling_rate = 8000;
  3326. break;
  3327. case 2:
  3328. msm_ec_ref_sampling_rate = 16000;
  3329. break;
  3330. case 3:
  3331. msm_ec_ref_sampling_rate = 32000;
  3332. break;
  3333. case 4:
  3334. msm_ec_ref_sampling_rate = 44100;
  3335. break;
  3336. case 5:
  3337. msm_ec_ref_sampling_rate = 48000;
  3338. break;
  3339. case 6:
  3340. msm_ec_ref_sampling_rate = 96000;
  3341. break;
  3342. case 7:
  3343. msm_ec_ref_sampling_rate = 192000;
  3344. break;
  3345. case 8:
  3346. msm_ec_ref_sampling_rate = 384000;
  3347. break;
  3348. default:
  3349. msm_ec_ref_sampling_rate = 48000;
  3350. break;
  3351. }
  3352. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3353. __func__, msm_ec_ref_sampling_rate);
  3354. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3355. return 0;
  3356. }
  3357. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3358. "32000", "44100", "48000", "96000", "192000", "384000"};
  3359. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3360. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3361. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3362. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3363. };
  3364. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3365. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3366. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3367. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3368. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3369. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3370. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3371. };
  3372. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3373. struct snd_ctl_elem_value *ucontrol)
  3374. {
  3375. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3376. mutex_lock(&routing_lock);
  3377. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3378. mutex_unlock(&routing_lock);
  3379. return 0;
  3380. }
  3381. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3382. struct snd_ctl_elem_value *ucontrol)
  3383. {
  3384. int ec_ref_port_id;
  3385. struct snd_soc_dapm_widget *widget =
  3386. snd_soc_dapm_kcontrol_widget(kcontrol);
  3387. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3388. struct snd_soc_dapm_update *update = NULL;
  3389. mutex_lock(&routing_lock);
  3390. switch (ucontrol->value.integer.value[0]) {
  3391. case 0:
  3392. msm_route_ec_ref_rx = 0;
  3393. ec_ref_port_id = AFE_PORT_INVALID;
  3394. break;
  3395. case 1:
  3396. msm_route_ec_ref_rx = 1;
  3397. ec_ref_port_id = SLIMBUS_0_RX;
  3398. break;
  3399. case 2:
  3400. msm_route_ec_ref_rx = 2;
  3401. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3402. break;
  3403. case 3:
  3404. msm_route_ec_ref_rx = 3;
  3405. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3406. break;
  3407. case 4:
  3408. msm_route_ec_ref_rx = 4;
  3409. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3410. break;
  3411. case 5:
  3412. msm_route_ec_ref_rx = 5;
  3413. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3414. break;
  3415. case 6:
  3416. msm_route_ec_ref_rx = 6;
  3417. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3418. break;
  3419. case 7:
  3420. msm_route_ec_ref_rx = 7;
  3421. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3422. break;
  3423. case 9:
  3424. msm_route_ec_ref_rx = 9;
  3425. ec_ref_port_id = SLIMBUS_5_RX;
  3426. break;
  3427. case 10:
  3428. msm_route_ec_ref_rx = 10;
  3429. ec_ref_port_id = SLIMBUS_1_TX;
  3430. break;
  3431. case 11:
  3432. msm_route_ec_ref_rx = 11;
  3433. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3434. break;
  3435. case 12:
  3436. msm_route_ec_ref_rx = 12;
  3437. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3438. break;
  3439. case 13:
  3440. msm_route_ec_ref_rx = 13;
  3441. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3442. break;
  3443. case 14:
  3444. msm_route_ec_ref_rx = 14;
  3445. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3446. break;
  3447. case 15:
  3448. msm_route_ec_ref_rx = 15;
  3449. ec_ref_port_id = SLIMBUS_6_RX;
  3450. break;
  3451. case 16:
  3452. msm_route_ec_ref_rx = 16;
  3453. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3454. break;
  3455. case 17:
  3456. msm_route_ec_ref_rx = 17;
  3457. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3458. break;
  3459. case 18:
  3460. msm_route_ec_ref_rx = 18;
  3461. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3462. break;
  3463. case 19:
  3464. msm_route_ec_ref_rx = 19;
  3465. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3466. break;
  3467. case 20:
  3468. msm_route_ec_ref_rx = 20;
  3469. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3470. break;
  3471. case 21:
  3472. msm_route_ec_ref_rx = 21;
  3473. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3474. break;
  3475. case 22:
  3476. msm_route_ec_ref_rx = 22;
  3477. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3478. break;
  3479. case 23:
  3480. msm_route_ec_ref_rx = 23;
  3481. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3482. break;
  3483. case 24:
  3484. msm_route_ec_ref_rx = 24;
  3485. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3486. break;
  3487. case 25:
  3488. msm_route_ec_ref_rx = 25;
  3489. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3490. break;
  3491. case 26:
  3492. msm_route_ec_ref_rx = 26;
  3493. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3494. break;
  3495. case 27:
  3496. msm_route_ec_ref_rx = 27;
  3497. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3498. break;
  3499. case 28:
  3500. msm_route_ec_ref_rx = 28;
  3501. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3502. break;
  3503. case 29:
  3504. msm_route_ec_ref_rx = 29;
  3505. ec_ref_port_id = SLIMBUS_7_RX;
  3506. break;
  3507. case 30:
  3508. msm_route_ec_ref_rx = 30;
  3509. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3510. break;
  3511. case 31:
  3512. msm_route_ec_ref_rx = 31;
  3513. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3514. break;
  3515. case 32:
  3516. msm_route_ec_ref_rx = 32;
  3517. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3518. break;
  3519. case 33:
  3520. msm_route_ec_ref_rx = 33;
  3521. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3522. break;
  3523. case 34:
  3524. msm_route_ec_ref_rx = 34;
  3525. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3526. break;
  3527. default:
  3528. msm_route_ec_ref_rx = 0; /* NONE */
  3529. pr_err("%s EC ref rx %ld not valid\n",
  3530. __func__, ucontrol->value.integer.value[0]);
  3531. ec_ref_port_id = AFE_PORT_INVALID;
  3532. break;
  3533. }
  3534. adm_ec_ref_rx_id(ec_ref_port_id);
  3535. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3536. __func__, msm_route_ec_ref_rx);
  3537. mutex_unlock(&routing_lock);
  3538. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3539. msm_route_ec_ref_rx, e, update);
  3540. return 0;
  3541. }
  3542. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3543. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3544. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3545. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3546. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3547. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3548. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3549. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3550. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3551. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3552. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0",
  3553. };
  3554. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3555. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3556. };
  3557. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3558. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3559. msm_route_ec_ref_rx_enum[0],
  3560. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3561. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3562. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3563. msm_route_ec_ref_rx_enum[0],
  3564. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3565. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3566. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3567. msm_route_ec_ref_rx_enum[0],
  3568. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3569. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3570. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3571. msm_route_ec_ref_rx_enum[0],
  3572. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3573. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3574. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3575. msm_route_ec_ref_rx_enum[0],
  3576. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3577. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3578. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3579. msm_route_ec_ref_rx_enum[0],
  3580. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3581. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3582. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3583. msm_route_ec_ref_rx_enum[0],
  3584. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3585. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3586. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3587. msm_route_ec_ref_rx_enum[0],
  3588. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3589. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3590. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3591. msm_route_ec_ref_rx_enum[0],
  3592. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3593. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3594. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3595. msm_route_ec_ref_rx_enum[0],
  3596. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3597. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3598. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3599. msm_route_ec_ref_rx_enum[0],
  3600. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3601. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3602. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3603. msm_route_ec_ref_rx_enum[0],
  3604. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3605. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3606. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3607. msm_route_ec_ref_rx_enum[0],
  3608. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3609. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3610. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3611. msm_route_ec_ref_rx_enum[0],
  3612. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3613. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3614. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3615. msm_route_ec_ref_rx_enum[0],
  3616. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3617. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3618. struct snd_ctl_elem_value *ucontrol)
  3619. {
  3620. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3621. mutex_lock(&routing_lock);
  3622. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3623. mutex_unlock(&routing_lock);
  3624. return 0;
  3625. }
  3626. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3627. struct snd_ctl_elem_value *ucontrol)
  3628. {
  3629. struct snd_soc_dapm_widget *widget =
  3630. snd_soc_dapm_kcontrol_widget(kcontrol);
  3631. int mux = ucontrol->value.enumerated.item[0];
  3632. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3633. int ret = 1;
  3634. bool state = true;
  3635. uint16_t ext_ec_ref_port_id;
  3636. struct snd_soc_dapm_update *update = NULL;
  3637. if (mux >= e->items) {
  3638. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3639. return -EINVAL;
  3640. }
  3641. mutex_lock(&routing_lock);
  3642. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3643. switch (msm_route_ext_ec_ref) {
  3644. case EXT_EC_REF_PRI_MI2S_TX:
  3645. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3646. break;
  3647. case EXT_EC_REF_SEC_MI2S_TX:
  3648. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3649. break;
  3650. case EXT_EC_REF_TERT_MI2S_TX:
  3651. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3652. break;
  3653. case EXT_EC_REF_QUAT_MI2S_TX:
  3654. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3655. break;
  3656. case EXT_EC_REF_QUIN_MI2S_TX:
  3657. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3658. break;
  3659. case EXT_EC_REF_SLIM_1_TX:
  3660. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3661. break;
  3662. case EXT_EC_REF_SEC_TDM_TX:
  3663. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3664. break;
  3665. case EXT_EC_REF_NONE:
  3666. default:
  3667. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3668. state = false;
  3669. break;
  3670. }
  3671. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3672. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3673. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3674. mutex_unlock(&routing_lock);
  3675. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3676. update);
  3677. } else {
  3678. ret = -EINVAL;
  3679. mutex_unlock(&routing_lock);
  3680. }
  3681. return ret;
  3682. }
  3683. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3684. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3685. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3686. "SLIM_1_TX", "SEC_TDM_TX"};
  3687. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3688. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3689. };
  3690. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3691. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3692. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3693. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3694. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3695. MSM_BACKEND_DAI_PRI_I2S_RX,
  3696. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3697. msm_routing_put_audio_mixer),
  3698. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3699. MSM_BACKEND_DAI_PRI_I2S_RX,
  3700. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3701. msm_routing_put_audio_mixer),
  3702. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3703. MSM_BACKEND_DAI_PRI_I2S_RX,
  3704. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3705. msm_routing_put_audio_mixer),
  3706. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3707. MSM_BACKEND_DAI_PRI_I2S_RX,
  3708. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3709. msm_routing_put_audio_mixer),
  3710. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3711. MSM_BACKEND_DAI_PRI_I2S_RX,
  3712. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3713. msm_routing_put_audio_mixer),
  3714. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3715. MSM_BACKEND_DAI_PRI_I2S_RX,
  3716. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3717. msm_routing_put_audio_mixer),
  3718. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3719. MSM_BACKEND_DAI_PRI_I2S_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3723. MSM_BACKEND_DAI_PRI_I2S_RX,
  3724. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3725. msm_routing_put_audio_mixer),
  3726. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3727. MSM_BACKEND_DAI_PRI_I2S_RX,
  3728. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3729. msm_routing_put_audio_mixer),
  3730. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3731. MSM_BACKEND_DAI_PRI_I2S_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3735. MSM_BACKEND_DAI_PRI_I2S_RX,
  3736. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3737. msm_routing_put_audio_mixer),
  3738. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3739. MSM_BACKEND_DAI_PRI_I2S_RX,
  3740. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3741. msm_routing_put_audio_mixer),
  3742. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3743. MSM_BACKEND_DAI_PRI_I2S_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3747. MSM_BACKEND_DAI_PRI_I2S_RX,
  3748. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3749. msm_routing_put_audio_mixer),
  3750. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3751. MSM_BACKEND_DAI_PRI_I2S_RX,
  3752. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3753. msm_routing_put_audio_mixer),
  3754. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3755. MSM_BACKEND_DAI_PRI_I2S_RX,
  3756. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3757. msm_routing_put_audio_mixer),
  3758. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3759. MSM_BACKEND_DAI_PRI_I2S_RX,
  3760. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3761. msm_routing_put_audio_mixer),
  3762. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3763. MSM_BACKEND_DAI_PRI_I2S_RX,
  3764. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3765. msm_routing_put_audio_mixer),
  3766. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3767. MSM_BACKEND_DAI_PRI_I2S_RX,
  3768. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3769. msm_routing_put_audio_mixer),
  3770. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3771. MSM_BACKEND_DAI_PRI_I2S_RX,
  3772. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3773. msm_routing_put_audio_mixer),
  3774. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3775. MSM_BACKEND_DAI_PRI_I2S_RX,
  3776. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3777. msm_routing_put_audio_mixer),
  3778. };
  3779. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3780. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3781. MSM_BACKEND_DAI_SEC_I2S_RX,
  3782. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3783. msm_routing_put_audio_mixer),
  3784. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3785. MSM_BACKEND_DAI_SEC_I2S_RX,
  3786. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3787. msm_routing_put_audio_mixer),
  3788. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3789. MSM_BACKEND_DAI_SEC_I2S_RX,
  3790. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3791. msm_routing_put_audio_mixer),
  3792. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3793. MSM_BACKEND_DAI_SEC_I2S_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3797. MSM_BACKEND_DAI_SEC_I2S_RX,
  3798. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3799. msm_routing_put_audio_mixer),
  3800. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3801. MSM_BACKEND_DAI_SEC_I2S_RX,
  3802. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3803. msm_routing_put_audio_mixer),
  3804. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3805. MSM_BACKEND_DAI_SEC_I2S_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3809. MSM_BACKEND_DAI_SEC_I2S_RX,
  3810. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3811. msm_routing_put_audio_mixer),
  3812. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3813. MSM_BACKEND_DAI_SEC_I2S_RX,
  3814. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3815. msm_routing_put_audio_mixer),
  3816. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3817. MSM_BACKEND_DAI_SEC_I2S_RX,
  3818. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3819. msm_routing_put_audio_mixer),
  3820. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3821. MSM_BACKEND_DAI_SEC_I2S_RX,
  3822. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3823. msm_routing_put_audio_mixer),
  3824. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3825. MSM_BACKEND_DAI_SEC_I2S_RX,
  3826. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3827. msm_routing_put_audio_mixer),
  3828. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3829. MSM_BACKEND_DAI_SEC_I2S_RX,
  3830. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3831. msm_routing_put_audio_mixer),
  3832. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3833. MSM_BACKEND_DAI_SEC_I2S_RX,
  3834. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3835. msm_routing_put_audio_mixer),
  3836. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3837. MSM_BACKEND_DAI_SEC_I2S_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3841. MSM_BACKEND_DAI_SEC_I2S_RX,
  3842. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3843. msm_routing_put_audio_mixer),
  3844. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3845. MSM_BACKEND_DAI_SEC_I2S_RX,
  3846. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3847. msm_routing_put_audio_mixer),
  3848. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3849. MSM_BACKEND_DAI_SEC_I2S_RX,
  3850. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3851. msm_routing_put_audio_mixer),
  3852. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3853. MSM_BACKEND_DAI_SEC_I2S_RX,
  3854. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3855. msm_routing_put_audio_mixer),
  3856. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3857. MSM_BACKEND_DAI_SEC_I2S_RX,
  3858. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3859. msm_routing_put_audio_mixer),
  3860. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3861. MSM_BACKEND_DAI_SEC_I2S_RX,
  3862. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3863. msm_routing_put_audio_mixer),
  3864. };
  3865. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  3866. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3867. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3868. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3869. msm_routing_put_audio_mixer),
  3870. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3871. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3872. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3873. msm_routing_put_audio_mixer),
  3874. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3875. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3876. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3877. msm_routing_put_audio_mixer),
  3878. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3879. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3880. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3881. msm_routing_put_audio_mixer),
  3882. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3883. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3884. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3885. msm_routing_put_audio_mixer),
  3886. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3887. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3888. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3889. msm_routing_put_audio_mixer),
  3890. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3891. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3892. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3893. msm_routing_put_audio_mixer),
  3894. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3895. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3896. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3897. msm_routing_put_audio_mixer),
  3898. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3899. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3903. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3904. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3905. msm_routing_put_audio_mixer),
  3906. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3907. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3908. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3909. msm_routing_put_audio_mixer),
  3910. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3911. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3912. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3913. msm_routing_put_audio_mixer),
  3914. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3915. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3916. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3917. msm_routing_put_audio_mixer),
  3918. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3919. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3920. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3921. msm_routing_put_audio_mixer),
  3922. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3923. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3924. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3925. msm_routing_put_audio_mixer),
  3926. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3927. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3928. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3929. msm_routing_put_audio_mixer),
  3930. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3931. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3932. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3933. msm_routing_put_audio_mixer),
  3934. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3935. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3936. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3937. msm_routing_put_audio_mixer),
  3938. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3939. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3940. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3941. msm_routing_put_audio_mixer),
  3942. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3943. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3944. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3945. msm_routing_put_audio_mixer),
  3946. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3947. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3948. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3949. msm_routing_put_audio_mixer),
  3950. };
  3951. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  3952. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3953. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3954. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3955. msm_routing_put_audio_mixer),
  3956. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3957. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3958. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3959. msm_routing_put_audio_mixer),
  3960. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3961. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3965. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3966. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3967. msm_routing_put_audio_mixer),
  3968. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3969. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3970. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3971. msm_routing_put_audio_mixer),
  3972. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3973. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3977. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3978. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3979. msm_routing_put_audio_mixer),
  3980. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3981. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3982. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3983. msm_routing_put_audio_mixer),
  3984. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3985. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3986. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3987. msm_routing_put_audio_mixer),
  3988. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3989. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3990. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3991. msm_routing_put_audio_mixer),
  3992. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3993. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3994. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3995. msm_routing_put_audio_mixer),
  3996. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3997. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3998. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3999. msm_routing_put_audio_mixer),
  4000. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4001. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4002. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4003. msm_routing_put_audio_mixer),
  4004. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4005. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4006. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4007. msm_routing_put_audio_mixer),
  4008. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4009. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4010. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4011. msm_routing_put_audio_mixer),
  4012. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4013. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4014. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4015. msm_routing_put_audio_mixer),
  4016. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4017. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4018. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4019. msm_routing_put_audio_mixer),
  4020. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4021. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4022. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4023. msm_routing_put_audio_mixer),
  4024. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4025. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4026. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4027. msm_routing_put_audio_mixer),
  4028. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4029. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4030. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4031. msm_routing_put_audio_mixer),
  4032. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4033. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4034. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4035. msm_routing_put_audio_mixer),
  4036. };
  4037. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4038. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4039. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4040. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4041. msm_routing_put_audio_mixer),
  4042. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4043. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4047. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4048. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4049. msm_routing_put_audio_mixer),
  4050. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4051. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4052. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4053. msm_routing_put_audio_mixer),
  4054. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4055. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4056. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4057. msm_routing_put_audio_mixer),
  4058. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4059. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4060. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4061. msm_routing_put_audio_mixer),
  4062. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4063. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4064. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4065. msm_routing_put_audio_mixer),
  4066. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4067. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4068. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4069. msm_routing_put_audio_mixer),
  4070. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4071. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4072. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4073. msm_routing_put_audio_mixer),
  4074. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4075. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4076. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4077. msm_routing_put_audio_mixer),
  4078. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4079. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4080. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4081. msm_routing_put_audio_mixer),
  4082. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4083. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4084. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4085. msm_routing_put_audio_mixer),
  4086. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4087. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4091. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4092. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4093. msm_routing_put_audio_mixer),
  4094. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4095. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4096. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4097. msm_routing_put_audio_mixer),
  4098. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4099. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. };
  4103. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4104. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4105. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4106. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4107. msm_routing_put_audio_mixer),
  4108. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4109. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4110. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4111. msm_routing_put_audio_mixer),
  4112. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4113. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4114. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4115. msm_routing_put_audio_mixer),
  4116. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4117. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4121. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4122. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4123. msm_routing_put_audio_mixer),
  4124. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4125. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4129. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4130. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4131. msm_routing_put_audio_mixer),
  4132. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4133. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4134. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4135. msm_routing_put_audio_mixer),
  4136. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4137. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4141. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4142. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4143. msm_routing_put_audio_mixer),
  4144. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4145. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4146. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4147. msm_routing_put_audio_mixer),
  4148. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4149. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4153. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4154. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4155. msm_routing_put_audio_mixer),
  4156. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4157. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4158. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4159. msm_routing_put_audio_mixer),
  4160. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4161. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4165. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4166. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4167. msm_routing_put_audio_mixer),
  4168. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4169. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4170. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4171. msm_routing_put_audio_mixer),
  4172. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4173. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4174. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4175. msm_routing_put_audio_mixer),
  4176. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4177. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4178. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4179. msm_routing_put_audio_mixer),
  4180. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4181. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4185. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4186. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4187. msm_routing_put_audio_mixer),
  4188. };
  4189. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4190. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4191. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4192. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4193. msm_routing_put_audio_mixer),
  4194. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4195. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4196. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4197. msm_routing_put_audio_mixer),
  4198. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4199. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4203. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4204. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4205. msm_routing_put_audio_mixer),
  4206. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4207. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4208. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4209. msm_routing_put_audio_mixer),
  4210. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4211. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4215. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4216. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4217. msm_routing_put_audio_mixer),
  4218. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4219. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4220. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4221. msm_routing_put_audio_mixer),
  4222. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4223. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4227. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4228. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4229. msm_routing_put_audio_mixer),
  4230. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4231. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4235. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4236. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4237. msm_routing_put_audio_mixer),
  4238. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4239. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4240. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4241. msm_routing_put_audio_mixer),
  4242. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4243. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4244. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4245. msm_routing_put_audio_mixer),
  4246. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4247. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4248. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4249. msm_routing_put_audio_mixer),
  4250. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4251. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4252. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4253. msm_routing_put_audio_mixer),
  4254. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4255. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4256. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4257. msm_routing_put_audio_mixer),
  4258. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4259. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4260. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4261. msm_routing_put_audio_mixer),
  4262. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4263. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4264. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4265. msm_routing_put_audio_mixer),
  4266. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4267. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4271. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4272. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4273. msm_routing_put_audio_mixer),
  4274. };
  4275. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4276. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4277. MSM_BACKEND_DAI_MI2S_RX,
  4278. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4279. msm_routing_put_audio_mixer),
  4280. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4281. MSM_BACKEND_DAI_MI2S_RX,
  4282. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4283. msm_routing_put_audio_mixer),
  4284. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4285. MSM_BACKEND_DAI_MI2S_RX,
  4286. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4287. msm_routing_put_audio_mixer),
  4288. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4289. MSM_BACKEND_DAI_MI2S_RX,
  4290. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4291. msm_routing_put_audio_mixer),
  4292. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4293. MSM_BACKEND_DAI_MI2S_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4297. MSM_BACKEND_DAI_MI2S_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4301. MSM_BACKEND_DAI_MI2S_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4305. MSM_BACKEND_DAI_MI2S_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4309. MSM_BACKEND_DAI_MI2S_RX,
  4310. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4311. msm_routing_put_audio_mixer),
  4312. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4313. MSM_BACKEND_DAI_MI2S_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4317. MSM_BACKEND_DAI_MI2S_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4321. MSM_BACKEND_DAI_MI2S_RX,
  4322. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4323. msm_routing_put_audio_mixer),
  4324. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4325. MSM_BACKEND_DAI_MI2S_RX,
  4326. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4327. msm_routing_put_audio_mixer),
  4328. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4329. MSM_BACKEND_DAI_MI2S_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4333. MSM_BACKEND_DAI_MI2S_RX,
  4334. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4335. msm_routing_put_audio_mixer),
  4336. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4337. MSM_BACKEND_DAI_MI2S_RX,
  4338. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4339. msm_routing_put_audio_mixer),
  4340. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4341. MSM_BACKEND_DAI_MI2S_RX,
  4342. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4343. msm_routing_put_audio_mixer),
  4344. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4345. MSM_BACKEND_DAI_MI2S_RX,
  4346. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4347. msm_routing_put_audio_mixer),
  4348. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4349. MSM_BACKEND_DAI_MI2S_RX,
  4350. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4351. msm_routing_put_audio_mixer),
  4352. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4353. MSM_BACKEND_DAI_MI2S_RX,
  4354. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4355. msm_routing_put_audio_mixer),
  4356. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4357. MSM_BACKEND_DAI_MI2S_RX,
  4358. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4359. msm_routing_put_audio_mixer),
  4360. };
  4361. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4362. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4363. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4364. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4365. msm_routing_put_audio_mixer),
  4366. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4367. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4368. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4369. msm_routing_put_audio_mixer),
  4370. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4371. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4372. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4373. msm_routing_put_audio_mixer),
  4374. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4375. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4376. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4377. msm_routing_put_audio_mixer),
  4378. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4379. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4383. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4387. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4388. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4389. msm_routing_put_audio_mixer),
  4390. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4391. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4392. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4393. msm_routing_put_audio_mixer),
  4394. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4395. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4399. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4400. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4401. msm_routing_put_audio_mixer),
  4402. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4403. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4404. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4405. msm_routing_put_audio_mixer),
  4406. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4407. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4411. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4412. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4413. msm_routing_put_audio_mixer),
  4414. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4415. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4416. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4417. msm_routing_put_audio_mixer),
  4418. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4419. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4423. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4424. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4425. msm_routing_put_audio_mixer),
  4426. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4427. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4431. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4432. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4433. msm_routing_put_audio_mixer),
  4434. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4435. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4436. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4437. msm_routing_put_audio_mixer),
  4438. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4439. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4443. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4444. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4445. msm_routing_put_audio_mixer),
  4446. };
  4447. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4448. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4449. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4450. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4451. msm_routing_put_audio_mixer),
  4452. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4453. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4454. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4455. msm_routing_put_audio_mixer),
  4456. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4457. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4461. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4462. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4463. msm_routing_put_audio_mixer),
  4464. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4465. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4466. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4467. msm_routing_put_audio_mixer),
  4468. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4469. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4470. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4471. msm_routing_put_audio_mixer),
  4472. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4473. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4474. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4475. msm_routing_put_audio_mixer),
  4476. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4477. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4478. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4479. msm_routing_put_audio_mixer),
  4480. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4481. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4482. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4483. msm_routing_put_audio_mixer),
  4484. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4485. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4486. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4487. msm_routing_put_audio_mixer),
  4488. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4489. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4490. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4491. msm_routing_put_audio_mixer),
  4492. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4493. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4494. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4495. msm_routing_put_audio_mixer),
  4496. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4497. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4498. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4499. msm_routing_put_audio_mixer),
  4500. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4501. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4502. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4503. msm_routing_put_audio_mixer),
  4504. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4505. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4506. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4507. msm_routing_put_audio_mixer),
  4508. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4509. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4510. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4511. msm_routing_put_audio_mixer),
  4512. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4513. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4514. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4515. msm_routing_put_audio_mixer),
  4516. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4517. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4518. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4519. msm_routing_put_audio_mixer),
  4520. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4521. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4522. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4523. msm_routing_put_audio_mixer),
  4524. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4525. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4526. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4527. msm_routing_put_audio_mixer),
  4528. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4529. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4530. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4531. msm_routing_put_audio_mixer),
  4532. };
  4533. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4534. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4535. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4536. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4537. msm_routing_put_audio_mixer),
  4538. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4539. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4543. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4544. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4545. msm_routing_put_audio_mixer),
  4546. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4547. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4548. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4549. msm_routing_put_audio_mixer),
  4550. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4551. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4552. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4553. msm_routing_put_audio_mixer),
  4554. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4555. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4556. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4557. msm_routing_put_audio_mixer),
  4558. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4559. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4560. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4561. msm_routing_put_audio_mixer),
  4562. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4563. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4564. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4565. msm_routing_put_audio_mixer),
  4566. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4567. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4568. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4569. msm_routing_put_audio_mixer),
  4570. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4571. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4572. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4573. msm_routing_put_audio_mixer),
  4574. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4575. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4576. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4577. msm_routing_put_audio_mixer),
  4578. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4579. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4580. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4581. msm_routing_put_audio_mixer),
  4582. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4583. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4584. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4585. msm_routing_put_audio_mixer),
  4586. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4587. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4588. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4589. msm_routing_put_audio_mixer),
  4590. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4591. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4592. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4593. msm_routing_put_audio_mixer),
  4594. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4595. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4596. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4597. msm_routing_put_audio_mixer),
  4598. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4599. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4600. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4601. msm_routing_put_audio_mixer),
  4602. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4603. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4604. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4605. msm_routing_put_audio_mixer),
  4606. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4607. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4608. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4609. msm_routing_put_audio_mixer),
  4610. };
  4611. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4612. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4613. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. };
  4617. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4618. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4619. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4623. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4624. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4625. msm_routing_put_audio_mixer),
  4626. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4627. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4628. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4629. msm_routing_put_audio_mixer),
  4630. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4631. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4632. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4633. msm_routing_put_audio_mixer),
  4634. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4635. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4636. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4637. msm_routing_put_audio_mixer),
  4638. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4639. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4643. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4644. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4645. msm_routing_put_audio_mixer),
  4646. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4647. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4648. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4649. msm_routing_put_audio_mixer),
  4650. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4651. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4655. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4656. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4657. msm_routing_put_audio_mixer),
  4658. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4659. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4663. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4667. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4668. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4669. msm_routing_put_audio_mixer),
  4670. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4671. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4672. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4673. msm_routing_put_audio_mixer),
  4674. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4675. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4679. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4680. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4681. msm_routing_put_audio_mixer),
  4682. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4683. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4684. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4685. msm_routing_put_audio_mixer),
  4686. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4687. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4691. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4692. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4693. msm_routing_put_audio_mixer),
  4694. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4695. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4696. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4697. msm_routing_put_audio_mixer),
  4698. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4699. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4700. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4701. msm_routing_put_audio_mixer),
  4702. };
  4703. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4704. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4705. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4706. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4707. msm_routing_put_audio_mixer),
  4708. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4709. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4710. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4711. msm_routing_put_audio_mixer),
  4712. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4713. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4717. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4718. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4719. msm_routing_put_audio_mixer),
  4720. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4721. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4722. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4723. msm_routing_put_audio_mixer),
  4724. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4725. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4729. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4730. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4731. msm_routing_put_audio_mixer),
  4732. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4733. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4734. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4735. msm_routing_put_audio_mixer),
  4736. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4737. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4741. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4742. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4743. msm_routing_put_audio_mixer),
  4744. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4745. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4746. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4747. msm_routing_put_audio_mixer),
  4748. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4749. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4753. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4754. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4755. msm_routing_put_audio_mixer),
  4756. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4757. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4761. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4762. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4763. msm_routing_put_audio_mixer),
  4764. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4765. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4766. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4767. msm_routing_put_audio_mixer),
  4768. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4769. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4770. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4771. msm_routing_put_audio_mixer),
  4772. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4773. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4774. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4775. msm_routing_put_audio_mixer),
  4776. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4777. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4778. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4779. msm_routing_put_audio_mixer),
  4780. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4781. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4782. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4783. msm_routing_put_audio_mixer),
  4784. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4785. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4786. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4787. msm_routing_put_audio_mixer),
  4788. };
  4789. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4790. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4791. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4792. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4793. msm_routing_put_audio_mixer),
  4794. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4795. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4796. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4797. msm_routing_put_audio_mixer),
  4798. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4799. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4803. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4804. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4805. msm_routing_put_audio_mixer),
  4806. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4807. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4809. msm_routing_put_audio_mixer),
  4810. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4811. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4812. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4813. msm_routing_put_audio_mixer),
  4814. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4815. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4816. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4817. msm_routing_put_audio_mixer),
  4818. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4819. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4823. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4824. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4825. msm_routing_put_audio_mixer),
  4826. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4827. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4828. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4829. msm_routing_put_audio_mixer),
  4830. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4831. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4835. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4836. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4837. msm_routing_put_audio_mixer),
  4838. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4839. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4840. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4841. msm_routing_put_audio_mixer),
  4842. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4843. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4847. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4848. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4849. msm_routing_put_audio_mixer),
  4850. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4851. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4852. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4853. msm_routing_put_audio_mixer),
  4854. };
  4855. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4856. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4857. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4858. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4859. msm_routing_put_audio_mixer),
  4860. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4861. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4865. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4866. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4867. msm_routing_put_audio_mixer),
  4868. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4869. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4870. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4871. msm_routing_put_audio_mixer),
  4872. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4873. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4874. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4875. msm_routing_put_audio_mixer),
  4876. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4877. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4878. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4879. msm_routing_put_audio_mixer),
  4880. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4881. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4882. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4883. msm_routing_put_audio_mixer),
  4884. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4885. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4886. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4887. msm_routing_put_audio_mixer),
  4888. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4889. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4890. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4891. msm_routing_put_audio_mixer),
  4892. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4893. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4894. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4895. msm_routing_put_audio_mixer),
  4896. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4897. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4898. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4899. msm_routing_put_audio_mixer),
  4900. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4901. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4902. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4903. msm_routing_put_audio_mixer),
  4904. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4905. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4906. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4907. msm_routing_put_audio_mixer),
  4908. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4909. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4910. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4911. msm_routing_put_audio_mixer),
  4912. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4913. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4914. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4915. msm_routing_put_audio_mixer),
  4916. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4917. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4918. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4919. msm_routing_put_audio_mixer),
  4920. };
  4921. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4922. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4923. MSM_BACKEND_DAI_HDMI_RX,
  4924. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4925. msm_routing_put_audio_mixer),
  4926. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4927. MSM_BACKEND_DAI_HDMI_RX,
  4928. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4929. msm_routing_put_audio_mixer),
  4930. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4931. MSM_BACKEND_DAI_HDMI_RX,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4935. MSM_BACKEND_DAI_HDMI_RX,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4939. MSM_BACKEND_DAI_HDMI_RX,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4943. MSM_BACKEND_DAI_HDMI_RX,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4947. MSM_BACKEND_DAI_HDMI_RX,
  4948. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4949. msm_routing_put_audio_mixer),
  4950. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4951. MSM_BACKEND_DAI_HDMI_RX,
  4952. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4953. msm_routing_put_audio_mixer),
  4954. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4955. MSM_BACKEND_DAI_HDMI_RX,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4959. MSM_BACKEND_DAI_HDMI_RX,
  4960. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4961. msm_routing_put_audio_mixer),
  4962. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4963. MSM_BACKEND_DAI_HDMI_RX,
  4964. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4965. msm_routing_put_audio_mixer),
  4966. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4967. MSM_BACKEND_DAI_HDMI_RX,
  4968. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4969. msm_routing_put_audio_mixer),
  4970. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4971. MSM_BACKEND_DAI_HDMI_RX,
  4972. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4973. msm_routing_put_audio_mixer),
  4974. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4975. MSM_BACKEND_DAI_HDMI_RX,
  4976. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4977. msm_routing_put_audio_mixer),
  4978. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4979. MSM_BACKEND_DAI_HDMI_RX,
  4980. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4981. msm_routing_put_audio_mixer),
  4982. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4983. MSM_BACKEND_DAI_HDMI_RX,
  4984. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4985. msm_routing_put_audio_mixer),
  4986. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4987. MSM_BACKEND_DAI_HDMI_RX,
  4988. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4989. msm_routing_put_audio_mixer),
  4990. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4991. MSM_BACKEND_DAI_HDMI_RX,
  4992. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4993. msm_routing_put_audio_mixer),
  4994. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4995. MSM_BACKEND_DAI_HDMI_RX,
  4996. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4997. msm_routing_put_audio_mixer),
  4998. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4999. MSM_BACKEND_DAI_HDMI_RX,
  5000. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5001. msm_routing_put_audio_mixer),
  5002. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5003. MSM_BACKEND_DAI_HDMI_RX,
  5004. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5005. msm_routing_put_audio_mixer),
  5006. };
  5007. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5008. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5009. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5010. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5011. msm_routing_put_audio_mixer),
  5012. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5013. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5014. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5015. msm_routing_put_audio_mixer),
  5016. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5017. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5018. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5019. msm_routing_put_audio_mixer),
  5020. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5021. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5022. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5023. msm_routing_put_audio_mixer),
  5024. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5025. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5026. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5027. msm_routing_put_audio_mixer),
  5028. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5029. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5030. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5031. msm_routing_put_audio_mixer),
  5032. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5033. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5034. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5035. msm_routing_put_audio_mixer),
  5036. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5037. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5038. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5039. msm_routing_put_audio_mixer),
  5040. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5041. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5042. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5043. msm_routing_put_audio_mixer),
  5044. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5045. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5046. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5047. msm_routing_put_audio_mixer),
  5048. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5049. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5050. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5051. msm_routing_put_audio_mixer),
  5052. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5053. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5054. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5055. msm_routing_put_audio_mixer),
  5056. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5057. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5058. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5059. msm_routing_put_audio_mixer),
  5060. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5061. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5062. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5063. msm_routing_put_audio_mixer),
  5064. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5065. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5066. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5067. msm_routing_put_audio_mixer),
  5068. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5069. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5070. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5071. msm_routing_put_audio_mixer),
  5072. };
  5073. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5074. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5075. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5079. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5080. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5081. msm_routing_put_audio_mixer),
  5082. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5083. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5084. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5085. msm_routing_put_audio_mixer),
  5086. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5087. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5088. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5089. msm_routing_put_audio_mixer),
  5090. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5091. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5092. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5093. msm_routing_put_audio_mixer),
  5094. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5095. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5096. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5097. msm_routing_put_audio_mixer),
  5098. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5099. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5100. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5101. msm_routing_put_audio_mixer),
  5102. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5103. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5104. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5105. msm_routing_put_audio_mixer),
  5106. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5107. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5108. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5109. msm_routing_put_audio_mixer),
  5110. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5111. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5112. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5113. msm_routing_put_audio_mixer),
  5114. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5115. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5116. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5117. msm_routing_put_audio_mixer),
  5118. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5119. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5120. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5121. msm_routing_put_audio_mixer),
  5122. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5123. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5124. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5125. msm_routing_put_audio_mixer),
  5126. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5127. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5128. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5129. msm_routing_put_audio_mixer),
  5130. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5131. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5135. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5136. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5137. msm_routing_put_audio_mixer),
  5138. };
  5139. /* incall music delivery mixer */
  5140. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5141. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5142. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5146. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5150. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5152. msm_routing_put_audio_mixer),
  5153. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5154. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5156. msm_routing_put_audio_mixer),
  5157. };
  5158. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5159. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5160. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5161. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5162. msm_routing_put_audio_mixer),
  5163. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5164. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5165. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5166. msm_routing_put_audio_mixer),
  5167. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5168. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5169. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5170. msm_routing_put_audio_mixer),
  5171. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5172. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. };
  5176. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5177. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5178. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5179. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5180. msm_routing_put_audio_mixer),
  5181. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5182. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5183. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5184. msm_routing_put_audio_mixer),
  5185. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5186. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5187. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5188. msm_routing_put_audio_mixer),
  5189. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5190. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5192. msm_routing_put_audio_mixer),
  5193. };
  5194. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5195. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5200. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5204. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5208. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5212. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5216. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5220. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5224. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5228. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5232. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5233. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5234. msm_routing_put_audio_mixer),
  5235. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5236. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5237. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5238. msm_routing_put_audio_mixer),
  5239. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5240. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5241. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5242. msm_routing_put_audio_mixer),
  5243. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5244. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5245. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5246. msm_routing_put_audio_mixer),
  5247. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5248. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5249. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5250. msm_routing_put_audio_mixer),
  5251. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5252. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5253. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5254. msm_routing_put_audio_mixer),
  5255. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5256. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5257. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5258. msm_routing_put_audio_mixer),
  5259. };
  5260. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5261. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5262. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5264. msm_routing_put_audio_mixer),
  5265. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5266. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5268. msm_routing_put_audio_mixer),
  5269. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5270. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5271. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5272. msm_routing_put_audio_mixer),
  5273. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5274. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5275. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5276. msm_routing_put_audio_mixer),
  5277. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5278. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5282. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5283. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5284. msm_routing_put_audio_mixer),
  5285. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5286. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5287. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5288. msm_routing_put_audio_mixer),
  5289. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5290. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5291. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5292. msm_routing_put_audio_mixer),
  5293. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5294. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5296. msm_routing_put_audio_mixer),
  5297. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5298. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5300. msm_routing_put_audio_mixer),
  5301. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5302. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5303. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5304. msm_routing_put_audio_mixer),
  5305. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5306. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5307. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5308. msm_routing_put_audio_mixer),
  5309. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5310. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5311. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5312. msm_routing_put_audio_mixer),
  5313. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5314. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5315. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5316. msm_routing_put_audio_mixer),
  5317. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5318. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5319. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5320. msm_routing_put_audio_mixer),
  5321. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5322. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5323. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5324. msm_routing_put_audio_mixer),
  5325. };
  5326. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5327. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5328. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5332. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5333. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5334. msm_routing_put_audio_mixer),
  5335. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5336. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5337. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5338. msm_routing_put_audio_mixer),
  5339. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5340. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5341. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5342. msm_routing_put_audio_mixer),
  5343. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5344. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5345. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5346. msm_routing_put_audio_mixer),
  5347. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5348. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5349. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5350. msm_routing_put_audio_mixer),
  5351. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5352. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5356. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5357. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5358. msm_routing_put_audio_mixer),
  5359. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5360. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5361. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5362. msm_routing_put_audio_mixer),
  5363. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5364. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5366. msm_routing_put_audio_mixer),
  5367. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5368. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5369. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5370. msm_routing_put_audio_mixer),
  5371. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5372. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5373. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5374. msm_routing_put_audio_mixer),
  5375. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5376. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5377. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5378. msm_routing_put_audio_mixer),
  5379. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5380. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5381. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5382. msm_routing_put_audio_mixer),
  5383. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5384. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5385. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5386. msm_routing_put_audio_mixer),
  5387. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5388. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5389. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5390. msm_routing_put_audio_mixer),
  5391. };
  5392. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5393. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5394. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5398. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5402. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5406. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5410. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5411. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5412. msm_routing_put_audio_mixer),
  5413. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5414. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5418. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5422. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5426. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5427. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5428. msm_routing_put_audio_mixer),
  5429. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5430. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5431. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5432. msm_routing_put_audio_mixer),
  5433. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5434. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5438. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5439. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5440. msm_routing_put_audio_mixer),
  5441. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5442. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5443. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5444. msm_routing_put_audio_mixer),
  5445. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5446. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5450. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5451. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5452. msm_routing_put_audio_mixer),
  5453. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5454. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5455. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5456. msm_routing_put_audio_mixer),
  5457. };
  5458. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5459. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5460. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5461. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5462. msm_routing_put_audio_mixer),
  5463. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5468. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5472. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5476. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5477. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5478. msm_routing_put_audio_mixer),
  5479. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5480. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5484. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5488. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5492. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5496. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5504. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5508. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5512. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5513. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5514. msm_routing_put_audio_mixer),
  5515. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5516. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5517. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5518. msm_routing_put_audio_mixer),
  5519. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5520. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5521. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5522. msm_routing_put_audio_mixer),
  5523. };
  5524. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5525. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5538. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5539. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5540. msm_routing_put_audio_mixer),
  5541. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5542. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5546. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5550. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5554. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5558. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5562. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5566. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5570. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5574. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5578. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5582. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5583. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5584. msm_routing_put_audio_mixer),
  5585. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5586. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. };
  5590. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5591. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5593. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5594. msm_routing_put_audio_mixer),
  5595. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5600. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5632. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5636. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5640. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5644. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5648. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5652. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. };
  5656. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  5657. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5666. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5667. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5668. msm_routing_put_audio_mixer),
  5669. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5670. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5671. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5672. msm_routing_put_audio_mixer),
  5673. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5674. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5678. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5682. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5683. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5684. msm_routing_put_audio_mixer),
  5685. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5686. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5718. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. };
  5722. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  5723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5724. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5726. msm_routing_put_audio_mixer),
  5727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5728. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5732. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5734. msm_routing_put_audio_mixer),
  5735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5736. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5738. msm_routing_put_audio_mixer),
  5739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5740. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5744. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5746. msm_routing_put_audio_mixer),
  5747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5748. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5750. msm_routing_put_audio_mixer),
  5751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5752. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5756. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5760. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5762. msm_routing_put_audio_mixer),
  5763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5764. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. };
  5788. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  5789. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5790. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5791. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5792. msm_routing_put_audio_mixer),
  5793. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5794. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5795. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5796. msm_routing_put_audio_mixer),
  5797. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5798. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5799. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5800. msm_routing_put_audio_mixer),
  5801. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5802. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5806. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5807. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5808. msm_routing_put_audio_mixer),
  5809. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5810. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5811. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5812. msm_routing_put_audio_mixer),
  5813. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5814. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5818. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5822. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5826. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5827. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5828. msm_routing_put_audio_mixer),
  5829. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5830. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5842. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5846. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5850. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. };
  5854. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  5855. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5856. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5860. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5861. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5862. msm_routing_put_audio_mixer),
  5863. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5864. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5865. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5866. msm_routing_put_audio_mixer),
  5867. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5868. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5869. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5870. msm_routing_put_audio_mixer),
  5871. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5872. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5873. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5874. msm_routing_put_audio_mixer),
  5875. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5876. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5877. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5878. msm_routing_put_audio_mixer),
  5879. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5880. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5881. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5882. msm_routing_put_audio_mixer),
  5883. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5884. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5885. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5886. msm_routing_put_audio_mixer),
  5887. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5888. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5889. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5890. msm_routing_put_audio_mixer),
  5891. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5892. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5893. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5894. msm_routing_put_audio_mixer),
  5895. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5896. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5904. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5916. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. };
  5920. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  5921. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5922. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5924. msm_routing_put_audio_mixer),
  5925. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5926. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5928. msm_routing_put_audio_mixer),
  5929. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5930. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5931. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5932. msm_routing_put_audio_mixer),
  5933. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5934. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5938. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5940. msm_routing_put_audio_mixer),
  5941. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5942. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5944. msm_routing_put_audio_mixer),
  5945. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5946. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5947. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5948. msm_routing_put_audio_mixer),
  5949. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5950. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5951. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5952. msm_routing_put_audio_mixer),
  5953. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5954. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5955. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5956. msm_routing_put_audio_mixer),
  5957. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5958. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5960. msm_routing_put_audio_mixer),
  5961. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5962. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5963. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5964. msm_routing_put_audio_mixer),
  5965. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5966. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5967. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5968. msm_routing_put_audio_mixer),
  5969. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5970. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5974. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5978. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5982. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. };
  5986. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5987. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5988. MSM_BACKEND_DAI_USB_RX,
  5989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5990. msm_routing_put_audio_mixer),
  5991. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5992. MSM_BACKEND_DAI_USB_RX,
  5993. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5994. msm_routing_put_audio_mixer),
  5995. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5996. MSM_BACKEND_DAI_USB_RX,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6000. MSM_BACKEND_DAI_USB_RX,
  6001. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6002. msm_routing_put_audio_mixer),
  6003. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6004. MSM_BACKEND_DAI_USB_RX,
  6005. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6006. msm_routing_put_audio_mixer),
  6007. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6008. MSM_BACKEND_DAI_USB_RX,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6012. MSM_BACKEND_DAI_USB_RX,
  6013. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6014. msm_routing_put_audio_mixer),
  6015. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6016. MSM_BACKEND_DAI_USB_RX,
  6017. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6018. msm_routing_put_audio_mixer),
  6019. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6020. MSM_BACKEND_DAI_USB_RX,
  6021. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6022. msm_routing_put_audio_mixer),
  6023. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6024. MSM_BACKEND_DAI_USB_RX,
  6025. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6026. msm_routing_put_audio_mixer),
  6027. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6028. MSM_BACKEND_DAI_USB_RX,
  6029. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6030. msm_routing_put_audio_mixer),
  6031. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6032. MSM_BACKEND_DAI_USB_RX,
  6033. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6034. msm_routing_put_audio_mixer),
  6035. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6036. MSM_BACKEND_DAI_USB_RX,
  6037. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6038. msm_routing_put_audio_mixer),
  6039. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6040. MSM_BACKEND_DAI_USB_RX,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6044. MSM_BACKEND_DAI_USB_RX,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6048. MSM_BACKEND_DAI_USB_RX,
  6049. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6050. msm_routing_put_audio_mixer),
  6051. };
  6052. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6053. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6062. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6066. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6070. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6074. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6075. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6076. msm_routing_put_audio_mixer),
  6077. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6078. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6079. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6080. msm_routing_put_audio_mixer),
  6081. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6082. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6083. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6084. msm_routing_put_audio_mixer),
  6085. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6086. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6087. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6088. msm_routing_put_audio_mixer),
  6089. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6090. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6091. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6092. msm_routing_put_audio_mixer),
  6093. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6094. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6095. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6096. msm_routing_put_audio_mixer),
  6097. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6098. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6099. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6100. msm_routing_put_audio_mixer),
  6101. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6102. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6106. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6110. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6111. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6112. msm_routing_put_audio_mixer),
  6113. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6114. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6118. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6122. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6123. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6124. msm_routing_put_audio_mixer),
  6125. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6126. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6130. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. };
  6138. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6139. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6140. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6144. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6146. msm_routing_put_audio_mixer),
  6147. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6148. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6152. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6156. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6157. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6158. msm_routing_put_audio_mixer),
  6159. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6160. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6164. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6168. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6169. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6170. msm_routing_put_audio_mixer),
  6171. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6172. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6174. msm_routing_put_audio_mixer),
  6175. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6176. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6177. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6178. msm_routing_put_audio_mixer),
  6179. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6180. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6181. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6182. msm_routing_put_audio_mixer),
  6183. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6184. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6188. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6189. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6190. msm_routing_put_audio_mixer),
  6191. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6192. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6193. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6194. msm_routing_put_audio_mixer),
  6195. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6196. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6200. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. };
  6204. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6205. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6206. MSM_BACKEND_DAI_INT_FM_RX,
  6207. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6208. msm_routing_put_audio_mixer),
  6209. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6210. MSM_BACKEND_DAI_INT_FM_RX,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6214. MSM_BACKEND_DAI_INT_FM_RX,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6218. MSM_BACKEND_DAI_INT_FM_RX,
  6219. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6220. msm_routing_put_audio_mixer),
  6221. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6222. MSM_BACKEND_DAI_INT_FM_RX,
  6223. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6224. msm_routing_put_audio_mixer),
  6225. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6226. MSM_BACKEND_DAI_INT_FM_RX,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6230. MSM_BACKEND_DAI_INT_FM_RX,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6234. MSM_BACKEND_DAI_INT_FM_RX,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6238. MSM_BACKEND_DAI_INT_FM_RX,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6242. MSM_BACKEND_DAI_INT_FM_RX,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6246. MSM_BACKEND_DAI_INT_FM_RX,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6250. MSM_BACKEND_DAI_INT_FM_RX,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_INT_FM_RX,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6258. MSM_BACKEND_DAI_INT_FM_RX,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6262. MSM_BACKEND_DAI_INT_FM_RX,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6266. MSM_BACKEND_DAI_INT_FM_RX,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6270. MSM_BACKEND_DAI_INT_FM_RX,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6274. MSM_BACKEND_DAI_INT_FM_RX,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6278. MSM_BACKEND_DAI_INT_FM_RX,
  6279. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6280. msm_routing_put_audio_mixer),
  6281. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6282. MSM_BACKEND_DAI_INT_FM_RX,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6286. MSM_BACKEND_DAI_INT_FM_RX,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. };
  6290. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6291. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6292. MSM_BACKEND_DAI_AFE_PCM_RX,
  6293. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6294. msm_routing_put_audio_mixer),
  6295. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6296. MSM_BACKEND_DAI_AFE_PCM_RX,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6300. MSM_BACKEND_DAI_AFE_PCM_RX,
  6301. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6302. msm_routing_put_audio_mixer),
  6303. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6304. MSM_BACKEND_DAI_AFE_PCM_RX,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6308. MSM_BACKEND_DAI_AFE_PCM_RX,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6312. MSM_BACKEND_DAI_AFE_PCM_RX,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6316. MSM_BACKEND_DAI_AFE_PCM_RX,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6320. MSM_BACKEND_DAI_AFE_PCM_RX,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_AFE_PCM_RX,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_AFE_PCM_RX,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_AFE_PCM_RX,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_AFE_PCM_RX,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_AFE_PCM_RX,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_AFE_PCM_RX,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_AFE_PCM_RX,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_AFE_PCM_RX,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6356. MSM_BACKEND_DAI_AFE_PCM_RX,
  6357. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6358. msm_routing_put_audio_mixer),
  6359. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6360. MSM_BACKEND_DAI_AFE_PCM_RX,
  6361. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6362. msm_routing_put_audio_mixer),
  6363. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6364. MSM_BACKEND_DAI_AFE_PCM_RX,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6368. MSM_BACKEND_DAI_AFE_PCM_RX,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6372. MSM_BACKEND_DAI_AFE_PCM_RX,
  6373. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6374. msm_routing_put_audio_mixer),
  6375. };
  6376. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6377. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6378. MSM_BACKEND_DAI_AUXPCM_RX,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_AUXPCM_RX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_AUXPCM_RX,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_AUXPCM_RX,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_AUXPCM_RX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_AUXPCM_RX,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_AUXPCM_RX,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_AUXPCM_RX,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_AUXPCM_RX,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_AUXPCM_RX,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_AUXPCM_RX,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_AUXPCM_RX,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_AUXPCM_RX,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_AUXPCM_RX,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_AUXPCM_RX,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_AUXPCM_RX,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6442. MSM_BACKEND_DAI_AUXPCM_RX,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6446. MSM_BACKEND_DAI_AUXPCM_RX,
  6447. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6448. msm_routing_put_audio_mixer),
  6449. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6450. MSM_BACKEND_DAI_AUXPCM_RX,
  6451. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6452. msm_routing_put_audio_mixer),
  6453. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6454. MSM_BACKEND_DAI_AUXPCM_RX,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6458. MSM_BACKEND_DAI_AUXPCM_RX,
  6459. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6460. msm_routing_put_audio_mixer),
  6461. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6462. MSM_BACKEND_DAI_AUXPCM_RX,
  6463. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6464. msm_routing_put_audio_mixer),
  6465. };
  6466. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6467. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6516. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6520. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6524. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6528. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6532. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6533. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6534. msm_routing_put_audio_mixer),
  6535. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6536. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6537. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6538. msm_routing_put_audio_mixer),
  6539. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6540. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6541. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6542. msm_routing_put_audio_mixer),
  6543. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6544. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6545. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6546. msm_routing_put_audio_mixer),
  6547. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6548. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6549. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6550. msm_routing_put_audio_mixer),
  6551. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6552. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. };
  6556. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  6557. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6558. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6562. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6582. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6586. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6590. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6594. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6598. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6602. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6606. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6607. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6608. msm_routing_put_audio_mixer),
  6609. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6610. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6614. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6618. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6619. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6620. msm_routing_put_audio_mixer),
  6621. };
  6622. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  6623. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6624. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6625. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6626. msm_routing_put_audio_mixer),
  6627. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6632. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6636. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6640. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6644. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6648. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6649. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6650. msm_routing_put_audio_mixer),
  6651. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6652. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6653. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6654. msm_routing_put_audio_mixer),
  6655. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6656. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6660. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6661. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6662. msm_routing_put_audio_mixer),
  6663. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6664. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6668. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6669. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6670. msm_routing_put_audio_mixer),
  6671. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6672. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6673. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6674. msm_routing_put_audio_mixer),
  6675. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6676. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6677. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6678. msm_routing_put_audio_mixer),
  6679. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6680. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6681. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6682. msm_routing_put_audio_mixer),
  6683. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6684. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6686. msm_routing_put_audio_mixer),
  6687. };
  6688. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6689. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6690. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6691. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6692. msm_routing_put_audio_mixer),
  6693. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6694. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6698. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6702. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6722. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6723. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6724. msm_routing_put_audio_mixer),
  6725. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6726. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6727. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6728. msm_routing_put_audio_mixer),
  6729. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6730. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6734. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6735. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6736. msm_routing_put_audio_mixer),
  6737. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6738. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6739. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6740. msm_routing_put_audio_mixer),
  6741. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6742. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6743. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6744. msm_routing_put_audio_mixer),
  6745. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6746. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6747. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6748. msm_routing_put_audio_mixer),
  6749. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6750. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6751. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6752. msm_routing_put_audio_mixer),
  6753. };
  6754. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  6755. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6756. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6760. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6764. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6768. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6772. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6776. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6780. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6781. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6782. msm_routing_put_audio_mixer),
  6783. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6784. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6788. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6792. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6796. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6800. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6801. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6802. msm_routing_put_audio_mixer),
  6803. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6804. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6808. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6809. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6810. msm_routing_put_audio_mixer),
  6811. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6812. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6813. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6814. msm_routing_put_audio_mixer),
  6815. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6816. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6820. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6821. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6822. msm_routing_put_audio_mixer),
  6823. };
  6824. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  6825. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6846. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6850. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6854. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6858. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6862. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6864. msm_routing_put_audio_mixer),
  6865. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6866. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6867. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6868. msm_routing_put_audio_mixer),
  6869. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6870. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6871. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6872. msm_routing_put_audio_mixer),
  6873. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6874. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6875. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6876. msm_routing_put_audio_mixer),
  6877. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6878. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6879. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6880. msm_routing_put_audio_mixer),
  6881. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6882. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6883. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6884. msm_routing_put_audio_mixer),
  6885. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6886. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6888. msm_routing_put_audio_mixer),
  6889. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6890. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6891. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6892. msm_routing_put_audio_mixer),
  6893. };
  6894. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  6895. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6896. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6900. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6912. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6913. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6914. msm_routing_put_audio_mixer),
  6915. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6932. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6936. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6937. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6938. msm_routing_put_audio_mixer),
  6939. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6940. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6941. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6942. msm_routing_put_audio_mixer),
  6943. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6944. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6948. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6949. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6950. msm_routing_put_audio_mixer),
  6951. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6952. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6953. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6954. msm_routing_put_audio_mixer),
  6955. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6956. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6957. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6958. msm_routing_put_audio_mixer),
  6959. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6960. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6961. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6962. msm_routing_put_audio_mixer),
  6963. };
  6964. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  6965. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7002. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7006. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7010. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7014. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7022. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7026. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7030. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. };
  7034. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7035. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7044. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7072. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7076. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7080. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. };
  7100. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7101. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7114. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7134. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. };
  7170. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7176. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7180. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7184. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7186. msm_routing_put_audio_mixer),
  7187. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7188. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7192. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7204. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7208. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7212. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7216. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. };
  7240. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7241. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7254. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7258. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7259. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7260. msm_routing_put_audio_mixer),
  7261. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7262. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7270. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7274. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7278. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7279. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7280. msm_routing_put_audio_mixer),
  7281. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7282. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7283. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7284. msm_routing_put_audio_mixer),
  7285. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7286. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7290. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. };
  7310. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7311. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7340. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7344. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7345. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7346. msm_routing_put_audio_mixer),
  7347. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7348. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7352. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7353. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7354. msm_routing_put_audio_mixer),
  7355. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7356. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7357. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7358. msm_routing_put_audio_mixer),
  7359. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7360. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. };
  7380. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7381. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7398. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7414. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7418. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7422. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7423. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7424. msm_routing_put_audio_mixer),
  7425. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7426. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7430. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. };
  7446. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7447. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7484. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7488. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7492. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7493. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7494. msm_routing_put_audio_mixer),
  7495. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. };
  7516. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  7517. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. };
  7582. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  7583. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7624. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7625. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7626. msm_routing_put_audio_mixer),
  7627. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7633. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7634. msm_routing_put_audio_mixer),
  7635. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. };
  7652. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  7653. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. };
  7722. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. };
  7792. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  7793. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7834. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7835. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7836. msm_routing_put_audio_mixer),
  7837. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7838. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7839. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7840. msm_routing_put_audio_mixer),
  7841. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7843. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7844. msm_routing_put_audio_mixer),
  7845. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7850. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7851. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7852. msm_routing_put_audio_mixer),
  7853. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. };
  7862. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  7863. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. };
  7936. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  7937. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. };
  8002. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8003. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. };
  8076. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8077. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. };
  8150. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8151. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8156. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8157. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8158. msm_routing_put_audio_mixer),
  8159. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8160. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8161. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8162. msm_routing_put_audio_mixer),
  8163. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8168. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8169. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8170. msm_routing_put_audio_mixer),
  8171. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. };
  8224. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8225. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8238. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8239. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8240. msm_routing_put_audio_mixer),
  8241. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8278. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8279. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8280. msm_routing_put_audio_mixer),
  8281. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8282. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8283. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8284. msm_routing_put_audio_mixer),
  8285. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. };
  8298. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8299. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8348. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8349. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8350. msm_routing_put_audio_mixer),
  8351. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8352. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8353. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8354. msm_routing_put_audio_mixer),
  8355. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8356. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8357. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8358. msm_routing_put_audio_mixer),
  8359. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8360. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8361. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8362. msm_routing_put_audio_mixer),
  8363. };
  8364. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8365. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8426. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8427. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8428. msm_routing_put_audio_mixer),
  8429. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. };
  8438. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8439. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. };
  8512. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  8513. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. };
  8586. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  8587. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_PRI_I2S_TX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_MI2S_TX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_AUXPCM_TX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_INT_FM_TX,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_AFE_PCM_TX,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8740. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8741. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8742. msm_routing_put_audio_mixer),
  8743. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8744. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8745. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8746. msm_routing_put_audio_mixer),
  8747. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8748. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8749. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8750. msm_routing_put_audio_mixer),
  8751. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8752. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8753. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8754. msm_routing_put_audio_mixer),
  8755. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_USB_TX,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. };
  8820. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  8821. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_INT_FM_TX,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_MI2S_TX,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8850. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8851. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8852. msm_routing_put_audio_mixer),
  8853. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_USB_TX,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. };
  9010. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  9011. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9012. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9013. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9014. msm_routing_put_audio_mixer),
  9015. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9016. MSM_BACKEND_DAI_INT_FM_TX,
  9017. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9018. msm_routing_put_audio_mixer),
  9019. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9020. MSM_BACKEND_DAI_MI2S_TX,
  9021. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9022. msm_routing_put_audio_mixer),
  9023. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_AFE_PCM_TX,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_AUXPCM_TX,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9156. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9157. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9158. msm_routing_put_audio_mixer),
  9159. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. };
  9200. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9201. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_INT_FM_TX,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_AFE_PCM_TX,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9231. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9232. msm_routing_put_audio_mixer),
  9233. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9234. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9235. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9236. msm_routing_put_audio_mixer),
  9237. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_USB_TX,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9334. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9336. msm_routing_put_audio_mixer),
  9337. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9366. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9367. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9368. msm_routing_put_audio_mixer),
  9369. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9370. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9372. msm_routing_put_audio_mixer),
  9373. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9374. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9375. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9376. msm_routing_put_audio_mixer),
  9377. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9378. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9379. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9380. msm_routing_put_audio_mixer),
  9381. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9382. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9383. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9384. msm_routing_put_audio_mixer),
  9385. };
  9386. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9387. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_INT_FM_TX,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_MI2S_TX,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_AFE_PCM_TX,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_AUXPCM_TX,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9428. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9429. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9430. msm_routing_put_audio_mixer),
  9431. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9432. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9433. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9434. msm_routing_put_audio_mixer),
  9435. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9436. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9437. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9438. msm_routing_put_audio_mixer),
  9439. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9440. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9441. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9442. msm_routing_put_audio_mixer),
  9443. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9444. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9445. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9446. msm_routing_put_audio_mixer),
  9447. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9449. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9450. msm_routing_put_audio_mixer),
  9451. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9453. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9454. msm_routing_put_audio_mixer),
  9455. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9456. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9457. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9458. msm_routing_put_audio_mixer),
  9459. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9461. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9462. msm_routing_put_audio_mixer),
  9463. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_USB_TX,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9572. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9573. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9574. msm_routing_put_audio_mixer),
  9575. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9576. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9577. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9578. msm_routing_put_audio_mixer),
  9579. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9580. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9581. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9582. msm_routing_put_audio_mixer),
  9583. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9584. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9586. msm_routing_put_audio_mixer),
  9587. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9588. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9590. msm_routing_put_audio_mixer),
  9591. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9592. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9593. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9594. msm_routing_put_audio_mixer),
  9595. };
  9596. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  9597. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_INT_FM_TX,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_AUXPCM_TX,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9670. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9671. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9672. msm_routing_put_audio_mixer),
  9673. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9678. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9680. msm_routing_put_audio_mixer),
  9681. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_USB_TX,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. };
  9786. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  9787. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_INT_FM_TX,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_AFE_PCM_TX,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9869. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9870. msm_routing_put_audio_mixer),
  9871. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9877. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9878. msm_routing_put_audio_mixer),
  9879. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9882. msm_routing_put_audio_mixer),
  9883. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9885. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9886. msm_routing_put_audio_mixer),
  9887. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9909. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9910. msm_routing_put_audio_mixer),
  9911. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9912. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9913. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9914. msm_routing_put_audio_mixer),
  9915. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9917. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9918. msm_routing_put_audio_mixer),
  9919. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9922. msm_routing_put_audio_mixer),
  9923. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_USB_TX,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9974. msm_routing_put_audio_mixer),
  9975. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9977. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9978. msm_routing_put_audio_mixer),
  9979. };
  9980. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  9981. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_INT_FM_TX,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_AFE_PCM_TX,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10051. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10052. msm_routing_put_audio_mixer),
  10053. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10056. msm_routing_put_audio_mixer),
  10057. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10063. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10064. msm_routing_put_audio_mixer),
  10065. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10067. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10068. msm_routing_put_audio_mixer),
  10069. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10070. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10071. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10072. msm_routing_put_audio_mixer),
  10073. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10075. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10076. msm_routing_put_audio_mixer),
  10077. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10079. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10080. msm_routing_put_audio_mixer),
  10081. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_USB_TX,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_MI2S_TX,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_AUXPCM_TX,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10144. msm_routing_get_audio_mixer,
  10145. msm_routing_put_audio_mixer),
  10146. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10148. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10149. msm_routing_get_audio_mixer,
  10150. msm_routing_put_audio_mixer),
  10151. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10153. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10154. msm_routing_get_audio_mixer,
  10155. msm_routing_put_audio_mixer),
  10156. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10157. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10158. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10159. msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10164. msm_routing_get_audio_mixer,
  10165. msm_routing_put_audio_mixer),
  10166. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10168. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10169. msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. };
  10180. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10181. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_INT_FM_TX,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10198. MSM_BACKEND_DAI_AFE_PCM_TX,
  10199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10200. msm_routing_put_audio_mixer),
  10201. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10202. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10204. msm_routing_put_audio_mixer),
  10205. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10206. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10207. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10208. msm_routing_put_audio_mixer),
  10209. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10210. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10211. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10212. msm_routing_put_audio_mixer),
  10213. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10214. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10215. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10216. msm_routing_put_audio_mixer),
  10217. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10218. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10219. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10220. msm_routing_put_audio_mixer),
  10221. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10223. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10224. msm_routing_put_audio_mixer),
  10225. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10227. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10228. msm_routing_put_audio_mixer),
  10229. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10231. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10232. msm_routing_put_audio_mixer),
  10233. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10235. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10236. msm_routing_put_audio_mixer),
  10237. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10240. msm_routing_put_audio_mixer),
  10241. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10243. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10244. msm_routing_put_audio_mixer),
  10245. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. };
  10314. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10315. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_INT_FM_TX,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_AFE_PCM_TX,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_USB_TX,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_MI2S_TX,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_AUXPCM_TX,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10421. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10422. msm_routing_put_audio_mixer),
  10423. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10424. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10425. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10426. msm_routing_put_audio_mixer),
  10427. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10428. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10429. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10430. msm_routing_put_audio_mixer),
  10431. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10432. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10433. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10434. msm_routing_put_audio_mixer),
  10435. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10436. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10437. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10438. msm_routing_put_audio_mixer),
  10439. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10440. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10441. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10442. msm_routing_get_audio_mixer,
  10443. msm_routing_put_audio_mixer),
  10444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10446. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10447. msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10452. msm_routing_get_audio_mixer,
  10453. msm_routing_put_audio_mixer),
  10454. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10455. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10456. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10457. msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10462. msm_routing_get_audio_mixer,
  10463. msm_routing_put_audio_mixer),
  10464. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10466. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10467. msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. };
  10478. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  10479. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10481. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10482. msm_routing_put_audio_mixer),
  10483. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10485. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10486. msm_routing_put_audio_mixer),
  10487. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10489. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10490. msm_routing_put_audio_mixer),
  10491. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_INT_FM_TX,
  10493. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10494. msm_routing_put_audio_mixer),
  10495. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_AFE_PCM_TX,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10542. msm_routing_get_audio_mixer,
  10543. msm_routing_put_audio_mixer),
  10544. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10545. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10546. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10547. msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10552. msm_routing_get_audio_mixer,
  10553. msm_routing_put_audio_mixer),
  10554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10556. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10557. msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10562. msm_routing_get_audio_mixer,
  10563. msm_routing_put_audio_mixer),
  10564. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10565. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10566. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10567. msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. };
  10578. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  10579. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10580. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10581. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10582. msm_routing_put_audio_mixer),
  10583. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10584. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10585. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10586. msm_routing_put_audio_mixer),
  10587. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10588. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10589. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10590. msm_routing_put_audio_mixer),
  10591. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10592. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10593. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10594. msm_routing_put_audio_mixer),
  10595. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10596. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10597. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10598. msm_routing_put_audio_mixer),
  10599. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10600. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10601. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10602. msm_routing_put_audio_mixer),
  10603. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10604. MSM_BACKEND_DAI_INT_FM_TX,
  10605. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10606. msm_routing_put_audio_mixer),
  10607. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10608. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10609. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10610. msm_routing_put_audio_mixer),
  10611. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10612. MSM_BACKEND_DAI_AFE_PCM_TX,
  10613. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10614. msm_routing_put_audio_mixer),
  10615. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10616. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10617. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10618. msm_routing_put_audio_mixer),
  10619. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10621. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10622. msm_routing_put_audio_mixer),
  10623. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10646. msm_routing_get_audio_mixer,
  10647. msm_routing_put_audio_mixer),
  10648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10650. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10651. msm_routing_get_audio_mixer,
  10652. msm_routing_put_audio_mixer),
  10653. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10655. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10656. msm_routing_get_audio_mixer,
  10657. msm_routing_put_audio_mixer),
  10658. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10659. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10660. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10661. msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10666. msm_routing_get_audio_mixer,
  10667. msm_routing_put_audio_mixer),
  10668. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10669. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10670. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10671. msm_routing_get_audio_mixer,
  10672. msm_routing_put_audio_mixer),
  10673. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10675. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10676. msm_routing_put_audio_mixer),
  10677. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10679. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10680. msm_routing_put_audio_mixer),
  10681. };
  10682. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  10683. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_INT_FM_TX,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_AFE_PCM_TX,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10726. msm_routing_put_audio_mixer),
  10727. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10729. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10730. msm_routing_put_audio_mixer),
  10731. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10733. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10734. msm_routing_put_audio_mixer),
  10735. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10737. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10738. msm_routing_put_audio_mixer),
  10739. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10741. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10742. msm_routing_put_audio_mixer),
  10743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10746. msm_routing_get_audio_mixer,
  10747. msm_routing_put_audio_mixer),
  10748. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10749. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10750. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10751. msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10756. msm_routing_get_audio_mixer,
  10757. msm_routing_put_audio_mixer),
  10758. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10759. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10760. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10761. msm_routing_get_audio_mixer,
  10762. msm_routing_put_audio_mixer),
  10763. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10765. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10766. msm_routing_get_audio_mixer,
  10767. msm_routing_put_audio_mixer),
  10768. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10769. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10770. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10771. msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. };
  10782. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  10783. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10786. msm_routing_put_audio_mixer),
  10787. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. };
  10884. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  10885. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_AUXPCM_TX,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10976. msm_routing_put_audio_mixer),
  10977. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10979. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10980. msm_routing_put_audio_mixer),
  10981. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  10996. msm_routing_get_audio_mixer,
  10997. msm_routing_put_audio_mixer),
  10998. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10999. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11000. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  11001. msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  11006. msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  11011. msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  11016. msm_routing_get_audio_mixer,
  11017. msm_routing_put_audio_mixer),
  11018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11020. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  11021. msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. };
  11032. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  11033. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_INT_FM_TX,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_AFE_PCM_TX,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11075. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11079. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11080. msm_routing_put_audio_mixer),
  11081. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11082. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11083. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11084. msm_routing_put_audio_mixer),
  11085. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11086. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11087. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11088. msm_routing_put_audio_mixer),
  11089. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11090. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11091. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11092. msm_routing_put_audio_mixer),
  11093. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11095. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11096. msm_routing_get_audio_mixer,
  11097. msm_routing_put_audio_mixer),
  11098. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11099. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11100. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11101. msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11106. msm_routing_get_audio_mixer,
  11107. msm_routing_put_audio_mixer),
  11108. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11109. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11110. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11111. msm_routing_get_audio_mixer,
  11112. msm_routing_put_audio_mixer),
  11113. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11114. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11115. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11116. msm_routing_get_audio_mixer,
  11117. msm_routing_put_audio_mixer),
  11118. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11119. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11120. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11121. msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. };
  11132. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  11133. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_INT_FM_TX,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_AFE_PCM_TX,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11191. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11196. msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11201. msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11206. msm_routing_get_audio_mixer,
  11207. msm_routing_put_audio_mixer),
  11208. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11209. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11210. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11211. msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11216. msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11221. msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. };
  11232. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  11233. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_PRI_I2S_RX,
  11235. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11236. msm_routing_put_voice_mixer),
  11237. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_PRI_I2S_RX,
  11239. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11240. msm_routing_put_voice_mixer),
  11241. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_PRI_I2S_RX,
  11243. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11244. msm_routing_put_voice_mixer),
  11245. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_PRI_I2S_RX,
  11247. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11248. msm_routing_put_voice_mixer),
  11249. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_PRI_I2S_RX,
  11251. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11252. msm_routing_put_voice_mixer),
  11253. };
  11254. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  11255. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_SEC_I2S_RX,
  11257. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11258. msm_routing_put_voice_mixer),
  11259. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_SEC_I2S_RX,
  11261. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11262. msm_routing_put_voice_mixer),
  11263. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_SEC_I2S_RX,
  11265. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11266. msm_routing_put_voice_mixer),
  11267. };
  11268. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  11269. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11271. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11272. msm_routing_put_voice_mixer),
  11273. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11275. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11276. msm_routing_put_voice_mixer),
  11277. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11279. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11280. msm_routing_put_voice_mixer),
  11281. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11283. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11284. msm_routing_put_voice_mixer),
  11285. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11287. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11288. msm_routing_put_voice_mixer),
  11289. };
  11290. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  11291. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11293. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11294. msm_routing_put_voice_mixer),
  11295. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11297. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11298. msm_routing_put_voice_mixer),
  11299. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11301. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11302. msm_routing_put_voice_mixer),
  11303. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11305. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11306. msm_routing_put_voice_mixer),
  11307. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11309. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11310. msm_routing_put_voice_mixer),
  11311. };
  11312. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  11313. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11315. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11316. msm_routing_put_voice_mixer),
  11317. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11319. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11320. msm_routing_put_voice_mixer),
  11321. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11323. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11324. msm_routing_put_voice_mixer),
  11325. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11327. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11328. msm_routing_put_voice_mixer),
  11329. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11331. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11332. msm_routing_put_voice_mixer),
  11333. };
  11334. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  11335. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_USB_RX,
  11337. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11338. msm_routing_put_voice_mixer),
  11339. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_USB_RX,
  11341. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11342. msm_routing_put_voice_mixer),
  11343. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_USB_RX,
  11345. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11346. msm_routing_put_voice_mixer),
  11347. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_USB_RX,
  11349. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11350. msm_routing_put_voice_mixer),
  11351. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_USB_RX,
  11353. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11354. msm_routing_put_voice_mixer),
  11355. };
  11356. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  11357. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11359. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11360. msm_routing_put_voice_mixer),
  11361. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11363. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11364. msm_routing_put_voice_mixer),
  11365. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11367. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11368. msm_routing_put_voice_mixer),
  11369. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11371. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11372. msm_routing_put_voice_mixer),
  11373. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11375. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11376. msm_routing_put_voice_mixer),
  11377. };
  11378. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  11379. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11381. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11382. msm_routing_put_voice_mixer),
  11383. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11385. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11386. msm_routing_put_voice_mixer),
  11387. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11389. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11390. msm_routing_put_voice_mixer),
  11391. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11393. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11394. msm_routing_put_voice_mixer),
  11395. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11397. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11398. msm_routing_put_voice_mixer),
  11399. };
  11400. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  11401. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11403. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11404. msm_routing_put_voice_mixer),
  11405. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11407. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11408. msm_routing_put_voice_mixer),
  11409. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11411. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11412. msm_routing_put_voice_mixer),
  11413. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11415. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11416. msm_routing_put_voice_mixer),
  11417. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11419. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11420. msm_routing_put_voice_mixer),
  11421. };
  11422. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  11423. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_MI2S_RX,
  11425. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11426. msm_routing_put_voice_mixer),
  11427. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11428. MSM_BACKEND_DAI_MI2S_RX,
  11429. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11430. msm_routing_put_voice_mixer),
  11431. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11432. MSM_BACKEND_DAI_MI2S_RX,
  11433. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11434. msm_routing_put_voice_mixer),
  11435. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_MI2S_RX,
  11437. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11438. msm_routing_put_voice_mixer),
  11439. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_MI2S_RX,
  11441. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11442. msm_routing_put_voice_mixer),
  11443. };
  11444. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  11445. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11447. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11448. msm_routing_put_voice_mixer),
  11449. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11451. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11452. msm_routing_put_voice_mixer),
  11453. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11455. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11456. msm_routing_put_voice_mixer),
  11457. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11459. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11460. msm_routing_put_voice_mixer),
  11461. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11463. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11464. msm_routing_put_voice_mixer),
  11465. };
  11466. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  11467. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11469. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11470. msm_routing_put_voice_mixer),
  11471. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11473. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11474. msm_routing_put_voice_mixer),
  11475. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11477. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11478. msm_routing_put_voice_mixer),
  11479. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11481. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11482. msm_routing_put_voice_mixer),
  11483. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11485. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11486. msm_routing_put_voice_mixer),
  11487. };
  11488. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  11489. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11491. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11492. msm_routing_put_voice_mixer),
  11493. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11495. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11496. msm_routing_put_voice_mixer),
  11497. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11499. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11500. msm_routing_put_voice_mixer),
  11501. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11502. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11503. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11504. msm_routing_put_voice_mixer),
  11505. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11506. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11507. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11508. msm_routing_put_voice_mixer),
  11509. };
  11510. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  11511. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11513. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11514. msm_routing_put_voice_mixer),
  11515. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11517. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11518. msm_routing_put_voice_mixer),
  11519. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11521. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11522. msm_routing_put_voice_mixer),
  11523. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11525. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11526. msm_routing_put_voice_mixer),
  11527. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11529. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11530. msm_routing_put_voice_mixer),
  11531. };
  11532. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  11533. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11535. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11536. msm_routing_put_voice_mixer),
  11537. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11539. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11540. msm_routing_put_voice_mixer),
  11541. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11543. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11544. msm_routing_put_voice_mixer),
  11545. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11547. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11548. msm_routing_put_voice_mixer),
  11549. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11551. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11552. msm_routing_put_voice_mixer),
  11553. };
  11554. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  11555. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11557. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11558. msm_routing_put_voice_mixer),
  11559. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11561. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11562. msm_routing_put_voice_mixer),
  11563. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11565. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11566. msm_routing_put_voice_mixer),
  11567. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11569. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11570. msm_routing_put_voice_mixer),
  11571. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11573. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11574. msm_routing_put_voice_mixer),
  11575. };
  11576. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  11577. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_AFE_PCM_RX,
  11579. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11580. msm_routing_put_voice_mixer),
  11581. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_AFE_PCM_RX,
  11583. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11584. msm_routing_put_voice_mixer),
  11585. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_AFE_PCM_RX,
  11587. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11588. msm_routing_put_voice_mixer),
  11589. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_AFE_PCM_RX,
  11591. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11592. msm_routing_put_voice_mixer),
  11593. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_AFE_PCM_RX,
  11595. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11596. msm_routing_put_voice_mixer),
  11597. };
  11598. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  11599. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_AUXPCM_RX,
  11601. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11602. msm_routing_put_voice_mixer),
  11603. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_AUXPCM_RX,
  11605. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11606. msm_routing_put_voice_mixer),
  11607. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_AUXPCM_RX,
  11609. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11610. msm_routing_put_voice_mixer),
  11611. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_AUXPCM_RX,
  11613. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11614. msm_routing_put_voice_mixer),
  11615. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_AUXPCM_RX,
  11617. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11618. msm_routing_put_voice_mixer),
  11619. };
  11620. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  11621. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11623. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11624. msm_routing_put_voice_mixer),
  11625. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11627. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11628. msm_routing_put_voice_mixer),
  11629. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11631. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11632. msm_routing_put_voice_mixer),
  11633. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11635. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11636. msm_routing_put_voice_mixer),
  11637. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11639. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11640. msm_routing_put_voice_mixer),
  11641. };
  11642. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  11643. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11645. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11646. msm_routing_put_voice_mixer),
  11647. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11649. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11650. msm_routing_put_voice_mixer),
  11651. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11652. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11653. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11654. msm_routing_put_voice_mixer),
  11655. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11656. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11657. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11658. msm_routing_put_voice_mixer),
  11659. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11660. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11661. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11662. msm_routing_put_voice_mixer),
  11663. };
  11664. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  11665. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11667. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11668. msm_routing_put_voice_mixer),
  11669. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11671. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11672. msm_routing_put_voice_mixer),
  11673. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11675. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11676. msm_routing_put_voice_mixer),
  11677. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11679. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11680. msm_routing_put_voice_mixer),
  11681. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11683. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11684. msm_routing_put_voice_mixer),
  11685. };
  11686. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  11687. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11689. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11690. msm_routing_put_voice_mixer),
  11691. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11693. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11694. msm_routing_put_voice_mixer),
  11695. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11696. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11697. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11698. msm_routing_put_voice_mixer),
  11699. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11701. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11702. msm_routing_put_voice_mixer),
  11703. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11705. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11706. msm_routing_put_voice_mixer),
  11707. };
  11708. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  11709. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_HDMI_RX,
  11711. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11712. msm_routing_put_voice_mixer),
  11713. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_HDMI_RX,
  11715. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11716. msm_routing_put_voice_mixer),
  11717. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_HDMI_RX,
  11719. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11720. msm_routing_put_voice_mixer),
  11721. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_HDMI_RX,
  11723. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11724. msm_routing_put_voice_mixer),
  11725. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_HDMI_RX,
  11727. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11728. msm_routing_put_voice_mixer),
  11729. };
  11730. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  11731. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11733. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11734. msm_routing_put_voice_mixer),
  11735. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11737. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11738. msm_routing_put_voice_mixer),
  11739. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11741. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11742. msm_routing_put_voice_mixer),
  11743. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11745. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11746. msm_routing_put_voice_mixer),
  11747. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11749. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11750. msm_routing_put_voice_mixer),
  11751. };
  11752. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  11753. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11755. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11756. msm_routing_put_voice_mixer),
  11757. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11759. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11760. msm_routing_put_voice_mixer),
  11761. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11763. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11764. msm_routing_put_voice_mixer),
  11765. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11767. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11768. msm_routing_put_voice_mixer),
  11769. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11771. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11772. msm_routing_put_voice_mixer),
  11773. };
  11774. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  11775. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11777. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11778. msm_routing_put_voice_mixer),
  11779. };
  11780. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  11781. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11783. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11784. msm_routing_put_voice_mixer),
  11785. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11787. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11788. msm_routing_put_voice_mixer),
  11789. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11791. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11792. msm_routing_put_voice_mixer),
  11793. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11795. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11796. msm_routing_put_voice_mixer),
  11797. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11799. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11800. msm_routing_put_voice_mixer),
  11801. };
  11802. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  11803. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11805. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11806. msm_routing_put_voice_mixer),
  11807. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11809. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11810. msm_routing_put_voice_mixer),
  11811. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11813. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11814. msm_routing_put_voice_mixer),
  11815. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11817. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11818. msm_routing_put_voice_mixer),
  11819. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11821. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11822. msm_routing_put_voice_mixer),
  11823. };
  11824. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  11825. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11827. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11828. msm_routing_put_voice_mixer),
  11829. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11831. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11832. msm_routing_put_voice_mixer),
  11833. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11835. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11836. msm_routing_put_voice_mixer),
  11837. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11839. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11840. msm_routing_put_voice_mixer),
  11841. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11843. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11844. msm_routing_put_voice_mixer),
  11845. };
  11846. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  11847. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11849. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11850. msm_routing_put_voice_mixer),
  11851. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11853. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11854. msm_routing_put_voice_mixer),
  11855. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11857. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11858. msm_routing_put_voice_mixer),
  11859. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11861. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11862. msm_routing_put_voice_mixer),
  11863. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11865. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11866. msm_routing_put_voice_mixer),
  11867. };
  11868. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  11869. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11870. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11871. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11872. msm_routing_put_voice_mixer),
  11873. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11875. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11876. msm_routing_put_voice_mixer),
  11877. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11879. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11880. msm_routing_put_voice_mixer),
  11881. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11883. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11884. msm_routing_put_voice_mixer),
  11885. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11887. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11888. msm_routing_put_voice_mixer),
  11889. };
  11890. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  11891. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11893. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11894. msm_routing_put_voice_mixer),
  11895. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11897. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11898. msm_routing_put_voice_mixer),
  11899. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11901. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11902. msm_routing_put_voice_mixer),
  11903. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11905. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11906. msm_routing_put_voice_mixer),
  11907. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11909. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11910. msm_routing_put_voice_mixer),
  11911. };
  11912. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  11913. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11915. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11916. msm_routing_put_voice_mixer),
  11917. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11919. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11920. msm_routing_put_voice_mixer),
  11921. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11923. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11924. msm_routing_put_voice_mixer),
  11925. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11927. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11928. msm_routing_put_voice_mixer),
  11929. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11931. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11932. msm_routing_put_voice_mixer),
  11933. };
  11934. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  11935. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11937. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11938. msm_routing_put_voice_mixer),
  11939. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11941. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11942. msm_routing_put_voice_mixer),
  11943. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11945. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11946. msm_routing_put_voice_mixer),
  11947. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11949. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11950. msm_routing_put_voice_mixer),
  11951. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11953. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11954. msm_routing_put_voice_mixer),
  11955. };
  11956. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  11957. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11959. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11960. msm_routing_put_voice_mixer),
  11961. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11963. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11964. msm_routing_put_voice_mixer),
  11965. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11967. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11968. msm_routing_put_voice_mixer),
  11969. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11971. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11972. msm_routing_put_voice_mixer),
  11973. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11975. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11976. msm_routing_put_voice_mixer),
  11977. };
  11978. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  11979. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11981. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11982. msm_routing_put_voice_mixer),
  11983. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11985. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11986. msm_routing_put_voice_mixer),
  11987. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11989. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11990. msm_routing_put_voice_mixer),
  11991. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11993. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11994. msm_routing_put_voice_mixer),
  11995. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11997. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11998. msm_routing_put_voice_mixer),
  11999. };
  12000. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  12001. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_EXTPROC_RX,
  12003. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12004. msm_routing_put_voice_mixer),
  12005. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_EXTPROC_RX,
  12007. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12008. msm_routing_put_voice_mixer),
  12009. };
  12010. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  12011. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12013. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12014. msm_routing_put_voice_mixer),
  12015. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12017. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12018. msm_routing_put_voice_mixer),
  12019. };
  12020. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  12021. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12023. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12024. msm_routing_put_voice_mixer),
  12025. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12027. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12028. msm_routing_put_voice_mixer),
  12029. };
  12030. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  12031. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_PRI_I2S_TX,
  12033. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12034. msm_routing_put_voice_mixer),
  12035. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_MI2S_TX,
  12037. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12038. msm_routing_put_voice_mixer),
  12039. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12041. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12042. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  12043. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12044. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12045. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12047. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12048. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12049. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12050. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12051. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12053. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12054. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12055. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12056. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12057. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12059. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12060. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12061. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12062. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12063. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  12064. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12065. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12066. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12068. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12069. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12071. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12072. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  12073. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12074. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12075. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12077. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12078. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  12079. MSM_BACKEND_DAI_USB_TX,
  12080. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12081. msm_routing_put_voice_mixer),
  12082. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  12083. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12084. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12085. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12087. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12088. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12089. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12090. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12091. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12093. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12094. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12095. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12096. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12097. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  12099. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12100. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  12101. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  12102. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12103. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  12105. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12106. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  12108. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12109. };
  12110. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  12111. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_PRI_I2S_TX,
  12113. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12114. msm_routing_put_voice_mixer),
  12115. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_MI2S_TX,
  12117. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12118. msm_routing_put_voice_mixer),
  12119. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12121. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12122. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  12123. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12124. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12125. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12127. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12128. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12129. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12130. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12131. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12133. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12134. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12135. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12136. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12137. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12139. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12140. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12141. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12142. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12143. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12145. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12146. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12148. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12149. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12151. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12152. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  12153. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12154. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12155. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12157. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12158. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  12159. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12160. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12161. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12163. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12164. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12165. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12166. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12169. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12170. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12171. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12172. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12173. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  12175. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12176. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  12177. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  12178. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12179. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  12181. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12182. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  12184. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12185. };
  12186. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  12187. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_PRI_I2S_TX,
  12189. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12190. msm_routing_put_voice_mixer),
  12191. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_MI2S_TX,
  12193. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12194. msm_routing_put_voice_mixer),
  12195. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12197. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12198. msm_routing_put_voice_mixer),
  12199. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12201. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12202. msm_routing_put_voice_mixer),
  12203. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_AFE_PCM_TX,
  12205. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12206. msm_routing_put_voice_mixer),
  12207. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_AUXPCM_TX,
  12209. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12210. msm_routing_put_voice_mixer),
  12211. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12213. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12214. msm_routing_put_voice_mixer),
  12215. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12217. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12218. msm_routing_put_voice_mixer),
  12219. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12221. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12222. msm_routing_put_voice_mixer),
  12223. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12225. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12226. msm_routing_put_voice_mixer),
  12227. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12229. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12230. msm_routing_put_voice_mixer),
  12231. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12233. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12234. msm_routing_put_voice_mixer),
  12235. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12237. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12238. msm_routing_put_voice_mixer),
  12239. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12241. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12242. msm_routing_put_voice_mixer),
  12243. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12245. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12246. msm_routing_put_voice_mixer),
  12247. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_USB_TX,
  12249. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12250. msm_routing_put_voice_mixer),
  12251. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12252. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12253. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12254. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12255. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12256. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12257. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12259. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12260. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12262. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12263. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  12265. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12266. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  12267. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  12268. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12269. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  12271. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12272. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  12273. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  12274. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12275. };
  12276. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  12277. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_EXTPROC_TX,
  12279. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12280. msm_routing_put_voice_stub_mixer),
  12281. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12283. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12284. msm_routing_put_voice_stub_mixer),
  12285. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12287. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12288. msm_routing_put_voice_stub_mixer),
  12289. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12291. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12292. msm_routing_put_voice_stub_mixer),
  12293. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_MI2S_TX,
  12295. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12296. msm_routing_put_voice_stub_mixer),
  12297. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12299. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12300. msm_routing_put_voice_stub_mixer),
  12301. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12303. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12304. msm_routing_put_voice_stub_mixer),
  12305. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12307. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12308. msm_routing_put_voice_stub_mixer),
  12309. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12311. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12312. msm_routing_put_voice_stub_mixer),
  12313. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_AUXPCM_TX,
  12315. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12316. msm_routing_put_voice_stub_mixer),
  12317. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12319. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12320. msm_routing_put_voice_stub_mixer),
  12321. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12323. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12324. msm_routing_put_voice_stub_mixer),
  12325. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12327. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12328. msm_routing_put_voice_stub_mixer),
  12329. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12331. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12332. msm_routing_put_voice_stub_mixer),
  12333. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12335. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12336. msm_routing_put_voice_stub_mixer),
  12337. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12339. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12340. msm_routing_put_voice_stub_mixer),
  12341. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_AFE_PCM_TX,
  12343. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12344. msm_routing_put_voice_stub_mixer),
  12345. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12347. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12348. msm_routing_put_voice_stub_mixer),
  12349. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12351. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12352. msm_routing_put_voice_stub_mixer),
  12353. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12355. 1, 0, msm_routing_get_voice_stub_mixer,
  12356. msm_routing_put_voice_stub_mixer),
  12357. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12359. 1, 0, msm_routing_get_voice_stub_mixer,
  12360. msm_routing_put_voice_stub_mixer),
  12361. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12363. 1, 0, msm_routing_get_voice_stub_mixer,
  12364. msm_routing_put_voice_stub_mixer),
  12365. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12367. 1, 0, msm_routing_get_voice_stub_mixer,
  12368. msm_routing_put_voice_stub_mixer),
  12369. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  12371. 1, 0, msm_routing_get_voice_stub_mixer,
  12372. msm_routing_put_voice_stub_mixer),
  12373. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  12375. 1, 0, msm_routing_get_voice_stub_mixer,
  12376. msm_routing_put_voice_stub_mixer),
  12377. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  12379. 1, 0, msm_routing_get_voice_stub_mixer,
  12380. msm_routing_put_voice_stub_mixer),
  12381. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  12383. 1, 0, msm_routing_get_voice_stub_mixer,
  12384. msm_routing_put_voice_stub_mixer),
  12385. };
  12386. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  12387. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_EXTPROC_TX,
  12389. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12390. msm_routing_put_voice_stub_mixer),
  12391. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12393. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12394. msm_routing_put_voice_stub_mixer),
  12395. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12397. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12398. msm_routing_put_voice_stub_mixer),
  12399. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_AUXPCM_TX,
  12401. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12402. msm_routing_put_voice_stub_mixer),
  12403. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12405. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12406. msm_routing_put_voice_stub_mixer),
  12407. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12409. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12410. msm_routing_put_voice_stub_mixer),
  12411. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12413. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12414. msm_routing_put_voice_stub_mixer),
  12415. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12417. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12418. msm_routing_put_voice_stub_mixer),
  12419. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12421. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12422. msm_routing_put_voice_stub_mixer),
  12423. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12425. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12426. msm_routing_put_voice_stub_mixer),
  12427. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_AFE_PCM_TX,
  12429. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12430. msm_routing_put_voice_stub_mixer),
  12431. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12433. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12434. msm_routing_put_voice_stub_mixer),
  12435. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12437. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12438. msm_routing_put_voice_stub_mixer),
  12439. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12441. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12442. msm_routing_put_voice_stub_mixer),
  12443. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12445. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12446. msm_routing_put_voice_stub_mixer),
  12447. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12449. 1, 0, msm_routing_get_voice_stub_mixer,
  12450. msm_routing_put_voice_stub_mixer),
  12451. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12453. 1, 0, msm_routing_get_voice_stub_mixer,
  12454. msm_routing_put_voice_stub_mixer),
  12455. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12457. 1, 0, msm_routing_get_voice_stub_mixer,
  12458. msm_routing_put_voice_stub_mixer),
  12459. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12461. 1, 0, msm_routing_get_voice_stub_mixer,
  12462. msm_routing_put_voice_stub_mixer),
  12463. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  12465. 1, 0, msm_routing_get_voice_stub_mixer,
  12466. msm_routing_put_voice_stub_mixer),
  12467. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  12469. 1, 0, msm_routing_get_voice_stub_mixer,
  12470. msm_routing_put_voice_stub_mixer),
  12471. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  12473. 1, 0, msm_routing_get_voice_stub_mixer,
  12474. msm_routing_put_voice_stub_mixer),
  12475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  12477. 1, 0, msm_routing_get_voice_stub_mixer,
  12478. msm_routing_put_voice_stub_mixer),
  12479. };
  12480. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  12481. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_EXTPROC_TX,
  12483. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12484. msm_routing_put_voice_stub_mixer),
  12485. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12487. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12488. msm_routing_put_voice_stub_mixer),
  12489. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12491. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12492. msm_routing_put_voice_stub_mixer),
  12493. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_AUXPCM_TX,
  12495. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12496. msm_routing_put_voice_stub_mixer),
  12497. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12499. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12500. msm_routing_put_voice_stub_mixer),
  12501. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12503. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12504. msm_routing_put_voice_stub_mixer),
  12505. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12507. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12508. msm_routing_put_voice_stub_mixer),
  12509. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12511. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12512. msm_routing_put_voice_stub_mixer),
  12513. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12515. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12516. msm_routing_put_voice_stub_mixer),
  12517. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12519. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12520. msm_routing_put_voice_stub_mixer),
  12521. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_AFE_PCM_TX,
  12523. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12524. msm_routing_put_voice_stub_mixer),
  12525. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12527. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12528. msm_routing_put_voice_stub_mixer),
  12529. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12531. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12532. msm_routing_put_voice_stub_mixer),
  12533. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12535. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12536. msm_routing_put_voice_stub_mixer),
  12537. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12539. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12540. msm_routing_put_voice_stub_mixer),
  12541. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12543. 1, 0, msm_routing_get_voice_stub_mixer,
  12544. msm_routing_put_voice_stub_mixer),
  12545. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12547. 1, 0, msm_routing_get_voice_stub_mixer,
  12548. msm_routing_put_voice_stub_mixer),
  12549. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12551. 1, 0, msm_routing_get_voice_stub_mixer,
  12552. msm_routing_put_voice_stub_mixer),
  12553. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12555. 1, 0, msm_routing_get_voice_stub_mixer,
  12556. msm_routing_put_voice_stub_mixer),
  12557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  12559. 1, 0, msm_routing_get_voice_stub_mixer,
  12560. msm_routing_put_voice_stub_mixer),
  12561. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  12563. 1, 0, msm_routing_get_voice_stub_mixer,
  12564. msm_routing_put_voice_stub_mixer),
  12565. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  12567. 1, 0, msm_routing_get_voice_stub_mixer,
  12568. msm_routing_put_voice_stub_mixer),
  12569. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  12571. 1, 0, msm_routing_get_voice_stub_mixer,
  12572. msm_routing_put_voice_stub_mixer),
  12573. };
  12574. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  12575. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_PRI_I2S_TX,
  12577. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12578. msm_routing_put_voice_mixer),
  12579. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12581. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12582. msm_routing_put_voice_mixer),
  12583. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12585. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  12586. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12587. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_AFE_PCM_TX,
  12589. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12590. msm_routing_put_voice_mixer),
  12591. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_AUXPCM_TX,
  12593. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12594. msm_routing_put_voice_mixer),
  12595. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12597. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12598. msm_routing_put_voice_mixer),
  12599. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12601. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12602. msm_routing_put_voice_mixer),
  12603. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12605. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12606. msm_routing_put_voice_mixer),
  12607. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12609. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12610. msm_routing_put_voice_mixer),
  12611. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_MI2S_TX,
  12613. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12614. msm_routing_put_voice_mixer),
  12615. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12617. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12618. msm_routing_put_voice_mixer),
  12619. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12621. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12622. msm_routing_put_voice_mixer),
  12623. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12625. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12626. msm_routing_put_voice_mixer),
  12627. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12629. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12630. msm_routing_put_voice_mixer),
  12631. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12633. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12634. msm_routing_put_voice_mixer),
  12635. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_USB_TX,
  12637. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12638. msm_routing_put_voice_mixer),
  12639. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  12641. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12642. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  12643. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  12644. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12645. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  12647. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  12649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  12650. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12651. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  12653. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12654. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  12655. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  12656. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12657. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  12658. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  12659. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12660. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  12661. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  12662. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12663. };
  12664. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  12665. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12667. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12668. msm_routing_put_port_mixer),
  12669. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12671. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12672. msm_routing_put_port_mixer),
  12673. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12675. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12676. msm_routing_put_port_mixer),
  12677. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12679. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12680. msm_routing_put_port_mixer),
  12681. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12683. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12684. msm_routing_put_port_mixer),
  12685. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12687. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12688. msm_routing_put_port_mixer),
  12689. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12691. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12692. msm_routing_put_port_mixer),
  12693. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12695. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12696. msm_routing_put_port_mixer),
  12697. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12699. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12700. msm_routing_put_port_mixer),
  12701. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12703. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12704. msm_routing_put_port_mixer),
  12705. };
  12706. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  12707. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12709. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12710. msm_routing_put_port_mixer),
  12711. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12713. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12714. msm_routing_put_port_mixer),
  12715. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12717. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12718. msm_routing_put_port_mixer),
  12719. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12721. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12722. msm_routing_put_port_mixer),
  12723. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12725. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12726. msm_routing_put_port_mixer),
  12727. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12729. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12730. msm_routing_put_port_mixer),
  12731. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12733. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12734. msm_routing_put_port_mixer),
  12735. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12737. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12738. msm_routing_put_port_mixer),
  12739. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12741. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12742. msm_routing_put_port_mixer),
  12743. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12745. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12746. msm_routing_put_port_mixer),
  12747. };
  12748. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  12749. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12751. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12752. msm_routing_put_port_mixer),
  12753. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12755. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12756. msm_routing_put_port_mixer),
  12757. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12759. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12760. msm_routing_put_port_mixer),
  12761. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12763. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12764. msm_routing_put_port_mixer),
  12765. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12767. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12768. msm_routing_put_port_mixer),
  12769. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12771. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12772. msm_routing_put_port_mixer),
  12773. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12775. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12776. msm_routing_put_port_mixer),
  12777. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12779. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12780. msm_routing_put_port_mixer),
  12781. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12783. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12784. msm_routing_put_port_mixer),
  12785. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12787. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12788. msm_routing_put_port_mixer),
  12789. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12791. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12792. msm_routing_put_port_mixer),
  12793. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12795. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12796. msm_routing_put_port_mixer),
  12797. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12799. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12800. msm_routing_put_port_mixer),
  12801. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12803. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12804. msm_routing_put_port_mixer),
  12805. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12807. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12808. msm_routing_put_port_mixer),
  12809. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12811. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12812. msm_routing_put_port_mixer),
  12813. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12815. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12816. msm_routing_put_port_mixer),
  12817. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12819. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12820. msm_routing_put_port_mixer),
  12821. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12823. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12824. msm_routing_put_port_mixer),
  12825. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12827. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12828. msm_routing_put_port_mixer),
  12829. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12831. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12832. msm_routing_put_port_mixer),
  12833. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12835. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12836. msm_routing_put_port_mixer),
  12837. };
  12838. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  12839. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_AUXPCM_RX,
  12841. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12842. msm_routing_put_port_mixer),
  12843. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_AUXPCM_RX,
  12845. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12846. msm_routing_put_port_mixer),
  12847. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_AUXPCM_RX,
  12849. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12850. msm_routing_put_port_mixer),
  12851. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_AUXPCM_RX,
  12853. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12854. msm_routing_put_port_mixer),
  12855. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_AUXPCM_RX,
  12857. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  12858. msm_routing_put_port_mixer),
  12859. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_AUXPCM_RX,
  12861. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12862. msm_routing_put_port_mixer),
  12863. };
  12864. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  12865. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12867. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12868. msm_routing_put_port_mixer),
  12869. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12871. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12872. msm_routing_put_port_mixer),
  12873. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12875. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12876. msm_routing_put_port_mixer),
  12877. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12879. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12880. msm_routing_put_port_mixer),
  12881. };
  12882. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  12883. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12884. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12885. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12886. msm_routing_put_port_mixer),
  12887. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12889. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12890. msm_routing_put_port_mixer),
  12891. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12892. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12893. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12894. msm_routing_put_port_mixer),
  12895. };
  12896. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  12897. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12899. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12900. msm_routing_put_port_mixer),
  12901. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12903. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12904. msm_routing_put_port_mixer),
  12905. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12907. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12908. msm_routing_put_port_mixer),
  12909. };
  12910. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  12911. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12913. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12914. msm_routing_put_port_mixer),
  12915. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12916. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12917. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12918. msm_routing_put_port_mixer),
  12919. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12920. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12921. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12922. msm_routing_put_port_mixer),
  12923. };
  12924. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  12925. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12927. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12928. msm_routing_put_port_mixer),
  12929. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12931. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  12932. msm_routing_put_port_mixer),
  12933. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12935. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12936. msm_routing_put_port_mixer),
  12937. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12939. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12940. msm_routing_put_port_mixer),
  12941. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12943. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12944. msm_routing_put_port_mixer),
  12945. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12947. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12948. msm_routing_put_port_mixer),
  12949. };
  12950. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  12951. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12953. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  12954. msm_routing_put_port_mixer),
  12955. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12957. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12958. msm_routing_put_port_mixer),
  12959. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12961. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  12962. msm_routing_put_port_mixer),
  12963. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12965. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  12966. msm_routing_put_port_mixer),
  12967. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12969. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  12970. msm_routing_put_port_mixer),
  12971. };
  12972. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  12973. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12975. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12976. msm_routing_put_port_mixer),
  12977. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12979. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12980. msm_routing_put_port_mixer),
  12981. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12983. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12984. msm_routing_put_port_mixer),
  12985. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12987. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12988. msm_routing_put_port_mixer),
  12989. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12991. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12992. msm_routing_put_port_mixer),
  12993. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12995. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12996. msm_routing_put_port_mixer),
  12997. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12999. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13000. msm_routing_put_port_mixer),
  13001. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13002. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13003. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13004. msm_routing_put_port_mixer),
  13005. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13006. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13007. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13008. msm_routing_put_port_mixer),
  13009. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13011. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13012. msm_routing_put_port_mixer),
  13013. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13015. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13016. msm_routing_put_port_mixer),
  13017. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13019. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13020. msm_routing_put_port_mixer),
  13021. };
  13022. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  13023. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13025. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13026. msm_routing_put_port_mixer),
  13027. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13029. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13030. msm_routing_put_port_mixer),
  13031. };
  13032. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  13033. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_AFE_PCM_RX,
  13035. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13036. msm_routing_put_port_mixer),
  13037. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_AFE_PCM_RX,
  13039. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13040. msm_routing_put_port_mixer),
  13041. };
  13042. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  13043. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_HDMI_RX,
  13045. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13046. msm_routing_put_port_mixer),
  13047. };
  13048. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  13049. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13051. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13052. msm_routing_put_port_mixer),
  13053. };
  13054. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  13055. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13057. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13058. msm_routing_put_port_mixer),
  13059. };
  13060. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  13061. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_SEC_I2S_RX,
  13063. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13064. msm_routing_put_port_mixer),
  13065. };
  13066. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  13067. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_MI2S_RX,
  13069. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13070. msm_routing_put_port_mixer),
  13071. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_MI2S_RX,
  13073. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13074. msm_routing_put_port_mixer),
  13075. };
  13076. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  13077. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13078. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13079. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13080. msm_routing_put_port_mixer),
  13081. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13083. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13084. msm_routing_put_port_mixer),
  13085. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13087. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13088. msm_routing_put_port_mixer),
  13089. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13091. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13092. msm_routing_put_port_mixer),
  13093. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13095. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13096. msm_routing_put_port_mixer),
  13097. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13099. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13100. msm_routing_put_port_mixer),
  13101. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13103. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13104. msm_routing_put_port_mixer),
  13105. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13107. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13108. msm_routing_put_port_mixer),
  13109. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13111. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13112. msm_routing_put_port_mixer),
  13113. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13115. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13116. msm_routing_put_port_mixer),
  13117. };
  13118. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  13119. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_USB_RX,
  13121. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  13122. msm_routing_put_port_mixer),
  13123. };
  13124. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  13125. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13127. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13128. msm_routing_put_port_mixer),
  13129. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13131. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13132. msm_routing_put_port_mixer),
  13133. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13135. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13136. msm_routing_put_port_mixer),
  13137. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13139. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13140. msm_routing_put_port_mixer),
  13141. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13143. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13144. msm_routing_put_port_mixer),
  13145. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13147. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13148. msm_routing_put_port_mixer),
  13149. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13151. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13152. msm_routing_put_port_mixer),
  13153. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13155. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13156. msm_routing_put_port_mixer),
  13157. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13159. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13160. msm_routing_put_port_mixer),
  13161. };
  13162. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  13163. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13165. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13166. msm_routing_put_port_mixer),
  13167. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13168. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13169. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13170. msm_routing_put_port_mixer),
  13171. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13173. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13174. msm_routing_put_port_mixer),
  13175. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13177. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13178. msm_routing_put_port_mixer),
  13179. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13181. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13182. msm_routing_put_port_mixer),
  13183. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13185. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13186. msm_routing_put_port_mixer),
  13187. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13189. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13190. msm_routing_put_port_mixer),
  13191. };
  13192. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  13193. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13195. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13196. msm_routing_get_port_mixer,
  13197. msm_routing_put_port_mixer),
  13198. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13199. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13200. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13201. msm_routing_get_port_mixer,
  13202. msm_routing_put_port_mixer),
  13203. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13204. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13205. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13206. msm_routing_get_port_mixer,
  13207. msm_routing_put_port_mixer),
  13208. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13210. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13211. msm_routing_get_port_mixer,
  13212. msm_routing_put_port_mixer),
  13213. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13215. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13216. msm_routing_get_port_mixer,
  13217. msm_routing_put_port_mixer),
  13218. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13219. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13220. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13221. msm_routing_get_port_mixer,
  13222. msm_routing_put_port_mixer),
  13223. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13224. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13225. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13226. msm_routing_get_port_mixer,
  13227. msm_routing_put_port_mixer),
  13228. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13230. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13231. msm_routing_get_port_mixer,
  13232. msm_routing_put_port_mixer),
  13233. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13235. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13236. msm_routing_get_port_mixer,
  13237. msm_routing_put_port_mixer),
  13238. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13239. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13240. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13241. msm_routing_get_port_mixer,
  13242. msm_routing_put_port_mixer),
  13243. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13245. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13246. msm_routing_get_port_mixer,
  13247. msm_routing_put_port_mixer),
  13248. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13250. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13251. msm_routing_get_port_mixer,
  13252. msm_routing_put_port_mixer),
  13253. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13255. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13256. msm_routing_get_port_mixer,
  13257. msm_routing_put_port_mixer),
  13258. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13259. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13260. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13261. msm_routing_get_port_mixer,
  13262. msm_routing_put_port_mixer),
  13263. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13265. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13266. msm_routing_get_port_mixer,
  13267. msm_routing_put_port_mixer),
  13268. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13270. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13271. msm_routing_get_port_mixer,
  13272. msm_routing_put_port_mixer),
  13273. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13275. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13276. msm_routing_get_port_mixer,
  13277. msm_routing_put_port_mixer),
  13278. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13279. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13280. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13281. msm_routing_get_port_mixer,
  13282. msm_routing_put_port_mixer),
  13283. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13285. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13286. msm_routing_get_port_mixer,
  13287. msm_routing_put_port_mixer),
  13288. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13290. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13291. msm_routing_get_port_mixer,
  13292. msm_routing_put_port_mixer),
  13293. };
  13294. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  13295. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13297. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13298. msm_routing_get_port_mixer,
  13299. msm_routing_put_port_mixer),
  13300. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13302. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13303. msm_routing_get_port_mixer,
  13304. msm_routing_put_port_mixer),
  13305. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13307. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13308. msm_routing_get_port_mixer,
  13309. msm_routing_put_port_mixer),
  13310. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13311. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13312. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13313. msm_routing_get_port_mixer,
  13314. msm_routing_put_port_mixer),
  13315. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13317. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13318. msm_routing_get_port_mixer,
  13319. msm_routing_put_port_mixer),
  13320. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13322. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13323. msm_routing_get_port_mixer,
  13324. msm_routing_put_port_mixer),
  13325. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13327. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13328. msm_routing_get_port_mixer,
  13329. msm_routing_put_port_mixer),
  13330. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13331. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13332. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13333. msm_routing_get_port_mixer,
  13334. msm_routing_put_port_mixer),
  13335. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13337. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13338. msm_routing_get_port_mixer,
  13339. msm_routing_put_port_mixer),
  13340. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13341. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13342. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13343. msm_routing_get_port_mixer,
  13344. msm_routing_put_port_mixer),
  13345. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13347. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13348. msm_routing_get_port_mixer,
  13349. msm_routing_put_port_mixer),
  13350. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13351. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13352. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13353. msm_routing_get_port_mixer,
  13354. msm_routing_put_port_mixer),
  13355. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13357. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13358. msm_routing_get_port_mixer,
  13359. msm_routing_put_port_mixer),
  13360. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13362. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13363. msm_routing_get_port_mixer,
  13364. msm_routing_put_port_mixer),
  13365. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13367. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13368. msm_routing_get_port_mixer,
  13369. msm_routing_put_port_mixer),
  13370. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13371. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13372. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13373. msm_routing_get_port_mixer,
  13374. msm_routing_put_port_mixer),
  13375. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13377. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13378. msm_routing_get_port_mixer,
  13379. msm_routing_put_port_mixer),
  13380. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13381. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13382. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13383. msm_routing_get_port_mixer,
  13384. msm_routing_put_port_mixer),
  13385. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13386. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13387. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13388. msm_routing_get_port_mixer,
  13389. msm_routing_put_port_mixer),
  13390. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13391. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13392. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13393. msm_routing_get_port_mixer,
  13394. msm_routing_put_port_mixer),
  13395. };
  13396. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  13397. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13398. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13399. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13400. msm_routing_get_port_mixer,
  13401. msm_routing_put_port_mixer),
  13402. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13403. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13404. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13405. msm_routing_get_port_mixer,
  13406. msm_routing_put_port_mixer),
  13407. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13409. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13410. msm_routing_get_port_mixer,
  13411. msm_routing_put_port_mixer),
  13412. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13413. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13414. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13415. msm_routing_get_port_mixer,
  13416. msm_routing_put_port_mixer),
  13417. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13419. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13420. msm_routing_get_port_mixer,
  13421. msm_routing_put_port_mixer),
  13422. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13423. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13424. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13425. msm_routing_get_port_mixer,
  13426. msm_routing_put_port_mixer),
  13427. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13429. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13430. msm_routing_get_port_mixer,
  13431. msm_routing_put_port_mixer),
  13432. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13433. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13434. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13435. msm_routing_get_port_mixer,
  13436. msm_routing_put_port_mixer),
  13437. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13438. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13439. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13440. msm_routing_get_port_mixer,
  13441. msm_routing_put_port_mixer),
  13442. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13444. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13445. msm_routing_get_port_mixer,
  13446. msm_routing_put_port_mixer),
  13447. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13449. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13450. msm_routing_get_port_mixer,
  13451. msm_routing_put_port_mixer),
  13452. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13453. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13454. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13455. msm_routing_get_port_mixer,
  13456. msm_routing_put_port_mixer),
  13457. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13459. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13460. msm_routing_get_port_mixer,
  13461. msm_routing_put_port_mixer),
  13462. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13463. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13464. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13465. msm_routing_get_port_mixer,
  13466. msm_routing_put_port_mixer),
  13467. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13469. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13470. msm_routing_get_port_mixer,
  13471. msm_routing_put_port_mixer),
  13472. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13473. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13474. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13475. msm_routing_get_port_mixer,
  13476. msm_routing_put_port_mixer),
  13477. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13478. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13479. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13480. msm_routing_get_port_mixer,
  13481. msm_routing_put_port_mixer),
  13482. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13483. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13484. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13485. msm_routing_get_port_mixer,
  13486. msm_routing_put_port_mixer),
  13487. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13489. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13490. msm_routing_get_port_mixer,
  13491. msm_routing_put_port_mixer),
  13492. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13493. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13494. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13495. msm_routing_get_port_mixer,
  13496. msm_routing_put_port_mixer),
  13497. };
  13498. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  13499. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13501. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13502. msm_routing_get_port_mixer,
  13503. msm_routing_put_port_mixer),
  13504. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13505. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13506. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13507. msm_routing_get_port_mixer,
  13508. msm_routing_put_port_mixer),
  13509. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13511. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13512. msm_routing_get_port_mixer,
  13513. msm_routing_put_port_mixer),
  13514. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13515. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13516. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13517. msm_routing_get_port_mixer,
  13518. msm_routing_put_port_mixer),
  13519. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13521. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13522. msm_routing_get_port_mixer,
  13523. msm_routing_put_port_mixer),
  13524. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13525. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13526. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13527. msm_routing_get_port_mixer,
  13528. msm_routing_put_port_mixer),
  13529. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13531. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13532. msm_routing_get_port_mixer,
  13533. msm_routing_put_port_mixer),
  13534. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13536. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13537. msm_routing_get_port_mixer,
  13538. msm_routing_put_port_mixer),
  13539. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13541. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13542. msm_routing_get_port_mixer,
  13543. msm_routing_put_port_mixer),
  13544. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13545. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13546. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13547. msm_routing_get_port_mixer,
  13548. msm_routing_put_port_mixer),
  13549. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13550. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13551. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13552. msm_routing_get_port_mixer,
  13553. msm_routing_put_port_mixer),
  13554. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13555. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13556. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13557. msm_routing_get_port_mixer,
  13558. msm_routing_put_port_mixer),
  13559. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13561. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13562. msm_routing_get_port_mixer,
  13563. msm_routing_put_port_mixer),
  13564. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13565. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13566. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13567. msm_routing_get_port_mixer,
  13568. msm_routing_put_port_mixer),
  13569. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13570. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13571. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13572. msm_routing_get_port_mixer,
  13573. msm_routing_put_port_mixer),
  13574. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13575. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13576. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13577. msm_routing_get_port_mixer,
  13578. msm_routing_put_port_mixer),
  13579. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13581. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13582. msm_routing_get_port_mixer,
  13583. msm_routing_put_port_mixer),
  13584. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13585. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13586. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13587. msm_routing_get_port_mixer,
  13588. msm_routing_put_port_mixer),
  13589. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13590. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13591. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13592. msm_routing_get_port_mixer,
  13593. msm_routing_put_port_mixer),
  13594. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13595. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13596. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13597. msm_routing_get_port_mixer,
  13598. msm_routing_put_port_mixer),
  13599. };
  13600. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  13601. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13602. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13603. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13604. msm_routing_get_port_mixer,
  13605. msm_routing_put_port_mixer),
  13606. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13607. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13608. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13609. msm_routing_get_port_mixer,
  13610. msm_routing_put_port_mixer),
  13611. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13613. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13614. msm_routing_get_port_mixer,
  13615. msm_routing_put_port_mixer),
  13616. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13617. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13618. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13619. msm_routing_get_port_mixer,
  13620. msm_routing_put_port_mixer),
  13621. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13623. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13624. msm_routing_get_port_mixer,
  13625. msm_routing_put_port_mixer),
  13626. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13627. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13628. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13629. msm_routing_get_port_mixer,
  13630. msm_routing_put_port_mixer),
  13631. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13633. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13634. msm_routing_get_port_mixer,
  13635. msm_routing_put_port_mixer),
  13636. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13638. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13639. msm_routing_get_port_mixer,
  13640. msm_routing_put_port_mixer),
  13641. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13643. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13644. msm_routing_get_port_mixer,
  13645. msm_routing_put_port_mixer),
  13646. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13647. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13648. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13649. msm_routing_get_port_mixer,
  13650. msm_routing_put_port_mixer),
  13651. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13653. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13654. msm_routing_get_port_mixer,
  13655. msm_routing_put_port_mixer),
  13656. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13657. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13658. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13659. msm_routing_get_port_mixer,
  13660. msm_routing_put_port_mixer),
  13661. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13663. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13664. msm_routing_get_port_mixer,
  13665. msm_routing_put_port_mixer),
  13666. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13667. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13668. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13669. msm_routing_get_port_mixer,
  13670. msm_routing_put_port_mixer),
  13671. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13673. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13674. msm_routing_get_port_mixer,
  13675. msm_routing_put_port_mixer),
  13676. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13677. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13678. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13679. msm_routing_get_port_mixer,
  13680. msm_routing_put_port_mixer),
  13681. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13683. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13684. msm_routing_get_port_mixer,
  13685. msm_routing_put_port_mixer),
  13686. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13687. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13688. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13689. msm_routing_get_port_mixer,
  13690. msm_routing_put_port_mixer),
  13691. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13693. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13694. msm_routing_get_port_mixer,
  13695. msm_routing_put_port_mixer),
  13696. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13697. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13698. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13699. msm_routing_get_port_mixer,
  13700. msm_routing_put_port_mixer),
  13701. };
  13702. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  13703. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13705. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13706. msm_routing_get_port_mixer,
  13707. msm_routing_put_port_mixer),
  13708. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13709. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13710. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13711. msm_routing_get_port_mixer,
  13712. msm_routing_put_port_mixer),
  13713. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13715. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13716. msm_routing_get_port_mixer,
  13717. msm_routing_put_port_mixer),
  13718. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13719. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13720. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13721. msm_routing_get_port_mixer,
  13722. msm_routing_put_port_mixer),
  13723. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13725. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13726. msm_routing_get_port_mixer,
  13727. msm_routing_put_port_mixer),
  13728. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13730. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13731. msm_routing_get_port_mixer,
  13732. msm_routing_put_port_mixer),
  13733. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13735. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13736. msm_routing_get_port_mixer,
  13737. msm_routing_put_port_mixer),
  13738. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13739. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13740. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13741. msm_routing_get_port_mixer,
  13742. msm_routing_put_port_mixer),
  13743. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13744. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13745. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13746. msm_routing_get_port_mixer,
  13747. msm_routing_put_port_mixer),
  13748. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13749. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13750. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13751. msm_routing_get_port_mixer,
  13752. msm_routing_put_port_mixer),
  13753. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13755. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13756. msm_routing_get_port_mixer,
  13757. msm_routing_put_port_mixer),
  13758. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13759. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13760. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13761. msm_routing_get_port_mixer,
  13762. msm_routing_put_port_mixer),
  13763. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13765. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13766. msm_routing_get_port_mixer,
  13767. msm_routing_put_port_mixer),
  13768. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13769. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13770. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13771. msm_routing_get_port_mixer,
  13772. msm_routing_put_port_mixer),
  13773. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13775. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13776. msm_routing_get_port_mixer,
  13777. msm_routing_put_port_mixer),
  13778. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13780. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13781. msm_routing_get_port_mixer,
  13782. msm_routing_put_port_mixer),
  13783. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13785. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13786. msm_routing_get_port_mixer,
  13787. msm_routing_put_port_mixer),
  13788. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13789. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13790. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13791. msm_routing_get_port_mixer,
  13792. msm_routing_put_port_mixer),
  13793. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13794. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13795. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13796. msm_routing_get_port_mixer,
  13797. msm_routing_put_port_mixer),
  13798. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13799. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13800. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13801. msm_routing_get_port_mixer,
  13802. msm_routing_put_port_mixer),
  13803. };
  13804. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  13805. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13807. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13808. msm_routing_get_port_mixer,
  13809. msm_routing_put_port_mixer),
  13810. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13811. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13812. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13813. msm_routing_get_port_mixer,
  13814. msm_routing_put_port_mixer),
  13815. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13817. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13818. msm_routing_get_port_mixer,
  13819. msm_routing_put_port_mixer),
  13820. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13822. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13823. msm_routing_get_port_mixer,
  13824. msm_routing_put_port_mixer),
  13825. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13827. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13828. msm_routing_get_port_mixer,
  13829. msm_routing_put_port_mixer),
  13830. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13832. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13833. msm_routing_get_port_mixer,
  13834. msm_routing_put_port_mixer),
  13835. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13837. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13838. msm_routing_get_port_mixer,
  13839. msm_routing_put_port_mixer),
  13840. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13841. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13842. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13843. msm_routing_get_port_mixer,
  13844. msm_routing_put_port_mixer),
  13845. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13847. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13848. msm_routing_get_port_mixer,
  13849. msm_routing_put_port_mixer),
  13850. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13851. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13852. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13853. msm_routing_get_port_mixer,
  13854. msm_routing_put_port_mixer),
  13855. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13857. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13858. msm_routing_get_port_mixer,
  13859. msm_routing_put_port_mixer),
  13860. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13861. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13862. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13863. msm_routing_get_port_mixer,
  13864. msm_routing_put_port_mixer),
  13865. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13866. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13867. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13868. msm_routing_get_port_mixer,
  13869. msm_routing_put_port_mixer),
  13870. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13872. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13873. msm_routing_get_port_mixer,
  13874. msm_routing_put_port_mixer),
  13875. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13877. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13878. msm_routing_get_port_mixer,
  13879. msm_routing_put_port_mixer),
  13880. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13881. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13882. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13883. msm_routing_get_port_mixer,
  13884. msm_routing_put_port_mixer),
  13885. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13887. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13888. msm_routing_get_port_mixer,
  13889. msm_routing_put_port_mixer),
  13890. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13891. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13892. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13893. msm_routing_get_port_mixer,
  13894. msm_routing_put_port_mixer),
  13895. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13897. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13898. msm_routing_get_port_mixer,
  13899. msm_routing_put_port_mixer),
  13900. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13901. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13902. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13903. msm_routing_get_port_mixer,
  13904. msm_routing_put_port_mixer),
  13905. };
  13906. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  13907. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13909. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13910. msm_routing_get_port_mixer,
  13911. msm_routing_put_port_mixer),
  13912. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13913. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13914. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13915. msm_routing_get_port_mixer,
  13916. msm_routing_put_port_mixer),
  13917. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13919. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13920. msm_routing_get_port_mixer,
  13921. msm_routing_put_port_mixer),
  13922. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13923. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13924. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13925. msm_routing_get_port_mixer,
  13926. msm_routing_put_port_mixer),
  13927. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13929. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13930. msm_routing_get_port_mixer,
  13931. msm_routing_put_port_mixer),
  13932. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13933. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13934. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13935. msm_routing_get_port_mixer,
  13936. msm_routing_put_port_mixer),
  13937. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13939. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13940. msm_routing_get_port_mixer,
  13941. msm_routing_put_port_mixer),
  13942. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13944. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13945. msm_routing_get_port_mixer,
  13946. msm_routing_put_port_mixer),
  13947. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13949. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13950. msm_routing_get_port_mixer,
  13951. msm_routing_put_port_mixer),
  13952. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13953. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13954. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13955. msm_routing_get_port_mixer,
  13956. msm_routing_put_port_mixer),
  13957. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13959. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13960. msm_routing_get_port_mixer,
  13961. msm_routing_put_port_mixer),
  13962. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13963. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13964. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13965. msm_routing_get_port_mixer,
  13966. msm_routing_put_port_mixer),
  13967. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13969. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13970. msm_routing_get_port_mixer,
  13971. msm_routing_put_port_mixer),
  13972. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13973. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13974. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13975. msm_routing_get_port_mixer,
  13976. msm_routing_put_port_mixer),
  13977. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13978. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13979. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13980. msm_routing_get_port_mixer,
  13981. msm_routing_put_port_mixer),
  13982. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13983. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13984. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13985. msm_routing_get_port_mixer,
  13986. msm_routing_put_port_mixer),
  13987. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13989. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13990. msm_routing_get_port_mixer,
  13991. msm_routing_put_port_mixer),
  13992. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13993. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13994. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13995. msm_routing_get_port_mixer,
  13996. msm_routing_put_port_mixer),
  13997. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13999. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14000. msm_routing_get_port_mixer,
  14001. msm_routing_put_port_mixer),
  14002. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14004. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14005. msm_routing_get_port_mixer,
  14006. msm_routing_put_port_mixer),
  14007. };
  14008. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  14009. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14011. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14012. msm_routing_get_port_mixer,
  14013. msm_routing_put_port_mixer),
  14014. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14015. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14016. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14017. msm_routing_get_port_mixer,
  14018. msm_routing_put_port_mixer),
  14019. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14020. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14021. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14022. msm_routing_get_port_mixer,
  14023. msm_routing_put_port_mixer),
  14024. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14025. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14026. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14027. msm_routing_get_port_mixer,
  14028. msm_routing_put_port_mixer),
  14029. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14031. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14032. msm_routing_get_port_mixer,
  14033. msm_routing_put_port_mixer),
  14034. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14035. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14036. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14037. msm_routing_get_port_mixer,
  14038. msm_routing_put_port_mixer),
  14039. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14040. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14041. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14042. msm_routing_get_port_mixer,
  14043. msm_routing_put_port_mixer),
  14044. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14045. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14046. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14047. msm_routing_get_port_mixer,
  14048. msm_routing_put_port_mixer),
  14049. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14051. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14052. msm_routing_get_port_mixer,
  14053. msm_routing_put_port_mixer),
  14054. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14056. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14057. msm_routing_get_port_mixer,
  14058. msm_routing_put_port_mixer),
  14059. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14060. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14061. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14062. msm_routing_get_port_mixer,
  14063. msm_routing_put_port_mixer),
  14064. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14065. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14066. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14067. msm_routing_get_port_mixer,
  14068. msm_routing_put_port_mixer),
  14069. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14071. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14072. msm_routing_get_port_mixer,
  14073. msm_routing_put_port_mixer),
  14074. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14076. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14077. msm_routing_get_port_mixer,
  14078. msm_routing_put_port_mixer),
  14079. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14080. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14081. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14082. msm_routing_get_port_mixer,
  14083. msm_routing_put_port_mixer),
  14084. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14085. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14086. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14087. msm_routing_get_port_mixer,
  14088. msm_routing_put_port_mixer),
  14089. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14091. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14092. msm_routing_get_port_mixer,
  14093. msm_routing_put_port_mixer),
  14094. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14095. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14096. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14097. msm_routing_get_port_mixer,
  14098. msm_routing_put_port_mixer),
  14099. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14101. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14102. msm_routing_get_port_mixer,
  14103. msm_routing_put_port_mixer),
  14104. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14105. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14106. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14107. msm_routing_get_port_mixer,
  14108. msm_routing_put_port_mixer),
  14109. };
  14110. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  14111. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14113. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14114. msm_routing_get_port_mixer,
  14115. msm_routing_put_port_mixer),
  14116. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14117. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14118. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14119. msm_routing_get_port_mixer,
  14120. msm_routing_put_port_mixer),
  14121. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14123. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14124. msm_routing_get_port_mixer,
  14125. msm_routing_put_port_mixer),
  14126. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14128. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14129. msm_routing_get_port_mixer,
  14130. msm_routing_put_port_mixer),
  14131. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14133. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14134. msm_routing_get_port_mixer,
  14135. msm_routing_put_port_mixer),
  14136. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14137. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14138. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14139. msm_routing_get_port_mixer,
  14140. msm_routing_put_port_mixer),
  14141. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14143. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14144. msm_routing_get_port_mixer,
  14145. msm_routing_put_port_mixer),
  14146. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14147. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14148. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14149. msm_routing_get_port_mixer,
  14150. msm_routing_put_port_mixer),
  14151. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14153. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14154. msm_routing_get_port_mixer,
  14155. msm_routing_put_port_mixer),
  14156. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14157. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14158. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14159. msm_routing_get_port_mixer,
  14160. msm_routing_put_port_mixer),
  14161. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14163. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14164. msm_routing_get_port_mixer,
  14165. msm_routing_put_port_mixer),
  14166. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14168. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14169. msm_routing_get_port_mixer,
  14170. msm_routing_put_port_mixer),
  14171. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14173. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14174. msm_routing_get_port_mixer,
  14175. msm_routing_put_port_mixer),
  14176. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14177. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14178. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14179. msm_routing_get_port_mixer,
  14180. msm_routing_put_port_mixer),
  14181. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14182. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14183. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14184. msm_routing_get_port_mixer,
  14185. msm_routing_put_port_mixer),
  14186. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14187. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14188. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14189. msm_routing_get_port_mixer,
  14190. msm_routing_put_port_mixer),
  14191. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14193. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14194. msm_routing_get_port_mixer,
  14195. msm_routing_put_port_mixer),
  14196. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14197. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14198. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14199. msm_routing_get_port_mixer,
  14200. msm_routing_put_port_mixer),
  14201. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14203. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14204. msm_routing_get_port_mixer,
  14205. msm_routing_put_port_mixer),
  14206. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14207. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14208. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14209. msm_routing_get_port_mixer,
  14210. msm_routing_put_port_mixer),
  14211. };
  14212. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  14213. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14215. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14216. msm_routing_get_port_mixer,
  14217. msm_routing_put_port_mixer),
  14218. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14219. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14220. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14221. msm_routing_get_port_mixer,
  14222. msm_routing_put_port_mixer),
  14223. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14224. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14225. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14226. msm_routing_get_port_mixer,
  14227. msm_routing_put_port_mixer),
  14228. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14229. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14230. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14231. msm_routing_get_port_mixer,
  14232. msm_routing_put_port_mixer),
  14233. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14235. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14236. msm_routing_get_port_mixer,
  14237. msm_routing_put_port_mixer),
  14238. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14239. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14240. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14241. msm_routing_get_port_mixer,
  14242. msm_routing_put_port_mixer),
  14243. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14244. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14245. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14246. msm_routing_get_port_mixer,
  14247. msm_routing_put_port_mixer),
  14248. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14249. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14250. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14251. msm_routing_get_port_mixer,
  14252. msm_routing_put_port_mixer),
  14253. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14255. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14256. msm_routing_get_port_mixer,
  14257. msm_routing_put_port_mixer),
  14258. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14259. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14260. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14261. msm_routing_get_port_mixer,
  14262. msm_routing_put_port_mixer),
  14263. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14265. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14266. msm_routing_get_port_mixer,
  14267. msm_routing_put_port_mixer),
  14268. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14269. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14270. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14271. msm_routing_get_port_mixer,
  14272. msm_routing_put_port_mixer),
  14273. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14275. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14276. msm_routing_get_port_mixer,
  14277. msm_routing_put_port_mixer),
  14278. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14279. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14280. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14281. msm_routing_get_port_mixer,
  14282. msm_routing_put_port_mixer),
  14283. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14285. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14286. msm_routing_get_port_mixer,
  14287. msm_routing_put_port_mixer),
  14288. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14290. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14291. msm_routing_get_port_mixer,
  14292. msm_routing_put_port_mixer),
  14293. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14295. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14296. msm_routing_get_port_mixer,
  14297. msm_routing_put_port_mixer),
  14298. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14299. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14300. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14301. msm_routing_get_port_mixer,
  14302. msm_routing_put_port_mixer),
  14303. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14304. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14305. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14306. msm_routing_get_port_mixer,
  14307. msm_routing_put_port_mixer),
  14308. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14309. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14310. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14311. msm_routing_get_port_mixer,
  14312. msm_routing_put_port_mixer),
  14313. };
  14314. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  14315. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14316. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14317. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14318. msm_routing_get_port_mixer,
  14319. msm_routing_put_port_mixer),
  14320. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14321. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14322. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14323. msm_routing_get_port_mixer,
  14324. msm_routing_put_port_mixer),
  14325. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14326. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14327. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14328. msm_routing_get_port_mixer,
  14329. msm_routing_put_port_mixer),
  14330. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14331. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14332. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14333. msm_routing_get_port_mixer,
  14334. msm_routing_put_port_mixer),
  14335. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14336. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14337. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14338. msm_routing_get_port_mixer,
  14339. msm_routing_put_port_mixer),
  14340. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14341. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14342. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14343. msm_routing_get_port_mixer,
  14344. msm_routing_put_port_mixer),
  14345. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14347. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14348. msm_routing_get_port_mixer,
  14349. msm_routing_put_port_mixer),
  14350. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14351. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14352. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14353. msm_routing_get_port_mixer,
  14354. msm_routing_put_port_mixer),
  14355. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14356. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14357. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14358. msm_routing_get_port_mixer,
  14359. msm_routing_put_port_mixer),
  14360. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14361. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14362. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14363. msm_routing_get_port_mixer,
  14364. msm_routing_put_port_mixer),
  14365. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14367. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14368. msm_routing_get_port_mixer,
  14369. msm_routing_put_port_mixer),
  14370. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14371. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14372. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14373. msm_routing_get_port_mixer,
  14374. msm_routing_put_port_mixer),
  14375. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14377. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14378. msm_routing_get_port_mixer,
  14379. msm_routing_put_port_mixer),
  14380. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14381. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14382. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14383. msm_routing_get_port_mixer,
  14384. msm_routing_put_port_mixer),
  14385. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14386. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14387. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14388. msm_routing_get_port_mixer,
  14389. msm_routing_put_port_mixer),
  14390. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14391. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14392. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14393. msm_routing_get_port_mixer,
  14394. msm_routing_put_port_mixer),
  14395. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14397. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14398. msm_routing_get_port_mixer,
  14399. msm_routing_put_port_mixer),
  14400. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14401. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14402. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14403. msm_routing_get_port_mixer,
  14404. msm_routing_put_port_mixer),
  14405. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14406. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14407. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14408. msm_routing_get_port_mixer,
  14409. msm_routing_put_port_mixer),
  14410. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14411. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14412. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14413. msm_routing_get_port_mixer,
  14414. msm_routing_put_port_mixer),
  14415. };
  14416. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  14417. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14419. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14420. msm_routing_get_port_mixer,
  14421. msm_routing_put_port_mixer),
  14422. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14423. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14424. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14425. msm_routing_get_port_mixer,
  14426. msm_routing_put_port_mixer),
  14427. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14429. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14430. msm_routing_get_port_mixer,
  14431. msm_routing_put_port_mixer),
  14432. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14433. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14434. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14435. msm_routing_get_port_mixer,
  14436. msm_routing_put_port_mixer),
  14437. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14438. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14439. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14440. msm_routing_get_port_mixer,
  14441. msm_routing_put_port_mixer),
  14442. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14443. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14444. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14445. msm_routing_get_port_mixer,
  14446. msm_routing_put_port_mixer),
  14447. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14448. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14449. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14450. msm_routing_get_port_mixer,
  14451. msm_routing_put_port_mixer),
  14452. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14454. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14455. msm_routing_get_port_mixer,
  14456. msm_routing_put_port_mixer),
  14457. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14459. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14460. msm_routing_get_port_mixer,
  14461. msm_routing_put_port_mixer),
  14462. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14463. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14464. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14465. msm_routing_get_port_mixer,
  14466. msm_routing_put_port_mixer),
  14467. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14468. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14469. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14470. msm_routing_get_port_mixer,
  14471. msm_routing_put_port_mixer),
  14472. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14473. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14474. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14475. msm_routing_get_port_mixer,
  14476. msm_routing_put_port_mixer),
  14477. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14479. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14480. msm_routing_get_port_mixer,
  14481. msm_routing_put_port_mixer),
  14482. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14483. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14484. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14485. msm_routing_get_port_mixer,
  14486. msm_routing_put_port_mixer),
  14487. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14488. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14489. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14490. msm_routing_get_port_mixer,
  14491. msm_routing_put_port_mixer),
  14492. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14493. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14494. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14495. msm_routing_get_port_mixer,
  14496. msm_routing_put_port_mixer),
  14497. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14499. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14500. msm_routing_get_port_mixer,
  14501. msm_routing_put_port_mixer),
  14502. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14503. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14504. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14505. msm_routing_get_port_mixer,
  14506. msm_routing_put_port_mixer),
  14507. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14508. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14509. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14510. msm_routing_get_port_mixer,
  14511. msm_routing_put_port_mixer),
  14512. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14513. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14514. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14515. msm_routing_get_port_mixer,
  14516. msm_routing_put_port_mixer),
  14517. };
  14518. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  14519. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14521. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14522. msm_routing_get_port_mixer,
  14523. msm_routing_put_port_mixer),
  14524. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14525. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14526. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14527. msm_routing_get_port_mixer,
  14528. msm_routing_put_port_mixer),
  14529. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14530. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14531. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14532. msm_routing_get_port_mixer,
  14533. msm_routing_put_port_mixer),
  14534. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14535. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14536. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14537. msm_routing_get_port_mixer,
  14538. msm_routing_put_port_mixer),
  14539. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14541. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14542. msm_routing_get_port_mixer,
  14543. msm_routing_put_port_mixer),
  14544. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14545. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14546. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14547. msm_routing_get_port_mixer,
  14548. msm_routing_put_port_mixer),
  14549. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14550. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14551. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14552. msm_routing_get_port_mixer,
  14553. msm_routing_put_port_mixer),
  14554. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14555. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14556. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14557. msm_routing_get_port_mixer,
  14558. msm_routing_put_port_mixer),
  14559. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14560. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14561. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14562. msm_routing_get_port_mixer,
  14563. msm_routing_put_port_mixer),
  14564. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14565. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14566. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14567. msm_routing_get_port_mixer,
  14568. msm_routing_put_port_mixer),
  14569. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14570. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14571. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14572. msm_routing_get_port_mixer,
  14573. msm_routing_put_port_mixer),
  14574. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14575. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14576. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14577. msm_routing_get_port_mixer,
  14578. msm_routing_put_port_mixer),
  14579. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14581. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14582. msm_routing_get_port_mixer,
  14583. msm_routing_put_port_mixer),
  14584. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14585. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14586. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14587. msm_routing_get_port_mixer,
  14588. msm_routing_put_port_mixer),
  14589. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14590. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14591. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14592. msm_routing_get_port_mixer,
  14593. msm_routing_put_port_mixer),
  14594. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14595. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14596. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14597. msm_routing_get_port_mixer,
  14598. msm_routing_put_port_mixer),
  14599. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14601. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14602. msm_routing_get_port_mixer,
  14603. msm_routing_put_port_mixer),
  14604. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14605. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14606. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14607. msm_routing_get_port_mixer,
  14608. msm_routing_put_port_mixer),
  14609. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14610. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14611. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14612. msm_routing_get_port_mixer,
  14613. msm_routing_put_port_mixer),
  14614. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14615. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14616. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14617. msm_routing_get_port_mixer,
  14618. msm_routing_put_port_mixer),
  14619. };
  14620. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  14621. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14623. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14624. msm_routing_get_port_mixer,
  14625. msm_routing_put_port_mixer),
  14626. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14627. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14628. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14629. msm_routing_get_port_mixer,
  14630. msm_routing_put_port_mixer),
  14631. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14632. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14633. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14634. msm_routing_get_port_mixer,
  14635. msm_routing_put_port_mixer),
  14636. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14637. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14638. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14639. msm_routing_get_port_mixer,
  14640. msm_routing_put_port_mixer),
  14641. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14642. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14643. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14644. msm_routing_get_port_mixer,
  14645. msm_routing_put_port_mixer),
  14646. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14647. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14648. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14649. msm_routing_get_port_mixer,
  14650. msm_routing_put_port_mixer),
  14651. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14652. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14653. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14654. msm_routing_get_port_mixer,
  14655. msm_routing_put_port_mixer),
  14656. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14657. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14658. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14659. msm_routing_get_port_mixer,
  14660. msm_routing_put_port_mixer),
  14661. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14662. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14663. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14664. msm_routing_get_port_mixer,
  14665. msm_routing_put_port_mixer),
  14666. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14667. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14668. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14669. msm_routing_get_port_mixer,
  14670. msm_routing_put_port_mixer),
  14671. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14672. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14673. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14674. msm_routing_get_port_mixer,
  14675. msm_routing_put_port_mixer),
  14676. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14677. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14678. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14679. msm_routing_get_port_mixer,
  14680. msm_routing_put_port_mixer),
  14681. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14682. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14683. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14684. msm_routing_get_port_mixer,
  14685. msm_routing_put_port_mixer),
  14686. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14687. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14688. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14689. msm_routing_get_port_mixer,
  14690. msm_routing_put_port_mixer),
  14691. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14692. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14693. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14694. msm_routing_get_port_mixer,
  14695. msm_routing_put_port_mixer),
  14696. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14697. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14698. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14699. msm_routing_get_port_mixer,
  14700. msm_routing_put_port_mixer),
  14701. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14702. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14703. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14704. msm_routing_get_port_mixer,
  14705. msm_routing_put_port_mixer),
  14706. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14707. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14708. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14709. msm_routing_get_port_mixer,
  14710. msm_routing_put_port_mixer),
  14711. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14712. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14713. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14714. msm_routing_get_port_mixer,
  14715. msm_routing_put_port_mixer),
  14716. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14717. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14718. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14719. msm_routing_get_port_mixer,
  14720. msm_routing_put_port_mixer),
  14721. };
  14722. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  14723. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14725. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14726. msm_routing_get_port_mixer,
  14727. msm_routing_put_port_mixer),
  14728. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14729. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14730. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14731. msm_routing_get_port_mixer,
  14732. msm_routing_put_port_mixer),
  14733. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14734. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14735. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14736. msm_routing_get_port_mixer,
  14737. msm_routing_put_port_mixer),
  14738. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14739. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14740. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14741. msm_routing_get_port_mixer,
  14742. msm_routing_put_port_mixer),
  14743. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14745. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14746. msm_routing_get_port_mixer,
  14747. msm_routing_put_port_mixer),
  14748. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14749. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14750. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14751. msm_routing_get_port_mixer,
  14752. msm_routing_put_port_mixer),
  14753. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14755. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14756. msm_routing_get_port_mixer,
  14757. msm_routing_put_port_mixer),
  14758. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14759. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14760. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14761. msm_routing_get_port_mixer,
  14762. msm_routing_put_port_mixer),
  14763. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14764. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14765. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14766. msm_routing_get_port_mixer,
  14767. msm_routing_put_port_mixer),
  14768. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14769. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14770. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14771. msm_routing_get_port_mixer,
  14772. msm_routing_put_port_mixer),
  14773. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14774. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14775. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14776. msm_routing_get_port_mixer,
  14777. msm_routing_put_port_mixer),
  14778. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14779. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14780. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14781. msm_routing_get_port_mixer,
  14782. msm_routing_put_port_mixer),
  14783. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14785. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14786. msm_routing_get_port_mixer,
  14787. msm_routing_put_port_mixer),
  14788. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14789. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14790. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14791. msm_routing_get_port_mixer,
  14792. msm_routing_put_port_mixer),
  14793. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14794. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14795. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14796. msm_routing_get_port_mixer,
  14797. msm_routing_put_port_mixer),
  14798. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14799. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14800. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14801. msm_routing_get_port_mixer,
  14802. msm_routing_put_port_mixer),
  14803. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14804. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14805. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14806. msm_routing_get_port_mixer,
  14807. msm_routing_put_port_mixer),
  14808. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14809. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14810. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14811. msm_routing_get_port_mixer,
  14812. msm_routing_put_port_mixer),
  14813. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14815. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14816. msm_routing_get_port_mixer,
  14817. msm_routing_put_port_mixer),
  14818. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14819. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14820. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14821. msm_routing_get_port_mixer,
  14822. msm_routing_put_port_mixer),
  14823. };
  14824. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  14825. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14827. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14828. msm_routing_get_port_mixer,
  14829. msm_routing_put_port_mixer),
  14830. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14831. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14832. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14833. msm_routing_get_port_mixer,
  14834. msm_routing_put_port_mixer),
  14835. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14837. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14838. msm_routing_get_port_mixer,
  14839. msm_routing_put_port_mixer),
  14840. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14841. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14842. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14843. msm_routing_get_port_mixer,
  14844. msm_routing_put_port_mixer),
  14845. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14846. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14847. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14848. msm_routing_get_port_mixer,
  14849. msm_routing_put_port_mixer),
  14850. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14851. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14852. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14853. msm_routing_get_port_mixer,
  14854. msm_routing_put_port_mixer),
  14855. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14856. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14857. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14858. msm_routing_get_port_mixer,
  14859. msm_routing_put_port_mixer),
  14860. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14861. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14862. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14863. msm_routing_get_port_mixer,
  14864. msm_routing_put_port_mixer),
  14865. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14867. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14868. msm_routing_get_port_mixer,
  14869. msm_routing_put_port_mixer),
  14870. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14871. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14872. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14873. msm_routing_get_port_mixer,
  14874. msm_routing_put_port_mixer),
  14875. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14876. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14877. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14878. msm_routing_get_port_mixer,
  14879. msm_routing_put_port_mixer),
  14880. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14881. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14882. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14883. msm_routing_get_port_mixer,
  14884. msm_routing_put_port_mixer),
  14885. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14886. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14887. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14888. msm_routing_get_port_mixer,
  14889. msm_routing_put_port_mixer),
  14890. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14891. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14892. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14893. msm_routing_get_port_mixer,
  14894. msm_routing_put_port_mixer),
  14895. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14896. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14897. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14898. msm_routing_get_port_mixer,
  14899. msm_routing_put_port_mixer),
  14900. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14901. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14902. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14903. msm_routing_get_port_mixer,
  14904. msm_routing_put_port_mixer),
  14905. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14907. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14908. msm_routing_get_port_mixer,
  14909. msm_routing_put_port_mixer),
  14910. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14911. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14912. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14913. msm_routing_get_port_mixer,
  14914. msm_routing_put_port_mixer),
  14915. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14917. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14918. msm_routing_get_port_mixer,
  14919. msm_routing_put_port_mixer),
  14920. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14921. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14922. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14923. msm_routing_get_port_mixer,
  14924. msm_routing_put_port_mixer),
  14925. };
  14926. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  14927. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14929. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14930. msm_routing_get_port_mixer,
  14931. msm_routing_put_port_mixer),
  14932. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14933. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14934. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14935. msm_routing_get_port_mixer,
  14936. msm_routing_put_port_mixer),
  14937. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14938. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14939. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14940. msm_routing_get_port_mixer,
  14941. msm_routing_put_port_mixer),
  14942. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14943. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14944. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14945. msm_routing_get_port_mixer,
  14946. msm_routing_put_port_mixer),
  14947. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14949. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14950. msm_routing_get_port_mixer,
  14951. msm_routing_put_port_mixer),
  14952. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14953. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14954. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14955. msm_routing_get_port_mixer,
  14956. msm_routing_put_port_mixer),
  14957. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14958. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14959. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14960. msm_routing_get_port_mixer,
  14961. msm_routing_put_port_mixer),
  14962. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14963. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14964. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14965. msm_routing_get_port_mixer,
  14966. msm_routing_put_port_mixer),
  14967. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14968. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14969. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14970. msm_routing_get_port_mixer,
  14971. msm_routing_put_port_mixer),
  14972. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14973. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14974. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14975. msm_routing_get_port_mixer,
  14976. msm_routing_put_port_mixer),
  14977. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14978. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14979. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14980. msm_routing_get_port_mixer,
  14981. msm_routing_put_port_mixer),
  14982. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14983. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14984. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14985. msm_routing_get_port_mixer,
  14986. msm_routing_put_port_mixer),
  14987. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14988. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14989. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14990. msm_routing_get_port_mixer,
  14991. msm_routing_put_port_mixer),
  14992. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14993. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14994. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14995. msm_routing_get_port_mixer,
  14996. msm_routing_put_port_mixer),
  14997. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14998. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14999. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15000. msm_routing_get_port_mixer,
  15001. msm_routing_put_port_mixer),
  15002. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15003. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15004. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15005. msm_routing_get_port_mixer,
  15006. msm_routing_put_port_mixer),
  15007. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15009. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15010. msm_routing_get_port_mixer,
  15011. msm_routing_put_port_mixer),
  15012. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15013. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15014. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15015. msm_routing_get_port_mixer,
  15016. msm_routing_put_port_mixer),
  15017. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15019. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15020. msm_routing_get_port_mixer,
  15021. msm_routing_put_port_mixer),
  15022. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15023. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15024. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15025. msm_routing_get_port_mixer,
  15026. msm_routing_put_port_mixer),
  15027. };
  15028. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  15029. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15031. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15032. msm_routing_get_port_mixer,
  15033. msm_routing_put_port_mixer),
  15034. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15035. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15036. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15037. msm_routing_get_port_mixer,
  15038. msm_routing_put_port_mixer),
  15039. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15041. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15042. msm_routing_get_port_mixer,
  15043. msm_routing_put_port_mixer),
  15044. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15045. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15046. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15047. msm_routing_get_port_mixer,
  15048. msm_routing_put_port_mixer),
  15049. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15050. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15051. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15052. msm_routing_get_port_mixer,
  15053. msm_routing_put_port_mixer),
  15054. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15055. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15056. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15057. msm_routing_get_port_mixer,
  15058. msm_routing_put_port_mixer),
  15059. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15060. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15061. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15062. msm_routing_get_port_mixer,
  15063. msm_routing_put_port_mixer),
  15064. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15065. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15066. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15067. msm_routing_get_port_mixer,
  15068. msm_routing_put_port_mixer),
  15069. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15070. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15071. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15072. msm_routing_get_port_mixer,
  15073. msm_routing_put_port_mixer),
  15074. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15075. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15076. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15077. msm_routing_get_port_mixer,
  15078. msm_routing_put_port_mixer),
  15079. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15080. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15081. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15082. msm_routing_get_port_mixer,
  15083. msm_routing_put_port_mixer),
  15084. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15085. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15086. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15087. msm_routing_get_port_mixer,
  15088. msm_routing_put_port_mixer),
  15089. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15090. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15091. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15092. msm_routing_get_port_mixer,
  15093. msm_routing_put_port_mixer),
  15094. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15095. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15096. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15097. msm_routing_get_port_mixer,
  15098. msm_routing_put_port_mixer),
  15099. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15100. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15101. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15102. msm_routing_get_port_mixer,
  15103. msm_routing_put_port_mixer),
  15104. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15105. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15106. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15107. msm_routing_get_port_mixer,
  15108. msm_routing_put_port_mixer),
  15109. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15111. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15112. msm_routing_get_port_mixer,
  15113. msm_routing_put_port_mixer),
  15114. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15115. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15116. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15117. msm_routing_get_port_mixer,
  15118. msm_routing_put_port_mixer),
  15119. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15120. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15121. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15122. msm_routing_get_port_mixer,
  15123. msm_routing_put_port_mixer),
  15124. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15125. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15126. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15127. msm_routing_get_port_mixer,
  15128. msm_routing_put_port_mixer),
  15129. };
  15130. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  15131. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15132. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15133. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15134. msm_routing_get_port_mixer,
  15135. msm_routing_put_port_mixer),
  15136. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15137. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15138. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15139. msm_routing_get_port_mixer,
  15140. msm_routing_put_port_mixer),
  15141. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15142. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15143. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15144. msm_routing_get_port_mixer,
  15145. msm_routing_put_port_mixer),
  15146. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15147. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15148. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15149. msm_routing_get_port_mixer,
  15150. msm_routing_put_port_mixer),
  15151. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15152. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15153. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15154. msm_routing_get_port_mixer,
  15155. msm_routing_put_port_mixer),
  15156. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15157. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15158. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15159. msm_routing_get_port_mixer,
  15160. msm_routing_put_port_mixer),
  15161. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15162. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15163. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15164. msm_routing_get_port_mixer,
  15165. msm_routing_put_port_mixer),
  15166. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15167. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15168. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15169. msm_routing_get_port_mixer,
  15170. msm_routing_put_port_mixer),
  15171. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15172. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15173. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15174. msm_routing_get_port_mixer,
  15175. msm_routing_put_port_mixer),
  15176. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15177. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15178. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15179. msm_routing_get_port_mixer,
  15180. msm_routing_put_port_mixer),
  15181. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15182. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15183. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15184. msm_routing_get_port_mixer,
  15185. msm_routing_put_port_mixer),
  15186. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15187. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15188. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15189. msm_routing_get_port_mixer,
  15190. msm_routing_put_port_mixer),
  15191. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15192. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15193. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15194. msm_routing_get_port_mixer,
  15195. msm_routing_put_port_mixer),
  15196. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15197. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15198. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15199. msm_routing_get_port_mixer,
  15200. msm_routing_put_port_mixer),
  15201. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15202. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15203. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15204. msm_routing_get_port_mixer,
  15205. msm_routing_put_port_mixer),
  15206. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15207. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15208. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15209. msm_routing_get_port_mixer,
  15210. msm_routing_put_port_mixer),
  15211. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15213. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15214. msm_routing_get_port_mixer,
  15215. msm_routing_put_port_mixer),
  15216. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15217. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15218. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15219. msm_routing_get_port_mixer,
  15220. msm_routing_put_port_mixer),
  15221. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15222. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15223. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15224. msm_routing_get_port_mixer,
  15225. msm_routing_put_port_mixer),
  15226. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15227. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15228. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15229. msm_routing_get_port_mixer,
  15230. msm_routing_put_port_mixer),
  15231. };
  15232. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  15233. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15234. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15235. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15236. msm_routing_put_port_mixer),
  15237. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15239. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15240. msm_routing_put_port_mixer),
  15241. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15242. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15243. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15244. msm_routing_put_port_mixer),
  15245. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15247. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15248. msm_routing_put_port_mixer),
  15249. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15250. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15251. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15252. msm_routing_put_port_mixer),
  15253. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15254. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15255. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15256. msm_routing_put_port_mixer),
  15257. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15258. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15259. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15260. msm_routing_put_port_mixer),
  15261. };
  15262. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  15263. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15264. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15265. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15266. msm_routing_put_port_mixer),
  15267. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15268. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15269. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15270. msm_routing_put_port_mixer),
  15271. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15272. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15273. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15274. msm_routing_put_port_mixer),
  15275. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15276. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15277. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15278. msm_routing_put_port_mixer),
  15279. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15280. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15281. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15282. msm_routing_put_port_mixer),
  15283. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15284. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15285. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15286. msm_routing_put_port_mixer),
  15287. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15288. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15289. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15290. msm_routing_put_port_mixer),
  15291. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15292. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15293. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15294. msm_routing_put_port_mixer),
  15295. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15296. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15297. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15298. msm_routing_put_port_mixer),
  15299. };
  15300. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  15301. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15302. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15303. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15304. msm_routing_put_listen_mixer),
  15305. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15307. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15308. msm_routing_put_listen_mixer),
  15309. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15310. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15311. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15312. msm_routing_put_listen_mixer),
  15313. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15314. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15315. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15316. msm_routing_put_listen_mixer),
  15317. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15319. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15320. msm_routing_put_listen_mixer),
  15321. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15322. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15323. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15324. msm_routing_put_listen_mixer),
  15325. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15326. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15327. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15328. msm_routing_put_listen_mixer),
  15329. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15331. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15332. msm_routing_put_listen_mixer),
  15333. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15334. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15335. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15336. msm_routing_put_listen_mixer),
  15337. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15338. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15339. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15340. msm_routing_put_listen_mixer),
  15341. };
  15342. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  15343. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15345. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15346. msm_routing_put_listen_mixer),
  15347. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  15348. SND_SOC_NOPM,
  15349. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15350. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15351. msm_routing_put_listen_mixer),
  15352. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15353. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15354. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15355. msm_routing_put_listen_mixer),
  15356. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15357. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15358. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15359. msm_routing_put_listen_mixer),
  15360. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15361. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15362. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15363. msm_routing_put_listen_mixer),
  15364. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15365. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15366. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15367. msm_routing_put_listen_mixer),
  15368. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15369. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15370. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15371. msm_routing_put_listen_mixer),
  15372. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15374. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15375. msm_routing_put_listen_mixer),
  15376. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15378. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15379. msm_routing_put_listen_mixer),
  15380. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15381. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15382. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15383. msm_routing_put_listen_mixer),
  15384. };
  15385. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  15386. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15387. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15388. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15389. msm_routing_put_listen_mixer),
  15390. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15391. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15392. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15393. msm_routing_put_listen_mixer),
  15394. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15396. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15397. msm_routing_put_listen_mixer),
  15398. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15400. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15401. msm_routing_put_listen_mixer),
  15402. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15404. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15405. msm_routing_put_listen_mixer),
  15406. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15408. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15409. msm_routing_put_listen_mixer),
  15410. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15411. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15412. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15413. msm_routing_put_listen_mixer),
  15414. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15415. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15416. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15417. msm_routing_put_listen_mixer),
  15418. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15419. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15420. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15421. msm_routing_put_listen_mixer),
  15422. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15423. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15424. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15425. msm_routing_put_listen_mixer),
  15426. };
  15427. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  15428. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15430. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15431. msm_routing_put_listen_mixer),
  15432. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15434. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15435. msm_routing_put_listen_mixer),
  15436. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15437. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15438. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15439. msm_routing_put_listen_mixer),
  15440. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15441. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15442. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15443. msm_routing_put_listen_mixer),
  15444. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15446. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15447. msm_routing_put_listen_mixer),
  15448. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15450. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15451. msm_routing_put_listen_mixer),
  15452. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15454. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15455. msm_routing_put_listen_mixer),
  15456. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15458. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15459. msm_routing_put_listen_mixer),
  15460. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15462. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15463. msm_routing_put_listen_mixer),
  15464. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15466. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15467. msm_routing_put_listen_mixer),
  15468. };
  15469. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  15470. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15471. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15472. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15473. msm_routing_put_listen_mixer),
  15474. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15475. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15476. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15477. msm_routing_put_listen_mixer),
  15478. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15479. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15480. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15481. msm_routing_put_listen_mixer),
  15482. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15483. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15484. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15485. msm_routing_put_listen_mixer),
  15486. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15487. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15488. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15489. msm_routing_put_listen_mixer),
  15490. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15491. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15492. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15493. msm_routing_put_listen_mixer),
  15494. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15496. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15497. msm_routing_put_listen_mixer),
  15498. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15499. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15500. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15501. msm_routing_put_listen_mixer),
  15502. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15504. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15505. msm_routing_put_listen_mixer),
  15506. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15508. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15509. msm_routing_put_listen_mixer),
  15510. };
  15511. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  15512. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15513. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15514. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15515. msm_routing_put_listen_mixer),
  15516. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15517. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15518. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15519. msm_routing_put_listen_mixer),
  15520. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15521. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15522. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15523. msm_routing_put_listen_mixer),
  15524. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15525. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15526. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15527. msm_routing_put_listen_mixer),
  15528. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15529. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15530. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15531. msm_routing_put_listen_mixer),
  15532. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15534. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15535. msm_routing_put_listen_mixer),
  15536. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15538. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15539. msm_routing_put_listen_mixer),
  15540. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15542. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15543. msm_routing_put_listen_mixer),
  15544. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15546. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15547. msm_routing_put_listen_mixer),
  15548. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15549. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15550. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15551. msm_routing_put_listen_mixer),
  15552. };
  15553. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  15554. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15555. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15556. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15557. msm_routing_put_listen_mixer),
  15558. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15559. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15560. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15561. msm_routing_put_listen_mixer),
  15562. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15564. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15565. msm_routing_put_listen_mixer),
  15566. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15568. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15569. msm_routing_put_listen_mixer),
  15570. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15571. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15572. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15573. msm_routing_put_listen_mixer),
  15574. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15575. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15576. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15577. msm_routing_put_listen_mixer),
  15578. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15579. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15580. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15581. msm_routing_put_listen_mixer),
  15582. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15583. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15584. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15585. msm_routing_put_listen_mixer),
  15586. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15587. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15588. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15589. msm_routing_put_listen_mixer),
  15590. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15591. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15592. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15593. msm_routing_put_listen_mixer),
  15594. };
  15595. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  15596. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15598. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15599. msm_routing_put_listen_mixer),
  15600. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15601. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15602. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15603. msm_routing_put_listen_mixer),
  15604. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15605. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15606. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15607. msm_routing_put_listen_mixer),
  15608. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15609. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15610. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15611. msm_routing_put_listen_mixer),
  15612. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15613. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15614. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15615. msm_routing_put_listen_mixer),
  15616. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15618. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15619. msm_routing_put_listen_mixer),
  15620. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15622. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15623. msm_routing_put_listen_mixer),
  15624. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15625. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15626. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15627. msm_routing_put_listen_mixer),
  15628. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15629. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15630. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15631. msm_routing_put_listen_mixer),
  15632. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15634. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15635. msm_routing_put_listen_mixer),
  15636. };
  15637. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  15638. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15639. 0, 1, 0, msm_routing_get_switch_mixer,
  15640. msm_routing_put_switch_mixer);
  15641. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  15642. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15643. 0, 1, 0, msm_routing_get_switch_mixer,
  15644. msm_routing_put_switch_mixer);
  15645. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  15646. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15647. 0, 1, 0, msm_routing_get_switch_mixer,
  15648. msm_routing_put_switch_mixer);
  15649. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  15650. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15651. 0, 1, 0, msm_routing_get_switch_mixer,
  15652. msm_routing_put_switch_mixer);
  15653. static const struct snd_kcontrol_new cdc_dma_fm_switch_mixer_controls =
  15654. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15655. 0, 1, 0, msm_routing_get_switch_mixer,
  15656. msm_routing_put_switch_mixer);
  15657. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  15658. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15659. 0, 1, 0, msm_routing_get_switch_mixer,
  15660. msm_routing_put_switch_mixer);
  15661. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  15662. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15663. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  15664. msm_routing_put_fm_pcmrx_switch_mixer);
  15665. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  15666. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15667. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  15668. msm_routing_put_int0_mi2s_switch_mixer);
  15669. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  15670. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15671. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  15672. msm_routing_put_int4_mi2s_switch_mixer);
  15673. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  15674. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15675. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  15676. msm_routing_put_pri_mi2s_switch_mixer);
  15677. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  15678. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15679. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  15680. msm_routing_put_sec_mi2s_switch_mixer);
  15681. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  15682. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15683. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  15684. msm_routing_put_tert_mi2s_switch_mixer);
  15685. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  15686. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15687. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  15688. msm_routing_put_quat_mi2s_switch_mixer);
  15689. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  15690. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15691. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  15692. msm_routing_put_quin_mi2s_switch_mixer);
  15693. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  15694. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15695. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15696. msm_routing_put_hfp_switch_mixer);
  15697. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  15698. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15699. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15700. msm_routing_put_hfp_switch_mixer);
  15701. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  15702. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15703. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15704. msm_routing_put_hfp_switch_mixer);
  15705. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  15706. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15707. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15708. msm_routing_put_hfp_switch_mixer);
  15709. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  15710. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15711. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  15712. msm_routing_put_usb_switch_mixer);
  15713. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  15714. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15715. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  15716. msm_routing_a2dp_switch_mixer_put);
  15717. static const struct soc_enum lsm_port_enum =
  15718. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  15719. static const char * const lsm_func_text[] = {
  15720. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  15721. };
  15722. static const struct soc_enum lsm_func_enum =
  15723. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  15724. static const struct snd_kcontrol_new lsm_controls[] = {
  15725. /* kcontrol of lsm_function */
  15726. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15727. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15728. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15729. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15730. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15731. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15732. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15733. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15734. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15735. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15736. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15737. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15738. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15739. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15740. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15741. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15742. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15743. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15744. /* kcontrol of lsm_port */
  15745. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  15746. msm_routing_lsm_port_get,
  15747. msm_routing_lsm_port_put),
  15748. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  15749. msm_routing_lsm_port_get,
  15750. msm_routing_lsm_port_put),
  15751. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  15752. msm_routing_lsm_port_get,
  15753. msm_routing_lsm_port_put),
  15754. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  15755. msm_routing_lsm_port_get,
  15756. msm_routing_lsm_port_put),
  15757. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  15758. msm_routing_lsm_port_get,
  15759. msm_routing_lsm_port_put),
  15760. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  15761. msm_routing_lsm_port_get,
  15762. msm_routing_lsm_port_put),
  15763. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  15764. msm_routing_lsm_port_get,
  15765. msm_routing_lsm_port_put),
  15766. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  15767. msm_routing_lsm_port_get,
  15768. msm_routing_lsm_port_put),
  15769. };
  15770. static const char * const aanc_slim_0_rx_text[] = {
  15771. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  15772. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  15773. };
  15774. static const struct soc_enum aanc_slim_0_rx_enum =
  15775. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  15776. aanc_slim_0_rx_text);
  15777. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  15778. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  15779. msm_routing_slim_0_rx_aanc_mux_get,
  15780. msm_routing_slim_0_rx_aanc_mux_put)
  15781. };
  15782. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  15783. struct snd_ctl_elem_value *ucontrol)
  15784. {
  15785. ucontrol->value.integer.value[0] = aanc_level;
  15786. return 0;
  15787. }
  15788. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  15789. struct snd_ctl_elem_value *ucontrol)
  15790. {
  15791. int ret = 0;
  15792. mutex_lock(&routing_lock);
  15793. aanc_level = ucontrol->value.integer.value[0];
  15794. pr_debug("%s: value: %ld\n",
  15795. __func__, ucontrol->value.integer.value[0]);
  15796. ret = afe_set_aanc_noise_level(aanc_level);
  15797. mutex_unlock(&routing_lock);
  15798. return ret;
  15799. }
  15800. static const struct snd_kcontrol_new aanc_noise_level[] = {
  15801. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  15802. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  15803. };
  15804. static int msm_routing_get_stereo_to_custom_stereo_control(
  15805. struct snd_kcontrol *kcontrol,
  15806. struct snd_ctl_elem_value *ucontrol)
  15807. {
  15808. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  15809. return 0;
  15810. }
  15811. static int msm_routing_put_stereo_to_custom_stereo_control(
  15812. struct snd_kcontrol *kcontrol,
  15813. struct snd_ctl_elem_value *ucontrol)
  15814. {
  15815. int flag = 0, i = 0, rc = 0, idx = 0;
  15816. int be_index = 0, port_id, topo_id;
  15817. unsigned int session_id = 0;
  15818. uint16_t op_FL_ip_FL_weight = 0;
  15819. uint16_t op_FL_ip_FR_weight = 0;
  15820. uint16_t op_FR_ip_FL_weight = 0;
  15821. uint16_t op_FR_ip_FR_weight = 0;
  15822. flag = ucontrol->value.integer.value[0];
  15823. pr_debug("%s E flag %d\n", __func__, flag);
  15824. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  15825. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  15826. __func__, is_custom_stereo_on, flag);
  15827. return 0;
  15828. }
  15829. is_custom_stereo_on = flag ? true : false;
  15830. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  15831. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  15832. port_id = msm_bedais[be_index].port_id;
  15833. if (!msm_bedais[be_index].active)
  15834. continue;
  15835. if ((port_id != SLIMBUS_0_RX) &&
  15836. (port_id != RT_PROXY_PORT_001_RX) &&
  15837. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  15838. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  15839. continue;
  15840. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  15841. MSM_FRONTEND_DAI_MM_SIZE) {
  15842. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  15843. LEGACY_PCM_MODE)
  15844. goto skip_send_custom_stereo;
  15845. session_id =
  15846. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  15847. if (is_custom_stereo_on) {
  15848. op_FL_ip_FL_weight =
  15849. Q14_GAIN_ZERO_POINT_FIVE;
  15850. op_FL_ip_FR_weight =
  15851. Q14_GAIN_ZERO_POINT_FIVE;
  15852. op_FR_ip_FL_weight =
  15853. Q14_GAIN_ZERO_POINT_FIVE;
  15854. op_FR_ip_FR_weight =
  15855. Q14_GAIN_ZERO_POINT_FIVE;
  15856. } else {
  15857. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  15858. op_FL_ip_FR_weight = 0;
  15859. op_FR_ip_FL_weight = 0;
  15860. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  15861. }
  15862. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15863. unsigned long copp =
  15864. session_copp_map[i]
  15865. [SESSION_TYPE_RX][be_index];
  15866. if (!test_bit(idx, &copp))
  15867. goto skip_send_custom_stereo;
  15868. topo_id = adm_get_topology_for_port_copp_idx(
  15869. msm_bedais[be_index].port_id, idx);
  15870. if (topo_id < 0)
  15871. pr_debug("%s:Err:custom stereo topo %d",
  15872. __func__, topo_id);
  15873. pr_debug("idx %d\n", idx);
  15874. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  15875. rc = msm_ds2_dap_set_custom_stereo_onoff
  15876. (msm_bedais[be_index].port_id,
  15877. idx, is_custom_stereo_on);
  15878. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  15879. rc = dolby_dap_set_custom_stereo_onoff(
  15880. msm_bedais[be_index].port_id,
  15881. idx, is_custom_stereo_on);
  15882. else
  15883. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  15884. (msm_bedais[be_index].port_id,
  15885. idx, session_id,
  15886. op_FL_ip_FL_weight,
  15887. op_FL_ip_FR_weight,
  15888. op_FR_ip_FL_weight,
  15889. op_FR_ip_FR_weight);
  15890. if (rc < 0)
  15891. skip_send_custom_stereo:
  15892. pr_err("%s: err setting custom stereo\n",
  15893. __func__);
  15894. }
  15895. }
  15896. }
  15897. return 0;
  15898. }
  15899. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  15900. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  15901. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  15902. msm_routing_put_stereo_to_custom_stereo_control),
  15903. };
  15904. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  15905. struct snd_ctl_elem_value *ucontrol)
  15906. {
  15907. return 0;
  15908. }
  15909. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  15910. struct snd_ctl_elem_value *ucontrol)
  15911. {
  15912. int i = 0, j;
  15913. int num_app_types = ucontrol->value.integer.value[i++];
  15914. pr_debug("%s\n", __func__);
  15915. memset(app_type_cfg, 0, MAX_APP_TYPES*
  15916. sizeof(struct msm_pcm_routing_app_type_data));
  15917. if (num_app_types > MAX_APP_TYPES) {
  15918. pr_err("%s: number of app types exceed the max supported\n",
  15919. __func__);
  15920. return -EINVAL;
  15921. }
  15922. for (j = 0; j < num_app_types; j++) {
  15923. app_type_cfg[j].app_type =
  15924. ucontrol->value.integer.value[i++];
  15925. app_type_cfg[j].sample_rate =
  15926. ucontrol->value.integer.value[i++];
  15927. app_type_cfg[j].bit_width =
  15928. ucontrol->value.integer.value[i++];
  15929. }
  15930. return 0;
  15931. }
  15932. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  15933. struct snd_ctl_elem_value *ucontrol)
  15934. {
  15935. int j, fe_id, be_id, port_type;
  15936. int ret = 0;
  15937. unsigned long copp;
  15938. struct msm_pcm_routing_bdai_data *bedai;
  15939. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  15940. SESSION_TYPE_RX;
  15941. int app_type = ucontrol->value.integer.value[1];
  15942. int gain = (ucontrol->value.integer.value[2] +
  15943. ucontrol->value.integer.value[3])/2;
  15944. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  15945. MSM_AFE_PORT_TYPE_TX;
  15946. mutex_lock(&routing_lock);
  15947. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  15948. if (is_be_dai_extproc(be_id))
  15949. continue;
  15950. bedai = &msm_bedais[be_id];
  15951. if (afe_get_port_type(bedai->port_id) != port_type)
  15952. continue;
  15953. if (!bedai->active)
  15954. continue;
  15955. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  15956. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  15957. continue;
  15958. if (app_type !=
  15959. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  15960. continue;
  15961. copp = session_copp_map[fe_id][dir][be_id];
  15962. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  15963. if (!test_bit(j, &copp))
  15964. continue;
  15965. ret |= adm_set_volume(bedai->port_id, j, gain);
  15966. }
  15967. }
  15968. }
  15969. mutex_unlock(&routing_lock);
  15970. return ret ? -EINVAL : 0;
  15971. }
  15972. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  15973. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  15974. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  15975. msm_routing_put_app_type_cfg_control),
  15976. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  15977. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  15978. };
  15979. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  15980. struct snd_ctl_elem_value *ucontrol)
  15981. {
  15982. int copp_idx, fe_id, be_id, port_type;
  15983. int ret = 0;
  15984. unsigned long copp;
  15985. struct msm_pcm_routing_bdai_data *bedai;
  15986. u8 *packed_params = NULL;
  15987. struct param_hdr_v3 param_hdr;
  15988. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  15989. sizeof(uint32_t));
  15990. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  15991. SESSION_TYPE_RX;
  15992. int app_type = ucontrol->value.integer.value[1];
  15993. int module_id = ucontrol->value.integer.value[2];
  15994. int instance_id = ucontrol->value.integer.value[3];
  15995. int param_id = ucontrol->value.integer.value[4];
  15996. int param_value = ucontrol->value.integer.value[5];
  15997. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  15998. MSM_AFE_PORT_TYPE_TX;
  15999. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  16000. __func__, app_type, module_id,
  16001. instance_id, param_id, param_value);
  16002. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  16003. if (!packed_params)
  16004. return -ENOMEM;
  16005. memset(&param_hdr, 0, sizeof(param_hdr));
  16006. param_hdr.module_id = module_id;
  16007. param_hdr.instance_id = instance_id;
  16008. param_hdr.param_id = param_id;
  16009. param_hdr.param_size = sizeof(uint32_t);
  16010. packed_param_size = 0;
  16011. mutex_lock(&routing_lock);
  16012. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16013. if (is_be_dai_extproc(be_id))
  16014. continue;
  16015. bedai = &msm_bedais[be_id];
  16016. if (afe_get_port_type(bedai->port_id) != port_type)
  16017. continue;
  16018. if (!bedai->active)
  16019. continue;
  16020. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16021. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16022. continue;
  16023. if (app_type !=
  16024. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16025. continue;
  16026. copp = session_copp_map[fe_id][dir][be_id];
  16027. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  16028. copp_idx++) {
  16029. if (!test_bit(copp_idx, &copp))
  16030. continue;
  16031. ret = q6common_pack_pp_params(packed_params,
  16032. &param_hdr,
  16033. (u8 *) &param_value,
  16034. &packed_param_size);
  16035. if (ret) {
  16036. pr_err("%s: Failed to pack params, error %d\n",
  16037. __func__, ret);
  16038. goto done;
  16039. }
  16040. ret = adm_set_pp_params(bedai->port_id,
  16041. copp_idx, NULL,
  16042. packed_params,
  16043. packed_param_size);
  16044. if (ret) {
  16045. pr_err("%s: Setting param failed with err=%d\n",
  16046. __func__, ret);
  16047. ret = -EINVAL;
  16048. goto done;
  16049. }
  16050. }
  16051. }
  16052. }
  16053. done:
  16054. mutex_unlock(&routing_lock);
  16055. kfree(packed_params);
  16056. return ret;
  16057. }
  16058. static const struct snd_kcontrol_new module_cfg_controls[] = {
  16059. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  16060. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  16061. };
  16062. static int msm_routing_get_lsm_app_type_cfg_control(
  16063. struct snd_kcontrol *kcontrol,
  16064. struct snd_ctl_elem_value *ucontrol)
  16065. {
  16066. return 0;
  16067. }
  16068. static int msm_routing_put_lsm_app_type_cfg_control(
  16069. struct snd_kcontrol *kcontrol,
  16070. struct snd_ctl_elem_value *ucontrol)
  16071. {
  16072. int shift = ((struct soc_multi_mixer_control *)
  16073. kcontrol->private_value)->shift;
  16074. int i = 0, j;
  16075. int num_app_types = ucontrol->value.integer.value[i++];
  16076. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  16077. sizeof(struct msm_pcm_routing_app_type_data));
  16078. if (num_app_types > MAX_APP_TYPES) {
  16079. pr_err("%s: number of app types exceed the max supported\n",
  16080. __func__);
  16081. return -EINVAL;
  16082. }
  16083. for (j = 0; j < num_app_types; j++) {
  16084. lsm_app_type_cfg[j].app_type =
  16085. ucontrol->value.integer.value[i++];
  16086. lsm_app_type_cfg[j].sample_rate =
  16087. ucontrol->value.integer.value[i++];
  16088. lsm_app_type_cfg[j].bit_width =
  16089. ucontrol->value.integer.value[i++];
  16090. /* Shift of 1 indicates this is V2 mixer control */
  16091. if (shift == 1)
  16092. lsm_app_type_cfg[j].num_out_channels =
  16093. ucontrol->value.integer.value[i++];
  16094. }
  16095. return 0;
  16096. }
  16097. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  16098. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  16099. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16100. msm_routing_put_lsm_app_type_cfg_control),
  16101. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  16102. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16103. msm_routing_put_lsm_app_type_cfg_control),
  16104. };
  16105. static int msm_routing_get_use_ds1_or_ds2_control(
  16106. struct snd_kcontrol *kcontrol,
  16107. struct snd_ctl_elem_value *ucontrol)
  16108. {
  16109. ucontrol->value.integer.value[0] = is_ds2_on;
  16110. return 0;
  16111. }
  16112. static int msm_routing_put_use_ds1_or_ds2_control(
  16113. struct snd_kcontrol *kcontrol,
  16114. struct snd_ctl_elem_value *ucontrol)
  16115. {
  16116. is_ds2_on = ucontrol->value.integer.value[0];
  16117. return 0;
  16118. }
  16119. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  16120. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  16121. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  16122. msm_routing_put_use_ds1_or_ds2_control),
  16123. };
  16124. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  16125. struct snd_ctl_elem_value *ucontrol) {
  16126. int rc = 0;
  16127. int be_idx = 0;
  16128. char *param_value;
  16129. int *update_param_value;
  16130. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  16131. struct param_hdr_v3 param_hdr;
  16132. param_value = kzalloc(param_size, GFP_KERNEL);
  16133. if (!param_value)
  16134. return -ENOMEM;
  16135. memset(&param_hdr, 0, sizeof(param_hdr));
  16136. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  16137. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  16138. break;
  16139. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  16140. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  16141. param_hdr.instance_id = INSTANCE_ID_0;
  16142. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  16143. param_hdr.param_size = param_size;
  16144. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  16145. NULL, &param_hdr, (u8 *) param_value);
  16146. if (rc) {
  16147. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  16148. kfree(param_value);
  16149. return -EINVAL;
  16150. }
  16151. update_param_value = (int *)param_value;
  16152. ucontrol->value.integer.value[0] = update_param_value[0];
  16153. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  16154. __func__, update_param_value[0]);
  16155. }
  16156. kfree(param_value);
  16157. return 0;
  16158. }
  16159. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  16160. struct snd_ctl_elem_value *ucontrol)
  16161. {
  16162. voc_session_id = ucontrol->value.integer.value[0];
  16163. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  16164. return 0;
  16165. }
  16166. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  16167. struct snd_ctl_elem_value *ucontrol)
  16168. {
  16169. ucontrol->value.integer.value[0] = voc_session_id;
  16170. return 0;
  16171. }
  16172. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  16173. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  16174. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  16175. msm_voc_session_id_put),
  16176. };
  16177. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  16178. struct snd_ctl_elem_info *uinfo)
  16179. {
  16180. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16181. uinfo->count = sizeof(struct sound_focus_param);
  16182. return 0;
  16183. }
  16184. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  16185. struct snd_ctl_elem_value *ucontrol)
  16186. {
  16187. int ret = 0;
  16188. struct sound_focus_param soundFocusData;
  16189. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16190. sizeof(struct sound_focus_param));
  16191. ret = voc_set_sound_focus(soundFocusData);
  16192. if (ret) {
  16193. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16194. __func__, ret);
  16195. ret = -EINVAL;
  16196. }
  16197. return ret;
  16198. }
  16199. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  16200. struct snd_ctl_elem_value *ucontrol)
  16201. {
  16202. int ret = 0;
  16203. struct sound_focus_param soundFocusData;
  16204. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  16205. ret = voc_get_sound_focus(&soundFocusData);
  16206. if (ret) {
  16207. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16208. __func__, ret);
  16209. ret = -EINVAL;
  16210. goto done;
  16211. }
  16212. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16213. sizeof(struct sound_focus_param));
  16214. done:
  16215. return ret;
  16216. }
  16217. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  16218. struct snd_ctl_elem_info *uinfo)
  16219. {
  16220. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16221. uinfo->count = sizeof(struct source_tracking_param);
  16222. return 0;
  16223. }
  16224. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  16225. struct snd_ctl_elem_value *ucontrol)
  16226. {
  16227. int ret = 0;
  16228. struct source_tracking_param sourceTrackingData;
  16229. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  16230. ret = voc_get_source_tracking(&sourceTrackingData);
  16231. if (ret) {
  16232. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  16233. __func__, ret);
  16234. ret = -EINVAL;
  16235. goto done;
  16236. }
  16237. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16238. sizeof(struct source_tracking_param));
  16239. done:
  16240. return ret;
  16241. }
  16242. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  16243. int *copp_idx)
  16244. {
  16245. int i, idx, be_idx;
  16246. int ret = 0;
  16247. unsigned long copp;
  16248. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  16249. ret = q6audio_validate_port(port_id);
  16250. if (ret < 0) {
  16251. pr_err("%s: port validation failed id 0x%x ret %d\n",
  16252. __func__, port_id, ret);
  16253. ret = -EINVAL;
  16254. goto done;
  16255. }
  16256. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16257. if (msm_bedais[be_idx].port_id == port_id)
  16258. break;
  16259. }
  16260. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16261. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  16262. ret = -EINVAL;
  16263. goto done;
  16264. }
  16265. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  16266. MSM_FRONTEND_DAI_MM_SIZE) {
  16267. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16268. copp = session_copp_map[i]
  16269. [session_type][be_idx];
  16270. if (test_bit(idx, &copp))
  16271. break;
  16272. }
  16273. if (idx >= MAX_COPPS_PER_PORT)
  16274. continue;
  16275. else
  16276. break;
  16277. }
  16278. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  16279. pr_err("%s: Invalid FE, exiting\n", __func__);
  16280. ret = -EINVAL;
  16281. goto done;
  16282. }
  16283. *copp_idx = idx;
  16284. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  16285. done:
  16286. return ret;
  16287. }
  16288. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  16289. const char *prefix, int *port_id)
  16290. {
  16291. int ret = 0;
  16292. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  16293. /*
  16294. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  16295. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  16296. * and compare the string with the backend name to derive the port id.
  16297. */
  16298. if (!strcmp(kcontrol->id.name + strlen(prefix),
  16299. "SLIMBUS_0")) {
  16300. *port_id = SLIMBUS_0_TX;
  16301. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16302. "TERT_MI2S")) {
  16303. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  16304. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16305. "INT3_MI2S")) {
  16306. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  16307. } else {
  16308. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  16309. __func__, kcontrol->id.name);
  16310. ret = -EINVAL;
  16311. goto done;
  16312. }
  16313. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  16314. __func__, kcontrol->id.name, *port_id);
  16315. done:
  16316. return ret;
  16317. }
  16318. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  16319. struct snd_ctl_elem_value *ucontrol)
  16320. {
  16321. int ret = 0;
  16322. struct sound_focus_param soundFocusData;
  16323. int port_id, copp_idx;
  16324. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16325. "Sound Focus Audio Tx ", &port_id);
  16326. if (ret != 0) {
  16327. pr_err("%s: Error in deriving port id, err=%d\n",
  16328. __func__, ret);
  16329. ret = -EINVAL;
  16330. goto done;
  16331. }
  16332. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16333. &copp_idx);
  16334. if (ret) {
  16335. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16336. __func__, port_id);
  16337. ret = -EINVAL;
  16338. goto done;
  16339. }
  16340. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16341. sizeof(struct sound_focus_param));
  16342. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  16343. if (ret) {
  16344. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16345. __func__, ret);
  16346. ret = -EINVAL;
  16347. goto done;
  16348. }
  16349. done:
  16350. return ret;
  16351. }
  16352. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  16353. struct snd_ctl_elem_value *ucontrol)
  16354. {
  16355. int ret = 0;
  16356. struct sound_focus_param soundFocusData;
  16357. int port_id, copp_idx;
  16358. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16359. "Sound Focus Audio Tx ", &port_id);
  16360. if (ret) {
  16361. pr_err("%s: Error in deriving port id, err=%d\n",
  16362. __func__, ret);
  16363. ret = -EINVAL;
  16364. goto done;
  16365. }
  16366. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16367. &copp_idx);
  16368. if (ret) {
  16369. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16370. __func__, port_id);
  16371. ret = -EINVAL;
  16372. goto done;
  16373. }
  16374. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  16375. if (ret) {
  16376. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16377. __func__, ret);
  16378. ret = -EINVAL;
  16379. goto done;
  16380. }
  16381. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16382. sizeof(struct sound_focus_param));
  16383. done:
  16384. return ret;
  16385. }
  16386. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  16387. struct snd_ctl_elem_value *ucontrol)
  16388. {
  16389. int ret = 0;
  16390. struct source_tracking_param sourceTrackingData;
  16391. int port_id, copp_idx;
  16392. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16393. "Source Tracking Audio Tx ", &port_id);
  16394. if (ret) {
  16395. pr_err("%s: Error in deriving port id, err=%d\n",
  16396. __func__, ret);
  16397. ret = -EINVAL;
  16398. goto done;
  16399. }
  16400. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16401. &copp_idx);
  16402. if (ret) {
  16403. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16404. __func__, port_id);
  16405. ret = -EINVAL;
  16406. goto done;
  16407. }
  16408. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  16409. if (ret) {
  16410. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  16411. __func__, ret);
  16412. ret = -EINVAL;
  16413. goto done;
  16414. }
  16415. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16416. sizeof(struct source_tracking_param));
  16417. done:
  16418. return ret;
  16419. }
  16420. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  16421. {
  16422. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16423. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16424. .name = "Sound Focus Voice Tx SLIMBUS_0",
  16425. .info = msm_sound_focus_info,
  16426. .get = msm_voice_sound_focus_get,
  16427. .put = msm_voice_sound_focus_put,
  16428. },
  16429. {
  16430. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16431. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16432. .name = "Source Tracking Voice Tx SLIMBUS_0",
  16433. .info = msm_source_tracking_info,
  16434. .get = msm_voice_source_tracking_get,
  16435. },
  16436. {
  16437. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16438. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16439. .name = "Sound Focus Audio Tx SLIMBUS_0",
  16440. .info = msm_sound_focus_info,
  16441. .get = msm_audio_sound_focus_get,
  16442. .put = msm_audio_sound_focus_put,
  16443. },
  16444. {
  16445. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16446. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16447. .name = "Source Tracking Audio Tx SLIMBUS_0",
  16448. .info = msm_source_tracking_info,
  16449. .get = msm_audio_source_tracking_get,
  16450. },
  16451. {
  16452. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16453. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16454. .name = "Sound Focus Voice Tx TERT_MI2S",
  16455. .info = msm_sound_focus_info,
  16456. .get = msm_voice_sound_focus_get,
  16457. .put = msm_voice_sound_focus_put,
  16458. },
  16459. {
  16460. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16461. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16462. .name = "Source Tracking Voice Tx TERT_MI2S",
  16463. .info = msm_source_tracking_info,
  16464. .get = msm_voice_source_tracking_get,
  16465. },
  16466. {
  16467. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16468. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16469. .name = "Sound Focus Audio Tx TERT_MI2S",
  16470. .info = msm_sound_focus_info,
  16471. .get = msm_audio_sound_focus_get,
  16472. .put = msm_audio_sound_focus_put,
  16473. },
  16474. {
  16475. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16476. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16477. .name = "Source Tracking Audio Tx TERT_MI2S",
  16478. .info = msm_source_tracking_info,
  16479. .get = msm_audio_source_tracking_get,
  16480. },
  16481. {
  16482. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16483. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16484. .name = "Sound Focus Voice Tx INT3_MI2S",
  16485. .info = msm_sound_focus_info,
  16486. .get = msm_voice_sound_focus_get,
  16487. .put = msm_voice_sound_focus_put,
  16488. },
  16489. {
  16490. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16491. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16492. .name = "Source Tracking Voice Tx INT3_MI2S",
  16493. .info = msm_source_tracking_info,
  16494. .get = msm_voice_source_tracking_get,
  16495. },
  16496. {
  16497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16498. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16499. .name = "Sound Focus Audio Tx INT3_MI2S",
  16500. .info = msm_sound_focus_info,
  16501. .get = msm_audio_sound_focus_get,
  16502. .put = msm_audio_sound_focus_put,
  16503. },
  16504. {
  16505. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16506. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16507. .name = "Source Tracking Audio Tx INT3_MI2S",
  16508. .info = msm_source_tracking_info,
  16509. .get = msm_audio_source_tracking_get,
  16510. },
  16511. };
  16512. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  16513. struct snd_ctl_elem_value *ucontrol)
  16514. {
  16515. int ret = 0;
  16516. int item;
  16517. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  16518. pr_debug("%s item is %d\n", __func__,
  16519. ucontrol->value.enumerated.item[0]);
  16520. mutex_lock(&routing_lock);
  16521. item = ucontrol->value.enumerated.item[0];
  16522. if (item < e->items) {
  16523. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  16524. __func__, e->shift_l, e->values[item]);
  16525. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  16526. e->values[item] < MSM_BACKEND_DAI_MAX)
  16527. /* Enable feedback TX path */
  16528. ret = afe_spk_prot_feed_back_cfg(
  16529. msm_bedais[e->values[item]].port_id,
  16530. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  16531. else {
  16532. pr_debug("%s values are out of range item %d\n",
  16533. __func__, e->values[item]);
  16534. /* Disable feedback TX path */
  16535. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  16536. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  16537. else
  16538. ret = -EINVAL;
  16539. }
  16540. } else {
  16541. pr_err("%s item value is out of range item\n", __func__);
  16542. ret = -EINVAL;
  16543. }
  16544. mutex_unlock(&routing_lock);
  16545. return ret;
  16546. }
  16547. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  16548. struct snd_ctl_elem_value *ucontrol)
  16549. {
  16550. int ret = 0;
  16551. int item;
  16552. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  16553. pr_debug("%s item is %d\n", __func__,
  16554. ucontrol->value.enumerated.item[0]);
  16555. mutex_lock(&routing_lock);
  16556. item = ucontrol->value.enumerated.item[0];
  16557. if (item < e->items) {
  16558. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  16559. __func__, e->shift_l, e->values[item]);
  16560. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  16561. e->values[item] < MSM_BACKEND_DAI_MAX)
  16562. /* Enable feedback TX path */
  16563. ret = afe_spk_prot_feed_back_cfg(
  16564. msm_bedais[e->values[item]].port_id,
  16565. msm_bedais[e->shift_l].port_id,
  16566. 1, 1, 1);
  16567. else {
  16568. pr_debug("%s values are out of range item %d\n",
  16569. __func__, e->values[item]);
  16570. /* Disable feedback TX path */
  16571. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  16572. ret = afe_spk_prot_feed_back_cfg(0,
  16573. 0, 0, 0, 0);
  16574. else
  16575. ret = -EINVAL;
  16576. }
  16577. } else {
  16578. pr_err("%s item value is out of range item\n", __func__);
  16579. ret = -EINVAL;
  16580. }
  16581. mutex_unlock(&routing_lock);
  16582. return ret;
  16583. }
  16584. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  16585. struct snd_ctl_elem_value *ucontrol)
  16586. {
  16587. pr_debug("%s\n", __func__);
  16588. return 0;
  16589. }
  16590. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  16591. struct snd_ctl_elem_value *ucontrol)
  16592. {
  16593. pr_debug("%s\n", __func__);
  16594. ucontrol->value.enumerated.item[0] = 0;
  16595. return 0;
  16596. }
  16597. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  16598. "ZERO", "SLIM4_TX"
  16599. };
  16600. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  16601. "ZERO", "SLIM4_TX"
  16602. };
  16603. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  16604. "ZERO", "WSA_CDC_DMA_TX_0"
  16605. };
  16606. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  16607. "ZERO", "WSA_CDC_DMA_TX_0"
  16608. };
  16609. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  16610. "ZERO", "SENARY_TX"
  16611. };
  16612. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  16613. "ZERO", "INT5_MI2S_TX"
  16614. };
  16615. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  16616. "ZERO", "INT5_MI2S_TX"
  16617. };
  16618. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  16619. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  16620. };
  16621. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  16622. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  16623. };
  16624. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  16625. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  16626. };
  16627. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  16628. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  16629. };
  16630. static const int const mi2s_rx_vi_fb_tx_value[] = {
  16631. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  16632. };
  16633. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  16634. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  16635. };
  16636. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  16637. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  16638. };
  16639. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  16640. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  16641. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  16642. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  16643. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  16644. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  16645. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  16646. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  16647. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  16648. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  16649. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  16650. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  16651. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  16652. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  16653. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  16654. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  16655. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  16656. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  16657. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  16658. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  16659. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  16660. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  16661. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  16662. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  16663. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  16664. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  16665. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  16666. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  16667. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  16668. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  16669. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  16670. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  16671. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  16672. spkr_prot_put_vi_lch_port);
  16673. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  16674. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  16675. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  16676. spkr_prot_put_vi_rch_port);
  16677. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  16678. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  16679. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  16680. spkr_prot_put_vi_lch_port);
  16681. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  16682. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  16683. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  16684. spkr_prot_put_vi_rch_port);
  16685. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  16686. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  16687. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  16688. spkr_prot_put_vi_lch_port);
  16689. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  16690. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  16691. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  16692. spkr_prot_put_vi_lch_port);
  16693. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  16694. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  16695. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  16696. spkr_prot_put_vi_rch_port);
  16697. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  16698. /* Frontend AIF */
  16699. /* Widget name equals to Front-End DAI name<Need confirmation>,
  16700. * Stream name must contains substring of front-end dai name
  16701. */
  16702. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  16703. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  16704. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  16705. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  16706. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  16707. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  16708. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  16709. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  16710. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  16711. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  16712. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  16713. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  16714. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  16715. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  16716. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  16717. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  16718. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  16719. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  16720. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  16721. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  16722. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  16723. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  16724. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  16725. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  16726. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  16727. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  16728. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  16729. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  16730. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  16731. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  16732. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  16733. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  16734. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  16735. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  16736. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  16737. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  16738. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  16739. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  16740. "VoiceMMode1 Playback", 0, 0, 0, 0),
  16741. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  16742. "VoiceMMode1 Capture", 0, 0, 0, 0),
  16743. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  16744. "VoiceMMode2 Playback", 0, 0, 0, 0),
  16745. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  16746. "VoiceMMode2 Capture", 0, 0, 0, 0),
  16747. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  16748. 0, 0, 0, 0),
  16749. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  16750. 0, 0, 0, 0),
  16751. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  16752. 0, 0, 0, 0),
  16753. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  16754. 0, 0, 0, 0),
  16755. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  16756. 0, 0, 0, 0),
  16757. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  16758. 0, 0, 0, 0),
  16759. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  16760. 0, 0, 0, 0),
  16761. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  16762. 0, 0, 0, 0),
  16763. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  16764. 0, 0, 0, 0),
  16765. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  16766. 0, 0, 0, 0),
  16767. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  16768. 0, 0, 0, 0),
  16769. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  16770. 0, 0, 0, 0),
  16771. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  16772. 0, 0, 0, 0),
  16773. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  16774. 0, 0, 0, 0),
  16775. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  16776. 0, 0, 0, 0),
  16777. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  16778. 0, 0, 0, 0),
  16779. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  16780. 0, 0, 0, 0),
  16781. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  16782. 0, 0, 0, 0),
  16783. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  16784. 0, 0, 0, 0),
  16785. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  16786. 0, 0, 0, 0),
  16787. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  16788. 0, 0, 0, 0),
  16789. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  16790. 0, 0, 0, 0),
  16791. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  16792. 0, 0, 0, 0),
  16793. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  16794. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  16795. 0, 0, 0, 0),
  16796. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  16797. "INT0 MI2S_RX Hostless Playback",
  16798. 0, 0, 0, 0),
  16799. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  16800. "INT4 MI2S_RX Hostless Playback",
  16801. 0, 0, 0, 0),
  16802. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  16803. "Primary MI2S_RX Hostless Playback",
  16804. 0, 0, 0, 0),
  16805. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  16806. "Secondary MI2S_RX Hostless Playback",
  16807. 0, 0, 0, 0),
  16808. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  16809. "Tertiary MI2S_RX Hostless Playback",
  16810. 0, 0, 0, 0),
  16811. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  16812. "Quaternary MI2S_RX Hostless Playback",
  16813. 0, 0, 0, 0),
  16814. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  16815. "Quinary MI2S_RX Hostless Playback",
  16816. 0, 0, 0, 0),
  16817. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  16818. 0, 0, 0, 0),
  16819. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  16820. 0, 0, 0, 0),
  16821. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  16822. 0, 0, 0, 0),
  16823. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  16824. 0, 0, 0, 0),
  16825. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  16826. 0, 0, 0, 0),
  16827. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  16828. "INT3 MI2S_TX Hostless Capture",
  16829. 0, 0, 0, 0),
  16830. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  16831. "Tertiary MI2S_TX Hostless Capture",
  16832. 0, 0, 0, 0),
  16833. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  16834. "Secondary MI2S_TX Hostless Capture",
  16835. 0, 0, 0, 0),
  16836. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  16837. "Primary MI2S_TX Hostless Capture",
  16838. 0, 0, 0, 0),
  16839. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  16840. 0, 0, 0, 0),
  16841. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  16842. 0, 0, 0, 0),
  16843. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  16844. "Quaternary MI2S_TX Hostless Capture",
  16845. 0, 0, 0, 0),
  16846. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  16847. "Quinary MI2S_TX Hostless Capture",
  16848. 0, 0, 0, 0),
  16849. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  16850. "Primary TDM0 Hostless Playback",
  16851. 0, 0, 0, 0),
  16852. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  16853. "Primary TDM0 Hostless Capture",
  16854. 0, 0, 0, 0),
  16855. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  16856. "Primary TDM1 Hostless Playback",
  16857. 0, 0, 0, 0),
  16858. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  16859. "Primary TDM1 Hostless Capture",
  16860. 0, 0, 0, 0),
  16861. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  16862. "Primary TDM2 Hostless Playback",
  16863. 0, 0, 0, 0),
  16864. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  16865. "Primary TDM2 Hostless Capture",
  16866. 0, 0, 0, 0),
  16867. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  16868. "Primary TDM3 Hostless Playback",
  16869. 0, 0, 0, 0),
  16870. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  16871. "Primary TDM3 Hostless Capture",
  16872. 0, 0, 0, 0),
  16873. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  16874. "Primary TDM4 Hostless Playback",
  16875. 0, 0, 0, 0),
  16876. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  16877. "Primary TDM4 Hostless Capture",
  16878. 0, 0, 0, 0),
  16879. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  16880. "Primary TDM5 Hostless Playback",
  16881. 0, 0, 0, 0),
  16882. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  16883. "Primary TDM5 Hostless Capture",
  16884. 0, 0, 0, 0),
  16885. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  16886. "Primary TDM6 Hostless Playback",
  16887. 0, 0, 0, 0),
  16888. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  16889. "Primary TDM6 Hostless Capture",
  16890. 0, 0, 0, 0),
  16891. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  16892. "Primary TDM7 Hostless Playback",
  16893. 0, 0, 0, 0),
  16894. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  16895. "Primary TDM7 Hostless Capture",
  16896. 0, 0, 0, 0),
  16897. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  16898. "Secondary TDM0 Hostless Playback",
  16899. 0, 0, 0, 0),
  16900. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  16901. "Secondary TDM0 Hostless Capture",
  16902. 0, 0, 0, 0),
  16903. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  16904. "Secondary TDM1 Hostless Playback",
  16905. 0, 0, 0, 0),
  16906. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  16907. "Secondary TDM1 Hostless Capture",
  16908. 0, 0, 0, 0),
  16909. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  16910. "Secondary TDM2 Hostless Playback",
  16911. 0, 0, 0, 0),
  16912. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  16913. "Secondary TDM2 Hostless Capture",
  16914. 0, 0, 0, 0),
  16915. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  16916. "Secondary TDM3 Hostless Playback",
  16917. 0, 0, 0, 0),
  16918. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  16919. "Secondary TDM3 Hostless Capture",
  16920. 0, 0, 0, 0),
  16921. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  16922. "Secondary TDM4 Hostless Playback",
  16923. 0, 0, 0, 0),
  16924. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  16925. "Secondary TDM4 Hostless Capture",
  16926. 0, 0, 0, 0),
  16927. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  16928. "Secondary TDM5 Hostless Playback",
  16929. 0, 0, 0, 0),
  16930. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  16931. "Secondary TDM5 Hostless Capture",
  16932. 0, 0, 0, 0),
  16933. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  16934. "Secondary TDM6 Hostless Playback",
  16935. 0, 0, 0, 0),
  16936. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  16937. "Secondary TDM6 Hostless Capture",
  16938. 0, 0, 0, 0),
  16939. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  16940. "Secondary TDM7 Hostless Playback",
  16941. 0, 0, 0, 0),
  16942. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  16943. "Secondary TDM7 Hostless Capture",
  16944. 0, 0, 0, 0),
  16945. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  16946. "Tertiary TDM0 Hostless Playback",
  16947. 0, 0, 0, 0),
  16948. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  16949. "Tertiary TDM0 Hostless Capture",
  16950. 0, 0, 0, 0),
  16951. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  16952. "Tertiary TDM1 Hostless Playback",
  16953. 0, 0, 0, 0),
  16954. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  16955. "Tertiary TDM1 Hostless Capture",
  16956. 0, 0, 0, 0),
  16957. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  16958. "Tertiary TDM2 Hostless Playback",
  16959. 0, 0, 0, 0),
  16960. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  16961. "Tertiary TDM2 Hostless Capture",
  16962. 0, 0, 0, 0),
  16963. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  16964. "Tertiary TDM3 Hostless Playback",
  16965. 0, 0, 0, 0),
  16966. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  16967. "Tertiary TDM3 Hostless Capture",
  16968. 0, 0, 0, 0),
  16969. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  16970. "Tertiary TDM4 Hostless Playback",
  16971. 0, 0, 0, 0),
  16972. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  16973. "Tertiary TDM4 Hostless Capture",
  16974. 0, 0, 0, 0),
  16975. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  16976. "Tertiary TDM5 Hostless Playback",
  16977. 0, 0, 0, 0),
  16978. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  16979. "Tertiary TDM5 Hostless Capture",
  16980. 0, 0, 0, 0),
  16981. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  16982. "Tertiary TDM6 Hostless Playback",
  16983. 0, 0, 0, 0),
  16984. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  16985. "Tertiary TDM6 Hostless Capture",
  16986. 0, 0, 0, 0),
  16987. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  16988. "Tertiary TDM7 Hostless Playback",
  16989. 0, 0, 0, 0),
  16990. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  16991. "Tertiary TDM7 Hostless Capture",
  16992. 0, 0, 0, 0),
  16993. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  16994. "Quaternary TDM0 Hostless Playback",
  16995. 0, 0, 0, 0),
  16996. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  16997. "Quaternary TDM0 Hostless Capture",
  16998. 0, 0, 0, 0),
  16999. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  17000. "Quaternary TDM1 Hostless Playback",
  17001. 0, 0, 0, 0),
  17002. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  17003. "Quaternary TDM1 Hostless Capture",
  17004. 0, 0, 0, 0),
  17005. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  17006. "Quaternary TDM2 Hostless Playback",
  17007. 0, 0, 0, 0),
  17008. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  17009. "Quaternary TDM2 Hostless Capture",
  17010. 0, 0, 0, 0),
  17011. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  17012. "Quaternary TDM3 Hostless Playback",
  17013. 0, 0, 0, 0),
  17014. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  17015. "Quaternary TDM3 Hostless Capture",
  17016. 0, 0, 0, 0),
  17017. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  17018. "Quaternary TDM4 Hostless Playback",
  17019. 0, 0, 0, 0),
  17020. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  17021. "Quaternary TDM4 Hostless Capture",
  17022. 0, 0, 0, 0),
  17023. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  17024. "Quaternary TDM5 Hostless Playback",
  17025. 0, 0, 0, 0),
  17026. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  17027. "Quaternary TDM5 Hostless Capture",
  17028. 0, 0, 0, 0),
  17029. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  17030. "Quaternary TDM6 Hostless Playback",
  17031. 0, 0, 0, 0),
  17032. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  17033. "Quaternary TDM6 Hostless Capture",
  17034. 0, 0, 0, 0),
  17035. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  17036. "Quaternary TDM7 Hostless Playback",
  17037. 0, 0, 0, 0),
  17038. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  17039. "Quaternary TDM7 Hostless Capture",
  17040. 0, 0, 0, 0),
  17041. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  17042. "Quinary TDM0 Hostless Playback",
  17043. 0, 0, 0, 0),
  17044. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  17045. "Quinary TDM0 Hostless Capture",
  17046. 0, 0, 0, 0),
  17047. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  17048. "Quinary TDM1 Hostless Playback",
  17049. 0, 0, 0, 0),
  17050. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  17051. "Quinary TDM1 Hostless Capture",
  17052. 0, 0, 0, 0),
  17053. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  17054. "Quinary TDM2 Hostless Playback",
  17055. 0, 0, 0, 0),
  17056. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  17057. "Quinary TDM2 Hostless Capture",
  17058. 0, 0, 0, 0),
  17059. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  17060. "Quinary TDM3 Hostless Playback",
  17061. 0, 0, 0, 0),
  17062. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  17063. "Quinary TDM3 Hostless Capture",
  17064. 0, 0, 0, 0),
  17065. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  17066. "Quinary TDM4 Hostless Playback",
  17067. 0, 0, 0, 0),
  17068. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  17069. "Quinary TDM4 Hostless Capture",
  17070. 0, 0, 0, 0),
  17071. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  17072. "Quinary TDM5 Hostless Playback",
  17073. 0, 0, 0, 0),
  17074. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  17075. "Quinary TDM5 Hostless Capture",
  17076. 0, 0, 0, 0),
  17077. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  17078. "Quinary TDM6 Hostless Playback",
  17079. 0, 0, 0, 0),
  17080. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  17081. "Quinary TDM6 Hostless Capture",
  17082. 0, 0, 0, 0),
  17083. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  17084. "Quinary TDM7 Hostless Playback",
  17085. 0, 0, 0, 0),
  17086. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  17087. "Quinary TDM7 Hostless Capture",
  17088. 0, 0, 0, 0),
  17089. /* LSM */
  17090. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  17091. 0, 0, 0, 0),
  17092. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  17093. 0, 0, 0, 0),
  17094. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  17095. 0, 0, 0, 0),
  17096. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  17097. 0, 0, 0, 0),
  17098. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  17099. 0, 0, 0, 0),
  17100. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  17101. 0, 0, 0, 0),
  17102. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  17103. 0, 0, 0, 0),
  17104. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  17105. 0, 0, 0, 0),
  17106. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  17107. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  17108. /* Backend AIF */
  17109. /* Stream name equals to backend dai link stream name */
  17110. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  17111. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  17112. 0, 0, 0, 0),
  17113. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  17114. 0, 0, 0, 0),
  17115. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  17116. 0, 0, 0, 0),
  17117. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  17118. 0, 0, 0, 0),
  17119. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  17120. 0, 0, 0, 0),
  17121. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  17122. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  17123. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  17124. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  17125. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  17126. 0, 0, 0, 0),
  17127. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  17128. 0, 0, 0, 0),
  17129. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  17130. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  17131. 0, 0, 0, 0),
  17132. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  17133. 0, 0, 0, 0),
  17134. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  17135. 0, 0, 0, 0),
  17136. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  17137. "Secondary MI2S Playback SD1",
  17138. 0, 0, 0, 0),
  17139. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  17140. 0, 0, 0, 0),
  17141. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  17142. 0, 0, 0, 0),
  17143. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  17144. 0, 0, 0, 0),
  17145. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  17146. 0, 0, 0, 0),
  17147. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  17148. 0, 0, 0, 0),
  17149. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  17150. 0, 0, 0, 0),
  17151. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  17152. 0, 0, 0, 0),
  17153. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  17154. 0, 0, 0, 0),
  17155. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  17156. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  17157. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  17158. 0, 0, 0, 0),
  17159. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  17160. 0, 0, 0, 0),
  17161. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  17162. 0, 0, 0, 0),
  17163. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  17164. 0, 0, 0, 0),
  17165. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  17166. 0, 0, 0, 0),
  17167. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  17168. 0, 0, 0, 0),
  17169. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  17170. 0, 0, 0, 0),
  17171. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  17172. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  17173. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  17174. 0, 0, 0, 0),
  17175. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  17176. 0, 0, 0, 0),
  17177. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  17178. 0, 0, 0, 0),
  17179. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  17180. 0, 0, 0, 0),
  17181. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  17182. 0, 0, 0, 0),
  17183. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  17184. 0, 0, 0, 0),
  17185. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  17186. 0, 0, 0, 0),
  17187. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  17188. 0, 0, 0, 0),
  17189. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  17190. 0, 0, 0, 0),
  17191. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  17192. 0, 0, 0, 0),
  17193. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  17194. 0, 0, 0, 0),
  17195. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  17196. 0, 0, 0, 0),
  17197. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  17198. 0, 0, 0, 0),
  17199. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  17200. 0, 0, 0, 0),
  17201. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  17202. 0, 0, 0, 0),
  17203. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  17204. 0, 0, 0, 0),
  17205. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  17206. 0, 0, 0, 0),
  17207. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  17208. 0, 0, 0, 0),
  17209. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  17210. 0, 0, 0, 0),
  17211. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  17212. 0, 0, 0, 0),
  17213. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  17214. 0, 0, 0, 0),
  17215. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  17216. 0, 0, 0, 0),
  17217. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  17218. 0, 0, 0, 0),
  17219. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  17220. 0, 0, 0, 0),
  17221. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  17222. 0, 0, 0, 0),
  17223. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  17224. 0, 0, 0, 0),
  17225. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  17226. 0, 0, 0, 0),
  17227. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  17228. 0, 0, 0, 0),
  17229. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  17230. 0, 0, 0, 0),
  17231. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  17232. 0, 0, 0, 0),
  17233. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  17234. 0, 0, 0, 0),
  17235. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  17236. 0, 0, 0, 0),
  17237. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  17238. 0, 0, 0, 0),
  17239. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  17240. 0, 0, 0, 0),
  17241. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  17242. 0, 0, 0, 0),
  17243. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  17244. 0, 0, 0, 0),
  17245. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  17246. 0, 0, 0, 0),
  17247. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  17248. 0, 0, 0, 0),
  17249. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  17250. 0, 0, 0, 0),
  17251. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  17252. 0, 0, 0, 0),
  17253. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  17254. 0, 0, 0, 0),
  17255. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  17256. 0, 0, 0, 0),
  17257. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  17258. 0, 0, 0, 0),
  17259. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  17260. 0, 0, 0, 0),
  17261. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  17262. 0, 0, 0, 0),
  17263. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  17264. 0, 0, 0, 0),
  17265. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  17266. 0, 0, 0, 0),
  17267. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  17268. 0, 0, 0, 0),
  17269. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  17270. 0, 0, 0, 0),
  17271. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  17272. 0, 0, 0, 0),
  17273. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  17274. 0, 0, 0, 0),
  17275. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  17276. 0, 0, 0, 0),
  17277. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  17278. 0, 0, 0, 0),
  17279. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  17280. 0, 0, 0, 0),
  17281. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  17282. 0, 0, 0, 0),
  17283. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  17284. 0, 0, 0, 0),
  17285. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  17286. 0, 0, 0, 0),
  17287. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  17288. 0, 0, 0, 0),
  17289. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  17290. 0, 0, 0, 0),
  17291. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  17292. 0, 0, 0, 0),
  17293. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  17294. 0, 0, 0, 0),
  17295. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  17296. 0, 0, 0, 0),
  17297. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  17298. 0, 0, 0, 0),
  17299. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  17300. 0, 0, 0, 0),
  17301. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  17302. 0, 0, 0, 0),
  17303. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  17304. 0, 0, 0, 0),
  17305. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  17306. 0, 0, 0, 0),
  17307. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  17308. 0, 0, 0, 0),
  17309. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  17310. 0, 0, 0, 0),
  17311. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  17312. 0, 0, 0, 0),
  17313. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  17314. 0, 0, 0, 0),
  17315. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  17316. 0, 0, 0, 0),
  17317. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  17318. 0, 0, 0, 0),
  17319. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  17320. 0, 0, 0, 0),
  17321. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  17322. 0, 0, 0, 0),
  17323. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  17324. 0, 0, 0, 0),
  17325. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  17326. 0, 0, 0, 0),
  17327. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  17328. 0, 0, 0, 0),
  17329. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  17330. 0, 0, 0, 0),
  17331. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  17332. 0, 0, 0, 0),
  17333. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  17334. 0, 0, 0, 0),
  17335. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  17336. 0, 0, 0, 0),
  17337. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  17338. 0, 0, 0, 0),
  17339. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  17340. 0, 0, 0, 0),
  17341. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  17342. 0, 0, 0, 0),
  17343. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  17344. 0, 0, 0, 0),
  17345. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  17346. 0, 0, 0, 0),
  17347. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  17348. 0, 0, 0, 0),
  17349. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  17350. 0, 0, 0, 0),
  17351. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  17352. 0, 0, 0, 0),
  17353. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  17354. 0, 0, 0, 0),
  17355. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  17356. 0, 0, 0, 0),
  17357. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  17358. 0, 0, 0, 0),
  17359. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  17360. 0, 0, 0, 0),
  17361. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  17362. 0, 0, 0, 0),
  17363. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  17364. 0, 0, 0, 0),
  17365. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  17366. 0, 0, 0, 0),
  17367. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  17368. 0, 0, 0, 0),
  17369. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  17370. 0, 0, 0, 0),
  17371. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  17372. 0, 0, 0, 0),
  17373. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  17374. 0, 0, 0, 0),
  17375. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  17376. 0, 0, 0, 0),
  17377. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  17378. 0, 0, 0, 0),
  17379. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  17380. 0, 0, 0, 0),
  17381. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  17382. 0, 0, 0, 0),
  17383. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  17384. 0, 0, 0, 0),
  17385. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  17386. 0, 0, 0, 0),
  17387. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  17388. 0, 0, 0, 0),
  17389. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  17390. 0, 0, 0, 0),
  17391. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  17392. 0, 0, 0, 0),
  17393. /* incall */
  17394. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  17395. 0, 0, 0, 0),
  17396. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  17397. 0, 0, 0, 0),
  17398. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  17399. 0, 0, 0, 0),
  17400. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  17401. 0, 0, 0, 0),
  17402. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  17403. 0, 0, 0, 0),
  17404. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  17405. 0, 0, 0, 0),
  17406. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  17407. 0, 0, 0, 0),
  17408. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  17409. 0, 0, 0, 0),
  17410. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  17411. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  17412. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  17413. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  17414. 0, 0, 0, 0),
  17415. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  17416. 0, 0, 0, 0),
  17417. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  17418. 0, 0, 0, 0),
  17419. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  17420. 0, 0, 0, 0),
  17421. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  17422. 0, 0, 0, 0),
  17423. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  17424. 0, 0, 0, 0),
  17425. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  17426. 0, 0, 0, 0),
  17427. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  17428. 0, 0, 0, 0),
  17429. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  17430. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  17431. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  17432. 0, 0, 0, 0),
  17433. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  17434. 0, 0, 0, 0),
  17435. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  17436. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  17437. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  17438. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  17439. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  17440. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  17441. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  17442. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  17443. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  17444. /* In- call recording */
  17445. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  17446. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  17447. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  17448. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  17449. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  17450. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  17451. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  17452. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  17453. /* Switch Definitions */
  17454. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  17455. &slim_fm_switch_mixer_controls),
  17456. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  17457. &slim1_fm_switch_mixer_controls),
  17458. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  17459. &slim3_fm_switch_mixer_controls),
  17460. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  17461. &slim4_fm_switch_mixer_controls),
  17462. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  17463. &slim6_fm_switch_mixer_controls),
  17464. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17465. &pcm_rx_switch_mixer_controls),
  17466. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17467. &int0_mi2s_rx_switch_mixer_controls),
  17468. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17469. &int4_mi2s_rx_switch_mixer_controls),
  17470. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17471. &pri_mi2s_rx_switch_mixer_controls),
  17472. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17473. &sec_mi2s_rx_switch_mixer_controls),
  17474. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17475. &tert_mi2s_rx_switch_mixer_controls),
  17476. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17477. &quat_mi2s_rx_switch_mixer_controls),
  17478. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17479. &quin_mi2s_rx_switch_mixer_controls),
  17480. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  17481. &hfp_pri_aux_switch_mixer_controls),
  17482. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  17483. &hfp_aux_switch_mixer_controls),
  17484. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  17485. &hfp_int_switch_mixer_controls),
  17486. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  17487. &hfp_slim7_switch_mixer_controls),
  17488. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  17489. &usb_switch_mixer_controls),
  17490. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  17491. &a2dp_slim7_switch_mixer_controls),
  17492. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  17493. &cdc_dma_fm_switch_mixer_controls),
  17494. /* Mixer definitions */
  17495. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17496. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  17497. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17498. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  17499. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17500. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  17501. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17502. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  17503. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17504. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  17505. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17506. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  17507. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  17508. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  17509. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  17510. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  17511. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  17512. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  17513. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17514. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  17515. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17516. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  17517. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17518. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  17519. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17520. quaternary_mi2s_rx_mixer_controls,
  17521. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  17522. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17523. tertiary_mi2s_rx_mixer_controls,
  17524. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  17525. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17526. secondary_mi2s_rx_mixer_controls,
  17527. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  17528. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17529. secondary_mi2s_rx2_mixer_controls,
  17530. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  17531. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17532. primary_mi2s_rx_mixer_controls,
  17533. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  17534. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17535. int0_mi2s_rx_mixer_controls,
  17536. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  17537. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17538. int4_mi2s_rx_mixer_controls,
  17539. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  17540. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17541. quinary_mi2s_rx_mixer_controls,
  17542. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  17543. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17544. pri_tdm_rx_0_mixer_controls,
  17545. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  17546. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17547. pri_tdm_rx_1_mixer_controls,
  17548. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  17549. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17550. pri_tdm_rx_2_mixer_controls,
  17551. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  17552. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17553. pri_tdm_rx_3_mixer_controls,
  17554. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  17555. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17556. pri_tdm_tx_0_mixer_controls,
  17557. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  17558. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17559. sec_tdm_rx_0_mixer_controls,
  17560. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  17561. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17562. sec_tdm_rx_1_mixer_controls,
  17563. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  17564. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17565. sec_tdm_rx_2_mixer_controls,
  17566. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  17567. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17568. sec_tdm_rx_3_mixer_controls,
  17569. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  17570. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17571. sec_tdm_tx_0_mixer_controls,
  17572. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  17573. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17574. tert_tdm_rx_0_mixer_controls,
  17575. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  17576. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17577. tert_tdm_tx_0_mixer_controls,
  17578. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  17579. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17580. tert_tdm_rx_1_mixer_controls,
  17581. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  17582. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17583. tert_tdm_rx_2_mixer_controls,
  17584. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  17585. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17586. tert_tdm_rx_3_mixer_controls,
  17587. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  17588. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17589. tert_tdm_rx_4_mixer_controls,
  17590. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  17591. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17592. quat_tdm_rx_0_mixer_controls,
  17593. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  17594. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17595. quat_tdm_tx_0_mixer_controls,
  17596. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  17597. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17598. quat_tdm_rx_1_mixer_controls,
  17599. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  17600. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17601. quat_tdm_rx_2_mixer_controls,
  17602. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  17603. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17604. quat_tdm_rx_3_mixer_controls,
  17605. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  17606. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17607. quin_tdm_rx_0_mixer_controls,
  17608. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  17609. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17610. quin_tdm_tx_0_mixer_controls,
  17611. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  17612. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17613. quin_tdm_rx_1_mixer_controls,
  17614. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  17615. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17616. quin_tdm_rx_2_mixer_controls,
  17617. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  17618. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17619. quin_tdm_rx_3_mixer_controls,
  17620. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  17621. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17622. wsa_cdc_dma_rx_0_mixer_controls,
  17623. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  17624. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17625. wsa_cdc_dma_rx_1_mixer_controls,
  17626. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  17627. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17628. rx_cdc_dma_rx_0_mixer_controls,
  17629. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  17630. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17631. rx_cdc_dma_rx_1_mixer_controls,
  17632. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  17633. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17634. rx_cdc_dma_rx_2_mixer_controls,
  17635. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  17636. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17637. rx_cdc_dma_rx_3_mixer_controls,
  17638. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  17639. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17640. rx_cdc_dma_rx_4_mixer_controls,
  17641. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  17642. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17643. rx_cdc_dma_rx_5_mixer_controls,
  17644. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  17645. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17646. rx_cdc_dma_rx_6_mixer_controls,
  17647. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  17648. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17649. rx_cdc_dma_rx_7_mixer_controls,
  17650. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  17651. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  17652. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  17653. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  17654. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  17655. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  17656. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  17657. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  17658. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  17659. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  17660. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  17661. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  17662. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  17663. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  17664. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  17665. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  17666. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  17667. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  17668. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  17669. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  17670. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  17671. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  17672. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  17673. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  17674. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  17675. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  17676. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  17677. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  17678. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  17679. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  17680. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  17681. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  17682. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  17683. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  17684. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  17685. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17686. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  17687. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17688. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  17689. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17690. tert_auxpcm_rx_mixer_controls,
  17691. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  17692. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17693. quat_auxpcm_rx_mixer_controls,
  17694. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  17695. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17696. quin_auxpcm_rx_mixer_controls,
  17697. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  17698. /* incall */
  17699. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  17700. incall_music_delivery_mixer_controls,
  17701. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  17702. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17703. incall_music2_delivery_mixer_controls,
  17704. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  17705. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17706. slimbus_4_rx_mixer_controls,
  17707. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  17708. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17709. slimbus_6_rx_mixer_controls,
  17710. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  17711. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17712. usb_audio_rx_mixer_controls,
  17713. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  17714. /* Voice Mixer */
  17715. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  17716. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  17717. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  17718. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  17719. SND_SOC_NOPM, 0, 0,
  17720. sec_i2s_rx_voice_mixer_controls,
  17721. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  17722. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  17723. SND_SOC_NOPM, 0, 0,
  17724. sec_mi2s_rx_voice_mixer_controls,
  17725. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  17726. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  17727. SND_SOC_NOPM, 0, 0,
  17728. slimbus_rx_voice_mixer_controls,
  17729. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  17730. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  17731. SND_SOC_NOPM, 0, 0,
  17732. bt_sco_rx_voice_mixer_controls,
  17733. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  17734. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  17735. SND_SOC_NOPM, 0, 0,
  17736. afe_pcm_rx_voice_mixer_controls,
  17737. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  17738. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  17739. SND_SOC_NOPM, 0, 0,
  17740. aux_pcm_rx_voice_mixer_controls,
  17741. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  17742. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  17743. SND_SOC_NOPM, 0, 0,
  17744. sec_aux_pcm_rx_voice_mixer_controls,
  17745. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  17746. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  17747. SND_SOC_NOPM, 0, 0,
  17748. tert_aux_pcm_rx_voice_mixer_controls,
  17749. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  17750. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  17751. SND_SOC_NOPM, 0, 0,
  17752. quat_aux_pcm_rx_voice_mixer_controls,
  17753. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  17754. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  17755. SND_SOC_NOPM, 0, 0,
  17756. quin_aux_pcm_rx_voice_mixer_controls,
  17757. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  17758. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  17759. SND_SOC_NOPM, 0, 0,
  17760. hdmi_rx_voice_mixer_controls,
  17761. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  17762. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  17763. SND_SOC_NOPM, 0, 0,
  17764. mi2s_rx_voice_mixer_controls,
  17765. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  17766. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  17767. SND_SOC_NOPM, 0, 0,
  17768. pri_mi2s_rx_voice_mixer_controls,
  17769. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  17770. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  17771. SND_SOC_NOPM, 0, 0,
  17772. int0_mi2s_rx_voice_mixer_controls,
  17773. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  17774. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  17775. SND_SOC_NOPM, 0, 0,
  17776. int4_mi2s_rx_voice_mixer_controls,
  17777. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  17778. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  17779. SND_SOC_NOPM, 0, 0,
  17780. tert_mi2s_rx_voice_mixer_controls,
  17781. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  17782. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  17783. SND_SOC_NOPM, 0, 0,
  17784. quat_mi2s_rx_voice_mixer_controls,
  17785. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  17786. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  17787. SND_SOC_NOPM, 0, 0,
  17788. quin_mi2s_rx_voice_mixer_controls,
  17789. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  17790. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  17791. SND_SOC_NOPM, 0, 0,
  17792. quat_tdm_rx_2_voice_mixer_controls,
  17793. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  17794. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  17795. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  17796. ARRAY_SIZE(tx_voip_mixer_controls)),
  17797. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  17798. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  17799. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  17800. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  17801. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  17802. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  17803. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17804. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  17805. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17806. int_bt_a2dp_rx_mixer_controls,
  17807. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  17808. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17809. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  17810. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17811. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  17812. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  17813. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  17814. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  17815. tx_voice2_stub_mixer_controls,
  17816. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  17817. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  17818. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  17819. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  17820. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  17821. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  17822. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  17823. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  17824. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  17825. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  17826. SND_SOC_NOPM, 0, 0,
  17827. slimbus_6_rx_voice_mixer_controls,
  17828. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  17829. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  17830. slimbus_7_rx_voice_mixer_controls,
  17831. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  17832. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  17833. slimbus_8_rx_voice_mixer_controls,
  17834. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  17835. /* port mixer */
  17836. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  17837. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  17838. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  17839. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  17840. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  17841. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  17842. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  17843. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  17844. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  17845. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  17846. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  17847. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  17848. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  17849. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  17850. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  17851. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  17852. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  17853. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  17854. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17855. sbus_1_rx_port_mixer_controls,
  17856. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  17857. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17858. bt_sco_rx_port_mixer_controls,
  17859. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  17860. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  17861. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  17862. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  17863. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  17864. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  17865. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  17866. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  17867. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  17868. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  17869. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  17870. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  17871. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  17872. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  17873. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  17874. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  17875. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  17876. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  17877. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  17878. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  17879. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  17880. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  17881. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17882. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  17883. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17884. primary_mi2s_rx_port_mixer_controls,
  17885. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  17886. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17887. sec_mi2s_rx_port_mixer_controls,
  17888. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  17889. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17890. tert_mi2s_rx_port_mixer_controls,
  17891. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  17892. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17893. quat_mi2s_rx_port_mixer_controls,
  17894. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  17895. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17896. quin_mi2s_rx_port_mixer_controls,
  17897. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  17898. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17899. pri_tdm_rx_0_port_mixer_controls,
  17900. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  17901. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17902. pri_tdm_rx_1_port_mixer_controls,
  17903. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  17904. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17905. pri_tdm_rx_2_port_mixer_controls,
  17906. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  17907. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17908. pri_tdm_rx_3_port_mixer_controls,
  17909. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  17910. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17911. sec_tdm_rx_0_port_mixer_controls,
  17912. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  17913. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17914. sec_tdm_rx_1_port_mixer_controls,
  17915. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  17916. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17917. sec_tdm_rx_2_port_mixer_controls,
  17918. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  17919. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17920. sec_tdm_rx_3_port_mixer_controls,
  17921. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  17922. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17923. tert_tdm_rx_0_port_mixer_controls,
  17924. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  17925. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17926. tert_tdm_rx_1_port_mixer_controls,
  17927. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  17928. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17929. tert_tdm_rx_2_port_mixer_controls,
  17930. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  17931. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17932. tert_tdm_rx_3_port_mixer_controls,
  17933. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  17934. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17935. quat_tdm_rx_0_port_mixer_controls,
  17936. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  17937. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17938. quat_tdm_rx_1_port_mixer_controls,
  17939. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  17940. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17941. quat_tdm_rx_2_port_mixer_controls,
  17942. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  17943. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17944. quat_tdm_rx_3_port_mixer_controls,
  17945. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  17946. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17947. quin_tdm_rx_0_port_mixer_controls,
  17948. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  17949. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17950. quin_tdm_rx_1_port_mixer_controls,
  17951. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  17952. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17953. quin_tdm_rx_2_port_mixer_controls,
  17954. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  17955. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17956. quin_tdm_rx_3_port_mixer_controls,
  17957. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  17958. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17959. int0_mi2s_rx_port_mixer_controls,
  17960. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  17961. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17962. int4_mi2s_rx_port_mixer_controls,
  17963. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  17964. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  17965. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  17966. ARRAY_SIZE(tx_qchat_mixer_controls)),
  17967. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  17968. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  17969. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  17970. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  17971. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  17972. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  17973. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  17974. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  17975. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  17976. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  17977. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  17978. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  17979. /* lsm mixer definitions */
  17980. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  17981. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  17982. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  17983. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  17984. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  17985. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  17986. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  17987. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  17988. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  17989. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  17990. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  17991. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  17992. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  17993. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  17994. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  17995. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  17996. /* Virtual Pins to force backends ON atm */
  17997. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  17998. SND_SOC_DAPM_INPUT("BE_IN"),
  17999. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18000. &slim0_rx_vi_fb_lch_mux),
  18001. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18002. &slim0_rx_vi_fb_rch_mux),
  18003. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18004. &wsa_rx_0_vi_fb_lch_mux),
  18005. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18006. &wsa_rx_0_vi_fb_rch_mux),
  18007. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  18008. &mi2s_rx_vi_fb_mux),
  18009. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18010. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  18011. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18012. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  18013. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  18014. &voc_ext_ec_mux),
  18015. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  18016. &ext_ec_ref_mux_ul1),
  18017. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  18018. &ext_ec_ref_mux_ul2),
  18019. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  18020. &ext_ec_ref_mux_ul3),
  18021. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  18022. &ext_ec_ref_mux_ul4),
  18023. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  18024. &ext_ec_ref_mux_ul5),
  18025. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  18026. &ext_ec_ref_mux_ul6),
  18027. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  18028. &ext_ec_ref_mux_ul8),
  18029. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  18030. &ext_ec_ref_mux_ul9),
  18031. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  18032. &ext_ec_ref_mux_ul10),
  18033. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  18034. &ext_ec_ref_mux_ul16),
  18035. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  18036. &ext_ec_ref_mux_ul17),
  18037. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  18038. &ext_ec_ref_mux_ul18),
  18039. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  18040. &ext_ec_ref_mux_ul19),
  18041. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  18042. &ext_ec_ref_mux_ul28),
  18043. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  18044. &ext_ec_ref_mux_ul29),
  18045. };
  18046. static const struct snd_soc_dapm_route intercon[] = {
  18047. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18048. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18049. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18050. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18051. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18052. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18053. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18054. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18055. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18056. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18057. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18058. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18059. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18060. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18061. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18062. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18063. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  18064. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18065. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18066. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18067. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18068. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18069. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18070. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18071. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18072. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18073. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18074. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18075. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18076. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18077. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18078. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18079. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18080. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  18081. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18082. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18083. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18084. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18085. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18086. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18087. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18088. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18089. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18090. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18091. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18092. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18093. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18094. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18095. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18096. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18097. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  18098. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18099. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18100. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18101. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18102. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18103. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18104. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18105. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18106. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18107. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18108. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18109. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18110. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18111. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18112. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18113. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18114. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  18115. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18116. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18117. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18118. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18119. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18120. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18121. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18122. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18123. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18124. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18125. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18126. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18127. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18128. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18129. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18130. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18131. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  18132. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18133. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18134. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18135. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18136. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18137. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18138. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18139. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18140. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18141. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18142. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18143. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18144. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18145. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18146. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18147. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18148. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  18149. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18150. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18151. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18152. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18153. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18154. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18155. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18156. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18157. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18158. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18159. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18160. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18161. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18162. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18163. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18164. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18165. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  18166. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18167. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18168. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18169. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18170. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18171. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18172. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18173. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18174. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18175. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18176. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18177. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18178. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18179. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18180. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18181. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18182. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  18183. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18184. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18185. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18186. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18187. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18188. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18189. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18190. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18191. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18192. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18193. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18194. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18195. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18196. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18197. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18198. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18199. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  18200. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18201. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18202. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18203. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18204. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18205. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18206. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18207. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18208. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18209. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18210. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18211. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18212. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18213. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18214. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18215. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18216. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  18217. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18218. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18219. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18220. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18221. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18222. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18223. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18224. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18225. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18226. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18227. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18228. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18229. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18230. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18231. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18232. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18233. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  18234. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18235. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18236. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18237. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18238. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18239. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18240. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18241. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18242. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18243. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18244. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18245. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18246. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18247. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18248. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18249. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18250. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  18251. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18252. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18253. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18254. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18255. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18256. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18257. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18258. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18259. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18260. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18261. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18262. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18263. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18264. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18265. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18266. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18267. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  18268. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18269. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18270. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18271. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18272. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18273. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18274. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18275. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18276. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18277. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18278. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18279. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18280. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18281. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18282. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18283. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18284. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  18285. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18286. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18287. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18288. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18289. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18290. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18291. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18292. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18293. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18294. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18295. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18296. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18297. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18298. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18299. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18300. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18301. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  18302. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  18303. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  18304. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  18305. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  18306. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  18307. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  18308. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  18309. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  18310. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  18311. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  18312. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  18313. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  18314. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  18315. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  18316. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  18317. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  18318. {"HDMI", NULL, "HDMI Mixer"},
  18319. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  18320. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  18321. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  18322. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  18323. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  18324. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  18325. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  18326. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  18327. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  18328. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  18329. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  18330. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  18331. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  18332. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  18333. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  18334. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  18335. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  18336. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  18337. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  18338. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  18339. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  18340. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  18341. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  18342. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  18343. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  18344. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  18345. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  18346. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  18347. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  18348. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  18349. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  18350. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  18351. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  18352. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  18353. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18354. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18355. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18356. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18357. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18358. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18359. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18360. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18361. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18362. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18363. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18364. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18365. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18366. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18367. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18368. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18369. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  18370. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18371. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18372. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18373. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18374. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18375. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18376. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18377. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18378. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18379. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18380. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18381. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18382. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18383. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18384. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18385. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18386. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  18387. /* incall */
  18388. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  18389. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  18390. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  18391. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  18392. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  18393. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18394. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18395. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18396. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18397. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  18398. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18399. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18400. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18401. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18402. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  18403. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18404. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18405. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18406. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18407. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18408. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18409. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18410. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18411. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18412. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18413. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18414. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18415. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18416. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18417. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18418. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18419. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  18420. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18421. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18422. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18423. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18424. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18425. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18426. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18427. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18428. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18429. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18430. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18431. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18432. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18433. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18434. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18435. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18436. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  18437. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18438. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18439. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18440. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18441. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18442. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18443. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18444. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18445. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18446. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18447. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18448. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18449. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18450. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18451. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18452. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18453. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  18454. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  18455. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  18456. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  18457. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  18458. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  18459. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  18460. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  18461. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  18462. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18463. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18464. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  18465. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18466. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18467. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18468. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18469. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18470. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18471. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18472. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18473. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18474. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18475. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18476. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18477. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18478. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18479. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18480. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18481. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18482. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18483. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18484. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18485. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18486. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18487. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18488. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18489. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18490. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18491. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18492. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18493. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18494. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18495. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18496. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18497. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18498. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18499. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18500. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  18501. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  18502. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18503. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18504. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18505. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18506. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18507. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18508. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18509. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18510. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18511. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18512. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18513. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18514. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18515. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18516. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18517. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18518. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  18519. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18520. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18521. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18522. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18523. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18524. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18525. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18526. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18527. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18528. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18529. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18530. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18531. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18532. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18533. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18534. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  18535. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18536. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18537. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18538. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18539. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18540. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18541. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18542. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18543. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18544. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18545. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18546. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18547. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18548. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18549. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  18550. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18551. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18552. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18553. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18554. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18555. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18556. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18557. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18558. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18559. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18560. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18561. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18562. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18563. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18564. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  18565. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18566. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  18567. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18568. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18569. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18570. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18571. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18572. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18573. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18574. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18575. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18576. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18577. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18578. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18579. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18580. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18581. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18582. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18583. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18584. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  18585. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18586. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18587. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18588. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18589. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18590. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18591. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18592. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18593. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18594. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18595. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18596. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18597. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18598. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18599. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18600. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  18601. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18602. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18603. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18604. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18605. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18606. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18607. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18608. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18609. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18610. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18611. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18612. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18613. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18614. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18615. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18616. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  18617. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18618. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18619. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18620. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18621. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18622. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18623. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18624. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18625. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18626. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18627. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18628. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18629. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18630. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18631. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18632. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18633. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18634. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  18635. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18636. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18637. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18638. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18639. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18640. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18641. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18642. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18643. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18644. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18645. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18646. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18647. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18648. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18649. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18650. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18651. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18652. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  18653. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18654. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18655. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18656. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18657. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18658. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18659. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18660. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18661. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18662. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18663. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18664. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18665. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18666. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18667. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18668. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18669. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18670. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  18671. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18672. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18673. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18674. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18675. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18676. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18677. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18678. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18679. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18680. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18681. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18682. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18683. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18684. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18685. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18686. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18687. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18688. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  18689. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18690. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18691. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18692. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18693. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18694. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18695. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18696. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18697. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18698. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18699. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18700. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18701. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18702. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18703. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18704. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18705. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18706. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  18707. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18708. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18709. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18710. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18711. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18712. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18713. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18714. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18715. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18716. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18717. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18718. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18719. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18720. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18721. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18722. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18723. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  18724. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18725. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18726. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18727. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18728. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18729. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18730. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18731. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18732. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18733. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18734. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18735. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18736. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18737. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18738. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18739. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18740. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18741. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  18742. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18743. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18744. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18745. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18746. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18747. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18748. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18749. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18750. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18751. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18752. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18753. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18754. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18755. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18756. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18757. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18758. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18759. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  18760. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18761. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18762. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18763. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18764. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18765. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18766. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18767. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18768. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18769. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18770. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18771. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18772. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18773. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18774. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18775. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18776. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18777. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  18778. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18779. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18780. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18781. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18782. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18783. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18784. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18785. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18786. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18787. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18788. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18789. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18790. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18791. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18792. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18793. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18794. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18795. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  18796. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18797. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18798. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18799. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18800. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18801. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18802. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18803. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18804. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18805. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18806. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18807. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18808. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18809. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18810. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18811. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18812. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  18813. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18814. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18815. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18816. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18817. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18818. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18819. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18820. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18821. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18822. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18823. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18824. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18825. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18826. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18827. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18828. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18829. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18830. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  18831. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18832. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18833. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18834. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18835. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18836. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18837. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18838. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18839. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18840. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18841. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18842. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18843. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18844. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18845. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18846. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18847. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  18848. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18849. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18850. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18851. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18852. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18853. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18854. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18855. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18856. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18857. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18858. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18859. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18860. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18861. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18862. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18863. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18864. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18865. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  18866. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18867. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18868. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18869. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18870. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18871. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18872. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18873. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18874. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18875. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18876. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18877. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18878. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18879. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18880. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18881. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18882. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18883. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  18884. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18885. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18886. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18887. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18888. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18889. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18890. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18891. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18892. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18893. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18894. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18895. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18896. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18897. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18898. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18899. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18900. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18901. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  18902. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18903. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18904. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18905. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18906. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18907. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18908. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18909. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18910. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18911. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18912. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18913. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18914. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18915. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18916. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18917. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18918. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18919. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  18920. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18921. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18922. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18923. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18924. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18925. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18926. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18927. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18928. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18929. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18930. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18931. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18932. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18933. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18934. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18935. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18936. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18937. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18938. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  18939. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18940. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18941. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18942. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18943. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18944. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18945. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18946. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18947. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18948. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18949. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18950. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18951. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18952. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18953. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18954. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18955. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  18956. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18957. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18958. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18959. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18960. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18961. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18962. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18963. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18964. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18965. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18966. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18967. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18968. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18969. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18970. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18971. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18972. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18973. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18974. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  18975. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18976. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18977. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18978. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18979. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18980. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18981. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18982. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18983. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18984. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18985. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18986. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18987. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18988. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18989. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18990. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18991. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18992. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  18993. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  18994. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18995. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18996. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18997. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18998. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18999. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19000. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19001. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19002. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19003. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19004. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19005. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19006. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19007. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19008. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19009. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19010. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19011. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19012. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  19013. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19014. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19015. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19016. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19017. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19018. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19019. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19020. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19021. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19022. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19023. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19024. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19025. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19026. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19027. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19028. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19029. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19030. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19031. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  19032. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19033. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19034. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19035. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19036. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19037. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19038. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19039. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19040. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19041. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19042. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19043. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19044. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19045. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19046. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19047. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19048. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  19049. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19050. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19051. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19052. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19053. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19054. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19055. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19056. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19057. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19058. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19059. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19060. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19061. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19062. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19063. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19064. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19065. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19066. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19067. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  19068. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19069. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19070. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19071. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19072. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19073. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19074. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19075. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19076. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19077. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19078. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19079. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19080. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19081. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19082. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19083. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19084. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19085. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19086. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  19087. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19088. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19089. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19090. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19091. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19092. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19093. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19094. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19095. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19096. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19097. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19098. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19099. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19100. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19101. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19102. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19103. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19104. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19105. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  19106. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  19107. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  19108. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  19109. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  19110. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  19111. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  19112. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  19113. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19114. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19115. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19116. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19117. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19118. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19119. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19120. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19121. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19122. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19123. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19124. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19125. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19126. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19127. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19128. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19129. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19130. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19131. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19132. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19133. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19134. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19135. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  19136. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19137. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19138. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19139. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  19140. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19141. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19142. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19143. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19144. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  19145. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19146. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19147. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19148. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19149. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19150. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19151. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19152. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19153. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19154. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19155. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19156. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19157. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19158. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19159. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19160. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19161. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19162. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19163. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19164. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19165. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19166. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19167. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19168. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19169. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19170. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19171. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19172. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19173. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19174. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19175. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19176. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19177. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19178. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19179. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19180. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19181. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19182. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19183. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19184. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19185. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19186. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19187. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19188. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19189. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19190. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19191. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19192. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19193. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19194. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19195. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19196. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19197. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19198. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19199. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19200. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19201. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19202. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19203. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19204. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19205. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19206. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19207. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19208. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19209. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19210. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19211. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19212. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19213. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19214. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19215. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19216. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19217. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19218. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19219. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19220. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19221. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19222. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19223. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19224. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19225. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19226. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19227. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19228. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19229. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19230. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19231. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19232. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19233. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19234. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19235. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19236. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19237. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19238. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19239. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19240. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19241. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19242. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19243. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19244. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19245. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19246. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19247. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19248. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19249. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19250. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19251. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19252. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19253. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19254. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19255. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19256. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19257. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19258. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19259. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19260. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19261. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19262. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19263. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19264. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19265. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19266. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19267. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19268. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19269. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19270. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19271. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19272. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19273. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19274. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19275. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19276. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19277. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19278. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19279. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19280. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19281. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19282. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19283. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19284. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19285. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19286. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19287. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19288. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19289. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19290. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19291. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19292. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19293. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19294. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19295. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19296. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19297. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19298. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19299. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19300. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19301. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19302. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19303. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19304. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19305. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19306. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19307. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19308. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19309. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19310. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19311. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19312. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19313. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19314. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19315. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19316. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19317. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19318. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19319. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19320. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19321. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19322. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19323. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19324. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19325. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19326. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19327. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19328. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19329. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19330. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19331. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19332. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19333. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19334. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19335. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19336. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19337. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19338. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19339. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19340. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19341. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19342. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19343. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19344. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19345. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19346. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19347. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19348. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19349. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19350. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19351. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19352. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19353. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19354. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19355. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19356. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19357. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19358. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19359. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19360. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19361. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19362. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19363. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19364. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19365. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19366. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19367. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19368. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19369. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19370. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19371. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19372. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19373. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19374. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19375. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19376. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19377. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19378. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19379. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19380. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19381. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19382. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19383. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19384. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19385. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19386. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19387. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19388. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19389. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19390. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19391. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19392. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19393. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19394. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19395. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19396. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19397. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19398. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19399. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19400. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19401. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19402. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19403. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19404. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19405. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19406. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19407. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19408. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19409. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19410. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19411. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19412. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19413. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19414. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19415. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19416. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19417. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19418. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19419. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19420. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19421. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19422. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19423. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19424. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19425. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19426. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19427. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19428. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19429. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19430. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19431. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19432. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19433. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19434. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19435. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19436. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19437. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19438. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19439. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19440. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19441. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19442. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19443. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19444. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19445. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19446. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19447. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19448. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19449. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19450. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19451. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19452. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19453. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19454. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19455. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19456. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19457. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19458. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19459. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19460. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19461. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19462. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19463. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19464. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19465. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19466. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19467. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19468. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19469. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19470. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19471. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19472. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19473. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19474. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19475. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19476. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19477. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19478. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19479. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19480. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19481. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19482. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19483. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19484. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19485. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19486. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19487. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19488. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19489. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19490. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19491. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19492. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19493. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19494. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19495. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19496. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19497. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19498. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19499. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19500. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19501. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19502. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19503. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19504. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19505. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19506. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19507. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19508. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19509. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19510. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19511. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19512. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19513. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19514. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19515. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19516. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19517. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19518. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19519. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19520. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19521. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19522. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19523. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19524. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19525. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19526. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19527. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19528. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19529. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19530. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19531. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19532. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19533. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19534. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19535. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19536. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19537. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19538. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19539. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19540. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19541. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19542. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19543. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19544. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19545. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19546. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19547. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19548. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19549. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19550. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19551. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19552. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19553. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19554. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19555. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19556. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19557. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19558. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19559. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19560. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19561. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19562. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19563. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19564. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19565. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19566. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19567. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19568. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19569. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19570. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19571. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19572. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19573. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19574. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19575. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19576. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19577. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19578. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19579. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19580. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19581. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19582. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19583. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19584. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19585. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19586. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19587. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19588. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19589. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19590. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19591. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19592. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19593. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19594. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19595. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19596. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  19597. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  19598. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19599. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19600. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19601. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19602. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19603. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19604. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19605. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19606. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19607. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19608. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19609. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19610. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19611. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19612. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19613. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19614. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  19615. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  19616. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19617. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19618. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19619. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19620. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19621. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19622. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19623. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19624. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19625. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19626. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19627. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19628. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19629. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19630. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19631. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19632. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  19633. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19634. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19635. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19636. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19637. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19638. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19639. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19640. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19641. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19642. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19643. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19644. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19645. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19646. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19647. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19648. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19649. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  19650. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19651. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19652. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19653. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19654. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19655. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19656. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19657. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19658. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19659. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19660. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19661. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19662. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19663. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19664. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19665. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19666. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19667. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19668. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19669. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19670. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19671. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19672. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19673. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19674. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19675. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19676. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19677. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19678. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19679. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19680. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19681. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19682. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19683. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19684. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19685. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  19686. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19687. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  19688. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  19689. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  19690. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  19691. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  19692. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  19693. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  19694. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  19695. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  19696. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  19697. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  19698. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  19699. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  19700. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  19701. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  19702. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  19703. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19704. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19705. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19706. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19707. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19708. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19709. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19710. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19711. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19712. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19713. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19714. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19715. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19716. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19717. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19718. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19719. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  19720. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  19721. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19722. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19723. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19724. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19725. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19726. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19727. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19728. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19729. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19730. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19731. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19732. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19733. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19734. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19735. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19736. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19737. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  19738. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  19739. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19740. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19741. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19742. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19743. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19744. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19745. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19746. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19747. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19748. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19749. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19750. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19751. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19752. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19753. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19754. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19755. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  19756. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19757. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19758. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19759. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19760. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19761. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19762. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19763. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19764. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19765. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19766. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19767. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19768. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19769. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19770. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19771. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19772. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  19773. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19774. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19775. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19776. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19777. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19778. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19779. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19780. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19781. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19782. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19783. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19784. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19785. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19786. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19787. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19788. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19789. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  19790. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19791. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19792. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19793. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19794. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19795. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  19796. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19797. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19798. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19799. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  19800. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19801. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19802. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19803. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19804. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19805. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  19806. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19807. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19808. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19809. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19810. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19811. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  19812. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19813. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19814. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19815. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19816. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19817. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  19818. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19819. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19820. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19821. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19822. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19823. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  19824. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19825. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19826. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19827. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19828. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19829. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  19830. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  19831. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19832. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19833. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19834. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19835. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  19836. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19837. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19838. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19839. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19840. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19841. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  19842. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19843. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19844. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19845. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19846. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19847. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  19848. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19849. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19850. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19851. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19852. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19853. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  19854. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19855. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19856. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19857. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19858. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19859. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  19860. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19861. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19862. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19863. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19864. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19865. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  19866. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19867. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19868. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19869. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19870. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19871. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  19872. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19873. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19874. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19875. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19876. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19877. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  19878. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19879. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19880. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19881. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19882. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19883. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  19884. {"HDMI", NULL, "HDMI_DL_HL"},
  19885. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19886. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19887. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19888. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19889. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19890. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  19891. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19892. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19893. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19894. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19895. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19896. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  19897. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19898. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19899. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19900. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19901. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19902. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  19903. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19904. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19905. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19906. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19907. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19908. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  19909. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19910. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19911. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19912. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19913. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19914. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  19915. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19916. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19917. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19918. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19919. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  19920. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19921. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19922. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19923. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19924. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  19925. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19926. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  19927. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19928. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19929. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19930. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19931. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19932. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19933. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  19934. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  19935. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  19936. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  19937. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19938. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19939. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19940. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19941. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19942. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19943. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  19944. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  19945. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  19946. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19947. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19948. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19949. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19950. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19951. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19952. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19953. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19954. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19955. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19956. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19957. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19958. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19959. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19960. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19961. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19962. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19963. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19964. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19965. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19966. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19967. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19968. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19969. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19970. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19971. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19972. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19973. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19974. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19975. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19976. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19977. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19978. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19979. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19980. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19981. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  19982. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  19983. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  19984. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19985. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19986. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19987. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19988. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19989. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19990. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19991. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19992. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19993. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19994. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19995. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19996. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19997. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19998. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19999. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20000. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20001. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20002. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20003. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20004. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20005. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20006. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20007. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20008. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20009. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20010. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20011. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20012. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20013. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20014. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20015. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20016. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20017. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20018. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  20019. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  20020. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  20021. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  20022. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  20023. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  20024. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  20025. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  20026. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  20027. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  20028. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  20029. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  20030. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  20031. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  20032. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  20033. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  20034. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  20035. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  20036. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  20037. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  20038. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  20039. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  20040. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  20041. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  20042. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  20043. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  20044. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  20045. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  20046. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  20047. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  20048. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  20049. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  20050. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  20051. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  20052. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  20053. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  20054. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  20055. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  20056. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  20057. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  20058. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  20059. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  20060. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  20061. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  20062. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  20063. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  20064. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  20065. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  20066. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  20067. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  20068. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  20069. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  20070. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  20071. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  20072. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  20073. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  20074. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  20075. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  20076. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  20077. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  20078. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  20079. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  20080. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  20081. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  20082. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  20083. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  20084. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  20085. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  20086. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  20087. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  20088. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  20089. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  20090. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  20091. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  20092. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  20093. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  20094. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  20095. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  20096. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  20097. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  20098. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  20099. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20100. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  20101. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  20102. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20103. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20104. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20105. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20106. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20107. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20108. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20109. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20110. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20111. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20112. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  20113. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20114. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20115. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20116. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20117. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20118. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20119. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20120. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20121. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20122. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20123. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  20124. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20125. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20126. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20127. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20128. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20129. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20130. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20131. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20132. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20133. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20134. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  20135. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20136. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20137. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20138. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20139. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20140. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20141. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20142. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20143. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20144. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20145. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  20146. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20147. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20148. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20149. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20150. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20151. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20152. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20153. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20154. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20155. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20156. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  20157. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20158. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20159. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20160. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20161. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20162. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20163. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20164. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20165. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  20166. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20167. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20168. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20169. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20170. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20171. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20172. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20173. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20174. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  20175. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20176. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20177. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20178. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20179. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20180. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20181. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20182. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20183. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  20184. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  20185. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  20186. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  20187. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  20188. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  20189. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  20190. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  20191. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  20192. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  20193. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  20194. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  20195. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  20196. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  20197. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  20198. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  20199. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  20200. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  20201. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  20202. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  20203. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  20204. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  20205. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  20206. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  20207. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  20208. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  20209. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  20210. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  20211. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20212. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  20213. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  20214. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  20215. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20216. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  20217. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  20218. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  20219. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  20220. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  20221. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  20222. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  20223. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  20224. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20225. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  20226. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20227. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  20228. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  20229. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  20230. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  20231. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  20232. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  20233. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  20234. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  20235. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  20236. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  20237. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  20238. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20239. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  20240. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20241. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  20242. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  20243. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  20244. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  20245. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  20246. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  20247. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  20248. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  20249. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  20250. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  20251. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  20252. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  20253. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  20254. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  20255. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  20256. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  20257. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  20258. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  20259. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  20260. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  20261. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  20262. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  20263. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  20264. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  20265. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  20266. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  20267. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  20268. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  20269. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  20270. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  20271. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  20272. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  20273. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  20274. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  20275. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  20276. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  20277. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  20278. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  20279. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  20280. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  20281. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  20282. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  20283. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  20284. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  20285. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  20286. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  20287. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  20288. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20289. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20290. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20291. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20292. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20293. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20294. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20295. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20296. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20297. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20298. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20299. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20300. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20301. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20302. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20303. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20304. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20305. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20306. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20307. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20308. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  20309. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20310. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20311. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20312. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20313. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20314. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20315. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20316. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20317. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20318. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20319. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20320. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20321. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20322. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20323. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20324. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20325. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20326. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20327. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20328. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20329. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  20330. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20331. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20332. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20333. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20334. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20335. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20336. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20337. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20338. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20339. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20340. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20341. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20342. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20343. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20344. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20345. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20346. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20347. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20348. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20349. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20350. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  20351. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20352. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20353. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20354. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20355. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20356. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20357. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20358. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20359. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20360. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20361. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20362. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20363. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20364. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20365. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20366. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20367. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20368. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20369. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20370. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20371. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  20372. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20373. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20374. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20375. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20376. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20377. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20378. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20379. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20380. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20381. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20382. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20383. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20384. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20385. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20386. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20387. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20388. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20389. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20390. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20391. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20392. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  20393. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20394. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20395. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20396. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20397. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20398. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20399. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20400. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20401. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20402. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20403. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20404. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20405. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20406. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20407. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20408. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20409. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20410. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20411. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20412. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20413. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  20414. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20415. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20416. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20417. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20418. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20419. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20420. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20421. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20422. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20423. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20424. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20425. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20426. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20427. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20428. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20429. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20430. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20431. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20432. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20433. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20434. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  20435. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20436. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20437. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20438. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20439. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20440. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20441. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20442. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20443. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20444. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20445. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20446. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20447. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20448. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20449. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20450. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20451. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20452. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20453. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20454. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20455. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  20456. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20457. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20458. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20459. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20460. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20461. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20462. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20463. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20464. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20465. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20466. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20467. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20468. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20469. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20470. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20471. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20472. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20473. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20474. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20475. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20476. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  20477. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20478. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20479. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20480. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20481. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20482. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20483. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20484. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20485. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20486. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20487. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20488. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20489. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20490. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20491. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20492. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20493. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20494. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20495. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20496. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20497. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  20498. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20499. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20500. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20501. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20502. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20503. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20504. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20505. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20506. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20507. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20508. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20509. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20510. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20511. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20512. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20513. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20514. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20515. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20516. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20517. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20518. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  20519. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20520. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20521. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20522. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20523. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20524. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20525. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20526. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20527. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20528. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20529. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20530. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20531. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20532. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20533. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20534. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20535. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20536. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20537. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20538. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20539. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  20540. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20541. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20542. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20543. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20544. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20545. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20546. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20547. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20548. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20549. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20550. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20551. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20552. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20553. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20554. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20555. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20556. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20557. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20558. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20559. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20560. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  20561. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20562. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20563. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20564. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20565. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20566. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20567. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20568. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20569. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20570. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20571. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20572. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20573. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20574. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20575. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20576. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20577. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20578. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20579. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20580. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20581. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  20582. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20583. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20584. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20585. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20586. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20587. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20588. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20589. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20590. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20591. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20592. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20593. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20594. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20595. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20596. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20597. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20598. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20599. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20600. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20601. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20602. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  20603. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20604. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20605. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20606. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20607. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20608. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20609. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20610. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20611. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20612. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20613. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20614. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20615. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20616. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20617. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20618. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20619. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20620. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20621. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20622. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20623. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  20624. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20625. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20626. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20627. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20628. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20629. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20630. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20631. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20632. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20633. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20634. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20635. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20636. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20637. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20638. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20639. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20640. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20641. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20642. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20643. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20644. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  20645. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20646. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20647. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20648. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20649. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20650. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20651. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20652. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20653. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20654. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20655. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20656. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20657. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20658. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20659. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20660. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20661. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20662. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20663. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20664. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20665. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  20666. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20667. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20668. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20669. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20670. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20671. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20672. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20673. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20674. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20675. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20676. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20677. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20678. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20679. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20680. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20681. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20682. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20683. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20684. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20685. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20686. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  20687. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20688. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20689. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20690. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20691. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20692. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20693. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20694. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20695. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20696. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20697. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20698. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20699. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20700. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20701. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20702. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20703. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20704. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20705. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20706. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20707. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  20708. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20709. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20710. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20711. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20712. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20713. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20714. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20715. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20716. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20717. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20718. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  20719. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20720. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20721. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20722. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20723. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20724. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20725. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20726. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20727. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20728. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20729. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  20730. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20731. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20732. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20733. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20734. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20735. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20736. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20737. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  20738. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  20739. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  20740. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20741. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20742. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20743. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20744. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20745. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20746. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20747. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  20748. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20749. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20750. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  20751. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20752. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  20753. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  20754. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  20755. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  20756. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20757. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20758. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20759. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20760. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20761. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20762. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  20763. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20764. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20765. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20766. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20767. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  20768. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20769. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  20770. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20771. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  20772. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20773. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  20774. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20775. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  20776. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20777. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  20778. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20779. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  20780. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  20781. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20782. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20783. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  20784. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20785. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20786. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  20787. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  20788. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  20789. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  20790. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20791. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20792. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20793. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20794. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20795. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  20796. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20797. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20798. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  20799. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  20800. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  20801. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20802. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  20803. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20804. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20805. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  20806. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20807. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20808. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  20809. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20810. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20811. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  20812. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  20813. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20814. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  20815. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20816. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20817. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  20818. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20819. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20820. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  20821. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20822. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20823. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  20824. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20825. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20826. {"STUB_RX", NULL, "STUB_RX Mixer"},
  20827. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20828. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20829. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  20830. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20831. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20832. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  20833. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20834. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20835. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20836. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20837. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20838. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  20839. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20840. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20841. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20842. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20843. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20844. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  20845. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20846. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20847. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20848. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  20849. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20850. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20851. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  20852. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  20853. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20854. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  20855. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  20856. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  20857. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  20858. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20859. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20860. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20861. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20862. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20863. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20864. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20865. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20866. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20867. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20868. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20869. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20870. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  20871. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20872. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  20873. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20874. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  20875. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  20876. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  20877. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20878. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  20879. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20880. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20881. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  20882. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20883. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20884. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20885. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20886. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20887. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20888. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20889. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20890. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20891. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20892. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  20893. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20894. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20895. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20896. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20897. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20898. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20899. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20900. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20901. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20902. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  20903. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20904. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20905. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20906. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20907. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20908. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20909. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20910. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  20911. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20912. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20913. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20914. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20915. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20916. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20917. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20918. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20919. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20920. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  20921. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20922. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20923. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20924. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20925. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20926. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20927. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20928. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  20929. /* Backend Enablement */
  20930. {"BE_OUT", NULL, "PRI_I2S_RX"},
  20931. {"BE_OUT", NULL, "SEC_I2S_RX"},
  20932. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  20933. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  20934. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  20935. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  20936. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  20937. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  20938. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  20939. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  20940. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  20941. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  20942. {"BE_OUT", NULL, "HDMI"},
  20943. {"BE_OUT", NULL, "DISPLAY_PORT"},
  20944. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  20945. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  20946. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  20947. {"BE_OUT", NULL, "MI2S_RX"},
  20948. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  20949. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  20950. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  20951. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  20952. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  20953. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  20954. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  20955. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  20956. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  20957. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  20958. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  20959. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  20960. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  20961. {"BE_OUT", NULL, "INT_FM_RX"},
  20962. {"BE_OUT", NULL, "PCM_RX"},
  20963. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  20964. {"BE_OUT", NULL, "AUX_PCM_RX"},
  20965. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  20966. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  20967. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  20968. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  20969. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  20970. {"BE_OUT", NULL, "INT_FM_RX"},
  20971. {"BE_OUT", NULL, "PCM_RX"},
  20972. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  20973. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  20974. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  20975. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  20976. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  20977. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  20978. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  20979. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  20980. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  20981. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  20982. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  20983. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  20984. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  20985. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  20986. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  20987. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  20988. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  20989. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  20990. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  20991. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  20992. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  20993. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  20994. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  20995. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  20996. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  20997. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  20998. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  20999. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  21000. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  21001. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  21002. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  21003. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  21004. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  21005. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  21006. {"PRI_I2S_TX", NULL, "BE_IN"},
  21007. {"MI2S_TX", NULL, "BE_IN"},
  21008. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  21009. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  21010. {"PRI_MI2S_TX", NULL, "BE_IN"},
  21011. {"TERT_MI2S_TX", NULL, "BE_IN"},
  21012. {"INT0_MI2S_TX", NULL, "BE_IN"},
  21013. {"INT2_MI2S_TX", NULL, "BE_IN"},
  21014. {"INT3_MI2S_TX", NULL, "BE_IN"},
  21015. {"INT4_MI2S_TX", NULL, "BE_IN"},
  21016. {"INT5_MI2S_TX", NULL, "BE_IN"},
  21017. {"SEC_MI2S_TX", NULL, "BE_IN"},
  21018. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  21019. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  21020. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  21021. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  21022. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  21023. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  21024. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  21025. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  21026. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  21027. {"USB_AUDIO_TX", NULL, "BE_IN" },
  21028. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  21029. {"INT_FM_TX", NULL, "BE_IN"},
  21030. {"PCM_TX", NULL, "BE_IN"},
  21031. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21032. {"BE_OUT", NULL, "STUB_RX"},
  21033. {"STUB_TX", NULL, "BE_IN"},
  21034. {"STUB_1_TX", NULL, "BE_IN"},
  21035. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21036. {"AUX_PCM_TX", NULL, "BE_IN"},
  21037. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  21038. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  21039. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  21040. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  21041. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  21042. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  21043. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21044. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21045. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21046. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21047. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  21048. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21049. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21050. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  21051. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  21052. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  21053. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  21054. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  21055. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  21056. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  21057. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  21058. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  21059. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  21060. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  21061. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  21062. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  21063. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  21064. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  21065. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  21066. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  21067. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  21068. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  21069. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  21070. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  21071. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  21072. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  21073. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  21074. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  21075. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  21076. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  21077. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21078. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21079. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  21080. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21081. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21082. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  21083. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  21084. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  21085. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  21086. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  21087. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  21088. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  21089. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  21090. };
  21091. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  21092. struct snd_pcm_hw_params *params)
  21093. {
  21094. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21095. unsigned int be_id = rtd->dai_link->id;
  21096. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21097. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21098. return -EINVAL;
  21099. }
  21100. mutex_lock(&routing_lock);
  21101. msm_bedais[be_id].sample_rate = params_rate(params);
  21102. msm_bedais[be_id].channel = params_channels(params);
  21103. msm_bedais[be_id].format = params_format(params);
  21104. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  21105. __func__, msm_bedais[be_id].sample_rate,
  21106. msm_bedais[be_id].format, be_id);
  21107. mutex_unlock(&routing_lock);
  21108. return 0;
  21109. }
  21110. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  21111. {
  21112. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21113. unsigned int be_id = rtd->dai_link->id;
  21114. int i, session_type, path_type, topology;
  21115. struct msm_pcm_routing_bdai_data *bedai;
  21116. struct msm_pcm_routing_fdai_data *fdai;
  21117. pr_debug("%s: substream->pcm->id:%s\n",
  21118. __func__, substream->pcm->id);
  21119. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21120. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21121. return -EINVAL;
  21122. }
  21123. bedai = &msm_bedais[be_id];
  21124. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  21125. 0 : 1);
  21126. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21127. path_type = ADM_PATH_PLAYBACK;
  21128. else
  21129. path_type = ADM_PATH_LIVE_REC;
  21130. mutex_lock(&routing_lock);
  21131. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21132. if (!is_mm_lsm_fe_id(i))
  21133. continue;
  21134. fdai = &fe_dai_map[i][session_type];
  21135. if (fdai->strm_id != INVALID_SESSION) {
  21136. int idx;
  21137. int port_id;
  21138. unsigned long copp =
  21139. session_copp_map[i][session_type][be_id];
  21140. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  21141. if (test_bit(idx, &copp))
  21142. break;
  21143. fdai->be_srate = bedai->sample_rate;
  21144. port_id = bedai->port_id;
  21145. topology = adm_get_topology_for_port_copp_idx(port_id,
  21146. idx);
  21147. msm_routing_unload_topology(topology);
  21148. adm_close(bedai->port_id, fdai->perf_mode, idx);
  21149. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  21150. __func__, copp, i, session_type, be_id,
  21151. topology);
  21152. clear_bit(idx,
  21153. &session_copp_map[i][session_type][be_id]);
  21154. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  21155. (bedai->passthr_mode[i] == LEGACY_PCM))
  21156. msm_pcm_routing_deinit_pp(bedai->port_id,
  21157. topology);
  21158. }
  21159. }
  21160. bedai->active = 0;
  21161. bedai->sample_rate = 0;
  21162. bedai->channel = 0;
  21163. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  21164. if (bedai->passthr_mode[i] != LISTEN)
  21165. bedai->passthr_mode[i] = LEGACY_PCM;
  21166. }
  21167. mutex_unlock(&routing_lock);
  21168. return 0;
  21169. }
  21170. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  21171. {
  21172. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21173. unsigned int be_id = rtd->dai_link->id;
  21174. int i, path_type, topology;
  21175. int session_type = INVALID_SESSION;
  21176. struct msm_pcm_routing_bdai_data *bedai;
  21177. u32 channels, sample_rate;
  21178. uint16_t bits_per_sample = 16, voc_path_type;
  21179. struct msm_pcm_routing_fdai_data *fdai;
  21180. u32 session_id;
  21181. struct media_format_info voc_be_media_format;
  21182. bool is_lsm;
  21183. pr_debug("%s: substream->pcm->id:%s\n",
  21184. __func__, substream->pcm->id);
  21185. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21186. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21187. return -EINVAL;
  21188. }
  21189. bedai = &msm_bedais[be_id];
  21190. mutex_lock(&routing_lock);
  21191. if (bedai->active == 1)
  21192. goto done; /* Ignore prepare if back-end already active */
  21193. /* AFE port is not active at this point. However, still
  21194. * go ahead setting active flag under the notion that
  21195. * QDSP6 is able to handle ADM starting before AFE port
  21196. * is started.
  21197. */
  21198. bedai->active = 1;
  21199. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21200. if (!(is_mm_lsm_fe_id(i) &&
  21201. route_check_fe_id_adm_support(i)))
  21202. continue;
  21203. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  21204. if (bedai->passthr_mode[i] != LEGACY_PCM)
  21205. path_type = ADM_PATH_COMPRESSED_RX;
  21206. else
  21207. path_type = ADM_PATH_PLAYBACK;
  21208. session_type = SESSION_TYPE_RX;
  21209. } else {
  21210. if ((bedai->passthr_mode[i] != LEGACY_PCM) &&
  21211. (bedai->passthr_mode[i] != LISTEN))
  21212. path_type = ADM_PATH_COMPRESSED_TX;
  21213. else
  21214. path_type = ADM_PATH_LIVE_REC;
  21215. session_type = SESSION_TYPE_TX;
  21216. }
  21217. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  21218. (i <= MSM_FRONTEND_DAI_LSM8);
  21219. fdai = &fe_dai_map[i][session_type];
  21220. if (fdai->strm_id != INVALID_SESSION) {
  21221. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  21222. if (session_type == SESSION_TYPE_TX &&
  21223. fdai->be_srate &&
  21224. (fdai->be_srate != bedai->sample_rate)) {
  21225. pr_debug("%s: flush strm %d diff BE rates\n",
  21226. __func__,
  21227. fdai->strm_id);
  21228. if (fdai->event_info.event_func)
  21229. fdai->event_info.event_func(
  21230. MSM_PCM_RT_EVT_BUF_RECFG,
  21231. fdai->event_info.priv_data);
  21232. fdai->be_srate = 0; /* might not need it */
  21233. }
  21234. bits_per_sample = msm_routing_get_bit_width(
  21235. bedai->format);
  21236. app_type =
  21237. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  21238. if (app_type && is_lsm) {
  21239. app_type_idx =
  21240. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  21241. sample_rate =
  21242. fe_dai_app_type_cfg[i][session_type][be_id]
  21243. .sample_rate;
  21244. bits_per_sample =
  21245. lsm_app_type_cfg[app_type_idx].bit_width;
  21246. } else if (app_type) {
  21247. app_type_idx =
  21248. msm_pcm_routing_get_app_type_idx(app_type);
  21249. sample_rate =
  21250. fe_dai_app_type_cfg[i][session_type]
  21251. [be_id].sample_rate;
  21252. bits_per_sample =
  21253. app_type_cfg[app_type_idx].bit_width;
  21254. } else
  21255. sample_rate = bedai->sample_rate;
  21256. /*
  21257. * check if ADM needs to be configured with different
  21258. * channel mapping than backend
  21259. */
  21260. if (!bedai->adm_override_ch)
  21261. channels = bedai->channel;
  21262. else
  21263. channels = bedai->adm_override_ch;
  21264. acdb_dev_id =
  21265. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  21266. topology = msm_routing_get_adm_topology(i, session_type,
  21267. be_id);
  21268. if ((bedai->passthr_mode[i] ==
  21269. COMPRESSED_PASSTHROUGH_DSD)
  21270. || (bedai->passthr_mode[i] ==
  21271. COMPRESSED_PASSTHROUGH_GEN)
  21272. || (bedai->passthr_mode[i] ==
  21273. COMPRESSED_PASSTHROUGH_IEC61937))
  21274. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  21275. copp_idx = adm_open(bedai->port_id, path_type,
  21276. sample_rate, channels, topology,
  21277. fdai->perf_mode, bits_per_sample,
  21278. app_type, acdb_dev_id);
  21279. if ((copp_idx < 0) ||
  21280. (copp_idx >= MAX_COPPS_PER_PORT)) {
  21281. pr_err("%s: adm open failed\n", __func__);
  21282. mutex_unlock(&routing_lock);
  21283. return -EINVAL;
  21284. }
  21285. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  21286. __func__, i, session_type, be_id);
  21287. set_bit(copp_idx,
  21288. &session_copp_map[i][session_type][be_id]);
  21289. if (msm_is_resample_needed(
  21290. sample_rate,
  21291. bedai->sample_rate))
  21292. adm_copp_mfc_cfg(
  21293. bedai->port_id, copp_idx,
  21294. bedai->sample_rate);
  21295. msm_pcm_routing_build_matrix(i, session_type, path_type,
  21296. fdai->perf_mode,
  21297. bedai->passthr_mode[i]);
  21298. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  21299. (bedai->passthr_mode[i] == LEGACY_PCM))
  21300. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  21301. topology, channels);
  21302. }
  21303. }
  21304. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21305. session_id = msm_pcm_routing_get_voc_sessionid(i);
  21306. if (session_id) {
  21307. pr_debug("%s voice session_id: 0x%x\n", __func__,
  21308. session_id);
  21309. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21310. voc_path_type = RX_PATH;
  21311. else
  21312. voc_path_type = TX_PATH;
  21313. voc_set_route_flag(session_id, voc_path_type, 1);
  21314. memset(&voc_be_media_format, 0,
  21315. sizeof(struct media_format_info));
  21316. voc_be_media_format.port_id = bedai->port_id;
  21317. voc_be_media_format.num_channels = bedai->channel;
  21318. voc_be_media_format.sample_rate = bedai->sample_rate;
  21319. voc_be_media_format.bits_per_sample = bedai->format;
  21320. /* Defaulting this to 1 for voice call usecases */
  21321. voc_be_media_format.channel_mapping[0] = 1;
  21322. voc_set_device_config(session_id, voc_path_type,
  21323. &voc_be_media_format);
  21324. if (voc_get_route_flag(session_id, RX_PATH) &&
  21325. voc_get_route_flag(session_id, TX_PATH))
  21326. voc_enable_device(session_id);
  21327. }
  21328. }
  21329. /* Check if backend is an external ec ref port and set as needed */
  21330. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  21331. memset(&voc_be_media_format, 0,
  21332. sizeof(struct media_format_info));
  21333. /* Get format info for ec ref port from msm_bedais[] */
  21334. voc_be_media_format.port_id = bedai->port_id;
  21335. voc_be_media_format.num_channels = bedai->channel;
  21336. voc_be_media_format.bits_per_sample = bedai->format;
  21337. voc_be_media_format.sample_rate = bedai->sample_rate;
  21338. /* Defaulting this to 1 for voice call usecases */
  21339. voc_be_media_format.channel_mapping[0] = 1;
  21340. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  21341. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  21342. __func__, voc_be_media_format.port_id,
  21343. voc_be_media_format.num_channels,
  21344. voc_be_media_format.bits_per_sample,
  21345. voc_be_media_format.sample_rate);
  21346. }
  21347. done:
  21348. mutex_unlock(&routing_lock);
  21349. return 0;
  21350. }
  21351. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  21352. int fe_id)
  21353. {
  21354. int index, topo_id, be_idx;
  21355. unsigned long pp_config = 0;
  21356. bool mute_on;
  21357. int latency;
  21358. bool compr_passthr_mode = true;
  21359. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  21360. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  21361. pr_err("%s: Device pp params on invalid port %d\n",
  21362. __func__, port_id);
  21363. return -EINVAL;
  21364. }
  21365. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21366. if (port_id == msm_bedais[be_idx].port_id)
  21367. break;
  21368. }
  21369. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21370. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  21371. return -EINVAL;
  21372. }
  21373. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  21374. if (msm_bedais_pp_params[index].port_id == port_id)
  21375. break;
  21376. }
  21377. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  21378. pr_err("%s: Invalid backend pp params index %d\n",
  21379. __func__, index);
  21380. return -EINVAL;
  21381. }
  21382. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  21383. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  21384. pr_err("%s: Invalid passthrough topology 0x%x\n",
  21385. __func__, topo_id);
  21386. return -EINVAL;
  21387. }
  21388. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  21389. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  21390. compr_passthr_mode = false;
  21391. pp_config = msm_bedais_pp_params[index].pp_params_config;
  21392. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  21393. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  21394. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  21395. mute_on = msm_bedais_pp_params[index].mute_on;
  21396. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21397. adm_send_compressed_device_mute(port_id,
  21398. copp_idx,
  21399. mute_on);
  21400. }
  21401. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  21402. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  21403. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  21404. &pp_config);
  21405. latency = msm_bedais_pp_params[index].latency;
  21406. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21407. adm_send_compressed_device_latency(port_id,
  21408. copp_idx,
  21409. latency);
  21410. }
  21411. return 0;
  21412. }
  21413. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  21414. {
  21415. uint32_t topology = NULL_COPP_TOPOLOGY;
  21416. void *cal_info = NULL;
  21417. uint32_t size = 0;
  21418. /* Retrieve cal_info size from cal data*/
  21419. size = data_size - sizeof(struct audio_cal_type_basic);
  21420. cal_info = kzalloc(size, GFP_KERNEL);
  21421. if (!cal_info)
  21422. goto done;
  21423. memcpy(cal_info,
  21424. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  21425. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  21426. kfree(cal_info);
  21427. cal_info = NULL;
  21428. done:
  21429. pr_debug("%s: Using topology %d\n", __func__, topology);
  21430. return topology;
  21431. }
  21432. static void msm_routing_load_topology(size_t data_size, void *data)
  21433. {
  21434. uint32_t topology_id;
  21435. int ret = -EINVAL;
  21436. topology_id = msm_routing_get_topology(data_size, data);
  21437. if (topology_id != NULL_COPP_TOPOLOGY)
  21438. ret = q6core_load_unload_topo_modules(topology_id,
  21439. CORE_LOAD_TOPOLOGY);
  21440. if (ret < 0)
  21441. pr_debug("%s %d load topology failed\n",
  21442. __func__, topology_id);
  21443. }
  21444. static void msm_routing_unload_topology(uint32_t topology_id)
  21445. {
  21446. int ret = -EINVAL;
  21447. if (topology_id != NULL_COPP_TOPOLOGY)
  21448. ret = q6core_load_unload_topo_modules(topology_id,
  21449. CORE_UNLOAD_TOPOLOGY);
  21450. if (ret < 0)
  21451. pr_debug("%s %d unload topology failed\n",
  21452. __func__, topology_id);
  21453. }
  21454. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  21455. struct snd_ctl_elem_value *ucontrol)
  21456. {
  21457. int pp_id = ucontrol->value.integer.value[0];
  21458. int port_id = 0;
  21459. int index, be_idx, i, topo_id, idx;
  21460. bool mute;
  21461. int latency;
  21462. bool compr_passthr_mode = true;
  21463. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  21464. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21465. port_id = msm_bedais[be_idx].port_id;
  21466. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  21467. break;
  21468. }
  21469. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21470. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  21471. return -EINVAL;
  21472. }
  21473. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  21474. if (msm_bedais_pp_params[index].port_id == port_id)
  21475. break;
  21476. }
  21477. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  21478. pr_err("%s: Invalid pp params backend index %d\n",
  21479. __func__, index);
  21480. return -EINVAL;
  21481. }
  21482. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21483. MSM_FRONTEND_DAI_MM_SIZE) {
  21484. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  21485. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  21486. compr_passthr_mode = false;
  21487. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21488. unsigned long copp =
  21489. session_copp_map[i]
  21490. [SESSION_TYPE_RX][be_idx];
  21491. if (!test_bit(idx, &copp))
  21492. continue;
  21493. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  21494. idx);
  21495. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  21496. continue;
  21497. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  21498. __func__, port_id, copp, msm_bedais[be_idx].active,
  21499. msm_bedais[be_idx].passthr_mode[i]);
  21500. switch (pp_id) {
  21501. case ADM_PP_PARAM_MUTE_ID:
  21502. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  21503. mute = ucontrol->value.integer.value[1] ? true : false;
  21504. msm_bedais_pp_params[index].mute_on = mute;
  21505. set_bit(ADM_PP_PARAM_MUTE_BIT,
  21506. &msm_bedais_pp_params[index].pp_params_config);
  21507. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21508. adm_send_compressed_device_mute(port_id,
  21509. idx, mute);
  21510. break;
  21511. case ADM_PP_PARAM_LATENCY_ID:
  21512. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  21513. msm_bedais_pp_params[index].latency =
  21514. ucontrol->value.integer.value[1];
  21515. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  21516. &msm_bedais_pp_params[index].pp_params_config);
  21517. latency = msm_bedais_pp_params[index].latency =
  21518. ucontrol->value.integer.value[1];
  21519. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21520. adm_send_compressed_device_latency(port_id,
  21521. idx, latency);
  21522. break;
  21523. default:
  21524. pr_info("%s, device pp param %d not supported\n",
  21525. __func__, pp_id);
  21526. break;
  21527. }
  21528. }
  21529. }
  21530. return 0;
  21531. }
  21532. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  21533. struct snd_ctl_elem_value *ucontrol)
  21534. {
  21535. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  21536. return 0;
  21537. }
  21538. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  21539. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  21540. 0, 3, msm_routing_get_device_pp_params_mixer,
  21541. msm_routing_put_device_pp_params_mixer),
  21542. };
  21543. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  21544. struct snd_ctl_elem_value *ucontrol)
  21545. {
  21546. ucontrol->value.integer.value[0] =
  21547. core_get_license_status(ASM_MEDIA_FMT_APTX);
  21548. pr_debug("%s: status %ld\n", __func__,
  21549. ucontrol->value.integer.value[0]);
  21550. return 0;
  21551. }
  21552. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  21553. struct snd_ctl_elem_value *ucontrol)
  21554. {
  21555. int32_t status = 0;
  21556. status = core_set_license(ucontrol->value.integer.value[0],
  21557. APTX_CLASSIC_DEC_LICENSE_ID);
  21558. pr_debug("%s: status %d\n", __func__, status);
  21559. return status;
  21560. }
  21561. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  21562. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  21563. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  21564. msm_aptx_dec_license_control_put),
  21565. };
  21566. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  21567. struct snd_ctl_elem_info *uinfo)
  21568. {
  21569. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21570. uinfo->count = sizeof(be_dai_name_table);
  21571. return 0;
  21572. }
  21573. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  21574. unsigned int __user *bytes,
  21575. unsigned int size)
  21576. {
  21577. int i;
  21578. int ret = 0;
  21579. if (size < sizeof(be_dai_name_table)) {
  21580. pr_err("%s: invalid size %d requested, returning\n",
  21581. __func__, size);
  21582. ret = -EINVAL;
  21583. goto done;
  21584. }
  21585. /*
  21586. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  21587. * needed when adding new backends
  21588. */
  21589. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  21590. be_dai_name_table[i].be_id = i;
  21591. strlcpy(be_dai_name_table[i].be_name,
  21592. msm_bedais[i].name,
  21593. LPASS_BE_NAME_MAX_LENGTH);
  21594. }
  21595. ret = copy_to_user(bytes, &be_dai_name_table,
  21596. sizeof(be_dai_name_table));
  21597. if (ret) {
  21598. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  21599. ret = -EFAULT;
  21600. }
  21601. done:
  21602. return ret;
  21603. }
  21604. static const struct snd_kcontrol_new
  21605. msm_routing_be_dai_name_table_mixer_controls[] = {
  21606. {
  21607. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  21608. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  21609. .info = msm_routing_be_dai_name_table_info,
  21610. .name = "Backend DAI Name Table",
  21611. .tlv.c = snd_soc_bytes_tlv_callback,
  21612. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  21613. .max = sizeof(be_dai_name_table),
  21614. .get = msm_routing_be_dai_name_table_tlv_get,
  21615. }
  21616. },
  21617. };
  21618. static int msm_routing_stereo_channel_reverse_control_get(
  21619. struct snd_kcontrol *kcontrol,
  21620. struct snd_ctl_elem_value *ucontrol)
  21621. {
  21622. ucontrol->value.integer.value[0] = swap_ch;
  21623. pr_debug("%s: Swap channel value: %ld\n", __func__,
  21624. ucontrol->value.integer.value[0]);
  21625. return 0;
  21626. }
  21627. static int msm_routing_stereo_channel_reverse_control_put(
  21628. struct snd_kcontrol *kcontrol,
  21629. struct snd_ctl_elem_value *ucontrol)
  21630. {
  21631. int i, idx, be_index, port_id;
  21632. int ret = 0;
  21633. unsigned long copp;
  21634. pr_debug("%s Swap channel value:%ld\n", __func__,
  21635. ucontrol->value.integer.value[0]);
  21636. swap_ch = ucontrol->value.integer.value[0];
  21637. mutex_lock(&routing_lock);
  21638. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21639. port_id = msm_bedais[be_index].port_id;
  21640. if (!msm_bedais[be_index].active)
  21641. continue;
  21642. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21643. MSM_FRONTEND_DAI_MM_SIZE) {
  21644. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  21645. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21646. if (!test_bit(idx, &copp))
  21647. continue;
  21648. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  21649. __func__, port_id, idx);
  21650. ret = adm_swap_speaker_channels(
  21651. port_id, idx,
  21652. msm_bedais[be_index].sample_rate,
  21653. swap_ch);
  21654. if (ret) {
  21655. pr_err("%s:Swap_channel failed, err=%d\n",
  21656. __func__, ret);
  21657. goto done;
  21658. }
  21659. }
  21660. }
  21661. }
  21662. done:
  21663. mutex_unlock(&routing_lock);
  21664. return ret;
  21665. }
  21666. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  21667. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  21668. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  21669. msm_routing_stereo_channel_reverse_control_put),
  21670. };
  21671. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  21672. struct snd_ctl_elem_info *uinfo)
  21673. {
  21674. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  21675. uinfo->count = 1;
  21676. return 0;
  21677. }
  21678. static int msm_routing_instance_id_support_put(
  21679. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  21680. {
  21681. bool supported = ucontrol->value.integer.value[0] ? true : false;
  21682. q6common_update_instance_id_support(supported);
  21683. return 0;
  21684. }
  21685. static int msm_routing_instance_id_support_get(
  21686. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  21687. {
  21688. bool supported = false;
  21689. supported = q6common_is_instance_id_supported();
  21690. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  21691. return 0;
  21692. }
  21693. static const struct snd_kcontrol_new
  21694. msm_routing_feature_support_mixer_controls[] = {
  21695. {
  21696. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  21697. SNDRV_CTL_ELEM_ACCESS_WRITE,
  21698. .info = msm_routing_instance_id_support_info,
  21699. .name = "Instance ID Support",
  21700. .put = msm_routing_instance_id_support_put,
  21701. .get = msm_routing_instance_id_support_get,
  21702. },
  21703. };
  21704. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  21705. .hw_params = msm_pcm_routing_hw_params,
  21706. .close = msm_pcm_routing_close,
  21707. .prepare = msm_pcm_routing_prepare,
  21708. };
  21709. /* Not used but frame seems to require it */
  21710. static int msm_routing_probe(struct snd_soc_platform *platform)
  21711. {
  21712. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  21713. ARRAY_SIZE(msm_qdsp6_widgets));
  21714. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  21715. ARRAY_SIZE(intercon));
  21716. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  21717. snd_soc_add_platform_controls(platform, lsm_controls,
  21718. ARRAY_SIZE(lsm_controls));
  21719. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  21720. ARRAY_SIZE(aanc_slim_0_rx_mux));
  21721. snd_soc_add_platform_controls(platform, aanc_noise_level,
  21722. ARRAY_SIZE(aanc_noise_level));
  21723. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  21724. ARRAY_SIZE(msm_voc_session_controls));
  21725. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  21726. ARRAY_SIZE(app_type_cfg_controls));
  21727. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  21728. ARRAY_SIZE(lsm_app_type_cfg_controls));
  21729. snd_soc_add_platform_controls(platform, module_cfg_controls,
  21730. ARRAY_SIZE(module_cfg_controls));
  21731. snd_soc_add_platform_controls(platform,
  21732. stereo_to_custom_stereo_controls,
  21733. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  21734. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  21735. ARRAY_SIZE(ec_ref_param_controls));
  21736. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  21737. ARRAY_SIZE(channel_mixer_controls));
  21738. msm_qti_pp_add_controls(platform);
  21739. msm_dts_srs_tm_add_controls(platform);
  21740. msm_dolby_dap_add_controls(platform);
  21741. snd_soc_add_platform_controls(platform,
  21742. use_ds1_or_ds2_controls,
  21743. ARRAY_SIZE(use_ds1_or_ds2_controls));
  21744. snd_soc_add_platform_controls(platform,
  21745. device_pp_params_mixer_controls,
  21746. ARRAY_SIZE(device_pp_params_mixer_controls));
  21747. snd_soc_add_platform_controls(platform,
  21748. msm_routing_be_dai_name_table_mixer_controls,
  21749. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  21750. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  21751. ARRAY_SIZE(msm_source_tracking_controls));
  21752. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  21753. ARRAY_SIZE(adm_channel_config_controls));
  21754. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  21755. ARRAY_SIZE(aptx_dec_license_controls));
  21756. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  21757. ARRAY_SIZE(stereo_channel_reverse_control));
  21758. snd_soc_add_platform_controls(
  21759. platform, msm_routing_feature_support_mixer_controls,
  21760. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  21761. return 0;
  21762. }
  21763. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  21764. {
  21765. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  21766. }
  21767. void msm_routing_pcm_free(struct snd_pcm *pcm)
  21768. {
  21769. msm_pcm_routing_hwdep_free(pcm);
  21770. }
  21771. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  21772. .ops = &msm_routing_pcm_ops,
  21773. .probe = msm_routing_probe,
  21774. .pcm_new = msm_routing_pcm_new,
  21775. .pcm_free = msm_routing_pcm_free,
  21776. };
  21777. static int msm_routing_pcm_probe(struct platform_device *pdev)
  21778. {
  21779. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  21780. return snd_soc_register_platform(&pdev->dev,
  21781. &msm_soc_routing_platform);
  21782. }
  21783. static int msm_routing_pcm_remove(struct platform_device *pdev)
  21784. {
  21785. snd_soc_unregister_platform(&pdev->dev);
  21786. return 0;
  21787. }
  21788. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  21789. {.compatible = "qcom,msm-pcm-routing"},
  21790. {}
  21791. };
  21792. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  21793. static struct platform_driver msm_routing_pcm_driver = {
  21794. .driver = {
  21795. .name = "msm-pcm-routing",
  21796. .owner = THIS_MODULE,
  21797. .of_match_table = msm_pcm_routing_dt_match,
  21798. },
  21799. .probe = msm_routing_pcm_probe,
  21800. .remove = msm_routing_pcm_remove,
  21801. };
  21802. int msm_routing_check_backend_enabled(int fedai_id)
  21803. {
  21804. int i;
  21805. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  21806. /* bad ID assigned in machine driver */
  21807. pr_err("%s: bad MM ID\n", __func__);
  21808. return 0;
  21809. }
  21810. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  21811. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  21812. return msm_bedais[i].active;
  21813. }
  21814. return 0;
  21815. }
  21816. static int get_cal_type_index(int32_t cal_type)
  21817. {
  21818. int ret = -EINVAL;
  21819. switch (cal_type) {
  21820. case ADM_TOPOLOGY_CAL_TYPE:
  21821. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  21822. break;
  21823. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  21824. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  21825. break;
  21826. default:
  21827. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  21828. }
  21829. return ret;
  21830. }
  21831. static int msm_routing_set_cal(int32_t cal_type,
  21832. size_t data_size, void *data)
  21833. {
  21834. int ret = 0;
  21835. int cal_index;
  21836. pr_debug("%s\n", __func__);
  21837. cal_index = get_cal_type_index(cal_type);
  21838. if (cal_index < 0) {
  21839. pr_err("%s: Could not get cal index %d\n",
  21840. __func__, cal_index);
  21841. ret = -EINVAL;
  21842. goto done;
  21843. }
  21844. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  21845. if (ret < 0) {
  21846. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  21847. __func__, ret, cal_type);
  21848. ret = -EINVAL;
  21849. goto done;
  21850. }
  21851. /* Pre-load if it is ADM topology */
  21852. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  21853. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  21854. msm_routing_load_topology(data_size, data);
  21855. }
  21856. done:
  21857. return ret;
  21858. }
  21859. static void msm_routing_delete_cal_data(void)
  21860. {
  21861. pr_debug("%s\n", __func__);
  21862. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  21863. }
  21864. static int msm_routing_init_cal_data(void)
  21865. {
  21866. int ret = 0;
  21867. struct cal_type_info cal_type_info[] = {
  21868. {{ADM_TOPOLOGY_CAL_TYPE,
  21869. {NULL, NULL, NULL,
  21870. msm_routing_set_cal, NULL, NULL} },
  21871. {NULL, NULL, cal_utils_match_buf_num} },
  21872. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  21873. {NULL, NULL, NULL,
  21874. msm_routing_set_cal, NULL, NULL} },
  21875. {NULL, NULL, cal_utils_match_buf_num} },
  21876. };
  21877. pr_debug("%s\n", __func__);
  21878. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  21879. &cal_type_info[0]);
  21880. if (ret < 0) {
  21881. pr_err("%s: could not create cal type!\n",
  21882. __func__);
  21883. ret = -EINVAL;
  21884. goto err;
  21885. }
  21886. return ret;
  21887. err:
  21888. msm_routing_delete_cal_data();
  21889. return ret;
  21890. }
  21891. int __init msm_soc_routing_platform_init(void)
  21892. {
  21893. mutex_init(&routing_lock);
  21894. if (msm_routing_init_cal_data())
  21895. pr_err("%s: could not init cal data!\n", __func__);
  21896. afe_set_routing_callback(
  21897. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  21898. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  21899. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  21900. return platform_driver_register(&msm_routing_pcm_driver);
  21901. }
  21902. void msm_soc_routing_platform_exit(void)
  21903. {
  21904. msm_routing_delete_cal_data();
  21905. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  21906. mutex_destroy(&routing_lock);
  21907. platform_driver_unregister(&msm_routing_pcm_driver);
  21908. }
  21909. MODULE_DESCRIPTION("MSM routing platform driver");
  21910. MODULE_LICENSE("GPL v2");