msm-pcm-routing-v2.c 826 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147
  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_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  576. LPASS_BE_PRI_SPDIF_TX},
  577. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  578. LPASS_BE_SEC_SPDIF_RX},
  579. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  580. LPASS_BE_SEC_SPDIF_TX},
  581. };
  582. /* Track ASM playback & capture sessions of DAI
  583. * Track LSM listen sessions
  584. */
  585. static struct msm_pcm_routing_fdai_data
  586. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  587. /* MULTIMEDIA1 */
  588. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  589. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  590. /* MULTIMEDIA2 */
  591. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  592. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  593. /* MULTIMEDIA3 */
  594. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  595. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  596. /* MULTIMEDIA4 */
  597. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  598. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  599. /* MULTIMEDIA5 */
  600. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  601. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  602. /* MULTIMEDIA6 */
  603. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  604. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  605. /* MULTIMEDIA7*/
  606. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  607. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  608. /* MULTIMEDIA8 */
  609. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  610. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  611. /* MULTIMEDIA9 */
  612. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  613. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  614. /* MULTIMEDIA10 */
  615. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  616. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  617. /* MULTIMEDIA11 */
  618. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  619. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  620. /* MULTIMEDIA12 */
  621. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  622. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  623. /* MULTIMEDIA13 */
  624. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  625. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  626. /* MULTIMEDIA14 */
  627. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  628. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  629. /* MULTIMEDIA15 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  632. /* MULTIMEDIA16 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  635. /* MULTIMEDIA17 */
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  638. /* MULTIMEDIA18 */
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  641. /* MULTIMEDIA19 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  644. /* MULTIMEDIA20 */
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  647. /* MULTIMEDIA28 */
  648. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  649. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  650. /* MULTIMEDIA29 */
  651. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  652. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  653. /* VOIP */
  654. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  655. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  656. /* AFE_RX */
  657. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  658. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  659. /* AFE_TX */
  660. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  661. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  662. /* VOICE_STUB */
  663. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  664. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  665. /* DTMF_RX */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  668. /* QCHAT */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  671. /* VOLTE_STUB */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  674. /* LSM1 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  677. /* LSM2 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  680. /* LSM3 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  683. /* LSM4 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  686. /* LSM5 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  689. /* LSM6 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  692. /* LSM7 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  695. /* LSM8 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  698. /* VOICE2_STUB */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  701. /* VOICEMMODE1 */
  702. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  703. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  704. /* VOICEMMODE2 */
  705. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  706. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  707. };
  708. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  709. [MSM_BACKEND_DAI_MAX];
  710. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  711. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  712. static struct msm_pcm_stream_app_type_cfg
  713. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  714. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  715. /* The caller of this should aqcuire routing lock */
  716. void msm_pcm_routing_get_bedai_info(int be_idx,
  717. struct msm_pcm_routing_bdai_data *be_dai)
  718. {
  719. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  720. memcpy(be_dai, &msm_bedais[be_idx],
  721. sizeof(struct msm_pcm_routing_bdai_data));
  722. }
  723. /* The caller of this should aqcuire routing lock */
  724. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  725. struct msm_pcm_routing_fdai_data *fe_dai)
  726. {
  727. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  728. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  729. sizeof(struct msm_pcm_routing_fdai_data));
  730. }
  731. void msm_pcm_routing_acquire_lock(void)
  732. {
  733. mutex_lock(&routing_lock);
  734. }
  735. void msm_pcm_routing_release_lock(void)
  736. {
  737. mutex_unlock(&routing_lock);
  738. }
  739. static int msm_pcm_routing_get_app_type_idx(int app_type)
  740. {
  741. int idx;
  742. pr_debug("%s: app_type: %d\n", __func__, app_type);
  743. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  744. if (app_type_cfg[idx].app_type == app_type)
  745. return idx;
  746. }
  747. pr_info("%s: App type not available, fallback to default\n", __func__);
  748. return 0;
  749. }
  750. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  751. {
  752. int idx;
  753. pr_debug("%s: app_type: %d\n", __func__, app_type);
  754. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  755. if (lsm_app_type_cfg[idx].app_type == app_type)
  756. return idx;
  757. }
  758. pr_debug("%s: App type not available, fallback to default\n", __func__);
  759. return 0;
  760. }
  761. static bool is_mm_lsm_fe_id(int fe_id)
  762. {
  763. bool rc = true;
  764. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  765. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  766. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  767. rc = false;
  768. }
  769. return rc;
  770. }
  771. /*
  772. * msm_pcm_routing_send_chmix_cfg:
  773. * send the channel mixer command to mix the input channels
  774. * into output channels.
  775. *
  776. * @fe_id: front end id
  777. * @ip_channel_cnt: input channel count
  778. * @op_channel_cnt: output channel count
  779. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  780. * @session_type: indicates session is of type TX or RX
  781. * @stream_type: indicates either Audio or Listen stream type
  782. */
  783. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  784. int op_channel_cnt, int *ch_wght_coeff,
  785. int session_type, int stream_type)
  786. {
  787. int rc = 0, idx = 0;
  788. int be_index = 0, port_id;
  789. unsigned int session_id = 0;
  790. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  791. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  792. stream_type);
  793. if (!is_mm_lsm_fe_id(fe_id)) {
  794. /* bad ID assigned in machine driver */
  795. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  796. return -EINVAL;
  797. }
  798. if (ch_wght_coeff == NULL) {
  799. pr_err("%s: Null channel weightage coefficients passed\n",
  800. __func__);
  801. return -EINVAL;
  802. }
  803. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  804. port_id = msm_bedais[be_index].port_id;
  805. if (!msm_bedais[be_index].active ||
  806. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  807. continue;
  808. session_id = fe_dai_map[fe_id][session_type].strm_id;
  809. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  810. unsigned long copp =
  811. session_copp_map[fe_id][session_type][be_index];
  812. if (!test_bit(idx, &copp))
  813. continue;
  814. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  815. session_id, ip_channel_cnt,
  816. op_channel_cnt, ch_wght_coeff,
  817. session_type, stream_type);
  818. if (rc < 0)
  819. pr_err("%s: err setting channel mix config\n",
  820. __func__);
  821. }
  822. }
  823. return 0;
  824. }
  825. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  826. int msm_pcm_routing_reg_stream_app_type_cfg(
  827. int fedai_id, int session_type, int be_id,
  828. struct msm_pcm_stream_app_type_cfg *cfg_data)
  829. {
  830. int ret = 0;
  831. if (cfg_data == NULL) {
  832. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  833. ret = -EINVAL;
  834. goto done;
  835. }
  836. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  837. __func__, fedai_id, session_type, be_id,
  838. cfg_data->app_type, cfg_data->acdb_dev_id,
  839. cfg_data->sample_rate);
  840. if (!is_mm_lsm_fe_id(fedai_id)) {
  841. pr_err("%s: Invalid machine driver ID %d\n",
  842. __func__, fedai_id);
  843. ret = -EINVAL;
  844. goto done;
  845. }
  846. if (session_type != SESSION_TYPE_RX &&
  847. session_type != SESSION_TYPE_TX) {
  848. pr_err("%s: Invalid session type %d\n",
  849. __func__, session_type);
  850. ret = -EINVAL;
  851. goto done;
  852. }
  853. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  854. pr_err("%s: Received out of bounds be_id %d\n",
  855. __func__, be_id);
  856. ret = -EINVAL;
  857. goto done;
  858. }
  859. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  860. /*
  861. * Store the BE ID of the configuration information set as the latest so
  862. * the get mixer control knows what to return.
  863. */
  864. last_be_id_configured[fedai_id][session_type] = be_id;
  865. done:
  866. return ret;
  867. }
  868. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  869. /**
  870. * msm_pcm_routing_get_stream_app_type_cfg
  871. *
  872. * Receives fedai_id, session_type, be_id, and populates app_type,
  873. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  874. * -EINVAL and does not alter passed values.
  875. *
  876. * fedai_id - Passed value, front end ID for which app type config is wanted
  877. * session_type - Passed value, session type for which app type config
  878. * is wanted
  879. * be_id - Returned value, back end device id the app type config data is for
  880. * cfg_data - Returned value, configuration data used by app type config
  881. */
  882. int msm_pcm_routing_get_stream_app_type_cfg(
  883. int fedai_id, int session_type, int *bedai_id,
  884. struct msm_pcm_stream_app_type_cfg *cfg_data)
  885. {
  886. int be_id;
  887. int ret = 0;
  888. if (bedai_id == NULL) {
  889. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  890. ret = -EINVAL;
  891. goto done;
  892. } else if (cfg_data == NULL) {
  893. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  894. ret = -EINVAL;
  895. goto done;
  896. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  897. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  898. ret = -EINVAL;
  899. goto done;
  900. } else if (session_type != SESSION_TYPE_RX &&
  901. session_type != SESSION_TYPE_TX) {
  902. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  903. ret = -EINVAL;
  904. goto done;
  905. }
  906. be_id = last_be_id_configured[fedai_id][session_type];
  907. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  908. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  909. ret = -EINVAL;
  910. goto done;
  911. }
  912. *bedai_id = be_id;
  913. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  914. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  915. __func__, fedai_id, session_type, *bedai_id,
  916. cfg_data->app_type, cfg_data->acdb_dev_id,
  917. cfg_data->sample_rate);
  918. done:
  919. return ret;
  920. }
  921. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  922. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  923. int cal_index)
  924. {
  925. struct list_head *ptr, *next;
  926. struct cal_block_data *cal_block = NULL;
  927. pr_debug("%s\n", __func__);
  928. list_for_each_safe(ptr, next,
  929. &cal_data[cal_index]->cal_blocks) {
  930. cal_block = list_entry(ptr,
  931. struct cal_block_data, list);
  932. if (cal_utils_is_cal_stale(cal_block))
  933. continue;
  934. if (((struct audio_cal_info_adm_top *)cal_block
  935. ->cal_info)->path == path) {
  936. return cal_block;
  937. }
  938. }
  939. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  940. return NULL;
  941. }
  942. static struct cal_block_data *msm_routing_find_topology(int path,
  943. int app_type,
  944. int acdb_id,
  945. int cal_index)
  946. {
  947. struct list_head *ptr, *next;
  948. struct cal_block_data *cal_block = NULL;
  949. struct audio_cal_info_adm_top *cal_info;
  950. pr_debug("%s\n", __func__);
  951. list_for_each_safe(ptr, next,
  952. &cal_data[cal_index]->cal_blocks) {
  953. cal_block = list_entry(ptr,
  954. struct cal_block_data, list);
  955. if (cal_utils_is_cal_stale(cal_block))
  956. continue;
  957. cal_info = (struct audio_cal_info_adm_top *)
  958. cal_block->cal_info;
  959. if ((cal_info->path == path) &&
  960. (cal_info->app_type == app_type) &&
  961. (cal_info->acdb_id == acdb_id)) {
  962. return cal_block;
  963. }
  964. }
  965. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  966. __func__, path, app_type, acdb_id);
  967. return msm_routing_find_topology_by_path(path, cal_index);
  968. }
  969. /*
  970. * Retrieving cal_block will mark cal_block as stale.
  971. * Hence it cannot be reused or resent unless the flag
  972. * is reset.
  973. */
  974. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  975. int be_id)
  976. {
  977. int topology = NULL_COPP_TOPOLOGY;
  978. struct cal_block_data *cal_block = NULL;
  979. int app_type = 0, acdb_dev_id = 0;
  980. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  981. __func__, fedai_id, session_type, be_id);
  982. if (cal_data == NULL)
  983. goto done;
  984. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  985. acdb_dev_id =
  986. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  987. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  988. cal_block = msm_routing_find_topology(session_type, app_type,
  989. acdb_dev_id,
  990. ADM_TOPOLOGY_CAL_TYPE_IDX);
  991. if (cal_block != NULL) {
  992. topology = ((struct audio_cal_info_adm_top *)
  993. cal_block->cal_info)->topology;
  994. cal_utils_mark_cal_used(cal_block);
  995. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  996. } else {
  997. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  998. pr_debug("%s: Check for LSM topology\n", __func__);
  999. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1000. cal_block = msm_routing_find_topology(session_type, app_type,
  1001. acdb_dev_id,
  1002. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1003. if (cal_block != NULL) {
  1004. topology = ((struct audio_cal_info_adm_top *)
  1005. cal_block->cal_info)->topology;
  1006. cal_utils_mark_cal_used(cal_block);
  1007. }
  1008. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1009. }
  1010. done:
  1011. pr_debug("%s: Using topology %d\n", __func__, topology);
  1012. return topology;
  1013. }
  1014. static uint8_t is_be_dai_extproc(int be_dai)
  1015. {
  1016. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1017. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1018. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1019. return 1;
  1020. else
  1021. return 0;
  1022. }
  1023. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1024. int path_type, int perf_mode,
  1025. uint32_t passthr_mode)
  1026. {
  1027. int i, port_type, j, num_copps = 0;
  1028. struct route_payload payload;
  1029. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1030. path_type == ADM_PATH_COMPRESSED_RX) ?
  1031. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1032. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1033. if (!is_be_dai_extproc(i) &&
  1034. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1035. (msm_bedais[i].active) &&
  1036. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1037. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1038. unsigned long copp =
  1039. session_copp_map[fedai_id][sess_type][i];
  1040. if (test_bit(j, &copp)) {
  1041. payload.port_id[num_copps] =
  1042. msm_bedais[i].port_id;
  1043. payload.copp_idx[num_copps] = j;
  1044. payload.app_type[num_copps] =
  1045. fe_dai_app_type_cfg
  1046. [fedai_id][sess_type][i]
  1047. .app_type;
  1048. payload.acdb_dev_id[num_copps] =
  1049. fe_dai_app_type_cfg
  1050. [fedai_id][sess_type][i]
  1051. .acdb_dev_id;
  1052. payload.sample_rate[num_copps] =
  1053. fe_dai_app_type_cfg
  1054. [fedai_id][sess_type][i]
  1055. .sample_rate;
  1056. num_copps++;
  1057. }
  1058. }
  1059. }
  1060. }
  1061. if (num_copps) {
  1062. payload.num_copps = num_copps;
  1063. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1064. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1065. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1066. }
  1067. }
  1068. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1069. int stream_type)
  1070. {
  1071. int i, session_type, path_type, port_type;
  1072. u32 mode = 0;
  1073. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1074. /* bad ID assigned in machine driver */
  1075. pr_err("%s: bad MM ID\n", __func__);
  1076. return;
  1077. }
  1078. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1079. session_type = SESSION_TYPE_RX;
  1080. path_type = ADM_PATH_PLAYBACK;
  1081. port_type = MSM_AFE_PORT_TYPE_RX;
  1082. } else {
  1083. session_type = SESSION_TYPE_TX;
  1084. path_type = ADM_PATH_LIVE_REC;
  1085. port_type = MSM_AFE_PORT_TYPE_TX;
  1086. }
  1087. mutex_lock(&routing_lock);
  1088. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1089. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1090. if (!is_be_dai_extproc(i) &&
  1091. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1092. (msm_bedais[i].active) &&
  1093. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1094. mode = afe_get_port_type(msm_bedais[i].port_id);
  1095. adm_connect_afe_port(mode, dspst_id,
  1096. msm_bedais[i].port_id);
  1097. break;
  1098. }
  1099. }
  1100. mutex_unlock(&routing_lock);
  1101. }
  1102. static bool route_check_fe_id_adm_support(int fe_id)
  1103. {
  1104. bool rc = true;
  1105. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1106. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1107. /* fe id is listen while port is set to afe */
  1108. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1109. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1110. __func__, fe_id, lsm_port_index);
  1111. rc = false;
  1112. }
  1113. }
  1114. return rc;
  1115. }
  1116. /*
  1117. * msm_pcm_routing_get_pp_ch_cnt:
  1118. * Read the processed channel count
  1119. *
  1120. * @fe_id: Front end ID
  1121. * @session_type: Inidicates RX or TX session type
  1122. */
  1123. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1124. {
  1125. struct msm_pcm_stream_app_type_cfg cfg_data;
  1126. int be_id = 0, app_type_idx = 0, app_type = 0;
  1127. int ret = -EINVAL;
  1128. memset(&cfg_data, 0, sizeof(cfg_data));
  1129. if (!is_mm_lsm_fe_id(fe_id)) {
  1130. pr_err("%s: bad MM ID\n", __func__);
  1131. return -EINVAL;
  1132. }
  1133. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1134. &be_id, &cfg_data);
  1135. if (ret) {
  1136. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1137. return ret;
  1138. }
  1139. app_type = cfg_data.app_type;
  1140. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1141. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1142. }
  1143. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1144. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1145. int dspst_id, int stream_type,
  1146. uint32_t passthr_mode)
  1147. {
  1148. int i, j, session_type, path_type, port_type, topology;
  1149. int num_copps = 0;
  1150. struct route_payload payload;
  1151. u32 channels, sample_rate;
  1152. u16 bit_width = 16;
  1153. bool is_lsm;
  1154. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1155. __func__, fe_id, perf_mode, dspst_id,
  1156. stream_type, passthr_mode);
  1157. if (!is_mm_lsm_fe_id(fe_id)) {
  1158. /* bad ID assigned in machine driver */
  1159. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1160. return -EINVAL;
  1161. }
  1162. if (!route_check_fe_id_adm_support(fe_id)) {
  1163. /* ignore adm open if not supported for fe_id */
  1164. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1165. return 0;
  1166. }
  1167. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1168. session_type = SESSION_TYPE_RX;
  1169. if (passthr_mode != LEGACY_PCM)
  1170. path_type = ADM_PATH_COMPRESSED_RX;
  1171. else
  1172. path_type = ADM_PATH_PLAYBACK;
  1173. port_type = MSM_AFE_PORT_TYPE_RX;
  1174. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1175. session_type = SESSION_TYPE_TX;
  1176. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1177. path_type = ADM_PATH_COMPRESSED_TX;
  1178. else
  1179. path_type = ADM_PATH_LIVE_REC;
  1180. port_type = MSM_AFE_PORT_TYPE_TX;
  1181. } else {
  1182. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1183. return -EINVAL;
  1184. }
  1185. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1186. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1187. mutex_lock(&routing_lock);
  1188. payload.num_copps = 0; /* only RX needs to use payload */
  1189. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1190. /* re-enable EQ if active */
  1191. msm_qti_pp_send_eq_values(fe_id);
  1192. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1193. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1194. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1195. if (!is_be_dai_extproc(i) &&
  1196. (afe_get_port_type(msm_bedais[i].port_id) ==
  1197. port_type) &&
  1198. (msm_bedais[i].active) &&
  1199. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1200. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1201. /*
  1202. * check if ADM needs to be configured with different
  1203. * channel mapping than backend
  1204. */
  1205. if (!msm_bedais[i].adm_override_ch)
  1206. channels = msm_bedais[i].channel;
  1207. else
  1208. channels = msm_bedais[i].adm_override_ch;
  1209. bit_width = msm_routing_get_bit_width(
  1210. msm_bedais[i].format);
  1211. app_type =
  1212. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1213. if (app_type && is_lsm) {
  1214. app_type_idx =
  1215. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1216. sample_rate =
  1217. fe_dai_app_type_cfg[fe_id][session_type][i]
  1218. .sample_rate;
  1219. bit_width =
  1220. lsm_app_type_cfg[app_type_idx].bit_width;
  1221. } else if (app_type) {
  1222. app_type_idx =
  1223. msm_pcm_routing_get_app_type_idx(
  1224. app_type);
  1225. sample_rate =
  1226. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1227. bit_width =
  1228. app_type_cfg[app_type_idx].bit_width;
  1229. } else {
  1230. sample_rate = msm_bedais[i].sample_rate;
  1231. }
  1232. acdb_dev_id =
  1233. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1234. topology = msm_routing_get_adm_topology(fe_id,
  1235. session_type,
  1236. i);
  1237. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1238. || (passthr_mode ==
  1239. COMPRESSED_PASSTHROUGH_GEN)
  1240. || (passthr_mode ==
  1241. COMPRESSED_PASSTHROUGH_IEC61937))
  1242. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1243. pr_debug("%s: Before adm open topology %d\n", __func__,
  1244. topology);
  1245. copp_idx =
  1246. adm_open(msm_bedais[i].port_id,
  1247. path_type, sample_rate, channels,
  1248. topology, perf_mode, bit_width,
  1249. app_type, acdb_dev_id);
  1250. if ((copp_idx < 0) ||
  1251. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1252. pr_err("%s:adm open failed coppid:%d\n",
  1253. __func__, copp_idx);
  1254. mutex_unlock(&routing_lock);
  1255. return -EINVAL;
  1256. }
  1257. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1258. __func__, fe_id, session_type, i);
  1259. set_bit(copp_idx,
  1260. &session_copp_map[fe_id][session_type][i]);
  1261. if (msm_is_resample_needed(
  1262. sample_rate,
  1263. msm_bedais[i].sample_rate))
  1264. adm_copp_mfc_cfg(
  1265. msm_bedais[i].port_id, copp_idx,
  1266. msm_bedais[i].sample_rate);
  1267. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1268. unsigned long copp =
  1269. session_copp_map[fe_id][session_type][i];
  1270. if (test_bit(j, &copp)) {
  1271. payload.port_id[num_copps] =
  1272. msm_bedais[i].port_id;
  1273. payload.copp_idx[num_copps] = j;
  1274. payload.app_type[num_copps] =
  1275. fe_dai_app_type_cfg
  1276. [fe_id][session_type][i]
  1277. .app_type;
  1278. payload.acdb_dev_id[num_copps] =
  1279. fe_dai_app_type_cfg
  1280. [fe_id][session_type][i]
  1281. .acdb_dev_id;
  1282. payload.sample_rate[num_copps] =
  1283. fe_dai_app_type_cfg
  1284. [fe_id][session_type][i]
  1285. .sample_rate;
  1286. num_copps++;
  1287. }
  1288. }
  1289. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1290. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1291. && passthr_mode !=
  1292. COMPRESSED_PASSTHROUGH_IEC61937)
  1293. msm_routing_send_device_pp_params(
  1294. msm_bedais[i].port_id,
  1295. copp_idx, fe_id);
  1296. }
  1297. }
  1298. if (num_copps) {
  1299. payload.num_copps = num_copps;
  1300. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1301. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1302. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1303. }
  1304. mutex_unlock(&routing_lock);
  1305. return 0;
  1306. }
  1307. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1308. {
  1309. u32 session_id;
  1310. switch (val) {
  1311. case MSM_FRONTEND_DAI_QCHAT:
  1312. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1313. break;
  1314. case MSM_FRONTEND_DAI_VOIP:
  1315. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1316. break;
  1317. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1318. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1319. break;
  1320. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1321. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1322. break;
  1323. default:
  1324. session_id = 0;
  1325. }
  1326. pr_debug("%s session_id 0x%x", __func__, session_id);
  1327. return session_id;
  1328. }
  1329. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1330. int dspst_id, int stream_type)
  1331. {
  1332. int copp_idx = 0;
  1333. int sess_type = 0;
  1334. int i = 0, j = 0, be_id;
  1335. int ret = 0;
  1336. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1337. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1338. return 0;
  1339. }
  1340. if (!(channel_mixer[fe_id].enable)) {
  1341. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1342. __func__, fe_id);
  1343. return 0;
  1344. }
  1345. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1346. sess_type = SESSION_TYPE_RX;
  1347. else
  1348. sess_type = SESSION_TYPE_TX;
  1349. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1350. ++i) {
  1351. be_id = channel_input[fe_id][i] - 1;
  1352. channel_mixer[fe_id].input_channels[i] =
  1353. msm_bedais[be_id].channel;
  1354. if ((msm_bedais[be_id].active) &&
  1355. test_bit(fe_id,
  1356. &msm_bedais[be_id].fe_sessions[0])) {
  1357. unsigned long copp =
  1358. session_copp_map[fe_id][sess_type][be_id];
  1359. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1360. if (test_bit(j, &copp)) {
  1361. copp_idx = j;
  1362. break;
  1363. }
  1364. }
  1365. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1366. __func__,
  1367. fe_id, be_id, msm_bedais[be_id].channel,
  1368. copp_idx);
  1369. ret = adm_programable_channel_mixer(
  1370. msm_bedais[be_id].port_id,
  1371. copp_idx, dspst_id, sess_type,
  1372. channel_mixer + fe_id, i);
  1373. }
  1374. }
  1375. return ret;
  1376. }
  1377. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1378. int dspst_id, int stream_type)
  1379. {
  1380. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1381. struct route_payload payload;
  1382. u32 channels, sample_rate;
  1383. uint16_t bits_per_sample = 16;
  1384. uint32_t passthr_mode = LEGACY_PCM;
  1385. int ret = 0;
  1386. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1387. /* bad ID assigned in machine driver */
  1388. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1389. return -EINVAL;
  1390. }
  1391. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1392. session_type = SESSION_TYPE_RX;
  1393. path_type = ADM_PATH_PLAYBACK;
  1394. port_type = MSM_AFE_PORT_TYPE_RX;
  1395. } else {
  1396. session_type = SESSION_TYPE_TX;
  1397. path_type = ADM_PATH_LIVE_REC;
  1398. port_type = MSM_AFE_PORT_TYPE_TX;
  1399. }
  1400. mutex_lock(&routing_lock);
  1401. payload.num_copps = 0; /* only RX needs to use payload */
  1402. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1403. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1404. /* re-enable EQ if active */
  1405. msm_qti_pp_send_eq_values(fedai_id);
  1406. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1407. if (!is_be_dai_extproc(i) &&
  1408. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1409. (msm_bedais[i].active) &&
  1410. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1411. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1412. /*
  1413. * check if ADM needs to be configured with different
  1414. * channel mapping than backend
  1415. */
  1416. if (!msm_bedais[i].adm_override_ch)
  1417. channels = msm_bedais[i].channel;
  1418. else
  1419. channels = msm_bedais[i].adm_override_ch;
  1420. msm_bedais[i].passthr_mode[fedai_id] =
  1421. LEGACY_PCM;
  1422. bits_per_sample = msm_routing_get_bit_width(
  1423. msm_bedais[i].format);
  1424. app_type =
  1425. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1426. if (app_type) {
  1427. app_type_idx =
  1428. msm_pcm_routing_get_app_type_idx(app_type);
  1429. sample_rate =
  1430. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1431. .sample_rate;
  1432. bits_per_sample =
  1433. app_type_cfg[app_type_idx].bit_width;
  1434. } else
  1435. sample_rate = msm_bedais[i].sample_rate;
  1436. acdb_dev_id =
  1437. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1438. .acdb_dev_id;
  1439. topology = msm_routing_get_adm_topology(fedai_id,
  1440. session_type,
  1441. i);
  1442. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1443. sample_rate, channels, topology,
  1444. perf_mode, bits_per_sample,
  1445. app_type, acdb_dev_id);
  1446. if ((copp_idx < 0) ||
  1447. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1448. pr_err("%s: adm open failed copp_idx:%d\n",
  1449. __func__, copp_idx);
  1450. mutex_unlock(&routing_lock);
  1451. return -EINVAL;
  1452. }
  1453. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1454. __func__, fedai_id, session_type, i);
  1455. set_bit(copp_idx,
  1456. &session_copp_map[fedai_id][session_type][i]);
  1457. if (msm_is_resample_needed(
  1458. sample_rate,
  1459. msm_bedais[i].sample_rate))
  1460. adm_copp_mfc_cfg(
  1461. msm_bedais[i].port_id, copp_idx,
  1462. msm_bedais[i].sample_rate);
  1463. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1464. unsigned long copp =
  1465. session_copp_map[fedai_id][session_type][i];
  1466. if (test_bit(j, &copp)) {
  1467. payload.port_id[num_copps] =
  1468. msm_bedais[i].port_id;
  1469. payload.copp_idx[num_copps] = j;
  1470. payload.app_type[num_copps] =
  1471. fe_dai_app_type_cfg
  1472. [fedai_id][session_type]
  1473. [i].app_type;
  1474. payload.acdb_dev_id[num_copps] =
  1475. fe_dai_app_type_cfg
  1476. [fedai_id][session_type]
  1477. [i].acdb_dev_id;
  1478. payload.sample_rate[num_copps] =
  1479. fe_dai_app_type_cfg
  1480. [fedai_id][session_type]
  1481. [i].sample_rate;
  1482. num_copps++;
  1483. }
  1484. }
  1485. if ((perf_mode == LEGACY_PCM_MODE) &&
  1486. (msm_bedais[i].passthr_mode[fedai_id] ==
  1487. LEGACY_PCM))
  1488. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1489. copp_idx, topology,
  1490. channels);
  1491. }
  1492. }
  1493. if (num_copps) {
  1494. payload.num_copps = num_copps;
  1495. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1496. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1497. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1498. }
  1499. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1500. dspst_id, stream_type);
  1501. mutex_unlock(&routing_lock);
  1502. return ret;
  1503. }
  1504. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1505. int dspst_id, int stream_type,
  1506. struct msm_pcm_routing_evt event_info)
  1507. {
  1508. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1509. stream_type)) {
  1510. pr_err("%s: failed to reg phy stream\n", __func__);
  1511. return -EINVAL;
  1512. }
  1513. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1514. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1515. else
  1516. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1517. return 0;
  1518. }
  1519. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1520. {
  1521. int i, port_type, session_type, path_type, topology;
  1522. struct msm_pcm_routing_fdai_data *fdai;
  1523. if (!is_mm_lsm_fe_id(fedai_id)) {
  1524. /* bad ID assigned in machine driver */
  1525. pr_err("%s: bad MM ID\n", __func__);
  1526. return;
  1527. }
  1528. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1529. port_type = MSM_AFE_PORT_TYPE_RX;
  1530. session_type = SESSION_TYPE_RX;
  1531. path_type = ADM_PATH_PLAYBACK;
  1532. } else {
  1533. port_type = MSM_AFE_PORT_TYPE_TX;
  1534. session_type = SESSION_TYPE_TX;
  1535. path_type = ADM_PATH_LIVE_REC;
  1536. }
  1537. mutex_lock(&routing_lock);
  1538. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1539. if (!is_be_dai_extproc(i) &&
  1540. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1541. (msm_bedais[i].active) &&
  1542. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1543. int idx;
  1544. unsigned long copp =
  1545. session_copp_map[fedai_id][session_type][i];
  1546. fdai = &fe_dai_map[fedai_id][session_type];
  1547. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1548. if (test_bit(idx, &copp))
  1549. break;
  1550. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1551. pr_debug("%s: copp idx is invalid, exiting\n",
  1552. __func__);
  1553. continue;
  1554. }
  1555. topology = adm_get_topology_for_port_copp_idx(
  1556. msm_bedais[i].port_id, idx);
  1557. msm_routing_unload_topology(topology);
  1558. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1559. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1560. __func__, copp, fedai_id, session_type, i);
  1561. clear_bit(idx,
  1562. &session_copp_map[fedai_id][session_type][i]);
  1563. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1564. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1565. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1566. (msm_bedais[i].passthr_mode[fedai_id] ==
  1567. LEGACY_PCM))
  1568. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1569. topology);
  1570. }
  1571. }
  1572. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1573. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1574. mutex_unlock(&routing_lock);
  1575. }
  1576. /* Check if FE/BE route is set */
  1577. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1578. {
  1579. bool rc = false;
  1580. if (!is_mm_lsm_fe_id(fe_id)) {
  1581. /* recheck FE ID in the mixer control defined in this file */
  1582. pr_err("%s: bad MM ID\n", __func__);
  1583. return rc;
  1584. }
  1585. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1586. rc = true;
  1587. return rc;
  1588. }
  1589. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1590. {
  1591. int session_type, path_type, topology;
  1592. u32 channels, sample_rate;
  1593. uint16_t bits_per_sample = 16;
  1594. struct msm_pcm_routing_fdai_data *fdai;
  1595. uint32_t passthr_mode;
  1596. bool is_lsm;
  1597. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1598. if (!is_mm_lsm_fe_id(val)) {
  1599. /* recheck FE ID in the mixer control defined in this file */
  1600. pr_err("%s: bad MM ID\n", __func__);
  1601. return;
  1602. }
  1603. if (!route_check_fe_id_adm_support(val)) {
  1604. /* ignore adm open if not supported for fe_id */
  1605. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1606. return;
  1607. }
  1608. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1609. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1610. MSM_AFE_PORT_TYPE_RX) {
  1611. session_type = SESSION_TYPE_RX;
  1612. if (passthr_mode != LEGACY_PCM)
  1613. path_type = ADM_PATH_COMPRESSED_RX;
  1614. else
  1615. path_type = ADM_PATH_PLAYBACK;
  1616. } else {
  1617. session_type = SESSION_TYPE_TX;
  1618. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1619. path_type = ADM_PATH_COMPRESSED_TX;
  1620. else
  1621. path_type = ADM_PATH_LIVE_REC;
  1622. }
  1623. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1624. (val <= MSM_FRONTEND_DAI_LSM8);
  1625. mutex_lock(&routing_lock);
  1626. if (set) {
  1627. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1628. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1629. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1630. voc_start_playback(set, msm_bedais[reg].port_id);
  1631. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1632. fdai = &fe_dai_map[val][session_type];
  1633. if (msm_bedais[reg].active && fdai->strm_id !=
  1634. INVALID_SESSION) {
  1635. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1636. /*
  1637. * check if ADM needs to be configured with different
  1638. * channel mapping than backend
  1639. */
  1640. if (!msm_bedais[reg].adm_override_ch)
  1641. channels = msm_bedais[reg].channel;
  1642. else
  1643. channels = msm_bedais[reg].adm_override_ch;
  1644. if (session_type == SESSION_TYPE_TX &&
  1645. fdai->be_srate &&
  1646. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1647. pr_debug("%s: flush strm %d diff BE rates\n",
  1648. __func__, fdai->strm_id);
  1649. if (fdai->event_info.event_func)
  1650. fdai->event_info.event_func(
  1651. MSM_PCM_RT_EVT_BUF_RECFG,
  1652. fdai->event_info.priv_data);
  1653. fdai->be_srate = 0; /* might not need it */
  1654. }
  1655. bits_per_sample = msm_routing_get_bit_width(
  1656. msm_bedais[reg].format);
  1657. app_type =
  1658. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1659. if (app_type && is_lsm) {
  1660. app_type_idx =
  1661. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1662. sample_rate =
  1663. fe_dai_app_type_cfg[val][session_type][reg]
  1664. .sample_rate;
  1665. bits_per_sample =
  1666. lsm_app_type_cfg[app_type_idx].bit_width;
  1667. } else if (app_type) {
  1668. app_type_idx =
  1669. msm_pcm_routing_get_app_type_idx(app_type);
  1670. sample_rate =
  1671. fe_dai_app_type_cfg[val][session_type][reg]
  1672. .sample_rate;
  1673. bits_per_sample =
  1674. app_type_cfg[app_type_idx].bit_width;
  1675. } else
  1676. sample_rate = msm_bedais[reg].sample_rate;
  1677. topology = msm_routing_get_adm_topology(val,
  1678. session_type,
  1679. reg);
  1680. acdb_dev_id =
  1681. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1682. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1683. sample_rate, channels, topology,
  1684. fdai->perf_mode, bits_per_sample,
  1685. app_type, acdb_dev_id);
  1686. if ((copp_idx < 0) ||
  1687. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1688. pr_err("%s: adm open failed\n", __func__);
  1689. mutex_unlock(&routing_lock);
  1690. return;
  1691. }
  1692. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1693. __func__, val, session_type, reg);
  1694. set_bit(copp_idx,
  1695. &session_copp_map[val][session_type][reg]);
  1696. if (msm_is_resample_needed(
  1697. sample_rate,
  1698. msm_bedais[reg].sample_rate))
  1699. adm_copp_mfc_cfg(
  1700. msm_bedais[reg].port_id, copp_idx,
  1701. msm_bedais[reg].sample_rate);
  1702. if (session_type == SESSION_TYPE_RX &&
  1703. fdai->event_info.event_func)
  1704. fdai->event_info.event_func(
  1705. MSM_PCM_RT_EVT_DEVSWITCH,
  1706. fdai->event_info.priv_data);
  1707. msm_pcm_routing_build_matrix(val, session_type,
  1708. path_type,
  1709. fdai->perf_mode,
  1710. passthr_mode);
  1711. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1712. (passthr_mode == LEGACY_PCM))
  1713. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1714. copp_idx, topology,
  1715. channels);
  1716. }
  1717. } else {
  1718. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1719. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1720. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1721. voc_start_playback(set, msm_bedais[reg].port_id);
  1722. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1723. fdai = &fe_dai_map[val][session_type];
  1724. if (msm_bedais[reg].active && fdai->strm_id !=
  1725. INVALID_SESSION) {
  1726. int idx;
  1727. int port_id;
  1728. unsigned long copp =
  1729. session_copp_map[val][session_type][reg];
  1730. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1731. if (test_bit(idx, &copp))
  1732. break;
  1733. port_id = msm_bedais[reg].port_id;
  1734. topology = adm_get_topology_for_port_copp_idx(port_id,
  1735. idx);
  1736. msm_routing_unload_topology(topology);
  1737. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1738. idx);
  1739. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1740. __func__, copp, val, session_type, reg,
  1741. topology);
  1742. clear_bit(idx,
  1743. &session_copp_map[val][session_type][reg]);
  1744. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1745. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1746. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1747. (passthr_mode == LEGACY_PCM))
  1748. msm_pcm_routing_deinit_pp(
  1749. msm_bedais[reg].port_id,
  1750. topology);
  1751. msm_pcm_routing_build_matrix(val, session_type,
  1752. path_type,
  1753. fdai->perf_mode,
  1754. passthr_mode);
  1755. }
  1756. }
  1757. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1758. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1759. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1760. mutex_unlock(&routing_lock);
  1761. }
  1762. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1763. struct snd_ctl_elem_value *ucontrol)
  1764. {
  1765. struct soc_mixer_control *mc =
  1766. (struct soc_mixer_control *)kcontrol->private_value;
  1767. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1768. ucontrol->value.integer.value[0] = 1;
  1769. else
  1770. ucontrol->value.integer.value[0] = 0;
  1771. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1772. ucontrol->value.integer.value[0]);
  1773. return 0;
  1774. }
  1775. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1776. struct snd_ctl_elem_value *ucontrol)
  1777. {
  1778. struct snd_soc_dapm_widget *widget =
  1779. snd_soc_dapm_kcontrol_widget(kcontrol);
  1780. struct soc_mixer_control *mc =
  1781. (struct soc_mixer_control *)kcontrol->private_value;
  1782. struct snd_soc_dapm_update *update = NULL;
  1783. if (ucontrol->value.integer.value[0] &&
  1784. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1785. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1786. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1787. update);
  1788. } else if (!ucontrol->value.integer.value[0] &&
  1789. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1790. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1791. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1792. update);
  1793. }
  1794. return 1;
  1795. }
  1796. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1797. struct snd_ctl_elem_value *ucontrol)
  1798. {
  1799. struct soc_mixer_control *mc =
  1800. (struct soc_mixer_control *)kcontrol->private_value;
  1801. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1802. ucontrol->value.integer.value[0] = 1;
  1803. else
  1804. ucontrol->value.integer.value[0] = 0;
  1805. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1806. ucontrol->value.integer.value[0]);
  1807. return 0;
  1808. }
  1809. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1810. struct snd_ctl_elem_value *ucontrol)
  1811. {
  1812. struct snd_soc_dapm_widget *widget =
  1813. snd_soc_dapm_kcontrol_widget(kcontrol);
  1814. struct soc_mixer_control *mc =
  1815. (struct soc_mixer_control *)kcontrol->private_value;
  1816. struct snd_soc_dapm_update *update = NULL;
  1817. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1818. ucontrol->value.integer.value[0]);
  1819. if (ucontrol->value.integer.value[0]) {
  1820. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1821. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1822. snd_soc_dapm_mixer_update_power(widget->dapm,
  1823. kcontrol, 1, update);
  1824. } else if (!ucontrol->value.integer.value[0]) {
  1825. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1826. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1827. snd_soc_dapm_mixer_update_power(widget->dapm,
  1828. kcontrol, 0, update);
  1829. }
  1830. return 1;
  1831. }
  1832. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1833. {
  1834. u32 session_id = 0;
  1835. u16 path_type;
  1836. struct media_format_info voc_be_media_format;
  1837. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1838. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1839. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1840. __func__, val, session_id);
  1841. mutex_lock(&routing_lock);
  1842. if (set)
  1843. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1844. else
  1845. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1846. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1847. afe_get_port_type(msm_bedais[reg].port_id) ==
  1848. MSM_AFE_PORT_TYPE_RX) {
  1849. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1850. __func__, set, msm_bedais[reg].port_id);
  1851. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1852. }
  1853. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1854. MSM_AFE_PORT_TYPE_RX)
  1855. path_type = RX_PATH;
  1856. else
  1857. path_type = TX_PATH;
  1858. if (set) {
  1859. if (msm_bedais[reg].active) {
  1860. voc_set_route_flag(session_id, path_type, 1);
  1861. memset(&voc_be_media_format, 0,
  1862. sizeof(struct media_format_info));
  1863. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1864. voc_be_media_format.num_channels =
  1865. msm_bedais[reg].channel;
  1866. voc_be_media_format.sample_rate =
  1867. msm_bedais[reg].sample_rate;
  1868. voc_be_media_format.bits_per_sample =
  1869. msm_bedais[reg].format;
  1870. /* Defaulting this to 1 for voice call usecases */
  1871. voc_be_media_format.channel_mapping[0] = 1;
  1872. voc_set_device_config(session_id, path_type,
  1873. &voc_be_media_format);
  1874. if (voc_get_route_flag(session_id, TX_PATH) &&
  1875. voc_get_route_flag(session_id, RX_PATH))
  1876. voc_enable_device(session_id);
  1877. } else {
  1878. pr_debug("%s BE is not active\n", __func__);
  1879. }
  1880. } else {
  1881. voc_set_route_flag(session_id, path_type, 0);
  1882. voc_disable_device(session_id);
  1883. }
  1884. mutex_unlock(&routing_lock);
  1885. }
  1886. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1887. struct snd_ctl_elem_value *ucontrol)
  1888. {
  1889. struct soc_mixer_control *mc =
  1890. (struct soc_mixer_control *)kcontrol->private_value;
  1891. mutex_lock(&routing_lock);
  1892. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1893. ucontrol->value.integer.value[0] = 1;
  1894. else
  1895. ucontrol->value.integer.value[0] = 0;
  1896. mutex_unlock(&routing_lock);
  1897. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1898. ucontrol->value.integer.value[0]);
  1899. return 0;
  1900. }
  1901. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1902. struct snd_ctl_elem_value *ucontrol)
  1903. {
  1904. struct snd_soc_dapm_widget *widget =
  1905. snd_soc_dapm_kcontrol_widget(kcontrol);
  1906. struct soc_mixer_control *mc =
  1907. (struct soc_mixer_control *)kcontrol->private_value;
  1908. struct snd_soc_dapm_update *update = NULL;
  1909. if (ucontrol->value.integer.value[0]) {
  1910. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1911. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1912. update);
  1913. } else {
  1914. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1915. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1916. update);
  1917. }
  1918. return 1;
  1919. }
  1920. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1921. struct snd_ctl_elem_value *ucontrol)
  1922. {
  1923. struct soc_mixer_control *mc =
  1924. (struct soc_mixer_control *)kcontrol->private_value;
  1925. mutex_lock(&routing_lock);
  1926. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1927. ucontrol->value.integer.value[0] = 1;
  1928. else
  1929. ucontrol->value.integer.value[0] = 0;
  1930. mutex_unlock(&routing_lock);
  1931. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1932. ucontrol->value.integer.value[0]);
  1933. return 0;
  1934. }
  1935. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1936. struct snd_ctl_elem_value *ucontrol)
  1937. {
  1938. struct snd_soc_dapm_widget *widget =
  1939. snd_soc_dapm_kcontrol_widget(kcontrol);
  1940. struct soc_mixer_control *mc =
  1941. (struct soc_mixer_control *)kcontrol->private_value;
  1942. struct snd_soc_dapm_update *update = NULL;
  1943. if (ucontrol->value.integer.value[0]) {
  1944. mutex_lock(&routing_lock);
  1945. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1946. mutex_unlock(&routing_lock);
  1947. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1948. update);
  1949. } else {
  1950. mutex_lock(&routing_lock);
  1951. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1952. mutex_unlock(&routing_lock);
  1953. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1954. update);
  1955. }
  1956. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1957. ucontrol->value.integer.value[0]);
  1958. return 1;
  1959. }
  1960. /*
  1961. * Return the mapping between port ID and backend ID to enable the AFE callback
  1962. * to determine the acdb_dev_id from the port id
  1963. */
  1964. int msm_pcm_get_be_id_from_port_id(int port_id)
  1965. {
  1966. int i;
  1967. int be_id = -EINVAL;
  1968. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1969. if (msm_bedais[i].port_id == port_id) {
  1970. be_id = i;
  1971. break;
  1972. }
  1973. }
  1974. return be_id;
  1975. }
  1976. /*
  1977. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1978. * correct AFE calibration information by comparing the header information.
  1979. */
  1980. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1981. {
  1982. int acdb_id = -EINVAL;
  1983. int i = 0;
  1984. int session;
  1985. int port_type = afe_get_port_type(port_id);
  1986. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1987. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1988. __func__, port_id, be_id, port_type);
  1989. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1990. session = SESSION_TYPE_TX;
  1991. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1992. session = SESSION_TYPE_RX;
  1993. } else {
  1994. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1995. acdb_id = -EINVAL;
  1996. goto exit;
  1997. }
  1998. if (be_id < 0) {
  1999. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2000. goto exit;
  2001. }
  2002. mutex_lock(&routing_lock);
  2003. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2004. MSM_FRONTEND_DAI_MAX);
  2005. if (i < MSM_FRONTEND_DAI_MAX)
  2006. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2007. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2008. __func__, i, session, be_id, acdb_id);
  2009. mutex_unlock(&routing_lock);
  2010. exit:
  2011. return acdb_id;
  2012. }
  2013. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2014. struct snd_ctl_elem_value *ucontrol)
  2015. {
  2016. ucontrol->value.integer.value[0] = fm_switch_enable;
  2017. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2018. ucontrol->value.integer.value[0]);
  2019. return 0;
  2020. }
  2021. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2022. struct snd_ctl_elem_value *ucontrol)
  2023. {
  2024. struct snd_soc_dapm_widget *widget =
  2025. snd_soc_dapm_kcontrol_widget(kcontrol);
  2026. struct snd_soc_dapm_update *update = NULL;
  2027. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2028. ucontrol->value.integer.value[0]);
  2029. if (ucontrol->value.integer.value[0])
  2030. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2031. update);
  2032. else
  2033. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2034. update);
  2035. fm_switch_enable = ucontrol->value.integer.value[0];
  2036. return 1;
  2037. }
  2038. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2039. struct snd_ctl_elem_value *ucontrol)
  2040. {
  2041. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2042. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2043. ucontrol->value.integer.value[0]);
  2044. return 0;
  2045. }
  2046. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2047. struct snd_ctl_elem_value *ucontrol)
  2048. {
  2049. struct snd_soc_dapm_widget *widget =
  2050. snd_soc_dapm_kcontrol_widget(kcontrol);
  2051. struct snd_soc_dapm_update *update = NULL;
  2052. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2053. ucontrol->value.integer.value[0]);
  2054. if (ucontrol->value.integer.value[0])
  2055. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2056. 1, update);
  2057. else
  2058. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2059. 0, update);
  2060. hfp_switch_enable = ucontrol->value.integer.value[0];
  2061. return 1;
  2062. }
  2063. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2064. struct snd_ctl_elem_value *ucontrol)
  2065. {
  2066. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2067. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2068. ucontrol->value.integer.value[0]);
  2069. return 0;
  2070. }
  2071. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2072. struct snd_ctl_elem_value *ucontrol)
  2073. {
  2074. struct snd_soc_dapm_widget *widget =
  2075. snd_soc_dapm_kcontrol_widget(kcontrol);
  2076. struct snd_soc_dapm_update *update = NULL;
  2077. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2078. ucontrol->value.integer.value[0]);
  2079. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2080. if (a2dp_switch_enable)
  2081. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2082. 1, update);
  2083. else
  2084. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2085. 0, update);
  2086. return 1;
  2087. }
  2088. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2089. struct snd_ctl_elem_value *ucontrol)
  2090. {
  2091. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2092. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2093. ucontrol->value.integer.value[0]);
  2094. return 0;
  2095. }
  2096. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2097. struct snd_ctl_elem_value *ucontrol)
  2098. {
  2099. struct snd_soc_dapm_widget *widget =
  2100. snd_soc_dapm_kcontrol_widget(kcontrol);
  2101. struct snd_soc_dapm_update *update = NULL;
  2102. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2103. ucontrol->value.integer.value[0]);
  2104. if (ucontrol->value.integer.value[0])
  2105. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2106. update);
  2107. else
  2108. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2109. update);
  2110. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2111. return 1;
  2112. }
  2113. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2114. struct snd_ctl_elem_value *ucontrol)
  2115. {
  2116. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2117. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2118. ucontrol->value.integer.value[0]);
  2119. return 0;
  2120. }
  2121. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2122. struct snd_ctl_elem_value *ucontrol)
  2123. {
  2124. struct snd_soc_dapm_widget *widget =
  2125. snd_soc_dapm_kcontrol_widget(kcontrol);
  2126. struct snd_soc_dapm_update *update = NULL;
  2127. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2128. ucontrol->value.integer.value[0]);
  2129. if (ucontrol->value.integer.value[0])
  2130. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2131. update);
  2132. else
  2133. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2134. update);
  2135. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2136. return 1;
  2137. }
  2138. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2139. struct snd_ctl_elem_value *ucontrol)
  2140. {
  2141. ucontrol->value.integer.value[0] = usb_switch_enable;
  2142. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2143. ucontrol->value.integer.value[0]);
  2144. return 0;
  2145. }
  2146. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2147. struct snd_ctl_elem_value *ucontrol)
  2148. {
  2149. struct snd_soc_dapm_widget *widget =
  2150. snd_soc_dapm_kcontrol_widget(kcontrol);
  2151. struct snd_soc_dapm_update *update = NULL;
  2152. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2153. ucontrol->value.integer.value[0]);
  2154. if (ucontrol->value.integer.value[0])
  2155. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2156. 1, update);
  2157. else
  2158. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2159. 0, update);
  2160. usb_switch_enable = ucontrol->value.integer.value[0];
  2161. return 1;
  2162. }
  2163. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2164. struct snd_ctl_elem_value *ucontrol)
  2165. {
  2166. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2167. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2168. ucontrol->value.integer.value[0]);
  2169. return 0;
  2170. }
  2171. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2172. struct snd_ctl_elem_value *ucontrol)
  2173. {
  2174. struct snd_soc_dapm_widget *widget =
  2175. snd_soc_dapm_kcontrol_widget(kcontrol);
  2176. struct snd_soc_dapm_update *update = NULL;
  2177. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2178. ucontrol->value.integer.value[0]);
  2179. if (ucontrol->value.integer.value[0])
  2180. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2181. update);
  2182. else
  2183. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2184. update);
  2185. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2186. return 1;
  2187. }
  2188. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2189. struct snd_ctl_elem_value *ucontrol)
  2190. {
  2191. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2192. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2193. ucontrol->value.integer.value[0]);
  2194. return 0;
  2195. }
  2196. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2197. struct snd_ctl_elem_value *ucontrol)
  2198. {
  2199. struct snd_soc_dapm_widget *widget =
  2200. snd_soc_dapm_kcontrol_widget(kcontrol);
  2201. struct snd_soc_dapm_update *update = NULL;
  2202. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2203. ucontrol->value.integer.value[0]);
  2204. if (ucontrol->value.integer.value[0])
  2205. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2206. update);
  2207. else
  2208. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2209. update);
  2210. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2211. return 1;
  2212. }
  2213. static int msm_routing_get_tert_mi2s_switch_mixer(
  2214. struct snd_kcontrol *kcontrol,
  2215. struct snd_ctl_elem_value *ucontrol)
  2216. {
  2217. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2218. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2219. ucontrol->value.integer.value[0]);
  2220. return 0;
  2221. }
  2222. static int msm_routing_put_tert_mi2s_switch_mixer(
  2223. struct snd_kcontrol *kcontrol,
  2224. struct snd_ctl_elem_value *ucontrol)
  2225. {
  2226. struct snd_soc_dapm_widget *widget =
  2227. snd_soc_dapm_kcontrol_widget(kcontrol);
  2228. struct snd_soc_dapm_update *update = NULL;
  2229. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2230. ucontrol->value.integer.value[0]);
  2231. if (ucontrol->value.integer.value[0])
  2232. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2233. update);
  2234. else
  2235. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2236. update);
  2237. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2238. return 1;
  2239. }
  2240. static int msm_routing_get_quat_mi2s_switch_mixer(
  2241. struct snd_kcontrol *kcontrol,
  2242. struct snd_ctl_elem_value *ucontrol)
  2243. {
  2244. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2245. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2246. ucontrol->value.integer.value[0]);
  2247. return 0;
  2248. }
  2249. static int msm_routing_put_quat_mi2s_switch_mixer(
  2250. struct snd_kcontrol *kcontrol,
  2251. struct snd_ctl_elem_value *ucontrol)
  2252. {
  2253. struct snd_soc_dapm_widget *widget =
  2254. snd_soc_dapm_kcontrol_widget(kcontrol);
  2255. struct snd_soc_dapm_update *update = NULL;
  2256. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2257. ucontrol->value.integer.value[0]);
  2258. if (ucontrol->value.integer.value[0])
  2259. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2260. update);
  2261. else
  2262. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2263. update);
  2264. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2265. return 1;
  2266. }
  2267. static int msm_routing_get_quin_mi2s_switch_mixer(
  2268. struct snd_kcontrol *kcontrol,
  2269. struct snd_ctl_elem_value *ucontrol)
  2270. {
  2271. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2272. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2273. ucontrol->value.integer.value[0]);
  2274. return 0;
  2275. }
  2276. static int msm_routing_put_quin_mi2s_switch_mixer(
  2277. struct snd_kcontrol *kcontrol,
  2278. struct snd_ctl_elem_value *ucontrol)
  2279. {
  2280. struct snd_soc_dapm_widget *widget =
  2281. snd_soc_dapm_kcontrol_widget(kcontrol);
  2282. struct snd_soc_dapm_update *update = NULL;
  2283. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2284. ucontrol->value.integer.value[0]);
  2285. if (ucontrol->value.integer.value[0])
  2286. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2287. update);
  2288. else
  2289. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2290. update);
  2291. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2292. return 1;
  2293. }
  2294. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2295. struct snd_ctl_elem_value *ucontrol)
  2296. {
  2297. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2298. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2299. ucontrol->value.integer.value[0]);
  2300. return 0;
  2301. }
  2302. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2303. struct snd_ctl_elem_value *ucontrol)
  2304. {
  2305. struct snd_soc_dapm_widget *widget =
  2306. snd_soc_dapm_kcontrol_widget(kcontrol);
  2307. struct snd_soc_dapm_update *update = NULL;
  2308. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2309. ucontrol->value.integer.value[0]);
  2310. if (ucontrol->value.integer.value[0])
  2311. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2312. update);
  2313. else
  2314. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2315. update);
  2316. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2317. return 1;
  2318. }
  2319. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2320. struct snd_ctl_elem_value *ucontrol)
  2321. {
  2322. ucontrol->value.integer.value[0] = lsm_port_index;
  2323. return 0;
  2324. }
  2325. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2326. struct snd_ctl_elem_value *ucontrol)
  2327. {
  2328. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2329. int mux = ucontrol->value.enumerated.item[0];
  2330. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2331. if (mux >= e->items) {
  2332. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2333. return -EINVAL;
  2334. }
  2335. pr_debug("%s: LSM enable %ld\n", __func__,
  2336. ucontrol->value.integer.value[0]);
  2337. switch (ucontrol->value.integer.value[0]) {
  2338. case 1:
  2339. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2340. break;
  2341. case 2:
  2342. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2343. break;
  2344. case 3:
  2345. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2346. break;
  2347. case 4:
  2348. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2349. break;
  2350. case 5:
  2351. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2352. break;
  2353. case 6:
  2354. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2355. break;
  2356. case 7:
  2357. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2358. break;
  2359. case 8:
  2360. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2361. break;
  2362. case 9:
  2363. lsm_port = ADM_LSM_PORT_ID;
  2364. break;
  2365. case 10:
  2366. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2367. break;
  2368. case 11:
  2369. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2370. break;
  2371. case 12:
  2372. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2373. break;
  2374. default:
  2375. pr_err("Default lsm port");
  2376. break;
  2377. }
  2378. set_lsm_port(lsm_port);
  2379. lsm_port_index = ucontrol->value.integer.value[0];
  2380. return 0;
  2381. }
  2382. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2383. struct snd_ctl_elem_value *ucontrol)
  2384. {
  2385. int i;
  2386. u16 port_id;
  2387. enum afe_mad_type mad_type;
  2388. pr_debug("%s: enter\n", __func__);
  2389. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2390. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2391. strlen(lsm_port_text[i])))
  2392. break;
  2393. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2394. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2395. return -EINVAL;
  2396. }
  2397. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2398. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2399. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2400. strlen(lsm_port_text[7])))
  2401. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2402. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2403. strlen(lsm_port_text[8])))
  2404. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2405. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2406. strlen(lsm_port_text[10])))
  2407. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2408. mad_type = afe_port_get_mad_type(port_id);
  2409. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2410. mad_type);
  2411. switch (mad_type) {
  2412. case MAD_HW_NONE:
  2413. ucontrol->value.integer.value[0] = MADNONE;
  2414. break;
  2415. case MAD_HW_AUDIO:
  2416. ucontrol->value.integer.value[0] = MADAUDIO;
  2417. break;
  2418. case MAD_HW_BEACON:
  2419. ucontrol->value.integer.value[0] = MADBEACON;
  2420. break;
  2421. case MAD_HW_ULTRASOUND:
  2422. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2423. break;
  2424. case MAD_SW_AUDIO:
  2425. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2426. break;
  2427. default:
  2428. WARN(1, "Unknown\n");
  2429. return -EINVAL;
  2430. }
  2431. return 0;
  2432. }
  2433. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2434. struct snd_ctl_elem_value *ucontrol)
  2435. {
  2436. int i;
  2437. u16 port_id;
  2438. enum afe_mad_type mad_type;
  2439. pr_debug("%s: enter\n", __func__);
  2440. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2441. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2442. strlen(lsm_port_text[i])))
  2443. break;
  2444. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2445. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2446. return -EINVAL;
  2447. }
  2448. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2449. switch (ucontrol->value.integer.value[0]) {
  2450. case MADNONE:
  2451. mad_type = MAD_HW_NONE;
  2452. break;
  2453. case MADAUDIO:
  2454. mad_type = MAD_HW_AUDIO;
  2455. break;
  2456. case MADBEACON:
  2457. mad_type = MAD_HW_BEACON;
  2458. break;
  2459. case MADULTRASOUND:
  2460. mad_type = MAD_HW_ULTRASOUND;
  2461. break;
  2462. case MADSWAUDIO:
  2463. mad_type = MAD_SW_AUDIO;
  2464. break;
  2465. default:
  2466. WARN(1, "Unknown\n");
  2467. return -EINVAL;
  2468. }
  2469. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2470. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2471. strlen(lsm_port_text[7])))
  2472. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2473. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2474. strlen(lsm_port_text[8])))
  2475. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2476. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2477. strlen(lsm_port_text[10])))
  2478. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2479. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2480. mad_type);
  2481. return afe_port_set_mad_type(port_id, mad_type);
  2482. }
  2483. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2484. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2485. adm_override_chs_text);
  2486. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2487. {
  2488. int backend_id;
  2489. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2490. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2491. } else {
  2492. pr_err("%s: unsupported backend id: %s",
  2493. __func__, kcontrol->id.name);
  2494. return -EINVAL;
  2495. }
  2496. return backend_id;
  2497. }
  2498. static int msm_routing_adm_channel_config_get(
  2499. struct snd_kcontrol *kcontrol,
  2500. struct snd_ctl_elem_value *ucontrol)
  2501. {
  2502. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2503. if (backend_id >= 0) {
  2504. mutex_lock(&routing_lock);
  2505. ucontrol->value.integer.value[0] =
  2506. msm_bedais[backend_id].adm_override_ch;
  2507. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2508. ucontrol->value.integer.value[0], backend_id);
  2509. mutex_unlock(&routing_lock);
  2510. }
  2511. return 0;
  2512. }
  2513. static int msm_routing_adm_channel_config_put(
  2514. struct snd_kcontrol *kcontrol,
  2515. struct snd_ctl_elem_value *ucontrol)
  2516. {
  2517. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2518. if (backend_id >= 0) {
  2519. mutex_lock(&routing_lock);
  2520. msm_bedais[backend_id].adm_override_ch =
  2521. ucontrol->value.integer.value[0];
  2522. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2523. __func__, backend_id,
  2524. msm_bedais[backend_id].adm_override_ch);
  2525. mutex_unlock(&routing_lock);
  2526. }
  2527. return 0;
  2528. }
  2529. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2530. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2531. msm_routing_adm_channel_config_get,
  2532. msm_routing_adm_channel_config_put),
  2533. };
  2534. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2535. struct snd_ctl_elem_value *ucontrol)
  2536. {
  2537. mutex_lock(&routing_lock);
  2538. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2539. mutex_unlock(&routing_lock);
  2540. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2541. ucontrol->value.integer.value[0]);
  2542. return 0;
  2543. };
  2544. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2545. struct snd_ctl_elem_value *ucontrol)
  2546. {
  2547. struct aanc_data aanc_info;
  2548. mutex_lock(&routing_lock);
  2549. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2550. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2551. ucontrol->value.integer.value[0]);
  2552. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2553. if (ucontrol->value.integer.value[0] == 0) {
  2554. aanc_info.aanc_active = false;
  2555. aanc_info.aanc_tx_port = 0;
  2556. aanc_info.aanc_rx_port = 0;
  2557. } else {
  2558. aanc_info.aanc_active = true;
  2559. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2560. aanc_info.aanc_tx_port =
  2561. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2562. }
  2563. afe_set_aanc_info(&aanc_info);
  2564. mutex_unlock(&routing_lock);
  2565. return 0;
  2566. };
  2567. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2568. struct snd_ctl_elem_value *ucontrol)
  2569. {
  2570. int idx = 0, shift = 0;
  2571. struct soc_mixer_control *mc =
  2572. (struct soc_mixer_control *)kcontrol->private_value;
  2573. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2574. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2575. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2576. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2577. return -EINVAL;
  2578. }
  2579. if (test_bit(shift,
  2580. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2581. ucontrol->value.integer.value[0] = 1;
  2582. else
  2583. ucontrol->value.integer.value[0] = 0;
  2584. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2585. ucontrol->value.integer.value[0]);
  2586. return 0;
  2587. }
  2588. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2589. struct snd_ctl_elem_value *ucontrol)
  2590. {
  2591. int idx = 0, shift = 0;
  2592. struct soc_mixer_control *mc =
  2593. (struct soc_mixer_control *)kcontrol->private_value;
  2594. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2595. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2596. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2597. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2598. return -EINVAL;
  2599. }
  2600. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2601. __func__, mc->shift, mc->rshift,
  2602. ucontrol->value.integer.value[0], idx, shift);
  2603. if (ucontrol->value.integer.value[0]) {
  2604. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2605. msm_bedais[mc->rshift].port_id);
  2606. set_bit(shift,
  2607. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2608. } else {
  2609. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2610. msm_bedais[mc->rshift].port_id);
  2611. clear_bit(shift,
  2612. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2613. }
  2614. return 1;
  2615. }
  2616. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2617. struct snd_ctl_elem_value *ucontrol)
  2618. {
  2619. u16 fe_id = 0;
  2620. fe_id = ((struct soc_mixer_control *)
  2621. kcontrol->private_value)->shift;
  2622. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2623. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2624. return -EINVAL;
  2625. }
  2626. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2627. return 0;
  2628. }
  2629. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2630. struct snd_ctl_elem_value *ucontrol)
  2631. {
  2632. u16 fe_id = 0;
  2633. fe_id = ((struct soc_mixer_control *)
  2634. kcontrol->private_value)->shift;
  2635. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2636. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2637. return -EINVAL;
  2638. }
  2639. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2640. return 1;
  2641. }
  2642. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2643. struct snd_ctl_elem_value *ucontrol)
  2644. {
  2645. u16 fe_id = 0;
  2646. fe_id = ((struct soc_multi_mixer_control *)
  2647. kcontrol->private_value)->shift;
  2648. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2649. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2650. return -EINVAL;
  2651. }
  2652. ucontrol->value.integer.value[0] =
  2653. channel_mixer[fe_id].output_channel;
  2654. return 0;
  2655. }
  2656. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2657. struct snd_ctl_elem_value *ucontrol)
  2658. {
  2659. u16 fe_id = 0;
  2660. fe_id = ((struct soc_multi_mixer_control *)
  2661. kcontrol->private_value)->shift;
  2662. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2663. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2664. return -EINVAL;
  2665. }
  2666. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2667. fe_id,
  2668. (unsigned int)(ucontrol->value.integer.value[0]));
  2669. channel_mixer[fe_id].output_channel =
  2670. (unsigned int)(ucontrol->value.integer.value[0]);
  2671. return 1;
  2672. }
  2673. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2674. /* If new backend is added, need update this array */
  2675. static const char *const be_name[] = {
  2676. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2677. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2678. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2679. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2680. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2681. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2682. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2683. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2684. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2685. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2686. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2687. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2688. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2689. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2690. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2691. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2692. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2693. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2694. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2695. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2696. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2697. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2698. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2699. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2700. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2701. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2702. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2703. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2704. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2705. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2706. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2707. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2708. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2709. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2710. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2711. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2712. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2713. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2714. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2715. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2716. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2717. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2718. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1",
  2719. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX"
  2720. };
  2721. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2722. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2723. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2724. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2725. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2726. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2727. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2728. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2729. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2730. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2731. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2732. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2733. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2734. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2735. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2736. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2737. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2738. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2739. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2740. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2741. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2742. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2743. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2744. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2745. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2746. unsigned int channels,
  2747. unsigned int items, const char *const names[])
  2748. {
  2749. if (uinfo->value.enumerated.item >= items)
  2750. uinfo->value.enumerated.item = items - 1;
  2751. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2752. sizeof(uinfo->value.enumerated.name),
  2753. "ALSA: too long item name '%s'\n",
  2754. names[uinfo->value.enumerated.item]);
  2755. strlcpy(uinfo->value.enumerated.name,
  2756. names[uinfo->value.enumerated.item],
  2757. sizeof(uinfo->value.enumerated.name));
  2758. return 0;
  2759. }
  2760. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2761. struct snd_ctl_elem_info *uinfo)
  2762. {
  2763. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2764. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2765. uinfo->count = 1;
  2766. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2767. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2768. return 0;
  2769. }
  2770. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2771. struct snd_ctl_elem_value *ucontrol)
  2772. {
  2773. u16 fe_id = 0;
  2774. fe_id = ((struct soc_enum *)
  2775. kcontrol->private_value)->shift_l;
  2776. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2777. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2778. return -EINVAL;
  2779. }
  2780. pr_debug("%s: FE %d %s\n", __func__,
  2781. fe_id,
  2782. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2783. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2784. return 0;
  2785. }
  2786. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2787. struct snd_ctl_elem_value *ucontrol)
  2788. {
  2789. u16 fe_id = 0;
  2790. fe_id = ((struct soc_enum *)
  2791. kcontrol->private_value)->shift_l;
  2792. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2793. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2794. return -EINVAL;
  2795. }
  2796. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2797. pr_debug("%s: %s FE %d\n", __func__,
  2798. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2799. fe_id);
  2800. return 0;
  2801. }
  2802. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2803. struct snd_ctl_elem_info *uinfo)
  2804. {
  2805. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2806. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2807. uinfo->count = 1;
  2808. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2809. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2810. return 0;
  2811. }
  2812. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2813. struct snd_ctl_elem_value *ucontrol)
  2814. {
  2815. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2816. u16 fe_id = 0, in_ch = 0;
  2817. fe_id = e->shift_l;
  2818. in_ch = e->shift_r;
  2819. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2820. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2821. return -EINVAL;
  2822. }
  2823. if (in_ch >= ADM_MAX_CHANNELS) {
  2824. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2825. return -EINVAL;
  2826. }
  2827. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2828. return 1;
  2829. }
  2830. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2831. struct snd_ctl_elem_value *ucontrol)
  2832. {
  2833. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2834. u16 fe_id = 0, in_ch = 0;
  2835. fe_id = e->shift_l;
  2836. in_ch = e->shift_r;
  2837. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2838. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2839. return -EINVAL;
  2840. }
  2841. if (in_ch >= ADM_MAX_CHANNELS) {
  2842. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2843. return -EINVAL;
  2844. }
  2845. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2846. return 1;
  2847. }
  2848. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2849. struct snd_ctl_elem_info *uinfo)
  2850. {
  2851. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2852. uinfo->count = ADM_MAX_CHANNELS;
  2853. uinfo->value.integer.min = 0;
  2854. uinfo->value.integer.max = WEIGHT_0_DB;
  2855. return 0;
  2856. }
  2857. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2858. struct snd_ctl_elem_value *ucontrol)
  2859. {
  2860. u16 fe_id = 0, out_ch = 0;
  2861. int i, weight;
  2862. fe_id = ((struct soc_multi_mixer_control *)
  2863. kcontrol->private_value)->shift;
  2864. out_ch = ((struct soc_multi_mixer_control *)
  2865. kcontrol->private_value)->rshift;
  2866. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2867. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2868. return -EINVAL;
  2869. }
  2870. if (out_ch >= ADM_MAX_CHANNELS) {
  2871. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2872. return -EINVAL;
  2873. }
  2874. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2875. __func__, fe_id,
  2876. ucontrol->value.integer.value[0],
  2877. ucontrol->value.integer.value[1],
  2878. ucontrol->value.integer.value[2],
  2879. ucontrol->value.integer.value[3],
  2880. ucontrol->value.integer.value[4],
  2881. ucontrol->value.integer.value[5],
  2882. ucontrol->value.integer.value[6],
  2883. ucontrol->value.integer.value[7]);
  2884. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2885. weight = ucontrol->value.integer.value[i];
  2886. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2887. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2888. __func__, fe_id, out_ch, i,
  2889. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2890. }
  2891. return 0;
  2892. }
  2893. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2894. struct snd_ctl_elem_value *ucontrol)
  2895. {
  2896. u16 fe_id = 0, out_ch = 0;
  2897. int i;
  2898. fe_id = ((struct soc_multi_mixer_control *)
  2899. kcontrol->private_value)->shift;
  2900. out_ch = ((struct soc_multi_mixer_control *)
  2901. kcontrol->private_value)->rshift;
  2902. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2903. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2904. return -EINVAL;
  2905. }
  2906. if (out_ch >= ADM_MAX_CHANNELS) {
  2907. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2908. return -EINVAL;
  2909. }
  2910. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2911. ucontrol->value.integer.value[i] =
  2912. channel_mixer[fe_id].channel_weight[out_ch][i];
  2913. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2914. __func__, fe_id,
  2915. ucontrol->value.integer.value[0],
  2916. ucontrol->value.integer.value[1],
  2917. ucontrol->value.integer.value[2],
  2918. ucontrol->value.integer.value[3],
  2919. ucontrol->value.integer.value[4],
  2920. ucontrol->value.integer.value[5],
  2921. ucontrol->value.integer.value[6],
  2922. ucontrol->value.integer.value[7]);
  2923. return 0;
  2924. }
  2925. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2926. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2927. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2928. msm_pcm_get_channel_rule_index,
  2929. msm_pcm_put_channel_rule_index),
  2930. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2931. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2932. msm_pcm_get_channel_rule_index,
  2933. msm_pcm_put_channel_rule_index),
  2934. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2935. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2936. msm_pcm_get_channel_rule_index,
  2937. msm_pcm_put_channel_rule_index),
  2938. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2939. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2940. msm_pcm_get_channel_rule_index,
  2941. msm_pcm_put_channel_rule_index),
  2942. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2943. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2944. msm_pcm_get_channel_rule_index,
  2945. msm_pcm_put_channel_rule_index),
  2946. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2947. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2948. msm_pcm_get_channel_rule_index,
  2949. msm_pcm_put_channel_rule_index),
  2950. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2951. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2952. msm_pcm_get_out_chs,
  2953. msm_pcm_put_out_chs),
  2954. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2955. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2956. msm_pcm_get_out_chs,
  2957. msm_pcm_put_out_chs),
  2958. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2959. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2960. msm_pcm_get_out_chs,
  2961. msm_pcm_put_out_chs),
  2962. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2963. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2964. msm_pcm_get_out_chs,
  2965. msm_pcm_put_out_chs),
  2966. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2967. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2968. msm_pcm_get_out_chs,
  2969. msm_pcm_put_out_chs),
  2970. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2971. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2972. msm_pcm_get_out_chs,
  2973. msm_pcm_put_out_chs),
  2974. {
  2975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2976. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2977. .name = "MultiMedia1 Channel Mixer",
  2978. .info = msm_pcm_channel_mixer_info,
  2979. .get = msm_pcm_channel_mixer_get,
  2980. .put = msm_pcm_channel_mixer_put,
  2981. .private_value = (unsigned long)&(mm1_channel_mux)
  2982. },
  2983. {
  2984. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2985. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2986. .name = "MultiMedia2 Channel Mixer",
  2987. .info = msm_pcm_channel_mixer_info,
  2988. .get = msm_pcm_channel_mixer_get,
  2989. .put = msm_pcm_channel_mixer_put,
  2990. .private_value = (unsigned long)&(mm2_channel_mux)
  2991. },
  2992. {
  2993. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2994. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2995. .name = "MultiMedia3 Channel Mixer",
  2996. .info = msm_pcm_channel_mixer_info,
  2997. .get = msm_pcm_channel_mixer_get,
  2998. .put = msm_pcm_channel_mixer_put,
  2999. .private_value = (unsigned long)&(mm3_channel_mux)
  3000. },
  3001. {
  3002. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3003. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3004. .name = "MultiMedia4 Channel Mixer",
  3005. .info = msm_pcm_channel_mixer_info,
  3006. .get = msm_pcm_channel_mixer_get,
  3007. .put = msm_pcm_channel_mixer_put,
  3008. .private_value = (unsigned long)&(mm4_channel_mux)
  3009. },
  3010. {
  3011. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3012. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3013. .name = "MultiMedia1 Output Channel1",
  3014. .info = msm_pcm_channel_weight_info,
  3015. .get = msm_pcm_channel_weight_get,
  3016. .put = msm_pcm_channel_weight_put,
  3017. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3018. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3019. },
  3020. {
  3021. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3022. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3023. .name = "MultiMedia1 Output Channel2",
  3024. .info = msm_pcm_channel_weight_info,
  3025. .get = msm_pcm_channel_weight_get,
  3026. .put = msm_pcm_channel_weight_put,
  3027. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3028. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3029. },
  3030. {
  3031. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3032. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3033. .name = "MultiMedia1 Output Channel3",
  3034. .info = msm_pcm_channel_weight_info,
  3035. .get = msm_pcm_channel_weight_get,
  3036. .put = msm_pcm_channel_weight_put,
  3037. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3038. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3039. },
  3040. {
  3041. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3042. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3043. .name = "MultiMedia1 Output Channel4",
  3044. .info = msm_pcm_channel_weight_info,
  3045. .get = msm_pcm_channel_weight_get,
  3046. .put = msm_pcm_channel_weight_put,
  3047. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3048. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3049. },
  3050. {
  3051. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3052. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3053. .name = "MultiMedia1 Output Channel5",
  3054. .info = msm_pcm_channel_weight_info,
  3055. .get = msm_pcm_channel_weight_get,
  3056. .put = msm_pcm_channel_weight_put,
  3057. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3058. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3059. },
  3060. {
  3061. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3062. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3063. .name = "MultiMedia1 Output Channel6",
  3064. .info = msm_pcm_channel_weight_info,
  3065. .get = msm_pcm_channel_weight_get,
  3066. .put = msm_pcm_channel_weight_put,
  3067. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3068. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3069. },
  3070. {
  3071. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3072. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3073. .name = "MultiMedia1 Output Channel7",
  3074. .info = msm_pcm_channel_weight_info,
  3075. .get = msm_pcm_channel_weight_get,
  3076. .put = msm_pcm_channel_weight_put,
  3077. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3078. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3079. },
  3080. {
  3081. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3082. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3083. .name = "MultiMedia1 Output Channel8",
  3084. .info = msm_pcm_channel_weight_info,
  3085. .get = msm_pcm_channel_weight_get,
  3086. .put = msm_pcm_channel_weight_put,
  3087. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3088. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3089. },
  3090. {
  3091. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3092. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3093. .name = "MultiMedia2 Output Channel1",
  3094. .info = msm_pcm_channel_weight_info,
  3095. .get = msm_pcm_channel_weight_get,
  3096. .put = msm_pcm_channel_weight_put,
  3097. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3098. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3099. },
  3100. {
  3101. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3102. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3103. .name = "MultiMedia2 Output Channel2",
  3104. .info = msm_pcm_channel_weight_info,
  3105. .get = msm_pcm_channel_weight_get,
  3106. .put = msm_pcm_channel_weight_put,
  3107. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3108. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3109. },
  3110. {
  3111. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3112. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3113. .name = "MultiMedia2 Output Channel3",
  3114. .info = msm_pcm_channel_weight_info,
  3115. .get = msm_pcm_channel_weight_get,
  3116. .put = msm_pcm_channel_weight_put,
  3117. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3118. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3119. },
  3120. {
  3121. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3122. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3123. .name = "MultiMedia3 Output Channel1",
  3124. .info = msm_pcm_channel_weight_info,
  3125. .get = msm_pcm_channel_weight_get,
  3126. .put = msm_pcm_channel_weight_put,
  3127. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3128. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3129. },
  3130. {
  3131. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3132. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3133. .name = "MultiMedia3 Output Channel2",
  3134. .info = msm_pcm_channel_weight_info,
  3135. .get = msm_pcm_channel_weight_get,
  3136. .put = msm_pcm_channel_weight_put,
  3137. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3138. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3139. },
  3140. {
  3141. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3142. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3143. .name = "MultiMedia1 Channel1",
  3144. .info = msm_pcm_channel_input_be_info,
  3145. .get = msm_pcm_channel_input_be_get,
  3146. .put = msm_pcm_channel_input_be_put,
  3147. .private_value = (unsigned long)&(mm1_ch1_enum)
  3148. },
  3149. {
  3150. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3151. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3152. .name = "MultiMedia1 Channel2",
  3153. .info = msm_pcm_channel_input_be_info,
  3154. .get = msm_pcm_channel_input_be_get,
  3155. .put = msm_pcm_channel_input_be_put,
  3156. .private_value = (unsigned long)&(mm1_ch2_enum)
  3157. },
  3158. {
  3159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3161. .name = "MultiMedia1 Channel3",
  3162. .info = msm_pcm_channel_input_be_info,
  3163. .get = msm_pcm_channel_input_be_get,
  3164. .put = msm_pcm_channel_input_be_put,
  3165. .private_value = (unsigned long)&(mm1_ch3_enum)
  3166. },
  3167. {
  3168. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3169. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3170. .name = "MultiMedia1 Channel4",
  3171. .info = msm_pcm_channel_input_be_info,
  3172. .get = msm_pcm_channel_input_be_get,
  3173. .put = msm_pcm_channel_input_be_put,
  3174. .private_value = (unsigned long)&(mm1_ch4_enum)
  3175. },
  3176. {
  3177. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3178. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3179. .name = "MultiMedia1 Channel5",
  3180. .info = msm_pcm_channel_input_be_info,
  3181. .get = msm_pcm_channel_input_be_get,
  3182. .put = msm_pcm_channel_input_be_put,
  3183. .private_value = (unsigned long)&(mm1_ch5_enum)
  3184. },
  3185. {
  3186. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3187. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3188. .name = "MultiMedia1 Channel6",
  3189. .info = msm_pcm_channel_input_be_info,
  3190. .get = msm_pcm_channel_input_be_get,
  3191. .put = msm_pcm_channel_input_be_put,
  3192. .private_value = (unsigned long)&(mm1_ch6_enum)
  3193. },
  3194. {
  3195. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3196. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3197. .name = "MultiMedia1 Channel7",
  3198. .info = msm_pcm_channel_input_be_info,
  3199. .get = msm_pcm_channel_input_be_get,
  3200. .put = msm_pcm_channel_input_be_put,
  3201. .private_value = (unsigned long)&(mm1_ch7_enum)
  3202. },
  3203. {
  3204. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3205. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3206. .name = "MultiMedia1 Channel8",
  3207. .info = msm_pcm_channel_input_be_info,
  3208. .get = msm_pcm_channel_input_be_get,
  3209. .put = msm_pcm_channel_input_be_put,
  3210. .private_value = (unsigned long)&(mm1_ch8_enum)
  3211. },
  3212. };
  3213. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3214. struct snd_ctl_elem_value *ucontrol)
  3215. {
  3216. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3217. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3218. ucontrol->value.integer.value[0]);
  3219. return 0;
  3220. }
  3221. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3222. struct snd_ctl_elem_value *ucontrol)
  3223. {
  3224. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3225. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3226. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3227. return 0;
  3228. }
  3229. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3230. "Four", "Five", "Six", "Seven", "Eight"};
  3231. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3232. struct snd_ctl_elem_value *ucontrol)
  3233. {
  3234. switch (msm_ec_ref_bit_format) {
  3235. case SNDRV_PCM_FORMAT_S24_LE:
  3236. ucontrol->value.integer.value[0] = 2;
  3237. break;
  3238. case SNDRV_PCM_FORMAT_S16_LE:
  3239. ucontrol->value.integer.value[0] = 1;
  3240. break;
  3241. default:
  3242. ucontrol->value.integer.value[0] = 0;
  3243. break;
  3244. }
  3245. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3246. __func__, ucontrol->value.integer.value[0]);
  3247. return 0;
  3248. }
  3249. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3250. struct snd_ctl_elem_value *ucontrol)
  3251. {
  3252. u16 bit_width = 0;
  3253. switch (ucontrol->value.integer.value[0]) {
  3254. case 2:
  3255. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3256. break;
  3257. case 1:
  3258. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3259. break;
  3260. default:
  3261. msm_ec_ref_bit_format = 0;
  3262. break;
  3263. }
  3264. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3265. bit_width = 16;
  3266. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3267. bit_width = 24;
  3268. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3269. __func__, msm_ec_ref_bit_format);
  3270. adm_ec_ref_rx_bit_width(bit_width);
  3271. return 0;
  3272. }
  3273. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3274. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3275. struct snd_ctl_elem_value *ucontrol)
  3276. {
  3277. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3278. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3279. __func__, ucontrol->value.integer.value[0]);
  3280. return 0;
  3281. }
  3282. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3283. struct snd_ctl_elem_value *ucontrol)
  3284. {
  3285. switch (ucontrol->value.integer.value[0]) {
  3286. case 0:
  3287. msm_ec_ref_sampling_rate = 0;
  3288. break;
  3289. case 1:
  3290. msm_ec_ref_sampling_rate = 8000;
  3291. break;
  3292. case 2:
  3293. msm_ec_ref_sampling_rate = 16000;
  3294. break;
  3295. case 3:
  3296. msm_ec_ref_sampling_rate = 32000;
  3297. break;
  3298. case 4:
  3299. msm_ec_ref_sampling_rate = 44100;
  3300. break;
  3301. case 5:
  3302. msm_ec_ref_sampling_rate = 48000;
  3303. break;
  3304. case 6:
  3305. msm_ec_ref_sampling_rate = 96000;
  3306. break;
  3307. case 7:
  3308. msm_ec_ref_sampling_rate = 192000;
  3309. break;
  3310. case 8:
  3311. msm_ec_ref_sampling_rate = 384000;
  3312. break;
  3313. default:
  3314. msm_ec_ref_sampling_rate = 48000;
  3315. break;
  3316. }
  3317. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3318. __func__, msm_ec_ref_sampling_rate);
  3319. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3320. return 0;
  3321. }
  3322. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3323. "32000", "44100", "48000", "96000", "192000", "384000"};
  3324. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3325. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3326. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3327. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3328. };
  3329. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3330. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3331. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3332. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3333. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3334. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3335. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3336. };
  3337. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3338. struct snd_ctl_elem_value *ucontrol)
  3339. {
  3340. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3341. mutex_lock(&routing_lock);
  3342. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3343. mutex_unlock(&routing_lock);
  3344. return 0;
  3345. }
  3346. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3347. struct snd_ctl_elem_value *ucontrol)
  3348. {
  3349. int ec_ref_port_id;
  3350. struct snd_soc_dapm_widget *widget =
  3351. snd_soc_dapm_kcontrol_widget(kcontrol);
  3352. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3353. struct snd_soc_dapm_update *update = NULL;
  3354. mutex_lock(&routing_lock);
  3355. switch (ucontrol->value.integer.value[0]) {
  3356. case 0:
  3357. msm_route_ec_ref_rx = 0;
  3358. ec_ref_port_id = AFE_PORT_INVALID;
  3359. break;
  3360. case 1:
  3361. msm_route_ec_ref_rx = 1;
  3362. ec_ref_port_id = SLIMBUS_0_RX;
  3363. break;
  3364. case 2:
  3365. msm_route_ec_ref_rx = 2;
  3366. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3367. break;
  3368. case 3:
  3369. msm_route_ec_ref_rx = 3;
  3370. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3371. break;
  3372. case 4:
  3373. msm_route_ec_ref_rx = 4;
  3374. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3375. break;
  3376. case 5:
  3377. msm_route_ec_ref_rx = 5;
  3378. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3379. break;
  3380. case 6:
  3381. msm_route_ec_ref_rx = 6;
  3382. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3383. break;
  3384. case 7:
  3385. msm_route_ec_ref_rx = 7;
  3386. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3387. break;
  3388. case 9:
  3389. msm_route_ec_ref_rx = 9;
  3390. ec_ref_port_id = SLIMBUS_5_RX;
  3391. break;
  3392. case 10:
  3393. msm_route_ec_ref_rx = 10;
  3394. ec_ref_port_id = SLIMBUS_1_TX;
  3395. break;
  3396. case 11:
  3397. msm_route_ec_ref_rx = 11;
  3398. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3399. break;
  3400. case 12:
  3401. msm_route_ec_ref_rx = 12;
  3402. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3403. break;
  3404. case 13:
  3405. msm_route_ec_ref_rx = 13;
  3406. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3407. break;
  3408. case 14:
  3409. msm_route_ec_ref_rx = 14;
  3410. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3411. break;
  3412. case 15:
  3413. msm_route_ec_ref_rx = 15;
  3414. ec_ref_port_id = SLIMBUS_6_RX;
  3415. break;
  3416. case 16:
  3417. msm_route_ec_ref_rx = 16;
  3418. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3419. break;
  3420. case 17:
  3421. msm_route_ec_ref_rx = 17;
  3422. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3423. break;
  3424. case 18:
  3425. msm_route_ec_ref_rx = 18;
  3426. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3427. break;
  3428. case 19:
  3429. msm_route_ec_ref_rx = 19;
  3430. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3431. break;
  3432. case 20:
  3433. msm_route_ec_ref_rx = 20;
  3434. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3435. break;
  3436. case 21:
  3437. msm_route_ec_ref_rx = 21;
  3438. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3439. break;
  3440. case 22:
  3441. msm_route_ec_ref_rx = 22;
  3442. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3443. break;
  3444. case 23:
  3445. msm_route_ec_ref_rx = 23;
  3446. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3447. break;
  3448. case 24:
  3449. msm_route_ec_ref_rx = 24;
  3450. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3451. break;
  3452. case 25:
  3453. msm_route_ec_ref_rx = 25;
  3454. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3455. break;
  3456. case 26:
  3457. msm_route_ec_ref_rx = 26;
  3458. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3459. break;
  3460. case 27:
  3461. msm_route_ec_ref_rx = 27;
  3462. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3463. break;
  3464. case 28:
  3465. msm_route_ec_ref_rx = 28;
  3466. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3467. break;
  3468. case 29:
  3469. msm_route_ec_ref_rx = 29;
  3470. ec_ref_port_id = SLIMBUS_7_RX;
  3471. break;
  3472. default:
  3473. msm_route_ec_ref_rx = 0; /* NONE */
  3474. pr_err("%s EC ref rx %ld not valid\n",
  3475. __func__, ucontrol->value.integer.value[0]);
  3476. ec_ref_port_id = AFE_PORT_INVALID;
  3477. break;
  3478. }
  3479. adm_ec_ref_rx_id(ec_ref_port_id);
  3480. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3481. __func__, msm_route_ec_ref_rx);
  3482. mutex_unlock(&routing_lock);
  3483. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3484. msm_route_ec_ref_rx, e, update);
  3485. return 0;
  3486. }
  3487. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3488. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3489. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3490. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3491. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3492. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3493. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3494. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3495. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3496. "SLIM_7_RX"
  3497. };
  3498. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3499. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3500. };
  3501. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3502. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3503. msm_route_ec_ref_rx_enum[0],
  3504. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3505. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3506. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3507. msm_route_ec_ref_rx_enum[0],
  3508. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3509. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3510. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3511. msm_route_ec_ref_rx_enum[0],
  3512. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3513. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3514. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3515. msm_route_ec_ref_rx_enum[0],
  3516. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3517. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3518. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3519. msm_route_ec_ref_rx_enum[0],
  3520. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3521. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3522. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3523. msm_route_ec_ref_rx_enum[0],
  3524. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3525. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3526. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3527. msm_route_ec_ref_rx_enum[0],
  3528. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3529. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3530. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3531. msm_route_ec_ref_rx_enum[0],
  3532. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3533. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3534. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3535. msm_route_ec_ref_rx_enum[0],
  3536. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3537. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3538. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3539. msm_route_ec_ref_rx_enum[0],
  3540. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3541. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3542. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3543. msm_route_ec_ref_rx_enum[0],
  3544. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3545. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3546. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3547. msm_route_ec_ref_rx_enum[0],
  3548. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3549. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3550. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3551. msm_route_ec_ref_rx_enum[0],
  3552. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3553. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3554. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3555. msm_route_ec_ref_rx_enum[0],
  3556. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3557. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3558. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 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 int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3562. struct snd_ctl_elem_value *ucontrol)
  3563. {
  3564. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3565. mutex_lock(&routing_lock);
  3566. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3567. mutex_unlock(&routing_lock);
  3568. return 0;
  3569. }
  3570. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3571. struct snd_ctl_elem_value *ucontrol)
  3572. {
  3573. struct snd_soc_dapm_widget *widget =
  3574. snd_soc_dapm_kcontrol_widget(kcontrol);
  3575. int mux = ucontrol->value.enumerated.item[0];
  3576. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3577. int ret = 1;
  3578. bool state = true;
  3579. uint16_t ext_ec_ref_port_id;
  3580. struct snd_soc_dapm_update *update = NULL;
  3581. if (mux >= e->items) {
  3582. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3583. return -EINVAL;
  3584. }
  3585. mutex_lock(&routing_lock);
  3586. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3587. switch (msm_route_ext_ec_ref) {
  3588. case EXT_EC_REF_PRI_MI2S_TX:
  3589. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3590. break;
  3591. case EXT_EC_REF_SEC_MI2S_TX:
  3592. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3593. break;
  3594. case EXT_EC_REF_TERT_MI2S_TX:
  3595. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3596. break;
  3597. case EXT_EC_REF_QUAT_MI2S_TX:
  3598. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3599. break;
  3600. case EXT_EC_REF_QUIN_MI2S_TX:
  3601. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3602. break;
  3603. case EXT_EC_REF_SLIM_1_TX:
  3604. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3605. break;
  3606. case EXT_EC_REF_SEC_TDM_TX:
  3607. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3608. break;
  3609. case EXT_EC_REF_NONE:
  3610. default:
  3611. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3612. state = false;
  3613. break;
  3614. }
  3615. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3616. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3617. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3618. mutex_unlock(&routing_lock);
  3619. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3620. update);
  3621. } else {
  3622. ret = -EINVAL;
  3623. mutex_unlock(&routing_lock);
  3624. }
  3625. return ret;
  3626. }
  3627. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3628. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3629. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3630. "SLIM_1_TX", "SEC_TDM_TX"};
  3631. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3632. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3633. };
  3634. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3635. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3636. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3637. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3638. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3639. MSM_BACKEND_DAI_PRI_I2S_RX,
  3640. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3641. msm_routing_put_audio_mixer),
  3642. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3643. MSM_BACKEND_DAI_PRI_I2S_RX,
  3644. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3645. msm_routing_put_audio_mixer),
  3646. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3647. MSM_BACKEND_DAI_PRI_I2S_RX,
  3648. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3649. msm_routing_put_audio_mixer),
  3650. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3651. MSM_BACKEND_DAI_PRI_I2S_RX,
  3652. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3653. msm_routing_put_audio_mixer),
  3654. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3655. MSM_BACKEND_DAI_PRI_I2S_RX,
  3656. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3657. msm_routing_put_audio_mixer),
  3658. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3659. MSM_BACKEND_DAI_PRI_I2S_RX,
  3660. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3661. msm_routing_put_audio_mixer),
  3662. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3663. MSM_BACKEND_DAI_PRI_I2S_RX,
  3664. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3665. msm_routing_put_audio_mixer),
  3666. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3667. MSM_BACKEND_DAI_PRI_I2S_RX,
  3668. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3669. msm_routing_put_audio_mixer),
  3670. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3671. MSM_BACKEND_DAI_PRI_I2S_RX,
  3672. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3673. msm_routing_put_audio_mixer),
  3674. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3675. MSM_BACKEND_DAI_PRI_I2S_RX,
  3676. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3677. msm_routing_put_audio_mixer),
  3678. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3679. MSM_BACKEND_DAI_PRI_I2S_RX,
  3680. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3681. msm_routing_put_audio_mixer),
  3682. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3683. MSM_BACKEND_DAI_PRI_I2S_RX,
  3684. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3685. msm_routing_put_audio_mixer),
  3686. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3687. MSM_BACKEND_DAI_PRI_I2S_RX,
  3688. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3689. msm_routing_put_audio_mixer),
  3690. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3691. MSM_BACKEND_DAI_PRI_I2S_RX,
  3692. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3693. msm_routing_put_audio_mixer),
  3694. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3695. MSM_BACKEND_DAI_PRI_I2S_RX,
  3696. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3697. msm_routing_put_audio_mixer),
  3698. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3699. MSM_BACKEND_DAI_PRI_I2S_RX,
  3700. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3701. msm_routing_put_audio_mixer),
  3702. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3703. MSM_BACKEND_DAI_PRI_I2S_RX,
  3704. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3705. msm_routing_put_audio_mixer),
  3706. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3707. MSM_BACKEND_DAI_PRI_I2S_RX,
  3708. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3709. msm_routing_put_audio_mixer),
  3710. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3711. MSM_BACKEND_DAI_PRI_I2S_RX,
  3712. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3713. msm_routing_put_audio_mixer),
  3714. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3715. MSM_BACKEND_DAI_PRI_I2S_RX,
  3716. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3717. msm_routing_put_audio_mixer),
  3718. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3719. MSM_BACKEND_DAI_PRI_I2S_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. };
  3723. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3724. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3725. MSM_BACKEND_DAI_SEC_I2S_RX,
  3726. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3727. msm_routing_put_audio_mixer),
  3728. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3729. MSM_BACKEND_DAI_SEC_I2S_RX,
  3730. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3731. msm_routing_put_audio_mixer),
  3732. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3733. MSM_BACKEND_DAI_SEC_I2S_RX,
  3734. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3735. msm_routing_put_audio_mixer),
  3736. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3737. MSM_BACKEND_DAI_SEC_I2S_RX,
  3738. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3739. msm_routing_put_audio_mixer),
  3740. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3741. MSM_BACKEND_DAI_SEC_I2S_RX,
  3742. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3743. msm_routing_put_audio_mixer),
  3744. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3745. MSM_BACKEND_DAI_SEC_I2S_RX,
  3746. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3747. msm_routing_put_audio_mixer),
  3748. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3749. MSM_BACKEND_DAI_SEC_I2S_RX,
  3750. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3751. msm_routing_put_audio_mixer),
  3752. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3753. MSM_BACKEND_DAI_SEC_I2S_RX,
  3754. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3755. msm_routing_put_audio_mixer),
  3756. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3757. MSM_BACKEND_DAI_SEC_I2S_RX,
  3758. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3759. msm_routing_put_audio_mixer),
  3760. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3761. MSM_BACKEND_DAI_SEC_I2S_RX,
  3762. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3763. msm_routing_put_audio_mixer),
  3764. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3765. MSM_BACKEND_DAI_SEC_I2S_RX,
  3766. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3767. msm_routing_put_audio_mixer),
  3768. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3769. MSM_BACKEND_DAI_SEC_I2S_RX,
  3770. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3771. msm_routing_put_audio_mixer),
  3772. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3773. MSM_BACKEND_DAI_SEC_I2S_RX,
  3774. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3775. msm_routing_put_audio_mixer),
  3776. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3777. MSM_BACKEND_DAI_SEC_I2S_RX,
  3778. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3779. msm_routing_put_audio_mixer),
  3780. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3781. MSM_BACKEND_DAI_SEC_I2S_RX,
  3782. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3783. msm_routing_put_audio_mixer),
  3784. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3785. MSM_BACKEND_DAI_SEC_I2S_RX,
  3786. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3787. msm_routing_put_audio_mixer),
  3788. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3789. MSM_BACKEND_DAI_SEC_I2S_RX,
  3790. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3791. msm_routing_put_audio_mixer),
  3792. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3793. MSM_BACKEND_DAI_SEC_I2S_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3797. MSM_BACKEND_DAI_SEC_I2S_RX,
  3798. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3799. msm_routing_put_audio_mixer),
  3800. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3801. MSM_BACKEND_DAI_SEC_I2S_RX,
  3802. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3803. msm_routing_put_audio_mixer),
  3804. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3805. MSM_BACKEND_DAI_SEC_I2S_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. };
  3809. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  3810. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3811. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3812. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3813. msm_routing_put_audio_mixer),
  3814. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3815. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3816. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3817. msm_routing_put_audio_mixer),
  3818. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3819. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3820. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3821. msm_routing_put_audio_mixer),
  3822. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3823. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3824. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3825. msm_routing_put_audio_mixer),
  3826. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3827. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3828. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3829. msm_routing_put_audio_mixer),
  3830. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3831. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3832. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3833. msm_routing_put_audio_mixer),
  3834. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3835. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3836. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3837. msm_routing_put_audio_mixer),
  3838. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3839. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3840. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3841. msm_routing_put_audio_mixer),
  3842. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3843. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3844. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3845. msm_routing_put_audio_mixer),
  3846. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3847. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3848. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3849. msm_routing_put_audio_mixer),
  3850. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3851. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3852. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3853. msm_routing_put_audio_mixer),
  3854. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3855. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3856. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3857. msm_routing_put_audio_mixer),
  3858. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3859. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3860. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3861. msm_routing_put_audio_mixer),
  3862. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3863. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3864. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3865. msm_routing_put_audio_mixer),
  3866. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3867. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3868. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3869. msm_routing_put_audio_mixer),
  3870. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3871. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3872. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3873. msm_routing_put_audio_mixer),
  3874. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3875. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3876. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3877. msm_routing_put_audio_mixer),
  3878. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3879. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3880. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3881. msm_routing_put_audio_mixer),
  3882. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3883. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3884. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3885. msm_routing_put_audio_mixer),
  3886. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3887. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3888. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3889. msm_routing_put_audio_mixer),
  3890. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3891. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3892. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3893. msm_routing_put_audio_mixer),
  3894. };
  3895. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  3896. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3897. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3898. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3899. msm_routing_put_audio_mixer),
  3900. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3901. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3902. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3903. msm_routing_put_audio_mixer),
  3904. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3905. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3906. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3907. msm_routing_put_audio_mixer),
  3908. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3909. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3910. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3911. msm_routing_put_audio_mixer),
  3912. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3913. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3914. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3915. msm_routing_put_audio_mixer),
  3916. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3917. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3919. msm_routing_put_audio_mixer),
  3920. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3921. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3922. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3923. msm_routing_put_audio_mixer),
  3924. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3925. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3926. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3927. msm_routing_put_audio_mixer),
  3928. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3929. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3930. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3931. msm_routing_put_audio_mixer),
  3932. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3933. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3934. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3935. msm_routing_put_audio_mixer),
  3936. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3937. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3938. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3939. msm_routing_put_audio_mixer),
  3940. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3941. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3942. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3943. msm_routing_put_audio_mixer),
  3944. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3945. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3946. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3947. msm_routing_put_audio_mixer),
  3948. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3949. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3950. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3951. msm_routing_put_audio_mixer),
  3952. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3953. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3954. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3955. msm_routing_put_audio_mixer),
  3956. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3957. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3958. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3959. msm_routing_put_audio_mixer),
  3960. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3961. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3965. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3966. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3967. msm_routing_put_audio_mixer),
  3968. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3969. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3970. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3971. msm_routing_put_audio_mixer),
  3972. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3973. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3977. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3978. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3979. msm_routing_put_audio_mixer),
  3980. };
  3981. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3982. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3983. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3985. msm_routing_put_audio_mixer),
  3986. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3987. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3988. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3989. msm_routing_put_audio_mixer),
  3990. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3991. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3992. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3993. msm_routing_put_audio_mixer),
  3994. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3995. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3996. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3997. msm_routing_put_audio_mixer),
  3998. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3999. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4000. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4001. msm_routing_put_audio_mixer),
  4002. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4003. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4004. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4005. msm_routing_put_audio_mixer),
  4006. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4007. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4008. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4009. msm_routing_put_audio_mixer),
  4010. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4011. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4012. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4013. msm_routing_put_audio_mixer),
  4014. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4015. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4016. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4017. msm_routing_put_audio_mixer),
  4018. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4019. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4020. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4021. msm_routing_put_audio_mixer),
  4022. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4023. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4024. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4025. msm_routing_put_audio_mixer),
  4026. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4027. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4028. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4029. msm_routing_put_audio_mixer),
  4030. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4031. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4032. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4033. msm_routing_put_audio_mixer),
  4034. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4035. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4036. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4037. msm_routing_put_audio_mixer),
  4038. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4039. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4040. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4041. msm_routing_put_audio_mixer),
  4042. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4043. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. };
  4047. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4048. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4049. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4050. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4051. msm_routing_put_audio_mixer),
  4052. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4053. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4054. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4055. msm_routing_put_audio_mixer),
  4056. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4057. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4058. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4059. msm_routing_put_audio_mixer),
  4060. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4061. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4062. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4063. msm_routing_put_audio_mixer),
  4064. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4065. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4066. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4067. msm_routing_put_audio_mixer),
  4068. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4069. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4070. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4071. msm_routing_put_audio_mixer),
  4072. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4073. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4074. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4075. msm_routing_put_audio_mixer),
  4076. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4077. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4078. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4079. msm_routing_put_audio_mixer),
  4080. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4081. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4082. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4083. msm_routing_put_audio_mixer),
  4084. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4085. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4086. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4087. msm_routing_put_audio_mixer),
  4088. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4089. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4090. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4091. msm_routing_put_audio_mixer),
  4092. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4093. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4094. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4095. msm_routing_put_audio_mixer),
  4096. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4097. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4098. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4099. msm_routing_put_audio_mixer),
  4100. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4101. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4102. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4103. msm_routing_put_audio_mixer),
  4104. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4105. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4106. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4107. msm_routing_put_audio_mixer),
  4108. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4109. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4110. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4111. msm_routing_put_audio_mixer),
  4112. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4113. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4114. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4115. msm_routing_put_audio_mixer),
  4116. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4117. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4121. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4122. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4123. msm_routing_put_audio_mixer),
  4124. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4125. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4129. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4130. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4131. msm_routing_put_audio_mixer),
  4132. };
  4133. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4134. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4135. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4136. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4137. msm_routing_put_audio_mixer),
  4138. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4139. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4140. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4141. msm_routing_put_audio_mixer),
  4142. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4143. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4144. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4145. msm_routing_put_audio_mixer),
  4146. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4147. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4148. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4149. msm_routing_put_audio_mixer),
  4150. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4151. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4152. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4153. msm_routing_put_audio_mixer),
  4154. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4155. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4156. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4157. msm_routing_put_audio_mixer),
  4158. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4159. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4160. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4161. msm_routing_put_audio_mixer),
  4162. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4163. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4164. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4165. msm_routing_put_audio_mixer),
  4166. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4167. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4168. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4169. msm_routing_put_audio_mixer),
  4170. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4171. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4172. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4173. msm_routing_put_audio_mixer),
  4174. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4175. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4176. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4177. msm_routing_put_audio_mixer),
  4178. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4179. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4180. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4181. msm_routing_put_audio_mixer),
  4182. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4183. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4184. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4185. msm_routing_put_audio_mixer),
  4186. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4187. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4188. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4189. msm_routing_put_audio_mixer),
  4190. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4191. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4192. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4193. msm_routing_put_audio_mixer),
  4194. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4195. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4196. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4197. msm_routing_put_audio_mixer),
  4198. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4199. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4203. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4204. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4205. msm_routing_put_audio_mixer),
  4206. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4207. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4208. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4209. msm_routing_put_audio_mixer),
  4210. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4211. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4215. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4216. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4217. msm_routing_put_audio_mixer),
  4218. };
  4219. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4220. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4221. MSM_BACKEND_DAI_MI2S_RX,
  4222. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4223. msm_routing_put_audio_mixer),
  4224. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4225. MSM_BACKEND_DAI_MI2S_RX,
  4226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4227. msm_routing_put_audio_mixer),
  4228. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4229. MSM_BACKEND_DAI_MI2S_RX,
  4230. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4231. msm_routing_put_audio_mixer),
  4232. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4233. MSM_BACKEND_DAI_MI2S_RX,
  4234. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4235. msm_routing_put_audio_mixer),
  4236. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4237. MSM_BACKEND_DAI_MI2S_RX,
  4238. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4239. msm_routing_put_audio_mixer),
  4240. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4241. MSM_BACKEND_DAI_MI2S_RX,
  4242. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4243. msm_routing_put_audio_mixer),
  4244. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4245. MSM_BACKEND_DAI_MI2S_RX,
  4246. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4247. msm_routing_put_audio_mixer),
  4248. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4249. MSM_BACKEND_DAI_MI2S_RX,
  4250. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4251. msm_routing_put_audio_mixer),
  4252. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4253. MSM_BACKEND_DAI_MI2S_RX,
  4254. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4255. msm_routing_put_audio_mixer),
  4256. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4257. MSM_BACKEND_DAI_MI2S_RX,
  4258. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4259. msm_routing_put_audio_mixer),
  4260. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4261. MSM_BACKEND_DAI_MI2S_RX,
  4262. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4263. msm_routing_put_audio_mixer),
  4264. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4265. MSM_BACKEND_DAI_MI2S_RX,
  4266. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4267. msm_routing_put_audio_mixer),
  4268. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4269. MSM_BACKEND_DAI_MI2S_RX,
  4270. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4271. msm_routing_put_audio_mixer),
  4272. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4273. MSM_BACKEND_DAI_MI2S_RX,
  4274. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4275. msm_routing_put_audio_mixer),
  4276. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4277. MSM_BACKEND_DAI_MI2S_RX,
  4278. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4279. msm_routing_put_audio_mixer),
  4280. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4281. MSM_BACKEND_DAI_MI2S_RX,
  4282. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4283. msm_routing_put_audio_mixer),
  4284. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4285. MSM_BACKEND_DAI_MI2S_RX,
  4286. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4287. msm_routing_put_audio_mixer),
  4288. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4289. MSM_BACKEND_DAI_MI2S_RX,
  4290. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4291. msm_routing_put_audio_mixer),
  4292. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4293. MSM_BACKEND_DAI_MI2S_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4297. MSM_BACKEND_DAI_MI2S_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4301. MSM_BACKEND_DAI_MI2S_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. };
  4305. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4306. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4307. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4308. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4309. msm_routing_put_audio_mixer),
  4310. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4311. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4312. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4313. msm_routing_put_audio_mixer),
  4314. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4315. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4317. msm_routing_put_audio_mixer),
  4318. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4319. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4320. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4321. msm_routing_put_audio_mixer),
  4322. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4323. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4324. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4325. msm_routing_put_audio_mixer),
  4326. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4327. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4328. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4329. msm_routing_put_audio_mixer),
  4330. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4331. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4332. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4333. msm_routing_put_audio_mixer),
  4334. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4335. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4336. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4337. msm_routing_put_audio_mixer),
  4338. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4339. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4340. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4341. msm_routing_put_audio_mixer),
  4342. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4343. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4344. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4345. msm_routing_put_audio_mixer),
  4346. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4347. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4348. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4349. msm_routing_put_audio_mixer),
  4350. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4351. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4352. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4353. msm_routing_put_audio_mixer),
  4354. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4355. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4356. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4357. msm_routing_put_audio_mixer),
  4358. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4359. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4360. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4361. msm_routing_put_audio_mixer),
  4362. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4363. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4364. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4365. msm_routing_put_audio_mixer),
  4366. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4367. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4368. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4369. msm_routing_put_audio_mixer),
  4370. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4371. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4372. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4373. msm_routing_put_audio_mixer),
  4374. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4375. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4376. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4377. msm_routing_put_audio_mixer),
  4378. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4379. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4383. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4387. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4388. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4389. msm_routing_put_audio_mixer),
  4390. };
  4391. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4392. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4393. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4394. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4395. msm_routing_put_audio_mixer),
  4396. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4397. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4398. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4399. msm_routing_put_audio_mixer),
  4400. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4401. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4402. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4403. msm_routing_put_audio_mixer),
  4404. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4405. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4406. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4407. msm_routing_put_audio_mixer),
  4408. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4409. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4410. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4411. msm_routing_put_audio_mixer),
  4412. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4413. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4414. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4415. msm_routing_put_audio_mixer),
  4416. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4417. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4418. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4419. msm_routing_put_audio_mixer),
  4420. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4421. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4422. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4423. msm_routing_put_audio_mixer),
  4424. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4425. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4426. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4427. msm_routing_put_audio_mixer),
  4428. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4429. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4430. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4431. msm_routing_put_audio_mixer),
  4432. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4433. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4434. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4435. msm_routing_put_audio_mixer),
  4436. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4437. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4438. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4439. msm_routing_put_audio_mixer),
  4440. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4441. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4442. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4443. msm_routing_put_audio_mixer),
  4444. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4445. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4446. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4447. msm_routing_put_audio_mixer),
  4448. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4449. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4450. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4451. msm_routing_put_audio_mixer),
  4452. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4453. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4454. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4455. msm_routing_put_audio_mixer),
  4456. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4457. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4461. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4462. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4463. msm_routing_put_audio_mixer),
  4464. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4465. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4466. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4467. msm_routing_put_audio_mixer),
  4468. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4469. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4470. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4471. msm_routing_put_audio_mixer),
  4472. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4473. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4474. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4475. msm_routing_put_audio_mixer),
  4476. };
  4477. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4478. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4479. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4480. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4481. msm_routing_put_audio_mixer),
  4482. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4483. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4487. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4488. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4489. msm_routing_put_audio_mixer),
  4490. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4491. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4492. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4493. msm_routing_put_audio_mixer),
  4494. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4495. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4499. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4500. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4501. msm_routing_put_audio_mixer),
  4502. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4503. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4504. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4505. msm_routing_put_audio_mixer),
  4506. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4507. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4511. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4512. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4513. msm_routing_put_audio_mixer),
  4514. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4515. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4516. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4517. msm_routing_put_audio_mixer),
  4518. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4519. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4523. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4524. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4525. msm_routing_put_audio_mixer),
  4526. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4527. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4528. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4529. msm_routing_put_audio_mixer),
  4530. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4531. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4532. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4533. msm_routing_put_audio_mixer),
  4534. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4535. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4536. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4537. msm_routing_put_audio_mixer),
  4538. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4539. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4543. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4544. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4545. msm_routing_put_audio_mixer),
  4546. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4547. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4548. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4549. msm_routing_put_audio_mixer),
  4550. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4551. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4552. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4553. msm_routing_put_audio_mixer),
  4554. };
  4555. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4556. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4557. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. };
  4561. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4562. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4563. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4564. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4565. msm_routing_put_audio_mixer),
  4566. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4567. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4568. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4569. msm_routing_put_audio_mixer),
  4570. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4571. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4572. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4573. msm_routing_put_audio_mixer),
  4574. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4575. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4576. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4577. msm_routing_put_audio_mixer),
  4578. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4579. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4580. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4581. msm_routing_put_audio_mixer),
  4582. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4583. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4584. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4585. msm_routing_put_audio_mixer),
  4586. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4587. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4588. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4589. msm_routing_put_audio_mixer),
  4590. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4591. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4592. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4593. msm_routing_put_audio_mixer),
  4594. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4595. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4596. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4597. msm_routing_put_audio_mixer),
  4598. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4599. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4600. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4601. msm_routing_put_audio_mixer),
  4602. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4603. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4604. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4605. msm_routing_put_audio_mixer),
  4606. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4607. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4608. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4609. msm_routing_put_audio_mixer),
  4610. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4611. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4612. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4613. msm_routing_put_audio_mixer),
  4614. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4615. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4616. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4617. msm_routing_put_audio_mixer),
  4618. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4619. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4623. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4624. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4625. msm_routing_put_audio_mixer),
  4626. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4627. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4628. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4629. msm_routing_put_audio_mixer),
  4630. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4631. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4632. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4633. msm_routing_put_audio_mixer),
  4634. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4635. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4636. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4637. msm_routing_put_audio_mixer),
  4638. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4639. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4643. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4644. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4645. msm_routing_put_audio_mixer),
  4646. };
  4647. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4648. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4649. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4650. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4651. msm_routing_put_audio_mixer),
  4652. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4653. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4654. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4655. msm_routing_put_audio_mixer),
  4656. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4657. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4658. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4659. msm_routing_put_audio_mixer),
  4660. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4661. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4662. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4663. msm_routing_put_audio_mixer),
  4664. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4665. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4666. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4667. msm_routing_put_audio_mixer),
  4668. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4669. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4670. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4671. msm_routing_put_audio_mixer),
  4672. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4673. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4674. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4675. msm_routing_put_audio_mixer),
  4676. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4677. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4678. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4679. msm_routing_put_audio_mixer),
  4680. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4681. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4682. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4683. msm_routing_put_audio_mixer),
  4684. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4685. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4686. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4687. msm_routing_put_audio_mixer),
  4688. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4689. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4690. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4691. msm_routing_put_audio_mixer),
  4692. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4693. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4694. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4695. msm_routing_put_audio_mixer),
  4696. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4697. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4698. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4699. msm_routing_put_audio_mixer),
  4700. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4701. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4702. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4703. msm_routing_put_audio_mixer),
  4704. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4705. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4706. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4707. msm_routing_put_audio_mixer),
  4708. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4709. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4710. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4711. msm_routing_put_audio_mixer),
  4712. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4713. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4717. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4718. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4719. msm_routing_put_audio_mixer),
  4720. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4721. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4722. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4723. msm_routing_put_audio_mixer),
  4724. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4725. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4729. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4730. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4731. msm_routing_put_audio_mixer),
  4732. };
  4733. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4734. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4735. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4736. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4737. msm_routing_put_audio_mixer),
  4738. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4739. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4740. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4741. msm_routing_put_audio_mixer),
  4742. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4743. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4744. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4745. msm_routing_put_audio_mixer),
  4746. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4747. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4748. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4749. msm_routing_put_audio_mixer),
  4750. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4751. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4753. msm_routing_put_audio_mixer),
  4754. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4755. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4756. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4757. msm_routing_put_audio_mixer),
  4758. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4759. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4760. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4761. msm_routing_put_audio_mixer),
  4762. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4763. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4764. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4765. msm_routing_put_audio_mixer),
  4766. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4767. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4768. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4769. msm_routing_put_audio_mixer),
  4770. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4771. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4772. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4773. msm_routing_put_audio_mixer),
  4774. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4775. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4779. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4780. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4781. msm_routing_put_audio_mixer),
  4782. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4783. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4784. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4785. msm_routing_put_audio_mixer),
  4786. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4787. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4788. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4789. msm_routing_put_audio_mixer),
  4790. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4791. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4792. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4793. msm_routing_put_audio_mixer),
  4794. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4795. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4796. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4797. msm_routing_put_audio_mixer),
  4798. };
  4799. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4800. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4801. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4802. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4803. msm_routing_put_audio_mixer),
  4804. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4805. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4806. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4807. msm_routing_put_audio_mixer),
  4808. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4809. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4810. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4811. msm_routing_put_audio_mixer),
  4812. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4813. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4814. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4815. msm_routing_put_audio_mixer),
  4816. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4817. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4818. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4819. msm_routing_put_audio_mixer),
  4820. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4821. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4822. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4823. msm_routing_put_audio_mixer),
  4824. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4825. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4826. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4827. msm_routing_put_audio_mixer),
  4828. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4829. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4830. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4831. msm_routing_put_audio_mixer),
  4832. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4833. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4834. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4835. msm_routing_put_audio_mixer),
  4836. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4837. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4838. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4839. msm_routing_put_audio_mixer),
  4840. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4841. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4842. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4843. msm_routing_put_audio_mixer),
  4844. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4845. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4846. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4847. msm_routing_put_audio_mixer),
  4848. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4849. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4850. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4851. msm_routing_put_audio_mixer),
  4852. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4853. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4854. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4855. msm_routing_put_audio_mixer),
  4856. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4857. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4858. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4859. msm_routing_put_audio_mixer),
  4860. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4861. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. };
  4865. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4866. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4867. MSM_BACKEND_DAI_HDMI_RX,
  4868. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4869. msm_routing_put_audio_mixer),
  4870. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4871. MSM_BACKEND_DAI_HDMI_RX,
  4872. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4873. msm_routing_put_audio_mixer),
  4874. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4875. MSM_BACKEND_DAI_HDMI_RX,
  4876. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4877. msm_routing_put_audio_mixer),
  4878. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4879. MSM_BACKEND_DAI_HDMI_RX,
  4880. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4881. msm_routing_put_audio_mixer),
  4882. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4883. MSM_BACKEND_DAI_HDMI_RX,
  4884. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4885. msm_routing_put_audio_mixer),
  4886. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4887. MSM_BACKEND_DAI_HDMI_RX,
  4888. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4889. msm_routing_put_audio_mixer),
  4890. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4891. MSM_BACKEND_DAI_HDMI_RX,
  4892. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4893. msm_routing_put_audio_mixer),
  4894. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4895. MSM_BACKEND_DAI_HDMI_RX,
  4896. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4897. msm_routing_put_audio_mixer),
  4898. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4899. MSM_BACKEND_DAI_HDMI_RX,
  4900. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4901. msm_routing_put_audio_mixer),
  4902. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4903. MSM_BACKEND_DAI_HDMI_RX,
  4904. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4905. msm_routing_put_audio_mixer),
  4906. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4907. MSM_BACKEND_DAI_HDMI_RX,
  4908. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4909. msm_routing_put_audio_mixer),
  4910. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4911. MSM_BACKEND_DAI_HDMI_RX,
  4912. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4913. msm_routing_put_audio_mixer),
  4914. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4915. MSM_BACKEND_DAI_HDMI_RX,
  4916. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4917. msm_routing_put_audio_mixer),
  4918. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4919. MSM_BACKEND_DAI_HDMI_RX,
  4920. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4921. msm_routing_put_audio_mixer),
  4922. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4923. MSM_BACKEND_DAI_HDMI_RX,
  4924. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4925. msm_routing_put_audio_mixer),
  4926. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4927. MSM_BACKEND_DAI_HDMI_RX,
  4928. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4929. msm_routing_put_audio_mixer),
  4930. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4931. MSM_BACKEND_DAI_HDMI_RX,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4935. MSM_BACKEND_DAI_HDMI_RX,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4939. MSM_BACKEND_DAI_HDMI_RX,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4943. MSM_BACKEND_DAI_HDMI_RX,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4947. MSM_BACKEND_DAI_HDMI_RX,
  4948. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4949. msm_routing_put_audio_mixer),
  4950. };
  4951. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4952. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4953. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4954. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4955. msm_routing_put_audio_mixer),
  4956. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4957. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4958. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4959. msm_routing_put_audio_mixer),
  4960. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4961. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4962. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4963. msm_routing_put_audio_mixer),
  4964. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4965. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4966. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4967. msm_routing_put_audio_mixer),
  4968. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4969. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4970. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4971. msm_routing_put_audio_mixer),
  4972. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4973. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4975. msm_routing_put_audio_mixer),
  4976. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4977. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4978. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4979. msm_routing_put_audio_mixer),
  4980. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4981. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4982. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4983. msm_routing_put_audio_mixer),
  4984. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4985. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4986. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4987. msm_routing_put_audio_mixer),
  4988. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4989. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4990. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4991. msm_routing_put_audio_mixer),
  4992. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4993. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4994. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4995. msm_routing_put_audio_mixer),
  4996. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4997. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4998. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4999. msm_routing_put_audio_mixer),
  5000. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5001. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5002. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5003. msm_routing_put_audio_mixer),
  5004. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5005. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5006. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5007. msm_routing_put_audio_mixer),
  5008. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5009. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5010. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5011. msm_routing_put_audio_mixer),
  5012. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5013. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5014. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5015. msm_routing_put_audio_mixer),
  5016. };
  5017. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5018. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5019. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5021. msm_routing_put_audio_mixer),
  5022. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5023. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5024. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5025. msm_routing_put_audio_mixer),
  5026. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5027. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5028. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5029. msm_routing_put_audio_mixer),
  5030. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5031. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5033. msm_routing_put_audio_mixer),
  5034. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5035. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5036. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5037. msm_routing_put_audio_mixer),
  5038. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5039. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5040. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5041. msm_routing_put_audio_mixer),
  5042. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5043. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5044. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5045. msm_routing_put_audio_mixer),
  5046. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5047. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5049. msm_routing_put_audio_mixer),
  5050. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5051. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5052. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5053. msm_routing_put_audio_mixer),
  5054. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5055. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5056. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5057. msm_routing_put_audio_mixer),
  5058. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5059. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5060. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5061. msm_routing_put_audio_mixer),
  5062. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5063. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5064. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5065. msm_routing_put_audio_mixer),
  5066. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5067. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5068. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5069. msm_routing_put_audio_mixer),
  5070. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5071. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5072. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5073. msm_routing_put_audio_mixer),
  5074. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5075. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5079. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5080. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5081. msm_routing_put_audio_mixer),
  5082. };
  5083. /* incall music delivery mixer */
  5084. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5085. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5086. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5087. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5088. msm_routing_put_audio_mixer),
  5089. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5090. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5091. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5092. msm_routing_put_audio_mixer),
  5093. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5094. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5095. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5096. msm_routing_put_audio_mixer),
  5097. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5098. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5099. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5100. msm_routing_put_audio_mixer),
  5101. };
  5102. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5103. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5104. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5105. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5106. msm_routing_put_audio_mixer),
  5107. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5108. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5109. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5110. msm_routing_put_audio_mixer),
  5111. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5112. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5113. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5114. msm_routing_put_audio_mixer),
  5115. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5116. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5117. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5118. msm_routing_put_audio_mixer),
  5119. };
  5120. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5121. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5122. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5126. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5128. msm_routing_put_audio_mixer),
  5129. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5130. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5134. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. };
  5138. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5139. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5140. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5142. msm_routing_put_audio_mixer),
  5143. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5144. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5146. msm_routing_put_audio_mixer),
  5147. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5148. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5149. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5150. msm_routing_put_audio_mixer),
  5151. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5152. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5153. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5154. msm_routing_put_audio_mixer),
  5155. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5156. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5157. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5158. msm_routing_put_audio_mixer),
  5159. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5160. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5161. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5162. msm_routing_put_audio_mixer),
  5163. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5164. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5165. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5166. msm_routing_put_audio_mixer),
  5167. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5168. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5169. MSM_FRONTEND_DAI_MULTIMEDIA8, 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_SLIMBUS_6_RX,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5176. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5177. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5178. msm_routing_put_audio_mixer),
  5179. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5180. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5184. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5188. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5189. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5190. msm_routing_put_audio_mixer),
  5191. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5192. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5200. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. };
  5204. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5205. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5206. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5207. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5208. msm_routing_put_audio_mixer),
  5209. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5210. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5211. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5212. msm_routing_put_audio_mixer),
  5213. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5214. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5215. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5216. msm_routing_put_audio_mixer),
  5217. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5218. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5219. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5220. msm_routing_put_audio_mixer),
  5221. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5222. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5223. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5224. msm_routing_put_audio_mixer),
  5225. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5226. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5227. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5228. msm_routing_put_audio_mixer),
  5229. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5230. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5231. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5232. msm_routing_put_audio_mixer),
  5233. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5234. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5235. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5236. msm_routing_put_audio_mixer),
  5237. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5238. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5240. msm_routing_put_audio_mixer),
  5241. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5242. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5243. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5244. msm_routing_put_audio_mixer),
  5245. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5246. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5247. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5248. msm_routing_put_audio_mixer),
  5249. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5250. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5251. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5252. msm_routing_put_audio_mixer),
  5253. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5254. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5255. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5256. msm_routing_put_audio_mixer),
  5257. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5258. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5259. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5260. msm_routing_put_audio_mixer),
  5261. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5262. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5263. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5264. msm_routing_put_audio_mixer),
  5265. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5266. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5267. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5268. msm_routing_put_audio_mixer),
  5269. };
  5270. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5271. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5272. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5273. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5274. msm_routing_put_audio_mixer),
  5275. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5276. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5277. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5278. msm_routing_put_audio_mixer),
  5279. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5280. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5281. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5282. msm_routing_put_audio_mixer),
  5283. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5284. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5285. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5286. msm_routing_put_audio_mixer),
  5287. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5288. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5289. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5290. msm_routing_put_audio_mixer),
  5291. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5292. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5293. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5294. msm_routing_put_audio_mixer),
  5295. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5296. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5297. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5298. msm_routing_put_audio_mixer),
  5299. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5300. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5301. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5302. msm_routing_put_audio_mixer),
  5303. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5304. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5305. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5306. msm_routing_put_audio_mixer),
  5307. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5308. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5312. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5313. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5314. msm_routing_put_audio_mixer),
  5315. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5316. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5317. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5318. msm_routing_put_audio_mixer),
  5319. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5320. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5321. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5322. msm_routing_put_audio_mixer),
  5323. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5324. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5325. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5326. msm_routing_put_audio_mixer),
  5327. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5328. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5332. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5333. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5334. msm_routing_put_audio_mixer),
  5335. };
  5336. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  5337. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5338. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5339. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5340. msm_routing_put_audio_mixer),
  5341. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5342. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5343. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5344. msm_routing_put_audio_mixer),
  5345. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5346. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5347. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5348. msm_routing_put_audio_mixer),
  5349. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5350. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5352. msm_routing_put_audio_mixer),
  5353. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5354. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5355. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5356. msm_routing_put_audio_mixer),
  5357. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5358. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5359. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5360. msm_routing_put_audio_mixer),
  5361. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5362. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5363. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5364. msm_routing_put_audio_mixer),
  5365. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5366. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5367. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5368. msm_routing_put_audio_mixer),
  5369. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5370. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5371. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5372. msm_routing_put_audio_mixer),
  5373. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5374. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5375. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5376. msm_routing_put_audio_mixer),
  5377. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5378. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5382. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5383. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5384. msm_routing_put_audio_mixer),
  5385. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5386. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5390. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5394. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5398. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. };
  5402. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5403. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5404. MSM_BACKEND_DAI_USB_RX,
  5405. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5406. msm_routing_put_audio_mixer),
  5407. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5408. MSM_BACKEND_DAI_USB_RX,
  5409. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5410. msm_routing_put_audio_mixer),
  5411. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5412. MSM_BACKEND_DAI_USB_RX,
  5413. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5414. msm_routing_put_audio_mixer),
  5415. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5416. MSM_BACKEND_DAI_USB_RX,
  5417. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5418. msm_routing_put_audio_mixer),
  5419. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5420. MSM_BACKEND_DAI_USB_RX,
  5421. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5422. msm_routing_put_audio_mixer),
  5423. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5424. MSM_BACKEND_DAI_USB_RX,
  5425. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5426. msm_routing_put_audio_mixer),
  5427. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5428. MSM_BACKEND_DAI_USB_RX,
  5429. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5430. msm_routing_put_audio_mixer),
  5431. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5432. MSM_BACKEND_DAI_USB_RX,
  5433. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5434. msm_routing_put_audio_mixer),
  5435. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5436. MSM_BACKEND_DAI_USB_RX,
  5437. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5438. msm_routing_put_audio_mixer),
  5439. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5440. MSM_BACKEND_DAI_USB_RX,
  5441. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5442. msm_routing_put_audio_mixer),
  5443. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5444. MSM_BACKEND_DAI_USB_RX,
  5445. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5446. msm_routing_put_audio_mixer),
  5447. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5448. MSM_BACKEND_DAI_USB_RX,
  5449. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5450. msm_routing_put_audio_mixer),
  5451. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5452. MSM_BACKEND_DAI_USB_RX,
  5453. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5454. msm_routing_put_audio_mixer),
  5455. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5456. MSM_BACKEND_DAI_USB_RX,
  5457. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5458. msm_routing_put_audio_mixer),
  5459. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5460. MSM_BACKEND_DAI_USB_RX,
  5461. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5462. msm_routing_put_audio_mixer),
  5463. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5464. MSM_BACKEND_DAI_USB_RX,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. };
  5468. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  5469. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5470. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5471. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5472. msm_routing_put_audio_mixer),
  5473. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5474. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5475. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5476. msm_routing_put_audio_mixer),
  5477. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5478. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5480. msm_routing_put_audio_mixer),
  5481. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5482. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5483. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5484. msm_routing_put_audio_mixer),
  5485. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5486. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5487. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5488. msm_routing_put_audio_mixer),
  5489. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5490. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5491. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5492. msm_routing_put_audio_mixer),
  5493. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5494. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5495. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5496. msm_routing_put_audio_mixer),
  5497. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5498. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5500. msm_routing_put_audio_mixer),
  5501. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5502. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5503. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5504. msm_routing_put_audio_mixer),
  5505. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5506. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5507. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5508. msm_routing_put_audio_mixer),
  5509. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5510. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5511. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5512. msm_routing_put_audio_mixer),
  5513. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5514. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5515. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5516. msm_routing_put_audio_mixer),
  5517. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5518. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5522. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5526. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5534. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5538. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5539. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5540. msm_routing_put_audio_mixer),
  5541. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5542. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5546. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5550. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. };
  5554. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  5555. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5556. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5557. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5558. msm_routing_put_audio_mixer),
  5559. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5560. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5561. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5562. msm_routing_put_audio_mixer),
  5563. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5564. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5565. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5566. msm_routing_put_audio_mixer),
  5567. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5568. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5569. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5570. msm_routing_put_audio_mixer),
  5571. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5572. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5573. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5574. msm_routing_put_audio_mixer),
  5575. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5576. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5577. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5578. msm_routing_put_audio_mixer),
  5579. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5580. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5581. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5582. msm_routing_put_audio_mixer),
  5583. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5584. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5588. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5589. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5590. msm_routing_put_audio_mixer),
  5591. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5592. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5593. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5594. msm_routing_put_audio_mixer),
  5595. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5596. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5600. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. };
  5620. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  5621. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5622. MSM_BACKEND_DAI_INT_FM_RX,
  5623. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5624. msm_routing_put_audio_mixer),
  5625. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5626. MSM_BACKEND_DAI_INT_FM_RX,
  5627. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5628. msm_routing_put_audio_mixer),
  5629. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5630. MSM_BACKEND_DAI_INT_FM_RX,
  5631. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5632. msm_routing_put_audio_mixer),
  5633. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5634. MSM_BACKEND_DAI_INT_FM_RX,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5638. MSM_BACKEND_DAI_INT_FM_RX,
  5639. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5640. msm_routing_put_audio_mixer),
  5641. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5642. MSM_BACKEND_DAI_INT_FM_RX,
  5643. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5644. msm_routing_put_audio_mixer),
  5645. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5646. MSM_BACKEND_DAI_INT_FM_RX,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5650. MSM_BACKEND_DAI_INT_FM_RX,
  5651. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5652. msm_routing_put_audio_mixer),
  5653. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5654. MSM_BACKEND_DAI_INT_FM_RX,
  5655. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5656. msm_routing_put_audio_mixer),
  5657. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5658. MSM_BACKEND_DAI_INT_FM_RX,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5662. MSM_BACKEND_DAI_INT_FM_RX,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5666. MSM_BACKEND_DAI_INT_FM_RX,
  5667. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5668. msm_routing_put_audio_mixer),
  5669. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5670. MSM_BACKEND_DAI_INT_FM_RX,
  5671. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5672. msm_routing_put_audio_mixer),
  5673. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5674. MSM_BACKEND_DAI_INT_FM_RX,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5678. MSM_BACKEND_DAI_INT_FM_RX,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5682. MSM_BACKEND_DAI_INT_FM_RX,
  5683. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5684. msm_routing_put_audio_mixer),
  5685. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5686. MSM_BACKEND_DAI_INT_FM_RX,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_INT_FM_RX,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_INT_FM_RX,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_INT_FM_RX,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_INT_FM_RX,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. };
  5706. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  5707. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5708. MSM_BACKEND_DAI_AFE_PCM_RX,
  5709. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5710. msm_routing_put_audio_mixer),
  5711. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5712. MSM_BACKEND_DAI_AFE_PCM_RX,
  5713. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5714. msm_routing_put_audio_mixer),
  5715. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5716. MSM_BACKEND_DAI_AFE_PCM_RX,
  5717. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5718. msm_routing_put_audio_mixer),
  5719. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5720. MSM_BACKEND_DAI_AFE_PCM_RX,
  5721. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5722. msm_routing_put_audio_mixer),
  5723. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5724. MSM_BACKEND_DAI_AFE_PCM_RX,
  5725. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5726. msm_routing_put_audio_mixer),
  5727. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5728. MSM_BACKEND_DAI_AFE_PCM_RX,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5732. MSM_BACKEND_DAI_AFE_PCM_RX,
  5733. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5734. msm_routing_put_audio_mixer),
  5735. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5736. MSM_BACKEND_DAI_AFE_PCM_RX,
  5737. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5738. msm_routing_put_audio_mixer),
  5739. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5740. MSM_BACKEND_DAI_AFE_PCM_RX,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5744. MSM_BACKEND_DAI_AFE_PCM_RX,
  5745. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5746. msm_routing_put_audio_mixer),
  5747. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5748. MSM_BACKEND_DAI_AFE_PCM_RX,
  5749. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5750. msm_routing_put_audio_mixer),
  5751. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5752. MSM_BACKEND_DAI_AFE_PCM_RX,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5756. MSM_BACKEND_DAI_AFE_PCM_RX,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5760. MSM_BACKEND_DAI_AFE_PCM_RX,
  5761. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5762. msm_routing_put_audio_mixer),
  5763. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5764. MSM_BACKEND_DAI_AFE_PCM_RX,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_AFE_PCM_RX,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_AFE_PCM_RX,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_AFE_PCM_RX,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_AFE_PCM_RX,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_AFE_PCM_RX,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5788. MSM_BACKEND_DAI_AFE_PCM_RX,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. };
  5792. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  5793. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5794. MSM_BACKEND_DAI_AUXPCM_RX,
  5795. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5796. msm_routing_put_audio_mixer),
  5797. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5798. MSM_BACKEND_DAI_AUXPCM_RX,
  5799. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5800. msm_routing_put_audio_mixer),
  5801. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5802. MSM_BACKEND_DAI_AUXPCM_RX,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5806. MSM_BACKEND_DAI_AUXPCM_RX,
  5807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5808. msm_routing_put_audio_mixer),
  5809. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5810. MSM_BACKEND_DAI_AUXPCM_RX,
  5811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5812. msm_routing_put_audio_mixer),
  5813. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5814. MSM_BACKEND_DAI_AUXPCM_RX,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5818. MSM_BACKEND_DAI_AUXPCM_RX,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5822. MSM_BACKEND_DAI_AUXPCM_RX,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5826. MSM_BACKEND_DAI_AUXPCM_RX,
  5827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5828. msm_routing_put_audio_mixer),
  5829. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5830. MSM_BACKEND_DAI_AUXPCM_RX,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_AUXPCM_RX,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_AUXPCM_RX,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5842. MSM_BACKEND_DAI_AUXPCM_RX,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5846. MSM_BACKEND_DAI_AUXPCM_RX,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5850. MSM_BACKEND_DAI_AUXPCM_RX,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5854. MSM_BACKEND_DAI_AUXPCM_RX,
  5855. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5856. msm_routing_put_audio_mixer),
  5857. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5858. MSM_BACKEND_DAI_AUXPCM_RX,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5862. MSM_BACKEND_DAI_AUXPCM_RX,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_AUXPCM_RX,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_AUXPCM_RX,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_AUXPCM_RX,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. };
  5878. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  5879. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5880. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5881. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5882. msm_routing_put_audio_mixer),
  5883. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5884. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5885. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5886. msm_routing_put_audio_mixer),
  5887. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5888. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5889. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5890. msm_routing_put_audio_mixer),
  5891. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5892. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5893. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5894. msm_routing_put_audio_mixer),
  5895. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5896. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5900. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5904. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5916. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5920. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5924. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5928. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5932. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. };
  5964. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  5965. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5966. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5967. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5968. msm_routing_put_audio_mixer),
  5969. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5970. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5974. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5978. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5982. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5986. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5987. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5988. msm_routing_put_audio_mixer),
  5989. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5990. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5994. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5998. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6002. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6010. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6026. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. };
  6030. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  6031. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6032. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6033. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6034. msm_routing_put_audio_mixer),
  6035. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6036. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6037. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6038. msm_routing_put_audio_mixer),
  6039. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6040. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6044. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6048. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6049. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6050. msm_routing_put_audio_mixer),
  6051. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6052. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6053. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6054. msm_routing_put_audio_mixer),
  6055. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6056. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6057. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6058. msm_routing_put_audio_mixer),
  6059. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6060. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6061. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6062. msm_routing_put_audio_mixer),
  6063. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6064. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6068. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6069. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6070. msm_routing_put_audio_mixer),
  6071. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6072. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6073. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6074. msm_routing_put_audio_mixer),
  6075. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. };
  6096. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6097. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6098. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6099. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6100. msm_routing_put_audio_mixer),
  6101. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6102. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6106. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6110. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6111. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6112. msm_routing_put_audio_mixer),
  6113. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6114. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6118. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6122. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6123. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6124. msm_routing_put_audio_mixer),
  6125. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6126. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6130. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6138. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6139. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6140. msm_routing_put_audio_mixer),
  6141. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6142. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6143. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6144. msm_routing_put_audio_mixer),
  6145. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6146. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6150. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6154. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6158. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. };
  6162. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  6163. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6164. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6168. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6169. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6170. msm_routing_put_audio_mixer),
  6171. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6172. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6174. msm_routing_put_audio_mixer),
  6175. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6176. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6177. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6178. msm_routing_put_audio_mixer),
  6179. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6180. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6181. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6182. msm_routing_put_audio_mixer),
  6183. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6184. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6188. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6189. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6190. msm_routing_put_audio_mixer),
  6191. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6192. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6193. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6194. msm_routing_put_audio_mixer),
  6195. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6196. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6200. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6204. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6208. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6212. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6213. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6214. msm_routing_put_audio_mixer),
  6215. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6216. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6220. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6224. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. };
  6228. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  6229. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6230. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6234. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6238. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6242. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6246. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6250. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6258. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6262. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6266. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6270. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6274. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6278. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6279. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6280. msm_routing_put_audio_mixer),
  6281. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6282. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6286. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6290. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. };
  6294. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  6295. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6296. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6300. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6301. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6302. msm_routing_put_audio_mixer),
  6303. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6304. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6308. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6312. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6316. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6320. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6356. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6357. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6358. msm_routing_put_audio_mixer),
  6359. };
  6360. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  6361. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6362. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6366. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6367. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6368. msm_routing_put_audio_mixer),
  6369. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6370. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6374. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6375. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6376. msm_routing_put_audio_mixer),
  6377. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6378. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. };
  6426. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  6427. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6428. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6429. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6430. msm_routing_put_audio_mixer),
  6431. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6432. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6433. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6434. msm_routing_put_audio_mixer),
  6435. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6436. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6437. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6438. msm_routing_put_audio_mixer),
  6439. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6440. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6441. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6442. msm_routing_put_audio_mixer),
  6443. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6444. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6445. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6446. msm_routing_put_audio_mixer),
  6447. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6448. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6449. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6450. msm_routing_put_audio_mixer),
  6451. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6452. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6453. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6454. msm_routing_put_audio_mixer),
  6455. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6456. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6457. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6458. msm_routing_put_audio_mixer),
  6459. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6460. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6464. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. };
  6492. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  6493. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6494. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6495. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6496. msm_routing_put_audio_mixer),
  6497. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6498. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6502. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6503. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6504. msm_routing_put_audio_mixer),
  6505. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6506. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6507. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6508. msm_routing_put_audio_mixer),
  6509. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6510. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6511. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6512. msm_routing_put_audio_mixer),
  6513. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6514. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6515. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6516. msm_routing_put_audio_mixer),
  6517. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6518. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6519. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6520. msm_routing_put_audio_mixer),
  6521. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6522. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6526. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6527. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6528. msm_routing_put_audio_mixer),
  6529. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6530. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6534. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6538. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6539. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6540. msm_routing_put_audio_mixer),
  6541. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6542. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6546. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6550. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6551. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6552. msm_routing_put_audio_mixer),
  6553. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6554. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. };
  6558. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  6559. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6560. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6561. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6562. msm_routing_put_audio_mixer),
  6563. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6564. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6568. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6569. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6570. msm_routing_put_audio_mixer),
  6571. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6572. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6573. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6574. msm_routing_put_audio_mixer),
  6575. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6576. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6577. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6578. msm_routing_put_audio_mixer),
  6579. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6580. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6581. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6582. msm_routing_put_audio_mixer),
  6583. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6584. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6585. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6586. msm_routing_put_audio_mixer),
  6587. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6588. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6589. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6590. msm_routing_put_audio_mixer),
  6591. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6592. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6593. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6594. msm_routing_put_audio_mixer),
  6595. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6596. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6600. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6601. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6602. msm_routing_put_audio_mixer),
  6603. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6604. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6605. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6606. msm_routing_put_audio_mixer),
  6607. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6608. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6612. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6613. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6614. msm_routing_put_audio_mixer),
  6615. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6616. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6617. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6618. msm_routing_put_audio_mixer),
  6619. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6620. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. };
  6624. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  6625. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6626. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6630. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6632. msm_routing_put_audio_mixer),
  6633. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6634. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6635. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6636. msm_routing_put_audio_mixer),
  6637. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6638. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6642. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6644. msm_routing_put_audio_mixer),
  6645. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6646. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6650. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6654. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6655. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6656. msm_routing_put_audio_mixer),
  6657. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6658. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6662. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6666. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6667. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6668. msm_routing_put_audio_mixer),
  6669. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6670. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6674. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6678. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6682. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6686. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. };
  6690. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  6691. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6692. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6693. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6694. msm_routing_put_audio_mixer),
  6695. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6696. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6697. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6698. msm_routing_put_audio_mixer),
  6699. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6700. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6704. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6705. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6706. msm_routing_put_audio_mixer),
  6707. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6708. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6709. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6710. msm_routing_put_audio_mixer),
  6711. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6712. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6713. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6714. msm_routing_put_audio_mixer),
  6715. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6716. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6717. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6718. msm_routing_put_audio_mixer),
  6719. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6720. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6721. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6722. msm_routing_put_audio_mixer),
  6723. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6724. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6752. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. };
  6756. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  6757. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6758. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6762. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6763. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6764. msm_routing_put_audio_mixer),
  6765. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6766. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6770. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6771. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6772. msm_routing_put_audio_mixer),
  6773. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6774. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6775. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6776. msm_routing_put_audio_mixer),
  6777. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6778. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6782. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6783. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6784. msm_routing_put_audio_mixer),
  6785. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6786. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6790. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6794. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6795. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6796. msm_routing_put_audio_mixer),
  6797. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6798. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6802. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6806. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6807. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6808. msm_routing_put_audio_mixer),
  6809. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6810. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6814. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6818. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. };
  6822. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  6823. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6824. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6825. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6826. msm_routing_put_audio_mixer),
  6827. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6828. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6832. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6833. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6834. msm_routing_put_audio_mixer),
  6835. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6836. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6837. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6838. msm_routing_put_audio_mixer),
  6839. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6840. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6841. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6842. msm_routing_put_audio_mixer),
  6843. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6844. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6845. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6846. msm_routing_put_audio_mixer),
  6847. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6848. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6849. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6850. msm_routing_put_audio_mixer),
  6851. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6852. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6856. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6857. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6858. msm_routing_put_audio_mixer),
  6859. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6860. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6861. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6862. msm_routing_put_audio_mixer),
  6863. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6872. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6876. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6884. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. };
  6888. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  6889. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6890. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6891. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6892. msm_routing_put_audio_mixer),
  6893. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6894. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6898. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6902. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6903. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6904. msm_routing_put_audio_mixer),
  6905. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6906. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6910. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6911. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6912. msm_routing_put_audio_mixer),
  6913. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6914. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6918. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6919. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6920. msm_routing_put_audio_mixer),
  6921. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6922. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6923. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6924. msm_routing_put_audio_mixer),
  6925. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6926. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6930. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6931. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6932. msm_routing_put_audio_mixer),
  6933. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6934. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6946. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6950. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. };
  6954. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  6955. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6956. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6958. msm_routing_put_audio_mixer),
  6959. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6960. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6961. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6962. msm_routing_put_audio_mixer),
  6963. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6964. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6965. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6966. msm_routing_put_audio_mixer),
  6967. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6968. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6969. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6970. msm_routing_put_audio_mixer),
  6971. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6972. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6973. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6974. msm_routing_put_audio_mixer),
  6975. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6976. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6977. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6978. msm_routing_put_audio_mixer),
  6979. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6980. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6984. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6985. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6986. msm_routing_put_audio_mixer),
  6987. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6988. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6989. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6990. msm_routing_put_audio_mixer),
  6991. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6992. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6996. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6997. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6998. msm_routing_put_audio_mixer),
  6999. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7000. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7001. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7002. msm_routing_put_audio_mixer),
  7003. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7004. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7008. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7012. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7016. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7017. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7018. msm_routing_put_audio_mixer),
  7019. };
  7020. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  7021. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7022. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7026. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7030. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7034. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7035. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7036. msm_routing_put_audio_mixer),
  7037. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7038. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7039. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7040. msm_routing_put_audio_mixer),
  7041. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7042. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7046. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7047. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7048. msm_routing_put_audio_mixer),
  7049. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7050. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7051. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7052. msm_routing_put_audio_mixer),
  7053. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7054. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7058. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7059. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7060. msm_routing_put_audio_mixer),
  7061. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7062. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7063. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7064. msm_routing_put_audio_mixer),
  7065. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7066. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7067. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7068. msm_routing_put_audio_mixer),
  7069. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7070. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7071. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7072. msm_routing_put_audio_mixer),
  7073. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7074. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7078. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7082. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7084. msm_routing_put_audio_mixer),
  7085. };
  7086. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7087. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7116. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7120. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7124. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7125. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7126. msm_routing_put_audio_mixer),
  7127. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7128. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. };
  7152. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  7153. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. };
  7218. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  7219. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. };
  7288. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  7289. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7290. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. };
  7354. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  7355. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7356. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7357. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7358. msm_routing_put_audio_mixer),
  7359. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7360. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7380. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7384. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. };
  7424. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  7425. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7426. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7430. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7446. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7450. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7451. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7452. msm_routing_put_audio_mixer),
  7453. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7454. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. };
  7494. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  7495. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7516. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7520. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7521. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7522. msm_routing_put_audio_mixer),
  7523. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7524. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7525. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7526. msm_routing_put_audio_mixer),
  7527. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. };
  7564. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  7565. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7586. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7587. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7588. msm_routing_put_audio_mixer),
  7589. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7590. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7591. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7592. msm_routing_put_audio_mixer),
  7593. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7594. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7595. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7596. msm_routing_put_audio_mixer),
  7597. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. };
  7634. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  7635. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7660. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7661. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7662. msm_routing_put_audio_mixer),
  7663. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7664. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7665. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7666. msm_routing_put_audio_mixer),
  7667. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. };
  7700. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  7701. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. };
  7770. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  7771. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. };
  7840. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  7841. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7843. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7844. msm_routing_put_audio_mixer),
  7845. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7850. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7851. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7852. msm_routing_put_audio_mixer),
  7853. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. };
  7910. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  7911. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_PRI_I2S_TX,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_MI2S_TX,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_INT3_MI2S_TX,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_AUXPCM_TX,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_INT_FM_TX,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_AFE_PCM_TX,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_USB_TX,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. };
  8120. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  8121. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_INT_FM_TX,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_MI2S_TX,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8238. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8240. msm_routing_put_audio_mixer),
  8241. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_USB_TX,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  8278. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  8279. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8280. msm_routing_put_audio_mixer),
  8281. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  8282. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  8283. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8284. msm_routing_put_audio_mixer),
  8285. };
  8286. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  8287. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_INT_FM_TX,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_MI2S_TX,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_AFE_PCM_TX,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_AUXPCM_TX,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8348. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8349. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8350. msm_routing_put_audio_mixer),
  8351. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8352. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8353. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8354. msm_routing_put_audio_mixer),
  8355. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8356. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8357. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8358. msm_routing_put_audio_mixer),
  8359. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8360. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8361. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8362. msm_routing_put_audio_mixer),
  8363. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. };
  8452. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  8453. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_INT_FM_TX,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_AFE_PCM_TX,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_USB_TX,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8586. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8588. msm_routing_put_audio_mixer),
  8589. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8590. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8591. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8592. msm_routing_put_audio_mixer),
  8593. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. };
  8614. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  8615. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_INT_FM_TX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_MI2S_TX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_AFE_PCM_TX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_AUXPCM_TX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8740. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8742. msm_routing_put_audio_mixer),
  8743. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8744. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8745. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8746. msm_routing_put_audio_mixer),
  8747. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8748. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8749. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8750. msm_routing_put_audio_mixer),
  8751. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8752. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8753. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8754. msm_routing_put_audio_mixer),
  8755. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_USB_TX,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. };
  8800. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  8801. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_INT_FM_TX,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8814. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8816. msm_routing_put_audio_mixer),
  8817. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8818. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8819. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8820. msm_routing_put_audio_mixer),
  8821. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_AUXPCM_TX,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8850. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8851. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8852. msm_routing_put_audio_mixer),
  8853. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_USB_TX,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. };
  8966. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  8967. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8992. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8993. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8994. msm_routing_put_audio_mixer),
  8995. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8996. MSM_BACKEND_DAI_INT_FM_TX,
  8997. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8998. msm_routing_put_audio_mixer),
  8999. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9000. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9001. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9002. msm_routing_put_audio_mixer),
  9003. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9004. MSM_BACKEND_DAI_AFE_PCM_TX,
  9005. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9006. msm_routing_put_audio_mixer),
  9007. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9008. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9009. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9010. msm_routing_put_audio_mixer),
  9011. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9012. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9013. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9014. msm_routing_put_audio_mixer),
  9015. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9016. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9017. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9018. msm_routing_put_audio_mixer),
  9019. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9020. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9021. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9022. msm_routing_put_audio_mixer),
  9023. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_USB_TX,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. };
  9136. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  9137. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_INT_FM_TX,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_AFE_PCM_TX,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9190. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9191. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9192. msm_routing_put_audio_mixer),
  9193. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9194. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9195. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9196. msm_routing_put_audio_mixer),
  9197. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9231. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9232. msm_routing_put_audio_mixer),
  9233. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9234. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9235. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9236. msm_routing_put_audio_mixer),
  9237. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_USB_TX,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_MI2S_TX,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_AUXPCM_TX,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. };
  9306. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  9307. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9308. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9309. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9310. msm_routing_put_audio_mixer),
  9311. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9312. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9313. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9314. msm_routing_put_audio_mixer),
  9315. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_INT_FM_TX,
  9317. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9318. msm_routing_put_audio_mixer),
  9319. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9321. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9322. msm_routing_put_audio_mixer),
  9323. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_AFE_PCM_TX,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. };
  9416. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  9417. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_INT_FM_TX,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_AFE_PCM_TX,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_USB_TX,
  9487. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9488. msm_routing_put_audio_mixer),
  9489. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9490. MSM_BACKEND_DAI_MI2S_TX,
  9491. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9492. msm_routing_put_audio_mixer),
  9493. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9494. MSM_BACKEND_DAI_AUXPCM_TX,
  9495. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9496. msm_routing_put_audio_mixer),
  9497. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9498. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9499. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9500. msm_routing_put_audio_mixer),
  9501. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9502. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9503. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9504. msm_routing_put_audio_mixer),
  9505. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9506. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9507. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9508. msm_routing_put_audio_mixer),
  9509. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9510. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9511. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9512. msm_routing_put_audio_mixer),
  9513. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9514. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9515. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9516. msm_routing_put_audio_mixer),
  9517. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9518. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9519. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9520. msm_routing_put_audio_mixer),
  9521. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9523. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9524. msm_routing_put_audio_mixer),
  9525. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. };
  9550. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  9551. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_INT_FM_TX,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9572. MSM_BACKEND_DAI_AFE_PCM_TX,
  9573. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9574. msm_routing_put_audio_mixer),
  9575. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9576. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9577. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9578. msm_routing_put_audio_mixer),
  9579. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9580. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9581. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9582. msm_routing_put_audio_mixer),
  9583. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9584. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9585. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9586. msm_routing_put_audio_mixer),
  9587. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9588. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9589. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9590. msm_routing_put_audio_mixer),
  9591. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9592. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9593. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9594. msm_routing_put_audio_mixer),
  9595. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9596. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9597. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9598. msm_routing_put_audio_mixer),
  9599. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9600. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9601. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9602. msm_routing_put_audio_mixer),
  9603. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9604. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9605. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9606. msm_routing_put_audio_mixer),
  9607. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9609. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9610. msm_routing_put_audio_mixer),
  9611. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9612. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9613. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9614. msm_routing_put_audio_mixer),
  9615. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9616. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9617. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9618. msm_routing_put_audio_mixer),
  9619. };
  9620. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  9621. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_INT_FM_TX,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_AFE_PCM_TX,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9670. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9671. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9672. msm_routing_put_audio_mixer),
  9673. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9678. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9679. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9680. msm_routing_put_audio_mixer),
  9681. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. };
  9694. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  9695. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_INT_FM_TX,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_AFE_PCM_TX,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9736. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9737. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9738. msm_routing_put_audio_mixer),
  9739. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9740. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9741. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9742. msm_routing_put_audio_mixer),
  9743. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9744. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9745. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9746. msm_routing_put_audio_mixer),
  9747. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9748. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9749. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9750. msm_routing_put_audio_mixer),
  9751. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9752. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9753. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9754. msm_routing_put_audio_mixer),
  9755. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9756. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9757. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9758. msm_routing_put_audio_mixer),
  9759. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9760. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9761. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9762. msm_routing_put_audio_mixer),
  9763. };
  9764. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  9765. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9795. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9796. msm_routing_put_audio_mixer),
  9797. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9799. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9800. msm_routing_put_audio_mixer),
  9801. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9802. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9803. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9804. msm_routing_put_audio_mixer),
  9805. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9806. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9807. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9808. msm_routing_put_audio_mixer),
  9809. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9810. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9811. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9812. msm_routing_put_audio_mixer),
  9813. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9814. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9815. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9816. msm_routing_put_audio_mixer),
  9817. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9819. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9820. msm_routing_put_audio_mixer),
  9821. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9822. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9823. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9824. msm_routing_put_audio_mixer),
  9825. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9838. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9839. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9840. msm_routing_put_audio_mixer),
  9841. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9842. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9843. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9844. msm_routing_put_audio_mixer),
  9845. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9846. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9847. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9848. msm_routing_put_audio_mixer),
  9849. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. };
  9894. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  9895. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_INT_FM_TX,
  9909. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9910. msm_routing_put_audio_mixer),
  9911. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9912. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9913. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9914. msm_routing_put_audio_mixer),
  9915. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_AFE_PCM_TX,
  9917. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9918. msm_routing_put_audio_mixer),
  9919. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9921. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9922. msm_routing_put_audio_mixer),
  9923. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. };
  9964. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  9965. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_INT_FM_TX,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_AFE_PCM_TX,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. };
  10034. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  10035. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_PRI_I2S_RX,
  10037. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10038. msm_routing_put_voice_mixer),
  10039. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_PRI_I2S_RX,
  10041. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10042. msm_routing_put_voice_mixer),
  10043. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_PRI_I2S_RX,
  10045. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10046. msm_routing_put_voice_mixer),
  10047. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_PRI_I2S_RX,
  10049. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10050. msm_routing_put_voice_mixer),
  10051. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_PRI_I2S_RX,
  10053. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10054. msm_routing_put_voice_mixer),
  10055. };
  10056. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  10057. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_SEC_I2S_RX,
  10059. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10060. msm_routing_put_voice_mixer),
  10061. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_SEC_I2S_RX,
  10063. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10064. msm_routing_put_voice_mixer),
  10065. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_SEC_I2S_RX,
  10067. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10068. msm_routing_put_voice_mixer),
  10069. };
  10070. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  10071. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10073. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10074. msm_routing_put_voice_mixer),
  10075. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10077. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10078. msm_routing_put_voice_mixer),
  10079. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10081. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10082. msm_routing_put_voice_mixer),
  10083. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10085. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10086. msm_routing_put_voice_mixer),
  10087. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10089. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10090. msm_routing_put_voice_mixer),
  10091. };
  10092. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  10093. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10095. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10096. msm_routing_put_voice_mixer),
  10097. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10099. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10100. msm_routing_put_voice_mixer),
  10101. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10103. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10104. msm_routing_put_voice_mixer),
  10105. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10107. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10108. msm_routing_put_voice_mixer),
  10109. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10111. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10112. msm_routing_put_voice_mixer),
  10113. };
  10114. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  10115. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10117. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10118. msm_routing_put_voice_mixer),
  10119. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10120. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10121. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10122. msm_routing_put_voice_mixer),
  10123. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10124. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10125. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10126. msm_routing_put_voice_mixer),
  10127. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10128. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10129. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10130. msm_routing_put_voice_mixer),
  10131. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10132. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10133. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10134. msm_routing_put_voice_mixer),
  10135. };
  10136. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  10137. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_USB_RX,
  10139. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10140. msm_routing_put_voice_mixer),
  10141. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_USB_RX,
  10143. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10144. msm_routing_put_voice_mixer),
  10145. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_USB_RX,
  10147. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10148. msm_routing_put_voice_mixer),
  10149. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_USB_RX,
  10151. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10152. msm_routing_put_voice_mixer),
  10153. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_USB_RX,
  10155. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10156. msm_routing_put_voice_mixer),
  10157. };
  10158. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  10159. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  10161. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10162. msm_routing_put_voice_mixer),
  10163. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  10165. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10166. msm_routing_put_voice_mixer),
  10167. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  10169. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10170. msm_routing_put_voice_mixer),
  10171. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  10173. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10174. msm_routing_put_voice_mixer),
  10175. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  10177. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10178. msm_routing_put_voice_mixer),
  10179. };
  10180. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  10181. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  10183. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10184. msm_routing_put_voice_mixer),
  10185. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  10187. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10188. msm_routing_put_voice_mixer),
  10189. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  10191. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10192. msm_routing_put_voice_mixer),
  10193. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  10195. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10196. msm_routing_put_voice_mixer),
  10197. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10198. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  10199. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10200. msm_routing_put_voice_mixer),
  10201. };
  10202. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  10203. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  10205. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10206. msm_routing_put_voice_mixer),
  10207. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  10209. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10210. msm_routing_put_voice_mixer),
  10211. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  10213. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10214. msm_routing_put_voice_mixer),
  10215. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  10217. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10218. msm_routing_put_voice_mixer),
  10219. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  10221. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10222. msm_routing_put_voice_mixer),
  10223. };
  10224. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  10225. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_MI2S_RX,
  10227. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10228. msm_routing_put_voice_mixer),
  10229. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_MI2S_RX,
  10231. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10232. msm_routing_put_voice_mixer),
  10233. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_MI2S_RX,
  10235. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10236. msm_routing_put_voice_mixer),
  10237. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_MI2S_RX,
  10239. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10240. msm_routing_put_voice_mixer),
  10241. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_MI2S_RX,
  10243. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10244. msm_routing_put_voice_mixer),
  10245. };
  10246. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  10247. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10249. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10250. msm_routing_put_voice_mixer),
  10251. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10253. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10254. msm_routing_put_voice_mixer),
  10255. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10257. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10258. msm_routing_put_voice_mixer),
  10259. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10261. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10262. msm_routing_put_voice_mixer),
  10263. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10264. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10265. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10266. msm_routing_put_voice_mixer),
  10267. };
  10268. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  10269. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10271. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10272. msm_routing_put_voice_mixer),
  10273. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10275. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10276. msm_routing_put_voice_mixer),
  10277. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10279. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10280. msm_routing_put_voice_mixer),
  10281. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10283. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10284. msm_routing_put_voice_mixer),
  10285. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10287. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10288. msm_routing_put_voice_mixer),
  10289. };
  10290. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  10291. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10293. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10294. msm_routing_put_voice_mixer),
  10295. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10297. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10298. msm_routing_put_voice_mixer),
  10299. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10300. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10301. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10302. msm_routing_put_voice_mixer),
  10303. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10305. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10306. msm_routing_put_voice_mixer),
  10307. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10309. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10310. msm_routing_put_voice_mixer),
  10311. };
  10312. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  10313. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10315. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10316. msm_routing_put_voice_mixer),
  10317. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10319. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10320. msm_routing_put_voice_mixer),
  10321. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10323. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10324. msm_routing_put_voice_mixer),
  10325. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10327. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10328. msm_routing_put_voice_mixer),
  10329. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10330. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10331. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10332. msm_routing_put_voice_mixer),
  10333. };
  10334. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  10335. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10337. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10338. msm_routing_put_voice_mixer),
  10339. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10341. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10342. msm_routing_put_voice_mixer),
  10343. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10345. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10346. msm_routing_put_voice_mixer),
  10347. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10349. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10350. msm_routing_put_voice_mixer),
  10351. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10353. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10354. msm_routing_put_voice_mixer),
  10355. };
  10356. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  10357. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10358. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10359. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10360. msm_routing_put_voice_mixer),
  10361. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10362. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10363. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10364. msm_routing_put_voice_mixer),
  10365. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10366. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10367. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10368. msm_routing_put_voice_mixer),
  10369. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10371. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10372. msm_routing_put_voice_mixer),
  10373. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10375. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10376. msm_routing_put_voice_mixer),
  10377. };
  10378. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  10379. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_AFE_PCM_RX,
  10381. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10382. msm_routing_put_voice_mixer),
  10383. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_AFE_PCM_RX,
  10385. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10386. msm_routing_put_voice_mixer),
  10387. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_AFE_PCM_RX,
  10389. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10390. msm_routing_put_voice_mixer),
  10391. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_AFE_PCM_RX,
  10393. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10394. msm_routing_put_voice_mixer),
  10395. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_AFE_PCM_RX,
  10397. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10398. msm_routing_put_voice_mixer),
  10399. };
  10400. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  10401. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_AUXPCM_RX,
  10403. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10404. msm_routing_put_voice_mixer),
  10405. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_AUXPCM_RX,
  10407. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10408. msm_routing_put_voice_mixer),
  10409. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_AUXPCM_RX,
  10411. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10412. msm_routing_put_voice_mixer),
  10413. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_AUXPCM_RX,
  10415. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10416. msm_routing_put_voice_mixer),
  10417. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_AUXPCM_RX,
  10419. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10420. msm_routing_put_voice_mixer),
  10421. };
  10422. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  10423. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10424. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10425. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10426. msm_routing_put_voice_mixer),
  10427. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10428. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10429. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10430. msm_routing_put_voice_mixer),
  10431. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10432. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10433. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10434. msm_routing_put_voice_mixer),
  10435. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10436. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10437. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10438. msm_routing_put_voice_mixer),
  10439. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10440. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10441. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10442. msm_routing_put_voice_mixer),
  10443. };
  10444. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  10445. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10447. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10448. msm_routing_put_voice_mixer),
  10449. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10451. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10452. msm_routing_put_voice_mixer),
  10453. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10455. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10456. msm_routing_put_voice_mixer),
  10457. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10459. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10460. msm_routing_put_voice_mixer),
  10461. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10463. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10464. msm_routing_put_voice_mixer),
  10465. };
  10466. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  10467. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10468. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10469. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10470. msm_routing_put_voice_mixer),
  10471. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10473. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10474. msm_routing_put_voice_mixer),
  10475. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10476. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10477. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10478. msm_routing_put_voice_mixer),
  10479. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10481. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10482. msm_routing_put_voice_mixer),
  10483. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10485. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10486. msm_routing_put_voice_mixer),
  10487. };
  10488. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  10489. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10491. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10492. msm_routing_put_voice_mixer),
  10493. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10495. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10496. msm_routing_put_voice_mixer),
  10497. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10498. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10499. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10500. msm_routing_put_voice_mixer),
  10501. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10502. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10503. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10504. msm_routing_put_voice_mixer),
  10505. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10506. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10507. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10508. msm_routing_put_voice_mixer),
  10509. };
  10510. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  10511. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_HDMI_RX,
  10513. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10514. msm_routing_put_voice_mixer),
  10515. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_HDMI_RX,
  10517. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10518. msm_routing_put_voice_mixer),
  10519. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_HDMI_RX,
  10521. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10522. msm_routing_put_voice_mixer),
  10523. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_HDMI_RX,
  10525. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10526. msm_routing_put_voice_mixer),
  10527. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_HDMI_RX,
  10529. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10530. msm_routing_put_voice_mixer),
  10531. };
  10532. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  10533. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10535. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10536. msm_routing_put_voice_mixer),
  10537. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10539. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10540. msm_routing_put_voice_mixer),
  10541. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10543. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10544. msm_routing_put_voice_mixer),
  10545. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10547. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10548. msm_routing_put_voice_mixer),
  10549. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10551. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10552. msm_routing_put_voice_mixer),
  10553. };
  10554. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  10555. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10557. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10558. msm_routing_put_voice_mixer),
  10559. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10561. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10562. msm_routing_put_voice_mixer),
  10563. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10565. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10566. msm_routing_put_voice_mixer),
  10567. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10569. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10570. msm_routing_put_voice_mixer),
  10571. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10572. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10573. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10574. msm_routing_put_voice_mixer),
  10575. };
  10576. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  10577. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10579. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10580. msm_routing_put_voice_mixer),
  10581. };
  10582. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  10583. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10584. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10585. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10586. msm_routing_put_voice_mixer),
  10587. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10588. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10589. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10590. msm_routing_put_voice_mixer),
  10591. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10592. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10593. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10594. msm_routing_put_voice_mixer),
  10595. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10596. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10597. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10598. msm_routing_put_voice_mixer),
  10599. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10600. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10601. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10602. msm_routing_put_voice_mixer),
  10603. };
  10604. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  10605. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10607. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10608. msm_routing_put_voice_mixer),
  10609. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10611. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10612. msm_routing_put_voice_mixer),
  10613. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10615. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10616. msm_routing_put_voice_mixer),
  10617. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10619. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10620. msm_routing_put_voice_mixer),
  10621. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10623. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10624. msm_routing_put_voice_mixer),
  10625. };
  10626. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  10627. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_EXTPROC_RX,
  10629. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10630. msm_routing_put_voice_mixer),
  10631. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_EXTPROC_RX,
  10633. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10634. msm_routing_put_voice_mixer),
  10635. };
  10636. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  10637. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10639. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10640. msm_routing_put_voice_mixer),
  10641. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10643. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10644. msm_routing_put_voice_mixer),
  10645. };
  10646. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  10647. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10649. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10650. msm_routing_put_voice_mixer),
  10651. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10653. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10654. msm_routing_put_voice_mixer),
  10655. };
  10656. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  10657. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_PRI_I2S_TX,
  10659. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10660. msm_routing_put_voice_mixer),
  10661. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_MI2S_TX,
  10663. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10664. msm_routing_put_voice_mixer),
  10665. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  10666. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10667. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10668. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  10669. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10670. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10671. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10673. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10674. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10675. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10676. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10677. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10679. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10680. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10681. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10682. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10683. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10685. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10686. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10688. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10689. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  10690. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10691. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10692. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  10693. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10694. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10695. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10697. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10698. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10700. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10701. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  10702. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10703. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10704. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  10705. MSM_BACKEND_DAI_USB_TX,
  10706. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10707. msm_routing_put_voice_mixer),
  10708. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  10709. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10710. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10711. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10713. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10714. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  10716. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10717. };
  10718. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  10719. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_PRI_I2S_TX,
  10721. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10722. msm_routing_put_voice_mixer),
  10723. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_MI2S_TX,
  10725. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10726. msm_routing_put_voice_mixer),
  10727. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10729. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10730. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10732. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10733. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10735. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10736. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10737. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10738. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10739. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10741. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10742. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10743. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10744. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10745. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10747. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10748. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10749. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10750. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10751. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10753. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10754. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  10755. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10756. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10757. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10759. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10760. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  10761. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10762. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10763. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10765. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10766. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  10767. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10768. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10769. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  10771. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10772. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  10773. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  10774. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10775. };
  10776. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  10777. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_PRI_I2S_TX,
  10779. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10780. msm_routing_put_voice_mixer),
  10781. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_MI2S_TX,
  10783. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10784. msm_routing_put_voice_mixer),
  10785. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10787. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10788. msm_routing_put_voice_mixer),
  10789. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10791. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10792. msm_routing_put_voice_mixer),
  10793. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_AFE_PCM_TX,
  10795. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10796. msm_routing_put_voice_mixer),
  10797. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_AUXPCM_TX,
  10799. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10800. msm_routing_put_voice_mixer),
  10801. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10803. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10804. msm_routing_put_voice_mixer),
  10805. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10807. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10808. msm_routing_put_voice_mixer),
  10809. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10811. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10812. msm_routing_put_voice_mixer),
  10813. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10815. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10816. msm_routing_put_voice_mixer),
  10817. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10819. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10820. msm_routing_put_voice_mixer),
  10821. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10823. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10824. msm_routing_put_voice_mixer),
  10825. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10827. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10828. msm_routing_put_voice_mixer),
  10829. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10831. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10832. msm_routing_put_voice_mixer),
  10833. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10835. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10836. msm_routing_put_voice_mixer),
  10837. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_USB_TX,
  10839. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10840. msm_routing_put_voice_mixer),
  10841. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  10842. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  10843. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10844. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  10845. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  10846. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10847. };
  10848. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  10849. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10850. MSM_BACKEND_DAI_EXTPROC_TX,
  10851. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10852. msm_routing_put_voice_stub_mixer),
  10853. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10854. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10855. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10856. msm_routing_put_voice_stub_mixer),
  10857. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10858. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10859. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10860. msm_routing_put_voice_stub_mixer),
  10861. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10863. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10864. msm_routing_put_voice_stub_mixer),
  10865. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_MI2S_TX,
  10867. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10868. msm_routing_put_voice_stub_mixer),
  10869. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10870. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10871. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10872. msm_routing_put_voice_stub_mixer),
  10873. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10875. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10876. msm_routing_put_voice_stub_mixer),
  10877. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10879. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10880. msm_routing_put_voice_stub_mixer),
  10881. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10883. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10884. msm_routing_put_voice_stub_mixer),
  10885. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_AUXPCM_TX,
  10887. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10888. msm_routing_put_voice_stub_mixer),
  10889. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10891. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10892. msm_routing_put_voice_stub_mixer),
  10893. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10895. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10896. msm_routing_put_voice_stub_mixer),
  10897. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10899. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10900. msm_routing_put_voice_stub_mixer),
  10901. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10903. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10904. msm_routing_put_voice_stub_mixer),
  10905. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10907. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10908. msm_routing_put_voice_stub_mixer),
  10909. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10911. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10912. msm_routing_put_voice_stub_mixer),
  10913. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_AFE_PCM_TX,
  10915. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10916. msm_routing_put_voice_stub_mixer),
  10917. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10919. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10920. msm_routing_put_voice_stub_mixer),
  10921. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10923. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10924. msm_routing_put_voice_stub_mixer),
  10925. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  10927. 1, 0, msm_routing_get_voice_stub_mixer,
  10928. msm_routing_put_voice_stub_mixer),
  10929. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  10931. 1, 0, msm_routing_get_voice_stub_mixer,
  10932. msm_routing_put_voice_stub_mixer),
  10933. };
  10934. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  10935. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10936. MSM_BACKEND_DAI_EXTPROC_TX,
  10937. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10938. msm_routing_put_voice_stub_mixer),
  10939. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10940. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10941. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10942. msm_routing_put_voice_stub_mixer),
  10943. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10945. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10946. msm_routing_put_voice_stub_mixer),
  10947. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10948. MSM_BACKEND_DAI_AUXPCM_TX,
  10949. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10950. msm_routing_put_voice_stub_mixer),
  10951. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10953. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10954. msm_routing_put_voice_stub_mixer),
  10955. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10957. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10958. msm_routing_put_voice_stub_mixer),
  10959. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10961. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10962. msm_routing_put_voice_stub_mixer),
  10963. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10965. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10966. msm_routing_put_voice_stub_mixer),
  10967. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10969. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10970. msm_routing_put_voice_stub_mixer),
  10971. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10973. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10974. msm_routing_put_voice_stub_mixer),
  10975. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_AFE_PCM_TX,
  10977. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10978. msm_routing_put_voice_stub_mixer),
  10979. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10981. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10982. msm_routing_put_voice_stub_mixer),
  10983. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10985. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10986. msm_routing_put_voice_stub_mixer),
  10987. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10989. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10990. msm_routing_put_voice_stub_mixer),
  10991. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10993. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10994. msm_routing_put_voice_stub_mixer),
  10995. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  10997. 1, 0, msm_routing_get_voice_stub_mixer,
  10998. msm_routing_put_voice_stub_mixer),
  10999. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  11001. 1, 0, msm_routing_get_voice_stub_mixer,
  11002. msm_routing_put_voice_stub_mixer),
  11003. };
  11004. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  11005. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_EXTPROC_TX,
  11007. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11008. msm_routing_put_voice_stub_mixer),
  11009. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11010. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11011. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11012. msm_routing_put_voice_stub_mixer),
  11013. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  11015. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11016. msm_routing_put_voice_stub_mixer),
  11017. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_AUXPCM_TX,
  11019. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11020. msm_routing_put_voice_stub_mixer),
  11021. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11023. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11024. msm_routing_put_voice_stub_mixer),
  11025. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11027. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11028. msm_routing_put_voice_stub_mixer),
  11029. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11031. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11032. msm_routing_put_voice_stub_mixer),
  11033. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11035. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11036. msm_routing_put_voice_stub_mixer),
  11037. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11039. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11040. msm_routing_put_voice_stub_mixer),
  11041. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  11043. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11044. msm_routing_put_voice_stub_mixer),
  11045. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_AFE_PCM_TX,
  11047. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11048. msm_routing_put_voice_stub_mixer),
  11049. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11051. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11052. msm_routing_put_voice_stub_mixer),
  11053. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11055. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11056. msm_routing_put_voice_stub_mixer),
  11057. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11059. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11060. msm_routing_put_voice_stub_mixer),
  11061. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11063. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11064. msm_routing_put_voice_stub_mixer),
  11065. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  11067. 1, 0, msm_routing_get_voice_stub_mixer,
  11068. msm_routing_put_voice_stub_mixer),
  11069. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  11071. 1, 0, msm_routing_get_voice_stub_mixer,
  11072. msm_routing_put_voice_stub_mixer),
  11073. };
  11074. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  11075. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_PRI_I2S_TX,
  11077. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11078. msm_routing_put_voice_mixer),
  11079. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11081. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11082. msm_routing_put_voice_mixer),
  11083. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11085. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  11086. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11087. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_AFE_PCM_TX,
  11089. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11090. msm_routing_put_voice_mixer),
  11091. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_AUXPCM_TX,
  11093. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11094. msm_routing_put_voice_mixer),
  11095. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11097. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11098. msm_routing_put_voice_mixer),
  11099. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11101. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11102. msm_routing_put_voice_mixer),
  11103. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11105. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11106. msm_routing_put_voice_mixer),
  11107. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11109. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11110. msm_routing_put_voice_mixer),
  11111. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_MI2S_TX,
  11113. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11114. msm_routing_put_voice_mixer),
  11115. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11117. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11118. msm_routing_put_voice_mixer),
  11119. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11121. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11122. msm_routing_put_voice_mixer),
  11123. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11125. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11126. msm_routing_put_voice_mixer),
  11127. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11129. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11130. msm_routing_put_voice_mixer),
  11131. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11133. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11134. msm_routing_put_voice_mixer),
  11135. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_USB_TX,
  11137. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11138. msm_routing_put_voice_mixer),
  11139. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  11141. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11142. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  11143. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  11144. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11145. };
  11146. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  11147. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11149. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11150. msm_routing_put_port_mixer),
  11151. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11153. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11154. msm_routing_put_port_mixer),
  11155. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11157. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11158. msm_routing_put_port_mixer),
  11159. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11161. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11162. msm_routing_put_port_mixer),
  11163. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11165. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11166. msm_routing_put_port_mixer),
  11167. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11169. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11170. msm_routing_put_port_mixer),
  11171. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11173. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11174. msm_routing_put_port_mixer),
  11175. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11177. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11178. msm_routing_put_port_mixer),
  11179. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11181. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11182. msm_routing_put_port_mixer),
  11183. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11185. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11186. msm_routing_put_port_mixer),
  11187. };
  11188. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  11189. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11191. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11192. msm_routing_put_port_mixer),
  11193. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11195. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11196. msm_routing_put_port_mixer),
  11197. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11199. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11200. msm_routing_put_port_mixer),
  11201. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11203. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11204. msm_routing_put_port_mixer),
  11205. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11207. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11208. msm_routing_put_port_mixer),
  11209. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11211. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11212. msm_routing_put_port_mixer),
  11213. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11215. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11216. msm_routing_put_port_mixer),
  11217. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11219. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11220. msm_routing_put_port_mixer),
  11221. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11223. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11224. msm_routing_put_port_mixer),
  11225. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11227. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11228. msm_routing_put_port_mixer),
  11229. };
  11230. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  11231. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11233. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11234. msm_routing_put_port_mixer),
  11235. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11237. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11238. msm_routing_put_port_mixer),
  11239. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11241. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11242. msm_routing_put_port_mixer),
  11243. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11245. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11246. msm_routing_put_port_mixer),
  11247. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11249. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11250. msm_routing_put_port_mixer),
  11251. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11253. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11254. msm_routing_put_port_mixer),
  11255. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11257. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11258. msm_routing_put_port_mixer),
  11259. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11261. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11262. msm_routing_put_port_mixer),
  11263. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11265. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11266. msm_routing_put_port_mixer),
  11267. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11269. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11270. msm_routing_put_port_mixer),
  11271. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11273. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11274. msm_routing_put_port_mixer),
  11275. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11277. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11278. msm_routing_put_port_mixer),
  11279. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11281. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11282. msm_routing_put_port_mixer),
  11283. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11285. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11286. msm_routing_put_port_mixer),
  11287. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11289. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11290. msm_routing_put_port_mixer),
  11291. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11293. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11294. msm_routing_put_port_mixer),
  11295. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11297. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11298. msm_routing_put_port_mixer),
  11299. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11301. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11302. msm_routing_put_port_mixer),
  11303. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11305. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11306. msm_routing_put_port_mixer),
  11307. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11309. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11310. msm_routing_put_port_mixer),
  11311. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11313. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11314. msm_routing_put_port_mixer),
  11315. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11317. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11318. msm_routing_put_port_mixer),
  11319. };
  11320. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  11321. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_AUXPCM_RX,
  11323. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11324. msm_routing_put_port_mixer),
  11325. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_AUXPCM_RX,
  11327. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11328. msm_routing_put_port_mixer),
  11329. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_AUXPCM_RX,
  11331. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11332. msm_routing_put_port_mixer),
  11333. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_AUXPCM_RX,
  11335. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11336. msm_routing_put_port_mixer),
  11337. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_AUXPCM_RX,
  11339. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  11340. msm_routing_put_port_mixer),
  11341. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_AUXPCM_RX,
  11343. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11344. msm_routing_put_port_mixer),
  11345. };
  11346. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  11347. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11349. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11350. msm_routing_put_port_mixer),
  11351. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11353. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11354. msm_routing_put_port_mixer),
  11355. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11357. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11358. msm_routing_put_port_mixer),
  11359. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11361. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11362. msm_routing_put_port_mixer),
  11363. };
  11364. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  11365. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11367. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11368. msm_routing_put_port_mixer),
  11369. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11371. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11372. msm_routing_put_port_mixer),
  11373. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11375. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11376. msm_routing_put_port_mixer),
  11377. };
  11378. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  11379. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11381. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11382. msm_routing_put_port_mixer),
  11383. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11385. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11386. msm_routing_put_port_mixer),
  11387. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11389. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11390. msm_routing_put_port_mixer),
  11391. };
  11392. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  11393. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11395. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11396. msm_routing_put_port_mixer),
  11397. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11399. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11400. msm_routing_put_port_mixer),
  11401. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11403. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11404. msm_routing_put_port_mixer),
  11405. };
  11406. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  11407. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11409. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11410. msm_routing_put_port_mixer),
  11411. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11413. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  11414. msm_routing_put_port_mixer),
  11415. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11417. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11418. msm_routing_put_port_mixer),
  11419. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11421. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11422. msm_routing_put_port_mixer),
  11423. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11425. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11426. msm_routing_put_port_mixer),
  11427. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11428. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11429. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11430. msm_routing_put_port_mixer),
  11431. };
  11432. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  11433. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11435. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  11436. msm_routing_put_port_mixer),
  11437. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11439. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11440. msm_routing_put_port_mixer),
  11441. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11443. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  11444. msm_routing_put_port_mixer),
  11445. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11447. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  11448. msm_routing_put_port_mixer),
  11449. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11451. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  11452. msm_routing_put_port_mixer),
  11453. };
  11454. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  11455. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11457. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11458. msm_routing_put_port_mixer),
  11459. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11461. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11462. msm_routing_put_port_mixer),
  11463. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11465. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11466. msm_routing_put_port_mixer),
  11467. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11469. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11470. msm_routing_put_port_mixer),
  11471. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11473. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11474. msm_routing_put_port_mixer),
  11475. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11477. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11478. msm_routing_put_port_mixer),
  11479. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11481. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11482. msm_routing_put_port_mixer),
  11483. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11485. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11486. msm_routing_put_port_mixer),
  11487. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11489. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11490. msm_routing_put_port_mixer),
  11491. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11493. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11494. msm_routing_put_port_mixer),
  11495. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11497. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11498. msm_routing_put_port_mixer),
  11499. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11501. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11502. msm_routing_put_port_mixer),
  11503. };
  11504. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  11505. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11506. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11507. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11508. msm_routing_put_port_mixer),
  11509. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11510. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11511. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11512. msm_routing_put_port_mixer),
  11513. };
  11514. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  11515. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_AFE_PCM_RX,
  11517. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11518. msm_routing_put_port_mixer),
  11519. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_AFE_PCM_RX,
  11521. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11522. msm_routing_put_port_mixer),
  11523. };
  11524. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  11525. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_HDMI_RX,
  11527. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11528. msm_routing_put_port_mixer),
  11529. };
  11530. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  11531. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11533. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11534. msm_routing_put_port_mixer),
  11535. };
  11536. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  11537. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11539. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11540. msm_routing_put_port_mixer),
  11541. };
  11542. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  11543. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_SEC_I2S_RX,
  11545. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11546. msm_routing_put_port_mixer),
  11547. };
  11548. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  11549. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_MI2S_RX,
  11551. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11552. msm_routing_put_port_mixer),
  11553. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_MI2S_RX,
  11555. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11556. msm_routing_put_port_mixer),
  11557. };
  11558. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  11559. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11561. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11562. msm_routing_put_port_mixer),
  11563. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11565. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11566. msm_routing_put_port_mixer),
  11567. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11569. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11570. msm_routing_put_port_mixer),
  11571. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11573. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11574. msm_routing_put_port_mixer),
  11575. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11577. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11578. msm_routing_put_port_mixer),
  11579. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11581. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11582. msm_routing_put_port_mixer),
  11583. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11585. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11586. msm_routing_put_port_mixer),
  11587. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11589. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11590. msm_routing_put_port_mixer),
  11591. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11593. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11594. msm_routing_put_port_mixer),
  11595. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11597. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11598. msm_routing_put_port_mixer),
  11599. };
  11600. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  11601. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_USB_RX,
  11603. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  11604. msm_routing_put_port_mixer),
  11605. };
  11606. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  11607. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11609. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11610. msm_routing_put_port_mixer),
  11611. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11613. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11614. msm_routing_put_port_mixer),
  11615. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11617. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11618. msm_routing_put_port_mixer),
  11619. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11621. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11622. msm_routing_put_port_mixer),
  11623. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11625. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11626. msm_routing_put_port_mixer),
  11627. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11629. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11630. msm_routing_put_port_mixer),
  11631. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11633. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11634. msm_routing_put_port_mixer),
  11635. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11637. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11638. msm_routing_put_port_mixer),
  11639. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11641. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11642. msm_routing_put_port_mixer),
  11643. };
  11644. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  11645. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11647. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11648. msm_routing_put_port_mixer),
  11649. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11651. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11652. msm_routing_put_port_mixer),
  11653. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11655. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11656. msm_routing_put_port_mixer),
  11657. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11659. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11660. msm_routing_put_port_mixer),
  11661. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11663. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11664. msm_routing_put_port_mixer),
  11665. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11667. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11668. msm_routing_put_port_mixer),
  11669. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11671. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11672. msm_routing_put_port_mixer),
  11673. };
  11674. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  11675. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11676. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11677. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11678. msm_routing_get_port_mixer,
  11679. msm_routing_put_port_mixer),
  11680. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11681. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11682. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11683. msm_routing_get_port_mixer,
  11684. msm_routing_put_port_mixer),
  11685. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11687. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11688. msm_routing_get_port_mixer,
  11689. msm_routing_put_port_mixer),
  11690. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11691. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11692. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11693. msm_routing_get_port_mixer,
  11694. msm_routing_put_port_mixer),
  11695. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11696. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11697. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11698. msm_routing_get_port_mixer,
  11699. msm_routing_put_port_mixer),
  11700. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11701. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11702. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11703. msm_routing_get_port_mixer,
  11704. msm_routing_put_port_mixer),
  11705. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11707. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11708. msm_routing_get_port_mixer,
  11709. msm_routing_put_port_mixer),
  11710. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11711. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11712. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11713. msm_routing_get_port_mixer,
  11714. msm_routing_put_port_mixer),
  11715. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11716. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11717. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11718. msm_routing_get_port_mixer,
  11719. msm_routing_put_port_mixer),
  11720. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11721. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11722. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11723. msm_routing_get_port_mixer,
  11724. msm_routing_put_port_mixer),
  11725. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11727. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11728. msm_routing_get_port_mixer,
  11729. msm_routing_put_port_mixer),
  11730. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11731. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11732. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11733. msm_routing_get_port_mixer,
  11734. msm_routing_put_port_mixer),
  11735. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11737. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11738. msm_routing_get_port_mixer,
  11739. msm_routing_put_port_mixer),
  11740. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11741. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11742. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11743. msm_routing_get_port_mixer,
  11744. msm_routing_put_port_mixer),
  11745. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11747. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11748. msm_routing_get_port_mixer,
  11749. msm_routing_put_port_mixer),
  11750. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11751. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11752. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11753. msm_routing_get_port_mixer,
  11754. msm_routing_put_port_mixer),
  11755. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11757. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11758. msm_routing_get_port_mixer,
  11759. msm_routing_put_port_mixer),
  11760. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11761. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11762. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11763. msm_routing_get_port_mixer,
  11764. msm_routing_put_port_mixer),
  11765. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11767. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11768. msm_routing_get_port_mixer,
  11769. msm_routing_put_port_mixer),
  11770. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11771. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11772. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11773. msm_routing_get_port_mixer,
  11774. msm_routing_put_port_mixer),
  11775. };
  11776. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  11777. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11779. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11780. msm_routing_get_port_mixer,
  11781. msm_routing_put_port_mixer),
  11782. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11783. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11784. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11785. msm_routing_get_port_mixer,
  11786. msm_routing_put_port_mixer),
  11787. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11788. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11789. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11790. msm_routing_get_port_mixer,
  11791. msm_routing_put_port_mixer),
  11792. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11793. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11794. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11795. msm_routing_get_port_mixer,
  11796. msm_routing_put_port_mixer),
  11797. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11799. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11800. msm_routing_get_port_mixer,
  11801. msm_routing_put_port_mixer),
  11802. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11803. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11804. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11805. msm_routing_get_port_mixer,
  11806. msm_routing_put_port_mixer),
  11807. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11809. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11810. msm_routing_get_port_mixer,
  11811. msm_routing_put_port_mixer),
  11812. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11813. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11814. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11815. msm_routing_get_port_mixer,
  11816. msm_routing_put_port_mixer),
  11817. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11819. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11820. msm_routing_get_port_mixer,
  11821. msm_routing_put_port_mixer),
  11822. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11823. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11824. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11825. msm_routing_get_port_mixer,
  11826. msm_routing_put_port_mixer),
  11827. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11829. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11830. msm_routing_get_port_mixer,
  11831. msm_routing_put_port_mixer),
  11832. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11833. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11834. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11835. msm_routing_get_port_mixer,
  11836. msm_routing_put_port_mixer),
  11837. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11839. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11840. msm_routing_get_port_mixer,
  11841. msm_routing_put_port_mixer),
  11842. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11843. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11844. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11845. msm_routing_get_port_mixer,
  11846. msm_routing_put_port_mixer),
  11847. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11849. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11850. msm_routing_get_port_mixer,
  11851. msm_routing_put_port_mixer),
  11852. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11853. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11854. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11855. msm_routing_get_port_mixer,
  11856. msm_routing_put_port_mixer),
  11857. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11858. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11859. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11860. msm_routing_get_port_mixer,
  11861. msm_routing_put_port_mixer),
  11862. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11863. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11864. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11865. msm_routing_get_port_mixer,
  11866. msm_routing_put_port_mixer),
  11867. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11869. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11870. msm_routing_get_port_mixer,
  11871. msm_routing_put_port_mixer),
  11872. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11874. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11875. msm_routing_get_port_mixer,
  11876. msm_routing_put_port_mixer),
  11877. };
  11878. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  11879. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11881. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11882. msm_routing_get_port_mixer,
  11883. msm_routing_put_port_mixer),
  11884. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11885. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11886. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11887. msm_routing_get_port_mixer,
  11888. msm_routing_put_port_mixer),
  11889. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11890. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11891. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11892. msm_routing_get_port_mixer,
  11893. msm_routing_put_port_mixer),
  11894. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11895. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11896. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11897. msm_routing_get_port_mixer,
  11898. msm_routing_put_port_mixer),
  11899. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11901. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11902. msm_routing_get_port_mixer,
  11903. msm_routing_put_port_mixer),
  11904. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11905. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11906. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11907. msm_routing_get_port_mixer,
  11908. msm_routing_put_port_mixer),
  11909. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11911. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11912. msm_routing_get_port_mixer,
  11913. msm_routing_put_port_mixer),
  11914. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11915. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11916. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11917. msm_routing_get_port_mixer,
  11918. msm_routing_put_port_mixer),
  11919. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11920. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11921. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11922. msm_routing_get_port_mixer,
  11923. msm_routing_put_port_mixer),
  11924. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11925. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11926. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11927. msm_routing_get_port_mixer,
  11928. msm_routing_put_port_mixer),
  11929. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11931. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11932. msm_routing_get_port_mixer,
  11933. msm_routing_put_port_mixer),
  11934. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11935. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11936. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11937. msm_routing_get_port_mixer,
  11938. msm_routing_put_port_mixer),
  11939. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11941. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11942. msm_routing_get_port_mixer,
  11943. msm_routing_put_port_mixer),
  11944. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11945. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11946. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11947. msm_routing_get_port_mixer,
  11948. msm_routing_put_port_mixer),
  11949. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11951. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11952. msm_routing_get_port_mixer,
  11953. msm_routing_put_port_mixer),
  11954. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11955. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11956. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11957. msm_routing_get_port_mixer,
  11958. msm_routing_put_port_mixer),
  11959. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11961. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11962. msm_routing_get_port_mixer,
  11963. msm_routing_put_port_mixer),
  11964. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11965. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11966. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11967. msm_routing_get_port_mixer,
  11968. msm_routing_put_port_mixer),
  11969. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11971. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11972. msm_routing_get_port_mixer,
  11973. msm_routing_put_port_mixer),
  11974. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11976. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11977. msm_routing_get_port_mixer,
  11978. msm_routing_put_port_mixer),
  11979. };
  11980. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  11981. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11983. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11984. msm_routing_get_port_mixer,
  11985. msm_routing_put_port_mixer),
  11986. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11987. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11988. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11989. msm_routing_get_port_mixer,
  11990. msm_routing_put_port_mixer),
  11991. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11993. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11994. msm_routing_get_port_mixer,
  11995. msm_routing_put_port_mixer),
  11996. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11997. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11998. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11999. msm_routing_get_port_mixer,
  12000. msm_routing_put_port_mixer),
  12001. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12003. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12004. msm_routing_get_port_mixer,
  12005. msm_routing_put_port_mixer),
  12006. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12007. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12008. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12009. msm_routing_get_port_mixer,
  12010. msm_routing_put_port_mixer),
  12011. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12013. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12014. msm_routing_get_port_mixer,
  12015. msm_routing_put_port_mixer),
  12016. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12017. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12018. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12019. msm_routing_get_port_mixer,
  12020. msm_routing_put_port_mixer),
  12021. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12023. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  12024. msm_routing_get_port_mixer,
  12025. msm_routing_put_port_mixer),
  12026. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12027. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12028. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  12029. msm_routing_get_port_mixer,
  12030. msm_routing_put_port_mixer),
  12031. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12033. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  12034. msm_routing_get_port_mixer,
  12035. msm_routing_put_port_mixer),
  12036. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12037. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12038. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  12039. msm_routing_get_port_mixer,
  12040. msm_routing_put_port_mixer),
  12041. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12043. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12044. msm_routing_get_port_mixer,
  12045. msm_routing_put_port_mixer),
  12046. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12047. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12048. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12049. msm_routing_get_port_mixer,
  12050. msm_routing_put_port_mixer),
  12051. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12053. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12054. msm_routing_get_port_mixer,
  12055. msm_routing_put_port_mixer),
  12056. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12057. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12058. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12059. msm_routing_get_port_mixer,
  12060. msm_routing_put_port_mixer),
  12061. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12063. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12064. msm_routing_get_port_mixer,
  12065. msm_routing_put_port_mixer),
  12066. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12068. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12069. msm_routing_get_port_mixer,
  12070. msm_routing_put_port_mixer),
  12071. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12073. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12074. msm_routing_get_port_mixer,
  12075. msm_routing_put_port_mixer),
  12076. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12077. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12078. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12079. msm_routing_get_port_mixer,
  12080. msm_routing_put_port_mixer),
  12081. };
  12082. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  12083. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12085. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12086. msm_routing_get_port_mixer,
  12087. msm_routing_put_port_mixer),
  12088. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12089. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12090. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12091. msm_routing_get_port_mixer,
  12092. msm_routing_put_port_mixer),
  12093. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12095. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12096. msm_routing_get_port_mixer,
  12097. msm_routing_put_port_mixer),
  12098. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12099. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12100. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12101. msm_routing_get_port_mixer,
  12102. msm_routing_put_port_mixer),
  12103. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12105. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12106. msm_routing_get_port_mixer,
  12107. msm_routing_put_port_mixer),
  12108. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12109. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12110. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12111. msm_routing_get_port_mixer,
  12112. msm_routing_put_port_mixer),
  12113. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12115. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12116. msm_routing_get_port_mixer,
  12117. msm_routing_put_port_mixer),
  12118. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12119. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12120. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12121. msm_routing_get_port_mixer,
  12122. msm_routing_put_port_mixer),
  12123. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12125. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12126. msm_routing_get_port_mixer,
  12127. msm_routing_put_port_mixer),
  12128. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12129. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12130. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12131. msm_routing_get_port_mixer,
  12132. msm_routing_put_port_mixer),
  12133. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12135. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12136. msm_routing_get_port_mixer,
  12137. msm_routing_put_port_mixer),
  12138. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12139. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12140. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12141. msm_routing_get_port_mixer,
  12142. msm_routing_put_port_mixer),
  12143. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12145. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12146. msm_routing_get_port_mixer,
  12147. msm_routing_put_port_mixer),
  12148. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12149. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12150. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12151. msm_routing_get_port_mixer,
  12152. msm_routing_put_port_mixer),
  12153. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12155. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12156. msm_routing_get_port_mixer,
  12157. msm_routing_put_port_mixer),
  12158. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12159. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12160. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12161. msm_routing_get_port_mixer,
  12162. msm_routing_put_port_mixer),
  12163. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12165. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12166. msm_routing_get_port_mixer,
  12167. msm_routing_put_port_mixer),
  12168. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12169. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12170. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12171. msm_routing_get_port_mixer,
  12172. msm_routing_put_port_mixer),
  12173. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12175. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12176. msm_routing_get_port_mixer,
  12177. msm_routing_put_port_mixer),
  12178. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12180. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12181. msm_routing_get_port_mixer,
  12182. msm_routing_put_port_mixer),
  12183. };
  12184. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  12185. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12186. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12187. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12188. msm_routing_get_port_mixer,
  12189. msm_routing_put_port_mixer),
  12190. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12191. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12192. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12193. msm_routing_get_port_mixer,
  12194. msm_routing_put_port_mixer),
  12195. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12197. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12198. msm_routing_get_port_mixer,
  12199. msm_routing_put_port_mixer),
  12200. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12201. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12202. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12203. msm_routing_get_port_mixer,
  12204. msm_routing_put_port_mixer),
  12205. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12207. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12208. msm_routing_get_port_mixer,
  12209. msm_routing_put_port_mixer),
  12210. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12211. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12212. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12213. msm_routing_get_port_mixer,
  12214. msm_routing_put_port_mixer),
  12215. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12217. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12218. msm_routing_get_port_mixer,
  12219. msm_routing_put_port_mixer),
  12220. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12221. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12222. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12223. msm_routing_get_port_mixer,
  12224. msm_routing_put_port_mixer),
  12225. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12227. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12228. msm_routing_get_port_mixer,
  12229. msm_routing_put_port_mixer),
  12230. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12231. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12232. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12233. msm_routing_get_port_mixer,
  12234. msm_routing_put_port_mixer),
  12235. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12237. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12238. msm_routing_get_port_mixer,
  12239. msm_routing_put_port_mixer),
  12240. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12241. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12242. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12243. msm_routing_get_port_mixer,
  12244. msm_routing_put_port_mixer),
  12245. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12247. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12248. msm_routing_get_port_mixer,
  12249. msm_routing_put_port_mixer),
  12250. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12251. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12252. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12253. msm_routing_get_port_mixer,
  12254. msm_routing_put_port_mixer),
  12255. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12256. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12257. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12258. msm_routing_get_port_mixer,
  12259. msm_routing_put_port_mixer),
  12260. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12262. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12263. msm_routing_get_port_mixer,
  12264. msm_routing_put_port_mixer),
  12265. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12267. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12268. msm_routing_get_port_mixer,
  12269. msm_routing_put_port_mixer),
  12270. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12271. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12272. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12273. msm_routing_get_port_mixer,
  12274. msm_routing_put_port_mixer),
  12275. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12277. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12278. msm_routing_get_port_mixer,
  12279. msm_routing_put_port_mixer),
  12280. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12281. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12282. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12283. msm_routing_get_port_mixer,
  12284. msm_routing_put_port_mixer),
  12285. };
  12286. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  12287. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12288. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12289. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12290. msm_routing_get_port_mixer,
  12291. msm_routing_put_port_mixer),
  12292. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12293. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12294. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12295. msm_routing_get_port_mixer,
  12296. msm_routing_put_port_mixer),
  12297. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12299. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12300. msm_routing_get_port_mixer,
  12301. msm_routing_put_port_mixer),
  12302. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12303. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12304. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12305. msm_routing_get_port_mixer,
  12306. msm_routing_put_port_mixer),
  12307. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12309. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12310. msm_routing_get_port_mixer,
  12311. msm_routing_put_port_mixer),
  12312. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12313. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12314. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12315. msm_routing_get_port_mixer,
  12316. msm_routing_put_port_mixer),
  12317. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12319. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12320. msm_routing_get_port_mixer,
  12321. msm_routing_put_port_mixer),
  12322. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12323. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12324. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12325. msm_routing_get_port_mixer,
  12326. msm_routing_put_port_mixer),
  12327. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12329. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12330. msm_routing_get_port_mixer,
  12331. msm_routing_put_port_mixer),
  12332. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12333. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12334. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12335. msm_routing_get_port_mixer,
  12336. msm_routing_put_port_mixer),
  12337. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12339. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12340. msm_routing_get_port_mixer,
  12341. msm_routing_put_port_mixer),
  12342. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12343. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12344. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12345. msm_routing_get_port_mixer,
  12346. msm_routing_put_port_mixer),
  12347. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12349. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12350. msm_routing_get_port_mixer,
  12351. msm_routing_put_port_mixer),
  12352. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12353. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12354. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12355. msm_routing_get_port_mixer,
  12356. msm_routing_put_port_mixer),
  12357. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12359. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12360. msm_routing_get_port_mixer,
  12361. msm_routing_put_port_mixer),
  12362. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12363. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12364. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12365. msm_routing_get_port_mixer,
  12366. msm_routing_put_port_mixer),
  12367. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12369. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12370. msm_routing_get_port_mixer,
  12371. msm_routing_put_port_mixer),
  12372. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12374. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12375. msm_routing_get_port_mixer,
  12376. msm_routing_put_port_mixer),
  12377. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12379. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12380. msm_routing_get_port_mixer,
  12381. msm_routing_put_port_mixer),
  12382. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12383. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12384. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12385. msm_routing_get_port_mixer,
  12386. msm_routing_put_port_mixer),
  12387. };
  12388. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  12389. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12390. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12391. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12392. msm_routing_get_port_mixer,
  12393. msm_routing_put_port_mixer),
  12394. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12395. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12396. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12397. msm_routing_get_port_mixer,
  12398. msm_routing_put_port_mixer),
  12399. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12401. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12402. msm_routing_get_port_mixer,
  12403. msm_routing_put_port_mixer),
  12404. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12405. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12406. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12407. msm_routing_get_port_mixer,
  12408. msm_routing_put_port_mixer),
  12409. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12411. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12412. msm_routing_get_port_mixer,
  12413. msm_routing_put_port_mixer),
  12414. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12415. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12416. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12417. msm_routing_get_port_mixer,
  12418. msm_routing_put_port_mixer),
  12419. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12421. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12422. msm_routing_get_port_mixer,
  12423. msm_routing_put_port_mixer),
  12424. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12425. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12426. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12427. msm_routing_get_port_mixer,
  12428. msm_routing_put_port_mixer),
  12429. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12431. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12432. msm_routing_get_port_mixer,
  12433. msm_routing_put_port_mixer),
  12434. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12435. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12436. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12437. msm_routing_get_port_mixer,
  12438. msm_routing_put_port_mixer),
  12439. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12441. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12442. msm_routing_get_port_mixer,
  12443. msm_routing_put_port_mixer),
  12444. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12445. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12446. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12447. msm_routing_get_port_mixer,
  12448. msm_routing_put_port_mixer),
  12449. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12451. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12452. msm_routing_get_port_mixer,
  12453. msm_routing_put_port_mixer),
  12454. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12455. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12456. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12457. msm_routing_get_port_mixer,
  12458. msm_routing_put_port_mixer),
  12459. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12461. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12462. msm_routing_get_port_mixer,
  12463. msm_routing_put_port_mixer),
  12464. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12465. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12466. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12467. msm_routing_get_port_mixer,
  12468. msm_routing_put_port_mixer),
  12469. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12471. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12472. msm_routing_get_port_mixer,
  12473. msm_routing_put_port_mixer),
  12474. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12475. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12476. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12477. msm_routing_get_port_mixer,
  12478. msm_routing_put_port_mixer),
  12479. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12481. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12482. msm_routing_get_port_mixer,
  12483. msm_routing_put_port_mixer),
  12484. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12485. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12486. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12487. msm_routing_get_port_mixer,
  12488. msm_routing_put_port_mixer),
  12489. };
  12490. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  12491. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12492. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12493. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12494. msm_routing_get_port_mixer,
  12495. msm_routing_put_port_mixer),
  12496. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12497. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12498. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12499. msm_routing_get_port_mixer,
  12500. msm_routing_put_port_mixer),
  12501. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12503. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12504. msm_routing_get_port_mixer,
  12505. msm_routing_put_port_mixer),
  12506. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12507. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12508. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12509. msm_routing_get_port_mixer,
  12510. msm_routing_put_port_mixer),
  12511. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12512. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12513. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12514. msm_routing_get_port_mixer,
  12515. msm_routing_put_port_mixer),
  12516. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12517. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12518. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12519. msm_routing_get_port_mixer,
  12520. msm_routing_put_port_mixer),
  12521. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12523. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12524. msm_routing_get_port_mixer,
  12525. msm_routing_put_port_mixer),
  12526. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12527. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12528. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12529. msm_routing_get_port_mixer,
  12530. msm_routing_put_port_mixer),
  12531. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12533. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12534. msm_routing_get_port_mixer,
  12535. msm_routing_put_port_mixer),
  12536. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12537. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12538. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12539. msm_routing_get_port_mixer,
  12540. msm_routing_put_port_mixer),
  12541. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12543. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12544. msm_routing_get_port_mixer,
  12545. msm_routing_put_port_mixer),
  12546. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12547. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12548. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12549. msm_routing_get_port_mixer,
  12550. msm_routing_put_port_mixer),
  12551. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12553. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12554. msm_routing_get_port_mixer,
  12555. msm_routing_put_port_mixer),
  12556. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12557. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12558. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12559. msm_routing_get_port_mixer,
  12560. msm_routing_put_port_mixer),
  12561. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12563. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12564. msm_routing_get_port_mixer,
  12565. msm_routing_put_port_mixer),
  12566. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12568. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12569. msm_routing_get_port_mixer,
  12570. msm_routing_put_port_mixer),
  12571. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12573. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12574. msm_routing_get_port_mixer,
  12575. msm_routing_put_port_mixer),
  12576. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12577. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12578. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12579. msm_routing_get_port_mixer,
  12580. msm_routing_put_port_mixer),
  12581. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12583. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12584. msm_routing_get_port_mixer,
  12585. msm_routing_put_port_mixer),
  12586. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12588. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12589. msm_routing_get_port_mixer,
  12590. msm_routing_put_port_mixer),
  12591. };
  12592. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  12593. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12594. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12595. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12596. msm_routing_get_port_mixer,
  12597. msm_routing_put_port_mixer),
  12598. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12599. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12600. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12601. msm_routing_get_port_mixer,
  12602. msm_routing_put_port_mixer),
  12603. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12605. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12606. msm_routing_get_port_mixer,
  12607. msm_routing_put_port_mixer),
  12608. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12609. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12610. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12611. msm_routing_get_port_mixer,
  12612. msm_routing_put_port_mixer),
  12613. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12614. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12615. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12616. msm_routing_get_port_mixer,
  12617. msm_routing_put_port_mixer),
  12618. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12620. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12621. msm_routing_get_port_mixer,
  12622. msm_routing_put_port_mixer),
  12623. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12625. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12626. msm_routing_get_port_mixer,
  12627. msm_routing_put_port_mixer),
  12628. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12629. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12630. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12631. msm_routing_get_port_mixer,
  12632. msm_routing_put_port_mixer),
  12633. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12635. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12636. msm_routing_get_port_mixer,
  12637. msm_routing_put_port_mixer),
  12638. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12640. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12641. msm_routing_get_port_mixer,
  12642. msm_routing_put_port_mixer),
  12643. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12645. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12646. msm_routing_get_port_mixer,
  12647. msm_routing_put_port_mixer),
  12648. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12649. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12650. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12651. msm_routing_get_port_mixer,
  12652. msm_routing_put_port_mixer),
  12653. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12654. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12655. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12656. msm_routing_get_port_mixer,
  12657. msm_routing_put_port_mixer),
  12658. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12659. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12660. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12661. msm_routing_get_port_mixer,
  12662. msm_routing_put_port_mixer),
  12663. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12665. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12666. msm_routing_get_port_mixer,
  12667. msm_routing_put_port_mixer),
  12668. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12669. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12670. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12671. msm_routing_get_port_mixer,
  12672. msm_routing_put_port_mixer),
  12673. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12675. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12676. msm_routing_get_port_mixer,
  12677. msm_routing_put_port_mixer),
  12678. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12679. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12680. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12681. msm_routing_get_port_mixer,
  12682. msm_routing_put_port_mixer),
  12683. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12685. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12686. msm_routing_get_port_mixer,
  12687. msm_routing_put_port_mixer),
  12688. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12689. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12690. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12691. msm_routing_get_port_mixer,
  12692. msm_routing_put_port_mixer),
  12693. };
  12694. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  12695. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12697. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12698. msm_routing_get_port_mixer,
  12699. msm_routing_put_port_mixer),
  12700. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12701. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12702. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12703. msm_routing_get_port_mixer,
  12704. msm_routing_put_port_mixer),
  12705. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12707. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12708. msm_routing_get_port_mixer,
  12709. msm_routing_put_port_mixer),
  12710. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12711. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12712. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12713. msm_routing_get_port_mixer,
  12714. msm_routing_put_port_mixer),
  12715. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12717. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12718. msm_routing_get_port_mixer,
  12719. msm_routing_put_port_mixer),
  12720. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12721. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12722. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12723. msm_routing_get_port_mixer,
  12724. msm_routing_put_port_mixer),
  12725. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12727. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12728. msm_routing_get_port_mixer,
  12729. msm_routing_put_port_mixer),
  12730. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12731. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12732. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12733. msm_routing_get_port_mixer,
  12734. msm_routing_put_port_mixer),
  12735. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12737. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12738. msm_routing_get_port_mixer,
  12739. msm_routing_put_port_mixer),
  12740. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12742. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12743. msm_routing_get_port_mixer,
  12744. msm_routing_put_port_mixer),
  12745. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12747. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12748. msm_routing_get_port_mixer,
  12749. msm_routing_put_port_mixer),
  12750. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12751. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12752. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12753. msm_routing_get_port_mixer,
  12754. msm_routing_put_port_mixer),
  12755. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12757. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12758. msm_routing_get_port_mixer,
  12759. msm_routing_put_port_mixer),
  12760. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12761. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12762. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12763. msm_routing_get_port_mixer,
  12764. msm_routing_put_port_mixer),
  12765. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12767. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12768. msm_routing_get_port_mixer,
  12769. msm_routing_put_port_mixer),
  12770. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12771. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12772. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12773. msm_routing_get_port_mixer,
  12774. msm_routing_put_port_mixer),
  12775. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12777. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12778. msm_routing_get_port_mixer,
  12779. msm_routing_put_port_mixer),
  12780. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12782. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12783. msm_routing_get_port_mixer,
  12784. msm_routing_put_port_mixer),
  12785. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12787. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12788. msm_routing_get_port_mixer,
  12789. msm_routing_put_port_mixer),
  12790. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12791. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12792. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12793. msm_routing_get_port_mixer,
  12794. msm_routing_put_port_mixer),
  12795. };
  12796. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  12797. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12799. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12800. msm_routing_get_port_mixer,
  12801. msm_routing_put_port_mixer),
  12802. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12803. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12804. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12805. msm_routing_get_port_mixer,
  12806. msm_routing_put_port_mixer),
  12807. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12809. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12810. msm_routing_get_port_mixer,
  12811. msm_routing_put_port_mixer),
  12812. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12813. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12814. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12815. msm_routing_get_port_mixer,
  12816. msm_routing_put_port_mixer),
  12817. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12819. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12820. msm_routing_get_port_mixer,
  12821. msm_routing_put_port_mixer),
  12822. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12823. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12824. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12825. msm_routing_get_port_mixer,
  12826. msm_routing_put_port_mixer),
  12827. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12829. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12830. msm_routing_get_port_mixer,
  12831. msm_routing_put_port_mixer),
  12832. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12833. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12834. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12835. msm_routing_get_port_mixer,
  12836. msm_routing_put_port_mixer),
  12837. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12839. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12840. msm_routing_get_port_mixer,
  12841. msm_routing_put_port_mixer),
  12842. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12843. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12844. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12845. msm_routing_get_port_mixer,
  12846. msm_routing_put_port_mixer),
  12847. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12849. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12850. msm_routing_get_port_mixer,
  12851. msm_routing_put_port_mixer),
  12852. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12853. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12854. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12855. msm_routing_get_port_mixer,
  12856. msm_routing_put_port_mixer),
  12857. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12859. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12860. msm_routing_get_port_mixer,
  12861. msm_routing_put_port_mixer),
  12862. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12863. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12864. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12865. msm_routing_get_port_mixer,
  12866. msm_routing_put_port_mixer),
  12867. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12868. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12869. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12870. msm_routing_get_port_mixer,
  12871. msm_routing_put_port_mixer),
  12872. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12873. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12874. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12875. msm_routing_get_port_mixer,
  12876. msm_routing_put_port_mixer),
  12877. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12879. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12880. msm_routing_get_port_mixer,
  12881. msm_routing_put_port_mixer),
  12882. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12884. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12885. msm_routing_get_port_mixer,
  12886. msm_routing_put_port_mixer),
  12887. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12889. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12890. msm_routing_get_port_mixer,
  12891. msm_routing_put_port_mixer),
  12892. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12894. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12895. msm_routing_get_port_mixer,
  12896. msm_routing_put_port_mixer),
  12897. };
  12898. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  12899. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12900. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12901. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12902. msm_routing_get_port_mixer,
  12903. msm_routing_put_port_mixer),
  12904. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12905. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12906. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12907. msm_routing_get_port_mixer,
  12908. msm_routing_put_port_mixer),
  12909. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12911. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12912. msm_routing_get_port_mixer,
  12913. msm_routing_put_port_mixer),
  12914. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12915. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12916. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12917. msm_routing_get_port_mixer,
  12918. msm_routing_put_port_mixer),
  12919. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12920. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12921. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12922. msm_routing_get_port_mixer,
  12923. msm_routing_put_port_mixer),
  12924. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12925. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12926. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12927. msm_routing_get_port_mixer,
  12928. msm_routing_put_port_mixer),
  12929. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12931. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12932. msm_routing_get_port_mixer,
  12933. msm_routing_put_port_mixer),
  12934. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12935. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12936. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12937. msm_routing_get_port_mixer,
  12938. msm_routing_put_port_mixer),
  12939. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12941. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12942. msm_routing_get_port_mixer,
  12943. msm_routing_put_port_mixer),
  12944. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12945. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12946. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12947. msm_routing_get_port_mixer,
  12948. msm_routing_put_port_mixer),
  12949. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12950. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12951. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12952. msm_routing_get_port_mixer,
  12953. msm_routing_put_port_mixer),
  12954. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12955. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12956. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12957. msm_routing_get_port_mixer,
  12958. msm_routing_put_port_mixer),
  12959. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12961. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12962. msm_routing_get_port_mixer,
  12963. msm_routing_put_port_mixer),
  12964. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12965. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12966. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12967. msm_routing_get_port_mixer,
  12968. msm_routing_put_port_mixer),
  12969. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12971. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12972. msm_routing_get_port_mixer,
  12973. msm_routing_put_port_mixer),
  12974. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12975. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12976. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12977. msm_routing_get_port_mixer,
  12978. msm_routing_put_port_mixer),
  12979. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12981. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12982. msm_routing_get_port_mixer,
  12983. msm_routing_put_port_mixer),
  12984. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12985. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12986. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12987. msm_routing_get_port_mixer,
  12988. msm_routing_put_port_mixer),
  12989. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12991. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12992. msm_routing_get_port_mixer,
  12993. msm_routing_put_port_mixer),
  12994. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12995. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12996. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12997. msm_routing_get_port_mixer,
  12998. msm_routing_put_port_mixer),
  12999. };
  13000. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  13001. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13002. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13003. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13004. msm_routing_get_port_mixer,
  13005. msm_routing_put_port_mixer),
  13006. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13007. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13008. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13009. msm_routing_get_port_mixer,
  13010. msm_routing_put_port_mixer),
  13011. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13013. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13014. msm_routing_get_port_mixer,
  13015. msm_routing_put_port_mixer),
  13016. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13017. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13018. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13019. msm_routing_get_port_mixer,
  13020. msm_routing_put_port_mixer),
  13021. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13023. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13024. msm_routing_get_port_mixer,
  13025. msm_routing_put_port_mixer),
  13026. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13028. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13029. msm_routing_get_port_mixer,
  13030. msm_routing_put_port_mixer),
  13031. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13033. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13034. msm_routing_get_port_mixer,
  13035. msm_routing_put_port_mixer),
  13036. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13037. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13038. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13039. msm_routing_get_port_mixer,
  13040. msm_routing_put_port_mixer),
  13041. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13042. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13043. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13044. msm_routing_get_port_mixer,
  13045. msm_routing_put_port_mixer),
  13046. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13047. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13048. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13049. msm_routing_get_port_mixer,
  13050. msm_routing_put_port_mixer),
  13051. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13052. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13053. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13054. msm_routing_get_port_mixer,
  13055. msm_routing_put_port_mixer),
  13056. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13057. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13058. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13059. msm_routing_get_port_mixer,
  13060. msm_routing_put_port_mixer),
  13061. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13063. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13064. msm_routing_get_port_mixer,
  13065. msm_routing_put_port_mixer),
  13066. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13068. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13069. msm_routing_get_port_mixer,
  13070. msm_routing_put_port_mixer),
  13071. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13073. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13074. msm_routing_get_port_mixer,
  13075. msm_routing_put_port_mixer),
  13076. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13077. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13078. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13079. msm_routing_get_port_mixer,
  13080. msm_routing_put_port_mixer),
  13081. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13083. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13084. msm_routing_get_port_mixer,
  13085. msm_routing_put_port_mixer),
  13086. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13088. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13089. msm_routing_get_port_mixer,
  13090. msm_routing_put_port_mixer),
  13091. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13093. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13094. msm_routing_get_port_mixer,
  13095. msm_routing_put_port_mixer),
  13096. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13097. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13098. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13099. msm_routing_get_port_mixer,
  13100. msm_routing_put_port_mixer),
  13101. };
  13102. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  13103. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13104. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13105. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13106. msm_routing_get_port_mixer,
  13107. msm_routing_put_port_mixer),
  13108. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13109. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13110. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13111. msm_routing_get_port_mixer,
  13112. msm_routing_put_port_mixer),
  13113. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13115. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13116. msm_routing_get_port_mixer,
  13117. msm_routing_put_port_mixer),
  13118. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13119. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13120. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13121. msm_routing_get_port_mixer,
  13122. msm_routing_put_port_mixer),
  13123. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13125. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13126. msm_routing_get_port_mixer,
  13127. msm_routing_put_port_mixer),
  13128. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13129. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13130. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13131. msm_routing_get_port_mixer,
  13132. msm_routing_put_port_mixer),
  13133. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13135. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13136. msm_routing_get_port_mixer,
  13137. msm_routing_put_port_mixer),
  13138. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13139. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13140. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13141. msm_routing_get_port_mixer,
  13142. msm_routing_put_port_mixer),
  13143. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13144. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13145. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13146. msm_routing_get_port_mixer,
  13147. msm_routing_put_port_mixer),
  13148. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13149. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13150. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13151. msm_routing_get_port_mixer,
  13152. msm_routing_put_port_mixer),
  13153. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13155. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13156. msm_routing_get_port_mixer,
  13157. msm_routing_put_port_mixer),
  13158. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13159. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13160. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13161. msm_routing_get_port_mixer,
  13162. msm_routing_put_port_mixer),
  13163. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13165. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13166. msm_routing_get_port_mixer,
  13167. msm_routing_put_port_mixer),
  13168. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13170. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13171. msm_routing_get_port_mixer,
  13172. msm_routing_put_port_mixer),
  13173. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13175. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13176. msm_routing_get_port_mixer,
  13177. msm_routing_put_port_mixer),
  13178. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13179. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13180. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13181. msm_routing_get_port_mixer,
  13182. msm_routing_put_port_mixer),
  13183. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13185. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13186. msm_routing_get_port_mixer,
  13187. msm_routing_put_port_mixer),
  13188. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13190. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13191. msm_routing_get_port_mixer,
  13192. msm_routing_put_port_mixer),
  13193. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13195. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13196. msm_routing_get_port_mixer,
  13197. msm_routing_put_port_mixer),
  13198. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13199. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13200. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13201. msm_routing_get_port_mixer,
  13202. msm_routing_put_port_mixer),
  13203. };
  13204. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  13205. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13207. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13208. msm_routing_get_port_mixer,
  13209. msm_routing_put_port_mixer),
  13210. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13211. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13212. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13213. msm_routing_get_port_mixer,
  13214. msm_routing_put_port_mixer),
  13215. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13216. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13217. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13218. msm_routing_get_port_mixer,
  13219. msm_routing_put_port_mixer),
  13220. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13221. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13222. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13223. msm_routing_get_port_mixer,
  13224. msm_routing_put_port_mixer),
  13225. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13227. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13228. msm_routing_get_port_mixer,
  13229. msm_routing_put_port_mixer),
  13230. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13231. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13232. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13233. msm_routing_get_port_mixer,
  13234. msm_routing_put_port_mixer),
  13235. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13236. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13237. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13238. msm_routing_get_port_mixer,
  13239. msm_routing_put_port_mixer),
  13240. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13242. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13243. msm_routing_get_port_mixer,
  13244. msm_routing_put_port_mixer),
  13245. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13247. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13248. msm_routing_get_port_mixer,
  13249. msm_routing_put_port_mixer),
  13250. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13251. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13252. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13253. msm_routing_get_port_mixer,
  13254. msm_routing_put_port_mixer),
  13255. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13257. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13258. msm_routing_get_port_mixer,
  13259. msm_routing_put_port_mixer),
  13260. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13262. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13263. msm_routing_get_port_mixer,
  13264. msm_routing_put_port_mixer),
  13265. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13266. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13267. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13268. msm_routing_get_port_mixer,
  13269. msm_routing_put_port_mixer),
  13270. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13271. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13272. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13273. msm_routing_get_port_mixer,
  13274. msm_routing_put_port_mixer),
  13275. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13277. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13278. msm_routing_get_port_mixer,
  13279. msm_routing_put_port_mixer),
  13280. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13282. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13283. msm_routing_get_port_mixer,
  13284. msm_routing_put_port_mixer),
  13285. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13286. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13287. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13288. msm_routing_get_port_mixer,
  13289. msm_routing_put_port_mixer),
  13290. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13291. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13292. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13293. msm_routing_get_port_mixer,
  13294. msm_routing_put_port_mixer),
  13295. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13297. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13298. msm_routing_get_port_mixer,
  13299. msm_routing_put_port_mixer),
  13300. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13302. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13303. msm_routing_get_port_mixer,
  13304. msm_routing_put_port_mixer),
  13305. };
  13306. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  13307. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13309. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13310. msm_routing_get_port_mixer,
  13311. msm_routing_put_port_mixer),
  13312. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13314. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13315. msm_routing_get_port_mixer,
  13316. msm_routing_put_port_mixer),
  13317. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13318. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13319. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13320. msm_routing_get_port_mixer,
  13321. msm_routing_put_port_mixer),
  13322. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13323. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13324. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13325. msm_routing_get_port_mixer,
  13326. msm_routing_put_port_mixer),
  13327. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13328. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13329. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13330. msm_routing_get_port_mixer,
  13331. msm_routing_put_port_mixer),
  13332. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13333. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13334. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13335. msm_routing_get_port_mixer,
  13336. msm_routing_put_port_mixer),
  13337. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13339. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13340. msm_routing_get_port_mixer,
  13341. msm_routing_put_port_mixer),
  13342. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13343. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13344. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13345. msm_routing_get_port_mixer,
  13346. msm_routing_put_port_mixer),
  13347. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13349. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13350. msm_routing_get_port_mixer,
  13351. msm_routing_put_port_mixer),
  13352. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13353. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13354. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13355. msm_routing_get_port_mixer,
  13356. msm_routing_put_port_mixer),
  13357. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13358. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13359. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13360. msm_routing_get_port_mixer,
  13361. msm_routing_put_port_mixer),
  13362. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13363. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13364. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13365. msm_routing_get_port_mixer,
  13366. msm_routing_put_port_mixer),
  13367. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13369. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13370. msm_routing_get_port_mixer,
  13371. msm_routing_put_port_mixer),
  13372. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13373. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13374. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13375. msm_routing_get_port_mixer,
  13376. msm_routing_put_port_mixer),
  13377. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13378. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13379. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13380. msm_routing_get_port_mixer,
  13381. msm_routing_put_port_mixer),
  13382. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13383. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13384. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13385. msm_routing_get_port_mixer,
  13386. msm_routing_put_port_mixer),
  13387. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13389. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13390. msm_routing_get_port_mixer,
  13391. msm_routing_put_port_mixer),
  13392. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13394. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13395. msm_routing_get_port_mixer,
  13396. msm_routing_put_port_mixer),
  13397. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13398. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13399. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13400. msm_routing_get_port_mixer,
  13401. msm_routing_put_port_mixer),
  13402. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13403. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13404. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13405. msm_routing_get_port_mixer,
  13406. msm_routing_put_port_mixer),
  13407. };
  13408. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  13409. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13411. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13412. msm_routing_get_port_mixer,
  13413. msm_routing_put_port_mixer),
  13414. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13415. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13416. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13417. msm_routing_get_port_mixer,
  13418. msm_routing_put_port_mixer),
  13419. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13420. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13421. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13422. msm_routing_get_port_mixer,
  13423. msm_routing_put_port_mixer),
  13424. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13425. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13426. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13427. msm_routing_get_port_mixer,
  13428. msm_routing_put_port_mixer),
  13429. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13430. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13431. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13432. msm_routing_get_port_mixer,
  13433. msm_routing_put_port_mixer),
  13434. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13435. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13436. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13437. msm_routing_get_port_mixer,
  13438. msm_routing_put_port_mixer),
  13439. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13441. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13442. msm_routing_get_port_mixer,
  13443. msm_routing_put_port_mixer),
  13444. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13445. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13446. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13447. msm_routing_get_port_mixer,
  13448. msm_routing_put_port_mixer),
  13449. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13451. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13452. msm_routing_get_port_mixer,
  13453. msm_routing_put_port_mixer),
  13454. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13455. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13456. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13457. msm_routing_get_port_mixer,
  13458. msm_routing_put_port_mixer),
  13459. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13461. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13462. msm_routing_get_port_mixer,
  13463. msm_routing_put_port_mixer),
  13464. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13465. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13466. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13467. msm_routing_get_port_mixer,
  13468. msm_routing_put_port_mixer),
  13469. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13470. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13471. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13472. msm_routing_get_port_mixer,
  13473. msm_routing_put_port_mixer),
  13474. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13475. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13476. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13477. msm_routing_get_port_mixer,
  13478. msm_routing_put_port_mixer),
  13479. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13481. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13482. msm_routing_get_port_mixer,
  13483. msm_routing_put_port_mixer),
  13484. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13485. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13486. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13487. msm_routing_get_port_mixer,
  13488. msm_routing_put_port_mixer),
  13489. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13491. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13492. msm_routing_get_port_mixer,
  13493. msm_routing_put_port_mixer),
  13494. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13495. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13496. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13497. msm_routing_get_port_mixer,
  13498. msm_routing_put_port_mixer),
  13499. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13501. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13502. msm_routing_get_port_mixer,
  13503. msm_routing_put_port_mixer),
  13504. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13505. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13506. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13507. msm_routing_get_port_mixer,
  13508. msm_routing_put_port_mixer),
  13509. };
  13510. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  13511. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13513. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13514. msm_routing_get_port_mixer,
  13515. msm_routing_put_port_mixer),
  13516. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13517. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13518. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13519. msm_routing_get_port_mixer,
  13520. msm_routing_put_port_mixer),
  13521. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13522. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13523. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13524. msm_routing_get_port_mixer,
  13525. msm_routing_put_port_mixer),
  13526. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13527. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13528. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13529. msm_routing_get_port_mixer,
  13530. msm_routing_put_port_mixer),
  13531. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13533. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13534. msm_routing_get_port_mixer,
  13535. msm_routing_put_port_mixer),
  13536. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13537. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13538. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13539. msm_routing_get_port_mixer,
  13540. msm_routing_put_port_mixer),
  13541. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13542. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13543. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13544. msm_routing_get_port_mixer,
  13545. msm_routing_put_port_mixer),
  13546. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13547. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13548. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13549. msm_routing_get_port_mixer,
  13550. msm_routing_put_port_mixer),
  13551. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13553. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13554. msm_routing_get_port_mixer,
  13555. msm_routing_put_port_mixer),
  13556. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13557. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13558. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13559. msm_routing_get_port_mixer,
  13560. msm_routing_put_port_mixer),
  13561. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13562. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13563. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13564. msm_routing_get_port_mixer,
  13565. msm_routing_put_port_mixer),
  13566. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13567. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13568. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13569. msm_routing_get_port_mixer,
  13570. msm_routing_put_port_mixer),
  13571. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13573. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13574. msm_routing_get_port_mixer,
  13575. msm_routing_put_port_mixer),
  13576. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13577. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13578. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13579. msm_routing_get_port_mixer,
  13580. msm_routing_put_port_mixer),
  13581. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13582. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13583. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13584. msm_routing_get_port_mixer,
  13585. msm_routing_put_port_mixer),
  13586. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13587. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13588. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13589. msm_routing_get_port_mixer,
  13590. msm_routing_put_port_mixer),
  13591. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13593. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13594. msm_routing_get_port_mixer,
  13595. msm_routing_put_port_mixer),
  13596. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13597. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13598. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13599. msm_routing_get_port_mixer,
  13600. msm_routing_put_port_mixer),
  13601. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13602. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13603. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13604. msm_routing_get_port_mixer,
  13605. msm_routing_put_port_mixer),
  13606. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13607. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13608. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13609. msm_routing_get_port_mixer,
  13610. msm_routing_put_port_mixer),
  13611. };
  13612. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  13613. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13614. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13615. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13616. msm_routing_get_port_mixer,
  13617. msm_routing_put_port_mixer),
  13618. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13619. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13620. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13621. msm_routing_get_port_mixer,
  13622. msm_routing_put_port_mixer),
  13623. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13624. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13625. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13626. msm_routing_get_port_mixer,
  13627. msm_routing_put_port_mixer),
  13628. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13629. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13630. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13631. msm_routing_get_port_mixer,
  13632. msm_routing_put_port_mixer),
  13633. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13635. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13636. msm_routing_get_port_mixer,
  13637. msm_routing_put_port_mixer),
  13638. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13639. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13640. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13641. msm_routing_get_port_mixer,
  13642. msm_routing_put_port_mixer),
  13643. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13644. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13645. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13646. msm_routing_get_port_mixer,
  13647. msm_routing_put_port_mixer),
  13648. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13650. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13651. msm_routing_get_port_mixer,
  13652. msm_routing_put_port_mixer),
  13653. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13655. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13656. msm_routing_get_port_mixer,
  13657. msm_routing_put_port_mixer),
  13658. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13659. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13660. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13661. msm_routing_get_port_mixer,
  13662. msm_routing_put_port_mixer),
  13663. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13665. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13666. msm_routing_get_port_mixer,
  13667. msm_routing_put_port_mixer),
  13668. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13669. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13670. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13671. msm_routing_get_port_mixer,
  13672. msm_routing_put_port_mixer),
  13673. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13675. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13676. msm_routing_get_port_mixer,
  13677. msm_routing_put_port_mixer),
  13678. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13679. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13680. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13681. msm_routing_get_port_mixer,
  13682. msm_routing_put_port_mixer),
  13683. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13685. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13686. msm_routing_get_port_mixer,
  13687. msm_routing_put_port_mixer),
  13688. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13689. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13690. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13691. msm_routing_get_port_mixer,
  13692. msm_routing_put_port_mixer),
  13693. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13695. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13696. msm_routing_get_port_mixer,
  13697. msm_routing_put_port_mixer),
  13698. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13699. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13700. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13701. msm_routing_get_port_mixer,
  13702. msm_routing_put_port_mixer),
  13703. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13705. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13706. msm_routing_get_port_mixer,
  13707. msm_routing_put_port_mixer),
  13708. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13709. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13710. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13711. msm_routing_get_port_mixer,
  13712. msm_routing_put_port_mixer),
  13713. };
  13714. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  13715. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13717. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13718. msm_routing_put_port_mixer),
  13719. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13721. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13722. msm_routing_put_port_mixer),
  13723. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13725. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13726. msm_routing_put_port_mixer),
  13727. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13729. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13730. msm_routing_put_port_mixer),
  13731. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13732. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13733. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13734. msm_routing_put_port_mixer),
  13735. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13736. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13737. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13738. msm_routing_put_port_mixer),
  13739. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13740. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13741. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13742. msm_routing_put_port_mixer),
  13743. };
  13744. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  13745. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13747. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13748. msm_routing_put_port_mixer),
  13749. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13751. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13752. msm_routing_put_port_mixer),
  13753. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13755. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13756. msm_routing_put_port_mixer),
  13757. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13759. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13760. msm_routing_put_port_mixer),
  13761. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13763. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13764. msm_routing_put_port_mixer),
  13765. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13767. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13768. msm_routing_put_port_mixer),
  13769. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13771. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13772. msm_routing_put_port_mixer),
  13773. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13775. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13776. msm_routing_put_port_mixer),
  13777. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13779. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13780. msm_routing_put_port_mixer),
  13781. };
  13782. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  13783. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13785. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13786. msm_routing_put_listen_mixer),
  13787. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13789. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13790. msm_routing_put_listen_mixer),
  13791. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13793. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13794. msm_routing_put_listen_mixer),
  13795. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13797. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13798. msm_routing_put_listen_mixer),
  13799. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13801. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13802. msm_routing_put_listen_mixer),
  13803. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13805. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13806. msm_routing_put_listen_mixer),
  13807. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13808. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13809. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13810. msm_routing_put_listen_mixer),
  13811. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13813. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13814. msm_routing_put_listen_mixer),
  13815. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13817. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13818. msm_routing_put_listen_mixer),
  13819. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13821. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13822. msm_routing_put_listen_mixer),
  13823. };
  13824. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  13825. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13827. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13828. msm_routing_put_listen_mixer),
  13829. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  13830. SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13832. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13833. msm_routing_put_listen_mixer),
  13834. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13835. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13836. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13837. msm_routing_put_listen_mixer),
  13838. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13839. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13840. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13841. msm_routing_put_listen_mixer),
  13842. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13843. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13844. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13845. msm_routing_put_listen_mixer),
  13846. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13847. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13848. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13849. msm_routing_put_listen_mixer),
  13850. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13851. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13852. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13853. msm_routing_put_listen_mixer),
  13854. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13855. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13856. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13857. msm_routing_put_listen_mixer),
  13858. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13859. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13860. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13861. msm_routing_put_listen_mixer),
  13862. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13863. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13864. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13865. msm_routing_put_listen_mixer),
  13866. };
  13867. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  13868. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13869. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13870. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13871. msm_routing_put_listen_mixer),
  13872. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13873. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13874. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13875. msm_routing_put_listen_mixer),
  13876. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13877. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13878. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13879. msm_routing_put_listen_mixer),
  13880. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13881. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13882. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13883. msm_routing_put_listen_mixer),
  13884. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13885. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13886. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13887. msm_routing_put_listen_mixer),
  13888. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13889. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13890. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13891. msm_routing_put_listen_mixer),
  13892. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13893. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13894. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13895. msm_routing_put_listen_mixer),
  13896. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13897. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13898. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13899. msm_routing_put_listen_mixer),
  13900. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13901. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13902. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13903. msm_routing_put_listen_mixer),
  13904. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13905. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13906. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13907. msm_routing_put_listen_mixer),
  13908. };
  13909. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  13910. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13911. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13912. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13913. msm_routing_put_listen_mixer),
  13914. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13915. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13916. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13917. msm_routing_put_listen_mixer),
  13918. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13919. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13920. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13921. msm_routing_put_listen_mixer),
  13922. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13923. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13924. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13925. msm_routing_put_listen_mixer),
  13926. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13927. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13928. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13929. msm_routing_put_listen_mixer),
  13930. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13931. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13932. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13933. msm_routing_put_listen_mixer),
  13934. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13935. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13936. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13937. msm_routing_put_listen_mixer),
  13938. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13939. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13940. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13941. msm_routing_put_listen_mixer),
  13942. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13944. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13945. msm_routing_put_listen_mixer),
  13946. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13948. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13949. msm_routing_put_listen_mixer),
  13950. };
  13951. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  13952. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13953. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13954. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13955. msm_routing_put_listen_mixer),
  13956. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13957. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13958. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13959. msm_routing_put_listen_mixer),
  13960. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13961. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13962. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13963. msm_routing_put_listen_mixer),
  13964. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13965. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13966. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13967. msm_routing_put_listen_mixer),
  13968. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13969. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13970. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13971. msm_routing_put_listen_mixer),
  13972. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13973. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13974. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13975. msm_routing_put_listen_mixer),
  13976. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13977. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13978. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13979. msm_routing_put_listen_mixer),
  13980. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13981. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13982. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13983. msm_routing_put_listen_mixer),
  13984. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13985. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13986. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13987. msm_routing_put_listen_mixer),
  13988. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13989. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13990. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13991. msm_routing_put_listen_mixer),
  13992. };
  13993. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  13994. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13996. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13997. msm_routing_put_listen_mixer),
  13998. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14000. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  14001. msm_routing_put_listen_mixer),
  14002. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14004. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  14005. msm_routing_put_listen_mixer),
  14006. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  14007. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  14008. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  14009. msm_routing_put_listen_mixer),
  14010. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  14011. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  14012. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  14013. msm_routing_put_listen_mixer),
  14014. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14015. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14016. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  14017. msm_routing_put_listen_mixer),
  14018. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14019. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14020. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  14021. msm_routing_put_listen_mixer),
  14022. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14023. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14024. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  14025. msm_routing_put_listen_mixer),
  14026. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14027. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14028. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  14029. msm_routing_put_listen_mixer),
  14030. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14031. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14032. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  14033. msm_routing_put_listen_mixer),
  14034. };
  14035. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  14036. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  14037. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14038. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14039. msm_routing_put_listen_mixer),
  14040. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  14041. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14042. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14043. msm_routing_put_listen_mixer),
  14044. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  14045. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14046. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14047. msm_routing_put_listen_mixer),
  14048. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  14049. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  14050. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14051. msm_routing_put_listen_mixer),
  14052. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  14053. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  14054. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14055. msm_routing_put_listen_mixer),
  14056. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14057. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14058. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14059. msm_routing_put_listen_mixer),
  14060. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14061. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14062. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14063. msm_routing_put_listen_mixer),
  14064. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14065. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14066. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14067. msm_routing_put_listen_mixer),
  14068. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14069. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14070. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14071. msm_routing_put_listen_mixer),
  14072. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14073. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14074. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14075. msm_routing_put_listen_mixer),
  14076. };
  14077. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  14078. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  14079. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14080. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14081. msm_routing_put_listen_mixer),
  14082. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  14083. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14084. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14085. msm_routing_put_listen_mixer),
  14086. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  14087. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14088. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14089. msm_routing_put_listen_mixer),
  14090. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  14091. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  14092. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14093. msm_routing_put_listen_mixer),
  14094. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  14095. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  14096. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14097. msm_routing_put_listen_mixer),
  14098. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14099. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14100. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14101. msm_routing_put_listen_mixer),
  14102. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14103. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14104. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14105. msm_routing_put_listen_mixer),
  14106. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14107. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14108. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14109. msm_routing_put_listen_mixer),
  14110. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14111. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14112. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14113. msm_routing_put_listen_mixer),
  14114. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14116. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14117. msm_routing_put_listen_mixer),
  14118. };
  14119. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  14120. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14121. 0, 1, 0, msm_routing_get_switch_mixer,
  14122. msm_routing_put_switch_mixer);
  14123. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  14124. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14125. 0, 1, 0, msm_routing_get_switch_mixer,
  14126. msm_routing_put_switch_mixer);
  14127. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  14128. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14129. 0, 1, 0, msm_routing_get_switch_mixer,
  14130. msm_routing_put_switch_mixer);
  14131. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  14132. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14133. 0, 1, 0, msm_routing_get_switch_mixer,
  14134. msm_routing_put_switch_mixer);
  14135. static const struct snd_kcontrol_new cdc_dma_fm_switch_mixer_controls =
  14136. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14137. 0, 1, 0, msm_routing_get_switch_mixer,
  14138. msm_routing_put_switch_mixer);
  14139. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  14140. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14141. 0, 1, 0, msm_routing_get_switch_mixer,
  14142. msm_routing_put_switch_mixer);
  14143. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  14144. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14145. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  14146. msm_routing_put_fm_pcmrx_switch_mixer);
  14147. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  14148. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14149. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  14150. msm_routing_put_int0_mi2s_switch_mixer);
  14151. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  14152. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14153. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  14154. msm_routing_put_int4_mi2s_switch_mixer);
  14155. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  14156. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14157. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  14158. msm_routing_put_pri_mi2s_switch_mixer);
  14159. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  14160. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14161. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  14162. msm_routing_put_sec_mi2s_switch_mixer);
  14163. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  14164. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14165. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  14166. msm_routing_put_tert_mi2s_switch_mixer);
  14167. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  14168. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14169. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  14170. msm_routing_put_quat_mi2s_switch_mixer);
  14171. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  14172. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14173. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  14174. msm_routing_put_quin_mi2s_switch_mixer);
  14175. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  14176. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14177. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  14178. msm_routing_put_hfp_switch_mixer);
  14179. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  14180. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14181. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  14182. msm_routing_put_hfp_switch_mixer);
  14183. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  14184. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14185. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  14186. msm_routing_put_hfp_switch_mixer);
  14187. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  14188. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14189. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  14190. msm_routing_put_hfp_switch_mixer);
  14191. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  14192. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14193. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  14194. msm_routing_put_usb_switch_mixer);
  14195. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  14196. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14197. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  14198. msm_routing_a2dp_switch_mixer_put);
  14199. static const struct soc_enum lsm_port_enum =
  14200. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  14201. static const char * const lsm_func_text[] = {
  14202. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  14203. };
  14204. static const struct soc_enum lsm_func_enum =
  14205. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  14206. static const struct snd_kcontrol_new lsm_controls[] = {
  14207. /* kcontrol of lsm_function */
  14208. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14209. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14210. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14211. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14212. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14213. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14214. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14215. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14216. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14217. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14218. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14219. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14220. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14221. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14222. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14223. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14224. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14225. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14226. /* kcontrol of lsm_port */
  14227. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  14228. msm_routing_lsm_port_get,
  14229. msm_routing_lsm_port_put),
  14230. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  14231. msm_routing_lsm_port_get,
  14232. msm_routing_lsm_port_put),
  14233. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  14234. msm_routing_lsm_port_get,
  14235. msm_routing_lsm_port_put),
  14236. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  14237. msm_routing_lsm_port_get,
  14238. msm_routing_lsm_port_put),
  14239. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  14240. msm_routing_lsm_port_get,
  14241. msm_routing_lsm_port_put),
  14242. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  14243. msm_routing_lsm_port_get,
  14244. msm_routing_lsm_port_put),
  14245. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  14246. msm_routing_lsm_port_get,
  14247. msm_routing_lsm_port_put),
  14248. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  14249. msm_routing_lsm_port_get,
  14250. msm_routing_lsm_port_put),
  14251. };
  14252. static const char * const aanc_slim_0_rx_text[] = {
  14253. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  14254. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  14255. };
  14256. static const struct soc_enum aanc_slim_0_rx_enum =
  14257. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  14258. aanc_slim_0_rx_text);
  14259. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  14260. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  14261. msm_routing_slim_0_rx_aanc_mux_get,
  14262. msm_routing_slim_0_rx_aanc_mux_put)
  14263. };
  14264. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  14265. struct snd_ctl_elem_value *ucontrol)
  14266. {
  14267. ucontrol->value.integer.value[0] = aanc_level;
  14268. return 0;
  14269. }
  14270. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  14271. struct snd_ctl_elem_value *ucontrol)
  14272. {
  14273. int ret = 0;
  14274. mutex_lock(&routing_lock);
  14275. aanc_level = ucontrol->value.integer.value[0];
  14276. pr_debug("%s: value: %ld\n",
  14277. __func__, ucontrol->value.integer.value[0]);
  14278. ret = afe_set_aanc_noise_level(aanc_level);
  14279. mutex_unlock(&routing_lock);
  14280. return ret;
  14281. }
  14282. static const struct snd_kcontrol_new aanc_noise_level[] = {
  14283. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  14284. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  14285. };
  14286. static int msm_routing_get_stereo_to_custom_stereo_control(
  14287. struct snd_kcontrol *kcontrol,
  14288. struct snd_ctl_elem_value *ucontrol)
  14289. {
  14290. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  14291. return 0;
  14292. }
  14293. static int msm_routing_put_stereo_to_custom_stereo_control(
  14294. struct snd_kcontrol *kcontrol,
  14295. struct snd_ctl_elem_value *ucontrol)
  14296. {
  14297. int flag = 0, i = 0, rc = 0, idx = 0;
  14298. int be_index = 0, port_id, topo_id;
  14299. unsigned int session_id = 0;
  14300. uint16_t op_FL_ip_FL_weight = 0;
  14301. uint16_t op_FL_ip_FR_weight = 0;
  14302. uint16_t op_FR_ip_FL_weight = 0;
  14303. uint16_t op_FR_ip_FR_weight = 0;
  14304. flag = ucontrol->value.integer.value[0];
  14305. pr_debug("%s E flag %d\n", __func__, flag);
  14306. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  14307. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  14308. __func__, is_custom_stereo_on, flag);
  14309. return 0;
  14310. }
  14311. is_custom_stereo_on = flag ? true : false;
  14312. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  14313. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  14314. port_id = msm_bedais[be_index].port_id;
  14315. if (!msm_bedais[be_index].active)
  14316. continue;
  14317. if ((port_id != SLIMBUS_0_RX) &&
  14318. (port_id != RT_PROXY_PORT_001_RX) &&
  14319. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  14320. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  14321. continue;
  14322. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  14323. MSM_FRONTEND_DAI_MM_SIZE) {
  14324. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  14325. LEGACY_PCM_MODE)
  14326. goto skip_send_custom_stereo;
  14327. session_id =
  14328. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  14329. if (is_custom_stereo_on) {
  14330. op_FL_ip_FL_weight =
  14331. Q14_GAIN_ZERO_POINT_FIVE;
  14332. op_FL_ip_FR_weight =
  14333. Q14_GAIN_ZERO_POINT_FIVE;
  14334. op_FR_ip_FL_weight =
  14335. Q14_GAIN_ZERO_POINT_FIVE;
  14336. op_FR_ip_FR_weight =
  14337. Q14_GAIN_ZERO_POINT_FIVE;
  14338. } else {
  14339. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  14340. op_FL_ip_FR_weight = 0;
  14341. op_FR_ip_FL_weight = 0;
  14342. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  14343. }
  14344. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14345. unsigned long copp =
  14346. session_copp_map[i]
  14347. [SESSION_TYPE_RX][be_index];
  14348. if (!test_bit(idx, &copp))
  14349. goto skip_send_custom_stereo;
  14350. topo_id = adm_get_topology_for_port_copp_idx(
  14351. msm_bedais[be_index].port_id, idx);
  14352. if (topo_id < 0)
  14353. pr_debug("%s:Err:custom stereo topo %d",
  14354. __func__, topo_id);
  14355. pr_debug("idx %d\n", idx);
  14356. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  14357. rc = msm_ds2_dap_set_custom_stereo_onoff
  14358. (msm_bedais[be_index].port_id,
  14359. idx, is_custom_stereo_on);
  14360. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  14361. rc = dolby_dap_set_custom_stereo_onoff(
  14362. msm_bedais[be_index].port_id,
  14363. idx, is_custom_stereo_on);
  14364. else
  14365. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  14366. (msm_bedais[be_index].port_id,
  14367. idx, session_id,
  14368. op_FL_ip_FL_weight,
  14369. op_FL_ip_FR_weight,
  14370. op_FR_ip_FL_weight,
  14371. op_FR_ip_FR_weight);
  14372. if (rc < 0)
  14373. skip_send_custom_stereo:
  14374. pr_err("%s: err setting custom stereo\n",
  14375. __func__);
  14376. }
  14377. }
  14378. }
  14379. return 0;
  14380. }
  14381. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  14382. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  14383. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  14384. msm_routing_put_stereo_to_custom_stereo_control),
  14385. };
  14386. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14387. struct snd_ctl_elem_value *ucontrol)
  14388. {
  14389. return 0;
  14390. }
  14391. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14392. struct snd_ctl_elem_value *ucontrol)
  14393. {
  14394. int i = 0, j;
  14395. int num_app_types = ucontrol->value.integer.value[i++];
  14396. pr_debug("%s\n", __func__);
  14397. memset(app_type_cfg, 0, MAX_APP_TYPES*
  14398. sizeof(struct msm_pcm_routing_app_type_data));
  14399. if (num_app_types > MAX_APP_TYPES) {
  14400. pr_err("%s: number of app types exceed the max supported\n",
  14401. __func__);
  14402. return -EINVAL;
  14403. }
  14404. for (j = 0; j < num_app_types; j++) {
  14405. app_type_cfg[j].app_type =
  14406. ucontrol->value.integer.value[i++];
  14407. app_type_cfg[j].sample_rate =
  14408. ucontrol->value.integer.value[i++];
  14409. app_type_cfg[j].bit_width =
  14410. ucontrol->value.integer.value[i++];
  14411. }
  14412. return 0;
  14413. }
  14414. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  14415. struct snd_ctl_elem_value *ucontrol)
  14416. {
  14417. int j, fe_id, be_id, port_type;
  14418. int ret = 0;
  14419. unsigned long copp;
  14420. struct msm_pcm_routing_bdai_data *bedai;
  14421. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14422. SESSION_TYPE_RX;
  14423. int app_type = ucontrol->value.integer.value[1];
  14424. int gain = (ucontrol->value.integer.value[2] +
  14425. ucontrol->value.integer.value[3])/2;
  14426. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14427. MSM_AFE_PORT_TYPE_TX;
  14428. mutex_lock(&routing_lock);
  14429. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14430. if (is_be_dai_extproc(be_id))
  14431. continue;
  14432. bedai = &msm_bedais[be_id];
  14433. if (afe_get_port_type(bedai->port_id) != port_type)
  14434. continue;
  14435. if (!bedai->active)
  14436. continue;
  14437. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14438. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14439. continue;
  14440. if (app_type !=
  14441. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14442. continue;
  14443. copp = session_copp_map[fe_id][dir][be_id];
  14444. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  14445. if (!test_bit(j, &copp))
  14446. continue;
  14447. ret |= adm_set_volume(bedai->port_id, j, gain);
  14448. }
  14449. }
  14450. }
  14451. mutex_unlock(&routing_lock);
  14452. return ret ? -EINVAL : 0;
  14453. }
  14454. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  14455. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  14456. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  14457. msm_routing_put_app_type_cfg_control),
  14458. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  14459. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  14460. };
  14461. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  14462. struct snd_ctl_elem_value *ucontrol)
  14463. {
  14464. int copp_idx, fe_id, be_id, port_type;
  14465. int ret = 0;
  14466. unsigned long copp;
  14467. struct msm_pcm_routing_bdai_data *bedai;
  14468. u8 *packed_params = NULL;
  14469. struct param_hdr_v3 param_hdr;
  14470. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  14471. sizeof(uint32_t));
  14472. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14473. SESSION_TYPE_RX;
  14474. int app_type = ucontrol->value.integer.value[1];
  14475. int module_id = ucontrol->value.integer.value[2];
  14476. int instance_id = ucontrol->value.integer.value[3];
  14477. int param_id = ucontrol->value.integer.value[4];
  14478. int param_value = ucontrol->value.integer.value[5];
  14479. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14480. MSM_AFE_PORT_TYPE_TX;
  14481. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  14482. __func__, app_type, module_id,
  14483. instance_id, param_id, param_value);
  14484. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  14485. if (!packed_params)
  14486. return -ENOMEM;
  14487. memset(&param_hdr, 0, sizeof(param_hdr));
  14488. param_hdr.module_id = module_id;
  14489. param_hdr.instance_id = instance_id;
  14490. param_hdr.param_id = param_id;
  14491. param_hdr.param_size = sizeof(uint32_t);
  14492. packed_param_size = 0;
  14493. mutex_lock(&routing_lock);
  14494. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14495. if (is_be_dai_extproc(be_id))
  14496. continue;
  14497. bedai = &msm_bedais[be_id];
  14498. if (afe_get_port_type(bedai->port_id) != port_type)
  14499. continue;
  14500. if (!bedai->active)
  14501. continue;
  14502. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14503. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14504. continue;
  14505. if (app_type !=
  14506. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14507. continue;
  14508. copp = session_copp_map[fe_id][dir][be_id];
  14509. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  14510. copp_idx++) {
  14511. if (!test_bit(copp_idx, &copp))
  14512. continue;
  14513. ret = q6common_pack_pp_params(packed_params,
  14514. &param_hdr,
  14515. (u8 *) &param_value,
  14516. &packed_param_size);
  14517. if (ret) {
  14518. pr_err("%s: Failed to pack params, error %d\n",
  14519. __func__, ret);
  14520. goto done;
  14521. }
  14522. ret = adm_set_pp_params(bedai->port_id,
  14523. copp_idx, NULL,
  14524. packed_params,
  14525. packed_param_size);
  14526. if (ret) {
  14527. pr_err("%s: Setting param failed with err=%d\n",
  14528. __func__, ret);
  14529. ret = -EINVAL;
  14530. goto done;
  14531. }
  14532. }
  14533. }
  14534. }
  14535. done:
  14536. mutex_unlock(&routing_lock);
  14537. kfree(packed_params);
  14538. return ret;
  14539. }
  14540. static const struct snd_kcontrol_new module_cfg_controls[] = {
  14541. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  14542. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  14543. };
  14544. static int msm_routing_get_lsm_app_type_cfg_control(
  14545. struct snd_kcontrol *kcontrol,
  14546. struct snd_ctl_elem_value *ucontrol)
  14547. {
  14548. return 0;
  14549. }
  14550. static int msm_routing_put_lsm_app_type_cfg_control(
  14551. struct snd_kcontrol *kcontrol,
  14552. struct snd_ctl_elem_value *ucontrol)
  14553. {
  14554. int shift = ((struct soc_multi_mixer_control *)
  14555. kcontrol->private_value)->shift;
  14556. int i = 0, j;
  14557. int num_app_types = ucontrol->value.integer.value[i++];
  14558. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  14559. sizeof(struct msm_pcm_routing_app_type_data));
  14560. if (num_app_types > MAX_APP_TYPES) {
  14561. pr_err("%s: number of app types exceed the max supported\n",
  14562. __func__);
  14563. return -EINVAL;
  14564. }
  14565. for (j = 0; j < num_app_types; j++) {
  14566. lsm_app_type_cfg[j].app_type =
  14567. ucontrol->value.integer.value[i++];
  14568. lsm_app_type_cfg[j].sample_rate =
  14569. ucontrol->value.integer.value[i++];
  14570. lsm_app_type_cfg[j].bit_width =
  14571. ucontrol->value.integer.value[i++];
  14572. /* Shift of 1 indicates this is V2 mixer control */
  14573. if (shift == 1)
  14574. lsm_app_type_cfg[j].num_out_channels =
  14575. ucontrol->value.integer.value[i++];
  14576. }
  14577. return 0;
  14578. }
  14579. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  14580. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  14581. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14582. msm_routing_put_lsm_app_type_cfg_control),
  14583. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  14584. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14585. msm_routing_put_lsm_app_type_cfg_control),
  14586. };
  14587. static int msm_routing_get_use_ds1_or_ds2_control(
  14588. struct snd_kcontrol *kcontrol,
  14589. struct snd_ctl_elem_value *ucontrol)
  14590. {
  14591. ucontrol->value.integer.value[0] = is_ds2_on;
  14592. return 0;
  14593. }
  14594. static int msm_routing_put_use_ds1_or_ds2_control(
  14595. struct snd_kcontrol *kcontrol,
  14596. struct snd_ctl_elem_value *ucontrol)
  14597. {
  14598. is_ds2_on = ucontrol->value.integer.value[0];
  14599. return 0;
  14600. }
  14601. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  14602. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  14603. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  14604. msm_routing_put_use_ds1_or_ds2_control),
  14605. };
  14606. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  14607. struct snd_ctl_elem_value *ucontrol) {
  14608. int rc = 0;
  14609. int be_idx = 0;
  14610. char *param_value;
  14611. int *update_param_value;
  14612. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  14613. struct param_hdr_v3 param_hdr;
  14614. param_value = kzalloc(param_size, GFP_KERNEL);
  14615. if (!param_value)
  14616. return -ENOMEM;
  14617. memset(&param_hdr, 0, sizeof(param_hdr));
  14618. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  14619. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  14620. break;
  14621. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  14622. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  14623. param_hdr.instance_id = INSTANCE_ID_0;
  14624. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  14625. param_hdr.param_size = param_size;
  14626. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  14627. NULL, &param_hdr, (u8 *) param_value);
  14628. if (rc) {
  14629. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  14630. kfree(param_value);
  14631. return -EINVAL;
  14632. }
  14633. update_param_value = (int *)param_value;
  14634. ucontrol->value.integer.value[0] = update_param_value[0];
  14635. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  14636. __func__, update_param_value[0]);
  14637. }
  14638. kfree(param_value);
  14639. return 0;
  14640. }
  14641. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  14642. struct snd_ctl_elem_value *ucontrol)
  14643. {
  14644. voc_session_id = ucontrol->value.integer.value[0];
  14645. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  14646. return 0;
  14647. }
  14648. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  14649. struct snd_ctl_elem_value *ucontrol)
  14650. {
  14651. ucontrol->value.integer.value[0] = voc_session_id;
  14652. return 0;
  14653. }
  14654. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  14655. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  14656. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  14657. msm_voc_session_id_put),
  14658. };
  14659. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  14660. struct snd_ctl_elem_info *uinfo)
  14661. {
  14662. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14663. uinfo->count = sizeof(struct sound_focus_param);
  14664. return 0;
  14665. }
  14666. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  14667. struct snd_ctl_elem_value *ucontrol)
  14668. {
  14669. int ret = 0;
  14670. struct sound_focus_param soundFocusData;
  14671. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14672. sizeof(struct sound_focus_param));
  14673. ret = voc_set_sound_focus(soundFocusData);
  14674. if (ret) {
  14675. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14676. __func__, ret);
  14677. ret = -EINVAL;
  14678. }
  14679. return ret;
  14680. }
  14681. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  14682. struct snd_ctl_elem_value *ucontrol)
  14683. {
  14684. int ret = 0;
  14685. struct sound_focus_param soundFocusData;
  14686. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  14687. ret = voc_get_sound_focus(&soundFocusData);
  14688. if (ret) {
  14689. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14690. __func__, ret);
  14691. ret = -EINVAL;
  14692. goto done;
  14693. }
  14694. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14695. sizeof(struct sound_focus_param));
  14696. done:
  14697. return ret;
  14698. }
  14699. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  14700. struct snd_ctl_elem_info *uinfo)
  14701. {
  14702. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14703. uinfo->count = sizeof(struct source_tracking_param);
  14704. return 0;
  14705. }
  14706. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  14707. struct snd_ctl_elem_value *ucontrol)
  14708. {
  14709. int ret = 0;
  14710. struct source_tracking_param sourceTrackingData;
  14711. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  14712. ret = voc_get_source_tracking(&sourceTrackingData);
  14713. if (ret) {
  14714. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14715. __func__, ret);
  14716. ret = -EINVAL;
  14717. goto done;
  14718. }
  14719. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14720. sizeof(struct source_tracking_param));
  14721. done:
  14722. return ret;
  14723. }
  14724. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  14725. int *copp_idx)
  14726. {
  14727. int i, idx, be_idx;
  14728. int ret = 0;
  14729. unsigned long copp;
  14730. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  14731. ret = q6audio_validate_port(port_id);
  14732. if (ret < 0) {
  14733. pr_err("%s: port validation failed id 0x%x ret %d\n",
  14734. __func__, port_id, ret);
  14735. ret = -EINVAL;
  14736. goto done;
  14737. }
  14738. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  14739. if (msm_bedais[be_idx].port_id == port_id)
  14740. break;
  14741. }
  14742. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  14743. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  14744. ret = -EINVAL;
  14745. goto done;
  14746. }
  14747. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  14748. MSM_FRONTEND_DAI_MM_SIZE) {
  14749. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14750. copp = session_copp_map[i]
  14751. [session_type][be_idx];
  14752. if (test_bit(idx, &copp))
  14753. break;
  14754. }
  14755. if (idx >= MAX_COPPS_PER_PORT)
  14756. continue;
  14757. else
  14758. break;
  14759. }
  14760. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  14761. pr_err("%s: Invalid FE, exiting\n", __func__);
  14762. ret = -EINVAL;
  14763. goto done;
  14764. }
  14765. *copp_idx = idx;
  14766. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  14767. done:
  14768. return ret;
  14769. }
  14770. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  14771. const char *prefix, int *port_id)
  14772. {
  14773. int ret = 0;
  14774. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  14775. /*
  14776. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  14777. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  14778. * and compare the string with the backend name to derive the port id.
  14779. */
  14780. if (!strcmp(kcontrol->id.name + strlen(prefix),
  14781. "SLIMBUS_0")) {
  14782. *port_id = SLIMBUS_0_TX;
  14783. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14784. "TERT_MI2S")) {
  14785. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  14786. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14787. "INT3_MI2S")) {
  14788. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  14789. } else {
  14790. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  14791. __func__, kcontrol->id.name);
  14792. ret = -EINVAL;
  14793. goto done;
  14794. }
  14795. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  14796. __func__, kcontrol->id.name, *port_id);
  14797. done:
  14798. return ret;
  14799. }
  14800. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  14801. struct snd_ctl_elem_value *ucontrol)
  14802. {
  14803. int ret = 0;
  14804. struct sound_focus_param soundFocusData;
  14805. int port_id, copp_idx;
  14806. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14807. "Sound Focus Audio Tx ", &port_id);
  14808. if (ret != 0) {
  14809. pr_err("%s: Error in deriving port id, err=%d\n",
  14810. __func__, ret);
  14811. ret = -EINVAL;
  14812. goto done;
  14813. }
  14814. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14815. &copp_idx);
  14816. if (ret) {
  14817. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14818. __func__, port_id);
  14819. ret = -EINVAL;
  14820. goto done;
  14821. }
  14822. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14823. sizeof(struct sound_focus_param));
  14824. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  14825. if (ret) {
  14826. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14827. __func__, ret);
  14828. ret = -EINVAL;
  14829. goto done;
  14830. }
  14831. done:
  14832. return ret;
  14833. }
  14834. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  14835. struct snd_ctl_elem_value *ucontrol)
  14836. {
  14837. int ret = 0;
  14838. struct sound_focus_param soundFocusData;
  14839. int port_id, copp_idx;
  14840. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14841. "Sound Focus Audio Tx ", &port_id);
  14842. if (ret) {
  14843. pr_err("%s: Error in deriving port id, err=%d\n",
  14844. __func__, ret);
  14845. ret = -EINVAL;
  14846. goto done;
  14847. }
  14848. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14849. &copp_idx);
  14850. if (ret) {
  14851. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14852. __func__, port_id);
  14853. ret = -EINVAL;
  14854. goto done;
  14855. }
  14856. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  14857. if (ret) {
  14858. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14859. __func__, ret);
  14860. ret = -EINVAL;
  14861. goto done;
  14862. }
  14863. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14864. sizeof(struct sound_focus_param));
  14865. done:
  14866. return ret;
  14867. }
  14868. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  14869. struct snd_ctl_elem_value *ucontrol)
  14870. {
  14871. int ret = 0;
  14872. struct source_tracking_param sourceTrackingData;
  14873. int port_id, copp_idx;
  14874. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14875. "Source Tracking Audio Tx ", &port_id);
  14876. if (ret) {
  14877. pr_err("%s: Error in deriving port id, err=%d\n",
  14878. __func__, ret);
  14879. ret = -EINVAL;
  14880. goto done;
  14881. }
  14882. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14883. &copp_idx);
  14884. if (ret) {
  14885. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14886. __func__, port_id);
  14887. ret = -EINVAL;
  14888. goto done;
  14889. }
  14890. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  14891. if (ret) {
  14892. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14893. __func__, ret);
  14894. ret = -EINVAL;
  14895. goto done;
  14896. }
  14897. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14898. sizeof(struct source_tracking_param));
  14899. done:
  14900. return ret;
  14901. }
  14902. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  14903. {
  14904. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14905. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14906. .name = "Sound Focus Voice Tx SLIMBUS_0",
  14907. .info = msm_sound_focus_info,
  14908. .get = msm_voice_sound_focus_get,
  14909. .put = msm_voice_sound_focus_put,
  14910. },
  14911. {
  14912. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14913. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14914. .name = "Source Tracking Voice Tx SLIMBUS_0",
  14915. .info = msm_source_tracking_info,
  14916. .get = msm_voice_source_tracking_get,
  14917. },
  14918. {
  14919. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14920. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14921. .name = "Sound Focus Audio Tx SLIMBUS_0",
  14922. .info = msm_sound_focus_info,
  14923. .get = msm_audio_sound_focus_get,
  14924. .put = msm_audio_sound_focus_put,
  14925. },
  14926. {
  14927. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14928. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14929. .name = "Source Tracking Audio Tx SLIMBUS_0",
  14930. .info = msm_source_tracking_info,
  14931. .get = msm_audio_source_tracking_get,
  14932. },
  14933. {
  14934. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14935. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14936. .name = "Sound Focus Voice Tx TERT_MI2S",
  14937. .info = msm_sound_focus_info,
  14938. .get = msm_voice_sound_focus_get,
  14939. .put = msm_voice_sound_focus_put,
  14940. },
  14941. {
  14942. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14943. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14944. .name = "Source Tracking Voice Tx TERT_MI2S",
  14945. .info = msm_source_tracking_info,
  14946. .get = msm_voice_source_tracking_get,
  14947. },
  14948. {
  14949. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14950. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14951. .name = "Sound Focus Audio Tx TERT_MI2S",
  14952. .info = msm_sound_focus_info,
  14953. .get = msm_audio_sound_focus_get,
  14954. .put = msm_audio_sound_focus_put,
  14955. },
  14956. {
  14957. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14958. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14959. .name = "Source Tracking Audio Tx TERT_MI2S",
  14960. .info = msm_source_tracking_info,
  14961. .get = msm_audio_source_tracking_get,
  14962. },
  14963. {
  14964. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14965. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14966. .name = "Sound Focus Voice Tx INT3_MI2S",
  14967. .info = msm_sound_focus_info,
  14968. .get = msm_voice_sound_focus_get,
  14969. .put = msm_voice_sound_focus_put,
  14970. },
  14971. {
  14972. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14973. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14974. .name = "Source Tracking Voice Tx INT3_MI2S",
  14975. .info = msm_source_tracking_info,
  14976. .get = msm_voice_source_tracking_get,
  14977. },
  14978. {
  14979. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14980. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14981. .name = "Sound Focus Audio Tx INT3_MI2S",
  14982. .info = msm_sound_focus_info,
  14983. .get = msm_audio_sound_focus_get,
  14984. .put = msm_audio_sound_focus_put,
  14985. },
  14986. {
  14987. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14988. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14989. .name = "Source Tracking Audio Tx INT3_MI2S",
  14990. .info = msm_source_tracking_info,
  14991. .get = msm_audio_source_tracking_get,
  14992. },
  14993. };
  14994. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  14995. struct snd_ctl_elem_value *ucontrol)
  14996. {
  14997. int ret = 0;
  14998. int item;
  14999. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  15000. pr_debug("%s item is %d\n", __func__,
  15001. ucontrol->value.enumerated.item[0]);
  15002. mutex_lock(&routing_lock);
  15003. item = ucontrol->value.enumerated.item[0];
  15004. if (item < e->items) {
  15005. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  15006. __func__, e->shift_l, e->values[item]);
  15007. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  15008. e->values[item] < MSM_BACKEND_DAI_MAX)
  15009. /* Enable feedback TX path */
  15010. ret = afe_spk_prot_feed_back_cfg(
  15011. msm_bedais[e->values[item]].port_id,
  15012. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  15013. else {
  15014. pr_debug("%s values are out of range item %d\n",
  15015. __func__, e->values[item]);
  15016. /* Disable feedback TX path */
  15017. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  15018. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  15019. else
  15020. ret = -EINVAL;
  15021. }
  15022. } else {
  15023. pr_err("%s item value is out of range item\n", __func__);
  15024. ret = -EINVAL;
  15025. }
  15026. mutex_unlock(&routing_lock);
  15027. return ret;
  15028. }
  15029. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  15030. struct snd_ctl_elem_value *ucontrol)
  15031. {
  15032. int ret = 0;
  15033. int item;
  15034. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  15035. pr_debug("%s item is %d\n", __func__,
  15036. ucontrol->value.enumerated.item[0]);
  15037. mutex_lock(&routing_lock);
  15038. item = ucontrol->value.enumerated.item[0];
  15039. if (item < e->items) {
  15040. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  15041. __func__, e->shift_l, e->values[item]);
  15042. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  15043. e->values[item] < MSM_BACKEND_DAI_MAX)
  15044. /* Enable feedback TX path */
  15045. ret = afe_spk_prot_feed_back_cfg(
  15046. msm_bedais[e->values[item]].port_id,
  15047. msm_bedais[e->shift_l].port_id,
  15048. 1, 1, 1);
  15049. else {
  15050. pr_debug("%s values are out of range item %d\n",
  15051. __func__, e->values[item]);
  15052. /* Disable feedback TX path */
  15053. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  15054. ret = afe_spk_prot_feed_back_cfg(0,
  15055. 0, 0, 0, 0);
  15056. else
  15057. ret = -EINVAL;
  15058. }
  15059. } else {
  15060. pr_err("%s item value is out of range item\n", __func__);
  15061. ret = -EINVAL;
  15062. }
  15063. mutex_unlock(&routing_lock);
  15064. return ret;
  15065. }
  15066. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  15067. struct snd_ctl_elem_value *ucontrol)
  15068. {
  15069. pr_debug("%s\n", __func__);
  15070. return 0;
  15071. }
  15072. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  15073. struct snd_ctl_elem_value *ucontrol)
  15074. {
  15075. pr_debug("%s\n", __func__);
  15076. ucontrol->value.enumerated.item[0] = 0;
  15077. return 0;
  15078. }
  15079. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  15080. "ZERO", "SLIM4_TX"
  15081. };
  15082. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  15083. "ZERO", "SLIM4_TX"
  15084. };
  15085. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  15086. "ZERO", "WSA_CDC_DMA_TX_0"
  15087. };
  15088. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  15089. "ZERO", "WSA_CDC_DMA_TX_0"
  15090. };
  15091. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  15092. "ZERO", "SENARY_TX"
  15093. };
  15094. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  15095. "ZERO", "INT5_MI2S_TX"
  15096. };
  15097. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  15098. "ZERO", "INT5_MI2S_TX"
  15099. };
  15100. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  15101. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  15102. };
  15103. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  15104. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  15105. };
  15106. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  15107. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  15108. };
  15109. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  15110. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  15111. };
  15112. static const int const mi2s_rx_vi_fb_tx_value[] = {
  15113. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  15114. };
  15115. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  15116. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  15117. };
  15118. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  15119. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  15120. };
  15121. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  15122. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  15123. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  15124. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  15125. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  15126. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  15127. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  15128. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  15129. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  15130. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  15131. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  15132. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  15133. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  15134. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  15135. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  15136. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  15137. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  15138. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  15139. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  15140. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  15141. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  15142. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  15143. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  15144. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  15145. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  15146. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  15147. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  15148. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  15149. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  15150. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  15151. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  15152. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  15153. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  15154. spkr_prot_put_vi_lch_port);
  15155. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  15156. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  15157. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  15158. spkr_prot_put_vi_rch_port);
  15159. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  15160. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  15161. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  15162. spkr_prot_put_vi_lch_port);
  15163. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  15164. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  15165. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  15166. spkr_prot_put_vi_rch_port);
  15167. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  15168. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  15169. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  15170. spkr_prot_put_vi_lch_port);
  15171. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  15172. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  15173. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  15174. spkr_prot_put_vi_lch_port);
  15175. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  15176. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  15177. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  15178. spkr_prot_put_vi_rch_port);
  15179. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  15180. /* Frontend AIF */
  15181. /* Widget name equals to Front-End DAI name<Need confirmation>,
  15182. * Stream name must contains substring of front-end dai name
  15183. */
  15184. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  15185. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  15186. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  15187. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  15188. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  15189. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  15190. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  15191. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  15192. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  15193. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  15194. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  15195. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  15196. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  15197. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  15198. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  15199. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  15200. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  15201. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  15202. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  15203. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  15204. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  15205. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  15206. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  15207. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  15208. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  15209. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  15210. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  15211. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  15212. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  15213. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  15214. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  15215. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  15216. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  15217. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  15218. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  15219. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  15220. "VoiceMMode1 Playback", 0, 0, 0, 0),
  15221. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  15222. "VoiceMMode1 Capture", 0, 0, 0, 0),
  15223. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  15224. "VoiceMMode2 Playback", 0, 0, 0, 0),
  15225. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  15226. "VoiceMMode2 Capture", 0, 0, 0, 0),
  15227. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  15228. 0, 0, 0, 0),
  15229. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  15230. 0, 0, 0, 0),
  15231. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  15232. 0, 0, 0, 0),
  15233. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  15234. 0, 0, 0, 0),
  15235. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  15236. 0, 0, 0, 0),
  15237. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  15238. 0, 0, 0, 0),
  15239. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  15240. 0, 0, 0, 0),
  15241. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  15242. 0, 0, 0, 0),
  15243. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  15244. 0, 0, 0, 0),
  15245. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  15246. 0, 0, 0, 0),
  15247. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  15248. 0, 0, 0, 0),
  15249. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  15250. 0, 0, 0, 0),
  15251. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  15252. 0, 0, 0, 0),
  15253. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  15254. 0, 0, 0, 0),
  15255. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  15256. 0, 0, 0, 0),
  15257. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  15258. 0, 0, 0, 0),
  15259. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  15260. 0, 0, 0, 0),
  15261. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  15262. 0, 0, 0, 0),
  15263. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  15264. 0, 0, 0, 0),
  15265. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  15266. 0, 0, 0, 0),
  15267. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  15268. 0, 0, 0, 0),
  15269. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  15270. 0, 0, 0, 0),
  15271. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  15272. 0, 0, 0, 0),
  15273. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  15274. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  15275. 0, 0, 0, 0),
  15276. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  15277. "INT0 MI2S_RX Hostless Playback",
  15278. 0, 0, 0, 0),
  15279. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  15280. "INT4 MI2S_RX Hostless Playback",
  15281. 0, 0, 0, 0),
  15282. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  15283. "Primary MI2S_RX Hostless Playback",
  15284. 0, 0, 0, 0),
  15285. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  15286. "Secondary MI2S_RX Hostless Playback",
  15287. 0, 0, 0, 0),
  15288. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  15289. "Tertiary MI2S_RX Hostless Playback",
  15290. 0, 0, 0, 0),
  15291. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  15292. "Quaternary MI2S_RX Hostless Playback",
  15293. 0, 0, 0, 0),
  15294. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  15295. "Quinary MI2S_RX Hostless Playback",
  15296. 0, 0, 0, 0),
  15297. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  15298. 0, 0, 0, 0),
  15299. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  15300. 0, 0, 0, 0),
  15301. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  15302. 0, 0, 0, 0),
  15303. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  15304. 0, 0, 0, 0),
  15305. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  15306. 0, 0, 0, 0),
  15307. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  15308. "INT3 MI2S_TX Hostless Capture",
  15309. 0, 0, 0, 0),
  15310. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  15311. "Tertiary MI2S_TX Hostless Capture",
  15312. 0, 0, 0, 0),
  15313. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  15314. "Secondary MI2S_TX Hostless Capture",
  15315. 0, 0, 0, 0),
  15316. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  15317. "Primary MI2S_TX Hostless Capture",
  15318. 0, 0, 0, 0),
  15319. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  15320. 0, 0, 0, 0),
  15321. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  15322. 0, 0, 0, 0),
  15323. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  15324. "Quaternary MI2S_TX Hostless Capture",
  15325. 0, 0, 0, 0),
  15326. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  15327. "Quinary MI2S_TX Hostless Capture",
  15328. 0, 0, 0, 0),
  15329. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  15330. "Primary TDM0 Hostless Playback",
  15331. 0, 0, 0, 0),
  15332. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  15333. "Primary TDM0 Hostless Capture",
  15334. 0, 0, 0, 0),
  15335. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  15336. "Primary TDM1 Hostless Playback",
  15337. 0, 0, 0, 0),
  15338. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  15339. "Primary TDM1 Hostless Capture",
  15340. 0, 0, 0, 0),
  15341. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  15342. "Primary TDM2 Hostless Playback",
  15343. 0, 0, 0, 0),
  15344. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  15345. "Primary TDM2 Hostless Capture",
  15346. 0, 0, 0, 0),
  15347. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  15348. "Primary TDM3 Hostless Playback",
  15349. 0, 0, 0, 0),
  15350. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  15351. "Primary TDM3 Hostless Capture",
  15352. 0, 0, 0, 0),
  15353. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  15354. "Primary TDM4 Hostless Playback",
  15355. 0, 0, 0, 0),
  15356. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  15357. "Primary TDM4 Hostless Capture",
  15358. 0, 0, 0, 0),
  15359. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  15360. "Primary TDM5 Hostless Playback",
  15361. 0, 0, 0, 0),
  15362. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  15363. "Primary TDM5 Hostless Capture",
  15364. 0, 0, 0, 0),
  15365. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  15366. "Primary TDM6 Hostless Playback",
  15367. 0, 0, 0, 0),
  15368. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  15369. "Primary TDM6 Hostless Capture",
  15370. 0, 0, 0, 0),
  15371. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  15372. "Primary TDM7 Hostless Playback",
  15373. 0, 0, 0, 0),
  15374. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  15375. "Primary TDM7 Hostless Capture",
  15376. 0, 0, 0, 0),
  15377. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  15378. "Secondary TDM0 Hostless Playback",
  15379. 0, 0, 0, 0),
  15380. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  15381. "Secondary TDM0 Hostless Capture",
  15382. 0, 0, 0, 0),
  15383. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  15384. "Secondary TDM1 Hostless Playback",
  15385. 0, 0, 0, 0),
  15386. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  15387. "Secondary TDM1 Hostless Capture",
  15388. 0, 0, 0, 0),
  15389. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  15390. "Secondary TDM2 Hostless Playback",
  15391. 0, 0, 0, 0),
  15392. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  15393. "Secondary TDM2 Hostless Capture",
  15394. 0, 0, 0, 0),
  15395. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  15396. "Secondary TDM3 Hostless Playback",
  15397. 0, 0, 0, 0),
  15398. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  15399. "Secondary TDM3 Hostless Capture",
  15400. 0, 0, 0, 0),
  15401. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  15402. "Secondary TDM4 Hostless Playback",
  15403. 0, 0, 0, 0),
  15404. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  15405. "Secondary TDM4 Hostless Capture",
  15406. 0, 0, 0, 0),
  15407. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  15408. "Secondary TDM5 Hostless Playback",
  15409. 0, 0, 0, 0),
  15410. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  15411. "Secondary TDM5 Hostless Capture",
  15412. 0, 0, 0, 0),
  15413. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  15414. "Secondary TDM6 Hostless Playback",
  15415. 0, 0, 0, 0),
  15416. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  15417. "Secondary TDM6 Hostless Capture",
  15418. 0, 0, 0, 0),
  15419. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  15420. "Secondary TDM7 Hostless Playback",
  15421. 0, 0, 0, 0),
  15422. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  15423. "Secondary TDM7 Hostless Capture",
  15424. 0, 0, 0, 0),
  15425. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  15426. "Tertiary TDM0 Hostless Playback",
  15427. 0, 0, 0, 0),
  15428. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  15429. "Tertiary TDM0 Hostless Capture",
  15430. 0, 0, 0, 0),
  15431. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  15432. "Tertiary TDM1 Hostless Playback",
  15433. 0, 0, 0, 0),
  15434. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  15435. "Tertiary TDM1 Hostless Capture",
  15436. 0, 0, 0, 0),
  15437. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  15438. "Tertiary TDM2 Hostless Playback",
  15439. 0, 0, 0, 0),
  15440. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  15441. "Tertiary TDM2 Hostless Capture",
  15442. 0, 0, 0, 0),
  15443. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  15444. "Tertiary TDM3 Hostless Playback",
  15445. 0, 0, 0, 0),
  15446. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  15447. "Tertiary TDM3 Hostless Capture",
  15448. 0, 0, 0, 0),
  15449. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  15450. "Tertiary TDM4 Hostless Playback",
  15451. 0, 0, 0, 0),
  15452. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  15453. "Tertiary TDM4 Hostless Capture",
  15454. 0, 0, 0, 0),
  15455. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  15456. "Tertiary TDM5 Hostless Playback",
  15457. 0, 0, 0, 0),
  15458. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  15459. "Tertiary TDM5 Hostless Capture",
  15460. 0, 0, 0, 0),
  15461. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  15462. "Tertiary TDM6 Hostless Playback",
  15463. 0, 0, 0, 0),
  15464. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  15465. "Tertiary TDM6 Hostless Capture",
  15466. 0, 0, 0, 0),
  15467. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  15468. "Tertiary TDM7 Hostless Playback",
  15469. 0, 0, 0, 0),
  15470. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  15471. "Tertiary TDM7 Hostless Capture",
  15472. 0, 0, 0, 0),
  15473. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  15474. "Quaternary TDM0 Hostless Playback",
  15475. 0, 0, 0, 0),
  15476. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  15477. "Quaternary TDM0 Hostless Capture",
  15478. 0, 0, 0, 0),
  15479. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  15480. "Quaternary TDM1 Hostless Playback",
  15481. 0, 0, 0, 0),
  15482. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  15483. "Quaternary TDM1 Hostless Capture",
  15484. 0, 0, 0, 0),
  15485. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  15486. "Quaternary TDM2 Hostless Playback",
  15487. 0, 0, 0, 0),
  15488. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  15489. "Quaternary TDM2 Hostless Capture",
  15490. 0, 0, 0, 0),
  15491. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  15492. "Quaternary TDM3 Hostless Playback",
  15493. 0, 0, 0, 0),
  15494. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  15495. "Quaternary TDM3 Hostless Capture",
  15496. 0, 0, 0, 0),
  15497. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  15498. "Quaternary TDM4 Hostless Playback",
  15499. 0, 0, 0, 0),
  15500. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  15501. "Quaternary TDM4 Hostless Capture",
  15502. 0, 0, 0, 0),
  15503. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  15504. "Quaternary TDM5 Hostless Playback",
  15505. 0, 0, 0, 0),
  15506. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  15507. "Quaternary TDM5 Hostless Capture",
  15508. 0, 0, 0, 0),
  15509. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  15510. "Quaternary TDM6 Hostless Playback",
  15511. 0, 0, 0, 0),
  15512. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  15513. "Quaternary TDM6 Hostless Capture",
  15514. 0, 0, 0, 0),
  15515. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  15516. "Quaternary TDM7 Hostless Playback",
  15517. 0, 0, 0, 0),
  15518. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  15519. "Quaternary TDM7 Hostless Capture",
  15520. 0, 0, 0, 0),
  15521. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  15522. "Quinary TDM0 Hostless Playback",
  15523. 0, 0, 0, 0),
  15524. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  15525. "Quinary TDM0 Hostless Capture",
  15526. 0, 0, 0, 0),
  15527. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  15528. "Quinary TDM1 Hostless Playback",
  15529. 0, 0, 0, 0),
  15530. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  15531. "Quinary TDM1 Hostless Capture",
  15532. 0, 0, 0, 0),
  15533. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  15534. "Quinary TDM2 Hostless Playback",
  15535. 0, 0, 0, 0),
  15536. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  15537. "Quinary TDM2 Hostless Capture",
  15538. 0, 0, 0, 0),
  15539. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  15540. "Quinary TDM3 Hostless Playback",
  15541. 0, 0, 0, 0),
  15542. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  15543. "Quinary TDM3 Hostless Capture",
  15544. 0, 0, 0, 0),
  15545. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  15546. "Quinary TDM4 Hostless Playback",
  15547. 0, 0, 0, 0),
  15548. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  15549. "Quinary TDM4 Hostless Capture",
  15550. 0, 0, 0, 0),
  15551. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  15552. "Quinary TDM5 Hostless Playback",
  15553. 0, 0, 0, 0),
  15554. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  15555. "Quinary TDM5 Hostless Capture",
  15556. 0, 0, 0, 0),
  15557. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  15558. "Quinary TDM6 Hostless Playback",
  15559. 0, 0, 0, 0),
  15560. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  15561. "Quinary TDM6 Hostless Capture",
  15562. 0, 0, 0, 0),
  15563. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  15564. "Quinary TDM7 Hostless Playback",
  15565. 0, 0, 0, 0),
  15566. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  15567. "Quinary TDM7 Hostless Capture",
  15568. 0, 0, 0, 0),
  15569. /* LSM */
  15570. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  15571. 0, 0, 0, 0),
  15572. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  15573. 0, 0, 0, 0),
  15574. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  15575. 0, 0, 0, 0),
  15576. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  15577. 0, 0, 0, 0),
  15578. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  15579. 0, 0, 0, 0),
  15580. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  15581. 0, 0, 0, 0),
  15582. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  15583. 0, 0, 0, 0),
  15584. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  15585. 0, 0, 0, 0),
  15586. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  15587. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  15588. /* Backend AIF */
  15589. /* Stream name equals to backend dai link stream name */
  15590. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  15591. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  15592. 0, 0, 0, 0),
  15593. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  15594. 0, 0, 0, 0),
  15595. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  15596. 0, 0, 0, 0),
  15597. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  15598. 0, 0, 0, 0),
  15599. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  15600. 0, 0, 0, 0),
  15601. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  15602. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  15603. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  15604. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  15605. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  15606. 0, 0, 0, 0),
  15607. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  15608. 0, 0, 0, 0),
  15609. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  15610. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  15611. 0, 0, 0, 0),
  15612. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  15613. 0, 0, 0, 0),
  15614. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  15615. 0, 0, 0, 0),
  15616. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  15617. "Secondary MI2S Playback SD1",
  15618. 0, 0, 0, 0),
  15619. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  15620. 0, 0, 0, 0),
  15621. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  15622. 0, 0, 0, 0),
  15623. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  15624. 0, 0, 0, 0),
  15625. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  15626. 0, 0, 0, 0),
  15627. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  15628. 0, 0, 0, 0),
  15629. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  15630. 0, 0, 0, 0),
  15631. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  15632. 0, 0, 0, 0),
  15633. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  15634. 0, 0, 0, 0),
  15635. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  15636. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  15637. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  15638. 0, 0, 0, 0),
  15639. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  15640. 0, 0, 0, 0),
  15641. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  15642. 0, 0, 0, 0),
  15643. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  15644. 0, 0, 0, 0),
  15645. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  15646. 0, 0, 0, 0),
  15647. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  15648. 0, 0, 0, 0),
  15649. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  15650. 0, 0, 0, 0),
  15651. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  15652. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  15653. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  15654. 0, 0, 0, 0),
  15655. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  15656. 0, 0, 0, 0),
  15657. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  15658. 0, 0, 0, 0),
  15659. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  15660. 0, 0, 0, 0),
  15661. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  15662. 0, 0, 0, 0),
  15663. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  15664. 0, 0, 0, 0),
  15665. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  15666. 0, 0, 0, 0),
  15667. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  15668. 0, 0, 0, 0),
  15669. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  15670. 0, 0, 0, 0),
  15671. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  15672. 0, 0, 0, 0),
  15673. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  15674. 0, 0, 0, 0),
  15675. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  15676. 0, 0, 0, 0),
  15677. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  15678. 0, 0, 0, 0),
  15679. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  15680. 0, 0, 0, 0),
  15681. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  15682. 0, 0, 0, 0),
  15683. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  15684. 0, 0, 0, 0),
  15685. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  15686. 0, 0, 0, 0),
  15687. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  15688. 0, 0, 0, 0),
  15689. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  15690. 0, 0, 0, 0),
  15691. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  15692. 0, 0, 0, 0),
  15693. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  15694. 0, 0, 0, 0),
  15695. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  15696. 0, 0, 0, 0),
  15697. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  15698. 0, 0, 0, 0),
  15699. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  15700. 0, 0, 0, 0),
  15701. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  15702. 0, 0, 0, 0),
  15703. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  15704. 0, 0, 0, 0),
  15705. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  15706. 0, 0, 0, 0),
  15707. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  15708. 0, 0, 0, 0),
  15709. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  15710. 0, 0, 0, 0),
  15711. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  15712. 0, 0, 0, 0),
  15713. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  15714. 0, 0, 0, 0),
  15715. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  15716. 0, 0, 0, 0),
  15717. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  15718. 0, 0, 0, 0),
  15719. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  15720. 0, 0, 0, 0),
  15721. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  15722. 0, 0, 0, 0),
  15723. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  15724. 0, 0, 0, 0),
  15725. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  15726. 0, 0, 0, 0),
  15727. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  15728. 0, 0, 0, 0),
  15729. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  15730. 0, 0, 0, 0),
  15731. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  15732. 0, 0, 0, 0),
  15733. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  15734. 0, 0, 0, 0),
  15735. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  15736. 0, 0, 0, 0),
  15737. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  15738. 0, 0, 0, 0),
  15739. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  15740. 0, 0, 0, 0),
  15741. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  15742. 0, 0, 0, 0),
  15743. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  15744. 0, 0, 0, 0),
  15745. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  15746. 0, 0, 0, 0),
  15747. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  15748. 0, 0, 0, 0),
  15749. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  15750. 0, 0, 0, 0),
  15751. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  15752. 0, 0, 0, 0),
  15753. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  15754. 0, 0, 0, 0),
  15755. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  15756. 0, 0, 0, 0),
  15757. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  15758. 0, 0, 0, 0),
  15759. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  15760. 0, 0, 0, 0),
  15761. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  15762. 0, 0, 0, 0),
  15763. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  15764. 0, 0, 0, 0),
  15765. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  15766. 0, 0, 0, 0),
  15767. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  15768. 0, 0, 0, 0),
  15769. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  15770. 0, 0, 0, 0),
  15771. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  15772. 0, 0, 0, 0),
  15773. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  15774. 0, 0, 0, 0),
  15775. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  15776. 0, 0, 0, 0),
  15777. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  15778. 0, 0, 0, 0),
  15779. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  15780. 0, 0, 0, 0),
  15781. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  15782. 0, 0, 0, 0),
  15783. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  15784. 0, 0, 0, 0),
  15785. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  15786. 0, 0, 0, 0),
  15787. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  15788. 0, 0, 0, 0),
  15789. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  15790. 0, 0, 0, 0),
  15791. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  15792. 0, 0, 0, 0),
  15793. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  15794. 0, 0, 0, 0),
  15795. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  15796. 0, 0, 0, 0),
  15797. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  15798. 0, 0, 0, 0),
  15799. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  15800. 0, 0, 0, 0),
  15801. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  15802. 0, 0, 0, 0),
  15803. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  15804. 0, 0, 0, 0),
  15805. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  15806. 0, 0, 0, 0),
  15807. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  15808. 0, 0, 0, 0),
  15809. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  15810. 0, 0, 0, 0),
  15811. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  15812. 0, 0, 0, 0),
  15813. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  15814. 0, 0, 0, 0),
  15815. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  15816. 0, 0, 0, 0),
  15817. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  15818. 0, 0, 0, 0),
  15819. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  15820. 0, 0, 0, 0),
  15821. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  15822. 0, 0, 0, 0),
  15823. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  15824. 0, 0, 0, 0),
  15825. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  15826. 0, 0, 0, 0),
  15827. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  15828. 0, 0, 0, 0),
  15829. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  15830. 0, 0, 0, 0),
  15831. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  15832. 0, 0, 0, 0),
  15833. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  15834. 0, 0, 0, 0),
  15835. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  15836. 0, 0, 0, 0),
  15837. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  15838. 0, 0, 0, 0),
  15839. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  15840. 0, 0, 0, 0),
  15841. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  15842. 0, 0, 0, 0),
  15843. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  15844. 0, 0, 0, 0),
  15845. /* incall */
  15846. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  15847. 0, 0, 0, 0),
  15848. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  15849. 0, 0, 0, 0),
  15850. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  15851. 0, 0, 0, 0),
  15852. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  15853. 0, 0, 0, 0),
  15854. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  15855. 0, 0, 0, 0),
  15856. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  15857. 0, 0, 0, 0),
  15858. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  15859. 0, 0, 0, 0),
  15860. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  15861. 0, 0, 0, 0),
  15862. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  15863. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  15864. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  15865. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  15866. 0, 0, 0, 0),
  15867. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  15868. 0, 0, 0, 0),
  15869. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  15870. 0, 0, 0, 0),
  15871. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  15872. 0, 0, 0, 0),
  15873. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  15874. 0, 0, 0, 0),
  15875. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  15876. 0, 0, 0, 0),
  15877. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  15878. 0, 0, 0, 0),
  15879. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  15880. 0, 0, 0, 0),
  15881. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  15882. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  15883. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  15884. 0, 0, 0, 0),
  15885. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  15886. 0, 0, 0, 0),
  15887. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  15888. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  15889. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  15890. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  15891. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  15892. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  15893. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  15894. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  15895. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  15896. /* In- call recording */
  15897. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  15898. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  15899. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  15900. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  15901. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  15902. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  15903. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  15904. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  15905. /* Switch Definitions */
  15906. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  15907. &slim_fm_switch_mixer_controls),
  15908. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  15909. &slim1_fm_switch_mixer_controls),
  15910. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  15911. &slim3_fm_switch_mixer_controls),
  15912. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  15913. &slim4_fm_switch_mixer_controls),
  15914. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  15915. &slim6_fm_switch_mixer_controls),
  15916. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15917. &pcm_rx_switch_mixer_controls),
  15918. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15919. &int0_mi2s_rx_switch_mixer_controls),
  15920. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15921. &int4_mi2s_rx_switch_mixer_controls),
  15922. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15923. &pri_mi2s_rx_switch_mixer_controls),
  15924. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15925. &sec_mi2s_rx_switch_mixer_controls),
  15926. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15927. &tert_mi2s_rx_switch_mixer_controls),
  15928. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15929. &quat_mi2s_rx_switch_mixer_controls),
  15930. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15931. &quin_mi2s_rx_switch_mixer_controls),
  15932. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15933. &hfp_pri_aux_switch_mixer_controls),
  15934. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15935. &hfp_aux_switch_mixer_controls),
  15936. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  15937. &hfp_int_switch_mixer_controls),
  15938. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15939. &hfp_slim7_switch_mixer_controls),
  15940. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  15941. &usb_switch_mixer_controls),
  15942. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15943. &a2dp_slim7_switch_mixer_controls),
  15944. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  15945. &cdc_dma_fm_switch_mixer_controls),
  15946. /* Mixer definitions */
  15947. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15948. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  15949. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15950. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  15951. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15952. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  15953. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15954. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  15955. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15956. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  15957. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15958. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  15959. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  15960. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  15961. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  15962. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  15963. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  15964. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  15965. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15966. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  15967. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15968. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  15969. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15970. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  15971. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15972. quaternary_mi2s_rx_mixer_controls,
  15973. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  15974. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15975. tertiary_mi2s_rx_mixer_controls,
  15976. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  15977. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15978. secondary_mi2s_rx_mixer_controls,
  15979. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  15980. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15981. secondary_mi2s_rx2_mixer_controls,
  15982. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  15983. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15984. primary_mi2s_rx_mixer_controls,
  15985. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  15986. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15987. int0_mi2s_rx_mixer_controls,
  15988. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  15989. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15990. int4_mi2s_rx_mixer_controls,
  15991. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  15992. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15993. quinary_mi2s_rx_mixer_controls,
  15994. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  15995. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15996. pri_tdm_rx_0_mixer_controls,
  15997. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  15998. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15999. pri_tdm_rx_1_mixer_controls,
  16000. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  16001. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16002. pri_tdm_rx_2_mixer_controls,
  16003. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  16004. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16005. pri_tdm_rx_3_mixer_controls,
  16006. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  16007. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16008. pri_tdm_tx_0_mixer_controls,
  16009. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  16010. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16011. sec_tdm_rx_0_mixer_controls,
  16012. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  16013. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16014. sec_tdm_rx_1_mixer_controls,
  16015. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  16016. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16017. sec_tdm_rx_2_mixer_controls,
  16018. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  16019. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16020. sec_tdm_rx_3_mixer_controls,
  16021. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  16022. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16023. sec_tdm_tx_0_mixer_controls,
  16024. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  16025. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16026. tert_tdm_rx_0_mixer_controls,
  16027. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  16028. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16029. tert_tdm_tx_0_mixer_controls,
  16030. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  16031. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16032. tert_tdm_rx_1_mixer_controls,
  16033. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  16034. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16035. tert_tdm_rx_2_mixer_controls,
  16036. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  16037. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16038. tert_tdm_rx_3_mixer_controls,
  16039. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  16040. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16041. tert_tdm_rx_4_mixer_controls,
  16042. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  16043. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16044. quat_tdm_rx_0_mixer_controls,
  16045. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  16046. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16047. quat_tdm_tx_0_mixer_controls,
  16048. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  16049. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16050. quat_tdm_rx_1_mixer_controls,
  16051. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  16052. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16053. quat_tdm_rx_2_mixer_controls,
  16054. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  16055. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16056. quat_tdm_rx_3_mixer_controls,
  16057. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  16058. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16059. quin_tdm_rx_0_mixer_controls,
  16060. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  16061. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16062. quin_tdm_tx_0_mixer_controls,
  16063. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  16064. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16065. quin_tdm_rx_1_mixer_controls,
  16066. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  16067. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16068. quin_tdm_rx_2_mixer_controls,
  16069. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  16070. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16071. quin_tdm_rx_3_mixer_controls,
  16072. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  16073. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16074. wsa_cdc_dma_rx_0_mixer_controls,
  16075. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  16076. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16077. wsa_cdc_dma_rx_1_mixer_controls,
  16078. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  16079. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  16080. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  16081. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  16082. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  16083. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  16084. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  16085. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  16086. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  16087. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  16088. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  16089. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  16090. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  16091. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  16092. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  16093. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  16094. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  16095. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  16096. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  16097. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  16098. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  16099. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  16100. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  16101. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  16102. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  16103. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  16104. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  16105. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  16106. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  16107. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  16108. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  16109. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  16110. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  16111. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16112. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  16113. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16114. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  16115. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16116. tert_auxpcm_rx_mixer_controls,
  16117. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  16118. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16119. quat_auxpcm_rx_mixer_controls,
  16120. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  16121. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16122. quin_auxpcm_rx_mixer_controls,
  16123. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  16124. /* incall */
  16125. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  16126. incall_music_delivery_mixer_controls,
  16127. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  16128. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16129. incall_music2_delivery_mixer_controls,
  16130. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  16131. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16132. slimbus_4_rx_mixer_controls,
  16133. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  16134. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16135. slimbus_6_rx_mixer_controls,
  16136. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  16137. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16138. usb_audio_rx_mixer_controls,
  16139. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  16140. /* Voice Mixer */
  16141. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  16142. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  16143. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  16144. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  16145. SND_SOC_NOPM, 0, 0,
  16146. sec_i2s_rx_voice_mixer_controls,
  16147. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  16148. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  16149. SND_SOC_NOPM, 0, 0,
  16150. sec_mi2s_rx_voice_mixer_controls,
  16151. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  16152. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  16153. SND_SOC_NOPM, 0, 0,
  16154. slimbus_rx_voice_mixer_controls,
  16155. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  16156. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  16157. SND_SOC_NOPM, 0, 0,
  16158. bt_sco_rx_voice_mixer_controls,
  16159. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  16160. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  16161. SND_SOC_NOPM, 0, 0,
  16162. afe_pcm_rx_voice_mixer_controls,
  16163. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  16164. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  16165. SND_SOC_NOPM, 0, 0,
  16166. aux_pcm_rx_voice_mixer_controls,
  16167. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  16168. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  16169. SND_SOC_NOPM, 0, 0,
  16170. sec_aux_pcm_rx_voice_mixer_controls,
  16171. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  16172. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  16173. SND_SOC_NOPM, 0, 0,
  16174. tert_aux_pcm_rx_voice_mixer_controls,
  16175. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  16176. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  16177. SND_SOC_NOPM, 0, 0,
  16178. quat_aux_pcm_rx_voice_mixer_controls,
  16179. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  16180. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  16181. SND_SOC_NOPM, 0, 0,
  16182. quin_aux_pcm_rx_voice_mixer_controls,
  16183. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  16184. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  16185. SND_SOC_NOPM, 0, 0,
  16186. hdmi_rx_voice_mixer_controls,
  16187. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  16188. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  16189. SND_SOC_NOPM, 0, 0,
  16190. mi2s_rx_voice_mixer_controls,
  16191. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  16192. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  16193. SND_SOC_NOPM, 0, 0,
  16194. pri_mi2s_rx_voice_mixer_controls,
  16195. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  16196. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  16197. SND_SOC_NOPM, 0, 0,
  16198. int0_mi2s_rx_voice_mixer_controls,
  16199. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  16200. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  16201. SND_SOC_NOPM, 0, 0,
  16202. int4_mi2s_rx_voice_mixer_controls,
  16203. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  16204. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  16205. SND_SOC_NOPM, 0, 0,
  16206. tert_mi2s_rx_voice_mixer_controls,
  16207. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  16208. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  16209. SND_SOC_NOPM, 0, 0,
  16210. quat_mi2s_rx_voice_mixer_controls,
  16211. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  16212. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  16213. SND_SOC_NOPM, 0, 0,
  16214. quin_mi2s_rx_voice_mixer_controls,
  16215. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  16216. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  16217. SND_SOC_NOPM, 0, 0,
  16218. quat_tdm_rx_2_voice_mixer_controls,
  16219. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  16220. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  16221. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  16222. ARRAY_SIZE(tx_voip_mixer_controls)),
  16223. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  16224. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  16225. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  16226. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  16227. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  16228. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  16229. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16230. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  16231. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16232. int_bt_a2dp_rx_mixer_controls,
  16233. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  16234. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16235. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  16236. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16237. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  16238. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  16239. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  16240. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  16241. tx_voice2_stub_mixer_controls,
  16242. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  16243. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  16244. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  16245. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  16246. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  16247. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  16248. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  16249. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16250. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  16251. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  16252. SND_SOC_NOPM, 0, 0,
  16253. slimbus_6_rx_voice_mixer_controls,
  16254. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  16255. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16256. slimbus_7_rx_voice_mixer_controls,
  16257. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  16258. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16259. slimbus_8_rx_voice_mixer_controls,
  16260. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  16261. /* port mixer */
  16262. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  16263. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  16264. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  16265. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  16266. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  16267. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  16268. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  16269. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  16270. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  16271. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  16272. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  16273. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  16274. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  16275. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  16276. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  16277. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  16278. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  16279. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  16280. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16281. sbus_1_rx_port_mixer_controls,
  16282. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  16283. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16284. bt_sco_rx_port_mixer_controls,
  16285. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  16286. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  16287. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  16288. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  16289. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  16290. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  16291. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  16292. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  16293. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  16294. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  16295. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  16296. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  16297. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  16298. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  16299. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  16300. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  16301. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  16302. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  16303. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  16304. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  16305. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  16306. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  16307. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16308. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  16309. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16310. primary_mi2s_rx_port_mixer_controls,
  16311. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  16312. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16313. sec_mi2s_rx_port_mixer_controls,
  16314. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  16315. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16316. tert_mi2s_rx_port_mixer_controls,
  16317. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  16318. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16319. quat_mi2s_rx_port_mixer_controls,
  16320. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  16321. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16322. quin_mi2s_rx_port_mixer_controls,
  16323. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  16324. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16325. pri_tdm_rx_0_port_mixer_controls,
  16326. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  16327. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16328. pri_tdm_rx_1_port_mixer_controls,
  16329. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  16330. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16331. pri_tdm_rx_2_port_mixer_controls,
  16332. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  16333. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16334. pri_tdm_rx_3_port_mixer_controls,
  16335. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  16336. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16337. sec_tdm_rx_0_port_mixer_controls,
  16338. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  16339. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16340. sec_tdm_rx_1_port_mixer_controls,
  16341. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  16342. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16343. sec_tdm_rx_2_port_mixer_controls,
  16344. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  16345. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16346. sec_tdm_rx_3_port_mixer_controls,
  16347. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  16348. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16349. tert_tdm_rx_0_port_mixer_controls,
  16350. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  16351. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16352. tert_tdm_rx_1_port_mixer_controls,
  16353. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  16354. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16355. tert_tdm_rx_2_port_mixer_controls,
  16356. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  16357. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16358. tert_tdm_rx_3_port_mixer_controls,
  16359. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  16360. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16361. quat_tdm_rx_0_port_mixer_controls,
  16362. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  16363. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16364. quat_tdm_rx_1_port_mixer_controls,
  16365. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  16366. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16367. quat_tdm_rx_2_port_mixer_controls,
  16368. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  16369. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16370. quat_tdm_rx_3_port_mixer_controls,
  16371. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  16372. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16373. quin_tdm_rx_0_port_mixer_controls,
  16374. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  16375. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16376. quin_tdm_rx_1_port_mixer_controls,
  16377. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  16378. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16379. quin_tdm_rx_2_port_mixer_controls,
  16380. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  16381. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16382. quin_tdm_rx_3_port_mixer_controls,
  16383. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  16384. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16385. int0_mi2s_rx_port_mixer_controls,
  16386. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  16387. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16388. int4_mi2s_rx_port_mixer_controls,
  16389. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  16390. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  16391. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  16392. ARRAY_SIZE(tx_qchat_mixer_controls)),
  16393. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  16394. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  16395. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  16396. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  16397. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  16398. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  16399. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  16400. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  16401. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  16402. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  16403. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  16404. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  16405. /* lsm mixer definitions */
  16406. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  16407. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  16408. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  16409. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  16410. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  16411. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  16412. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  16413. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  16414. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  16415. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  16416. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  16417. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  16418. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  16419. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  16420. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  16421. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  16422. /* Virtual Pins to force backends ON atm */
  16423. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  16424. SND_SOC_DAPM_INPUT("BE_IN"),
  16425. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16426. &slim0_rx_vi_fb_lch_mux),
  16427. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16428. &slim0_rx_vi_fb_rch_mux),
  16429. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16430. &wsa_rx_0_vi_fb_lch_mux),
  16431. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16432. &wsa_rx_0_vi_fb_rch_mux),
  16433. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  16434. &mi2s_rx_vi_fb_mux),
  16435. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16436. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  16437. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16438. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  16439. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  16440. &voc_ext_ec_mux),
  16441. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  16442. &ext_ec_ref_mux_ul1),
  16443. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  16444. &ext_ec_ref_mux_ul2),
  16445. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  16446. &ext_ec_ref_mux_ul3),
  16447. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  16448. &ext_ec_ref_mux_ul4),
  16449. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  16450. &ext_ec_ref_mux_ul5),
  16451. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  16452. &ext_ec_ref_mux_ul6),
  16453. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  16454. &ext_ec_ref_mux_ul8),
  16455. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  16456. &ext_ec_ref_mux_ul9),
  16457. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  16458. &ext_ec_ref_mux_ul10),
  16459. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  16460. &ext_ec_ref_mux_ul16),
  16461. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  16462. &ext_ec_ref_mux_ul17),
  16463. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  16464. &ext_ec_ref_mux_ul18),
  16465. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  16466. &ext_ec_ref_mux_ul19),
  16467. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  16468. &ext_ec_ref_mux_ul28),
  16469. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  16470. &ext_ec_ref_mux_ul29),
  16471. };
  16472. static const struct snd_soc_dapm_route intercon[] = {
  16473. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16474. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16475. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16476. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16477. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16478. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16479. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16480. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16481. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16482. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16483. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16484. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16485. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16486. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16487. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16488. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16489. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  16490. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16491. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16492. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16493. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16494. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16495. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16496. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16497. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16498. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16499. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16500. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16501. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16502. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16503. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16504. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16505. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16506. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  16507. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16508. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16509. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16510. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16511. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16512. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16513. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16514. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16515. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16516. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16517. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16518. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16519. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16520. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16521. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16522. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16523. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  16524. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16525. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16526. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16527. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16528. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16529. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16530. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16531. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16532. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16533. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16534. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16535. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16536. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16537. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16538. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16539. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16540. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  16541. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16542. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16543. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16544. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16545. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16546. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16547. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16548. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16549. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16550. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16551. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16552. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16553. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16554. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16555. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16556. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16557. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  16558. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16559. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16560. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16561. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16562. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16563. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16564. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16565. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16566. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16567. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16568. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16569. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16570. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16571. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16572. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16573. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16574. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  16575. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16576. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16577. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16578. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16579. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16580. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16581. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16582. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16583. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16584. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16585. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16586. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16587. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16588. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16589. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16590. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16591. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  16592. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  16593. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  16594. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  16595. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  16596. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  16597. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  16598. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  16599. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  16600. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  16601. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  16602. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  16603. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  16604. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  16605. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  16606. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  16607. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  16608. {"HDMI", NULL, "HDMI Mixer"},
  16609. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  16610. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  16611. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  16612. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  16613. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  16614. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  16615. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  16616. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  16617. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  16618. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  16619. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  16620. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  16621. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  16622. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  16623. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  16624. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  16625. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  16626. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  16627. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  16628. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  16629. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  16630. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  16631. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  16632. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  16633. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  16634. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  16635. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  16636. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  16637. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  16638. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  16639. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  16640. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  16641. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  16642. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  16643. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16644. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16645. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16646. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16647. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16648. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16649. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16650. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16651. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16652. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16653. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16654. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16655. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16656. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16657. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16658. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16659. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  16660. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16661. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16662. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16663. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16664. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16665. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16666. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16667. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16668. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16669. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16670. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16671. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16672. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16673. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16674. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16675. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16676. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  16677. /* incall */
  16678. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  16679. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  16680. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  16681. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  16682. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  16683. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16684. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16685. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16686. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16687. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  16688. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16689. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16690. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16691. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16692. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  16693. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16694. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16695. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16696. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16697. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16698. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16699. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16700. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16701. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16702. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16703. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16704. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16705. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16706. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16707. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16708. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16709. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  16710. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16711. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16712. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16713. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16714. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16715. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16716. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16717. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16718. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16719. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16720. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16721. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16722. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16723. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16724. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16725. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16726. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  16727. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16728. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16729. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16730. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16731. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16732. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16733. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16734. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16735. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16736. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16737. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16738. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16739. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16740. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16741. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16742. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16743. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  16744. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16745. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16746. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16747. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16748. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16749. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16750. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  16751. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16752. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16753. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16754. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16755. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16756. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16757. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16758. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16759. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16760. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16761. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16762. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16763. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16764. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16765. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16766. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16767. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16768. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16769. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16770. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16771. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16772. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16773. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16774. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16775. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16776. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16777. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16778. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16779. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16780. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16781. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16782. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16783. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16784. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16785. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16786. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16787. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16788. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16789. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16790. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  16791. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  16792. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16793. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16794. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16795. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16796. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16797. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16798. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16799. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16800. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16801. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16802. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16803. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16804. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16805. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16806. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16807. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16808. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  16809. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16810. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16811. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16812. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16813. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16814. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16815. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16816. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16817. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16818. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16819. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16820. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16821. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16822. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16823. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16824. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  16825. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16826. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16827. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16828. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16829. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16830. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16831. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16832. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16833. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16834. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16835. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16836. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16837. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16838. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16839. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  16840. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16841. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16842. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16843. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16844. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16845. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16846. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16847. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16848. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16849. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16850. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16851. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16852. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16853. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16854. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  16855. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16856. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  16857. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16858. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16859. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16860. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16861. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16862. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16863. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16864. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16865. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16866. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16867. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16868. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16869. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16870. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16871. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16872. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16873. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16874. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  16875. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16876. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16877. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16878. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16879. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16880. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16881. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16882. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16883. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16884. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16885. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16886. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16887. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16888. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16889. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16890. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  16891. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16892. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16893. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16894. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16895. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16896. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16897. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16898. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16899. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16900. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16901. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16902. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16903. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16904. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16905. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16906. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  16907. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16908. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16909. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16910. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16911. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16912. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16913. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16914. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16915. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16916. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16917. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16918. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16919. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16920. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16921. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16922. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16923. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16924. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  16925. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16926. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16927. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16928. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16929. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16930. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16931. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16932. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16933. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16934. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16935. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16936. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16937. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16938. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16939. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16940. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16941. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  16942. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16943. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16944. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16945. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16946. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16947. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16948. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16949. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16950. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16951. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16952. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16953. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16954. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16955. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16956. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16957. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16958. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  16959. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16960. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16961. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16962. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16963. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16964. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16965. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16966. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16967. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16968. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16969. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16970. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16971. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16972. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16973. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16974. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16975. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  16976. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16977. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16978. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16979. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16980. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16981. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16982. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16983. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16984. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16985. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16986. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16987. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16988. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16989. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16990. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16991. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16992. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  16993. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16994. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16995. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16996. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16997. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16998. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16999. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17000. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17001. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17002. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17003. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17004. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17005. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17006. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17007. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17008. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17009. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  17010. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17011. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17012. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17013. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17014. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17015. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17016. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17017. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17018. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17019. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17020. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17021. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17022. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17023. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17024. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17025. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17026. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  17027. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17028. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17029. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17030. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17031. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17032. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17033. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17034. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17035. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17036. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17037. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17038. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17039. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17040. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17041. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17042. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17043. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  17044. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17045. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17046. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17047. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17048. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17049. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17050. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17051. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17052. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17053. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17054. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17055. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17056. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17057. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17058. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17059. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17060. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  17061. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17062. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17063. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17064. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17065. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17066. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17067. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17068. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17069. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17070. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17071. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17072. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17073. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17074. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17075. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17076. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17077. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  17078. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17079. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17080. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17081. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17082. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17083. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17084. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17085. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17086. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17087. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17088. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17089. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17090. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17091. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17092. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17093. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17094. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  17095. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17096. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17097. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17098. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17099. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17100. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17101. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17102. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17103. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17104. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17105. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17106. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17107. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17108. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17109. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17110. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17111. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  17112. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17113. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17114. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17115. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17116. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17117. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17118. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17119. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17120. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17121. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17122. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17123. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17124. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17125. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17126. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17127. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17128. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  17129. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17130. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17131. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17132. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17133. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17134. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17135. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17136. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17137. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17138. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17139. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17140. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17141. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17142. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17143. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17144. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17145. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  17146. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17147. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17148. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17149. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17150. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17151. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17152. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17153. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17154. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17155. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17156. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17157. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17158. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17159. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17160. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17161. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17162. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  17163. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17164. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17165. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17166. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17167. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17168. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17169. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17170. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17171. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17172. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17173. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17174. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17175. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17176. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17177. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17178. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17179. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  17180. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17181. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17182. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17183. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17184. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17185. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17186. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17187. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17188. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17189. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17190. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17191. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17192. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17193. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17194. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17195. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17196. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  17197. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17198. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17199. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17200. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17201. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17202. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17203. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17204. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17205. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17206. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17207. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17208. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17209. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17210. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17211. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17212. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17213. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17214. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  17215. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17216. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17217. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17218. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17219. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17220. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17221. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17222. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17223. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17224. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17225. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17226. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17227. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17228. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17229. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17230. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17231. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  17232. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17233. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17234. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17235. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17236. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17237. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17238. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17239. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17240. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17241. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17242. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17243. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17244. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17245. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17246. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17247. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17248. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17249. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  17250. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17251. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17252. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17253. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17254. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17255. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17256. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17257. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17258. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17259. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17260. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17261. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17262. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17263. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17264. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17265. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17266. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17267. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  17268. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17269. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17270. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17271. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17272. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17273. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17274. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17275. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17276. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17277. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17278. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17279. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17280. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17281. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17282. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17283. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17284. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17285. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  17286. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17287. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17288. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17289. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17290. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17291. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17292. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17293. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17294. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17295. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17296. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17297. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17298. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17299. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17300. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17301. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17302. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17303. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  17304. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17305. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17306. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17307. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17308. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17309. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17310. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17311. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17312. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17313. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17314. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17315. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17316. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17317. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17318. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17319. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17320. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  17321. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17322. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17323. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17324. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17325. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17326. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17327. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17328. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17329. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17330. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17331. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17332. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17333. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17334. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17335. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17336. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17337. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17338. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  17339. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17340. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17341. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17342. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17343. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17344. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17345. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17346. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17347. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17348. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17349. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17350. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17351. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17352. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17353. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17354. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17355. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17356. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  17357. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17358. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17359. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17360. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17361. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17362. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17363. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17364. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17365. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17366. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17367. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17368. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17369. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17370. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17371. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17372. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17373. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17374. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  17375. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  17376. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  17377. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  17378. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  17379. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  17380. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  17381. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  17382. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17383. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17384. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17385. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17386. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17387. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17388. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17389. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17390. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17391. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17392. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17393. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17394. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17395. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17396. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17397. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17398. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17399. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17400. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17401. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17402. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17403. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17404. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  17405. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17406. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17407. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17408. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  17409. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17410. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17411. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17412. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17413. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  17414. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17415. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17416. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17417. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  17418. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17419. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17420. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17421. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17422. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17423. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17424. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17425. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17426. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17427. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17428. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17429. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17430. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17431. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17432. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17433. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17434. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17435. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17436. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17437. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17438. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17439. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17440. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17441. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17442. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17443. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17444. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17445. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17446. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17447. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17448. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17449. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17450. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17451. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17452. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17453. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17454. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17455. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17456. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17457. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17458. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17459. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17460. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17461. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17462. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17463. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17464. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17465. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17466. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17467. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17468. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17469. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17470. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17471. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17472. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17473. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  17474. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  17475. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17476. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17477. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17478. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17479. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17480. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17481. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17482. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17483. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17484. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17485. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17486. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17487. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17488. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17489. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17490. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17491. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17492. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17493. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17494. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17495. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17496. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17497. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17498. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17499. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17500. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  17501. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  17502. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17503. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17504. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17505. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17506. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17507. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17508. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17509. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17510. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17511. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17512. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17513. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17514. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17515. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17516. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17517. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17518. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17519. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17520. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17521. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17522. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17523. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17524. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17525. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17526. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17527. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  17528. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  17529. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17530. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17531. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17532. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17533. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17534. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17535. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17536. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17537. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17538. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17539. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17540. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17541. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17542. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17543. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17544. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17545. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17546. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17547. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17548. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17549. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17550. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17551. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17552. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17553. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17554. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  17555. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  17556. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17557. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17558. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17559. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17560. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17561. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17562. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17563. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17564. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17565. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17566. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17567. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17568. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17569. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17570. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17571. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17572. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17573. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17574. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17575. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17576. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17577. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17578. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17579. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17580. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17581. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  17582. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  17583. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17584. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17585. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17586. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17587. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17588. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17589. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17590. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17591. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17592. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17593. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17594. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17595. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17596. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17597. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17598. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17599. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17600. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17601. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17602. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17603. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17604. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17605. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17606. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17607. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17608. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  17609. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  17610. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17611. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17612. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17613. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17614. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17615. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17616. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17617. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17618. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17619. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17620. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17621. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17622. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17623. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17624. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17625. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17626. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17627. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17628. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17629. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17630. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17631. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17632. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17633. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17634. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17635. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17636. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  17637. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  17638. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17639. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17640. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17641. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17642. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17643. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17644. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17645. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17646. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17647. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17648. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17649. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17650. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17651. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17652. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17653. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17654. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17655. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17656. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  17657. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  17658. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17659. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17660. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17661. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17662. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17663. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17664. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17665. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17666. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17667. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17668. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17669. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17670. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17671. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17672. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17673. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17674. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17675. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17676. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17677. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17678. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17679. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17680. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17681. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17682. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17683. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17684. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17685. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17686. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17687. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17688. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17689. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17690. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17691. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17692. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17693. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17694. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17695. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17696. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17697. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  17698. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  17699. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17700. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17701. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17702. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17703. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17704. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17705. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17706. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17707. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17708. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17709. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17710. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17711. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17712. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17713. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17714. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17715. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17716. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17717. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17718. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17719. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17720. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17721. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17722. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17723. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17724. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17725. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17726. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17727. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17728. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17729. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  17730. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  17731. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17732. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17733. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17734. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17735. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17736. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17737. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17738. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17739. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17740. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17741. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17742. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17743. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17744. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17745. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17746. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17747. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17748. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  17749. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17750. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17751. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17752. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17753. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17754. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17755. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17756. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17757. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17758. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17759. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17760. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17761. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17762. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17763. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17764. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17765. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17766. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  17767. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17768. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17769. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17770. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17771. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17772. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17773. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17774. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17775. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17776. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17777. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17778. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17779. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17780. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17781. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17782. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17783. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  17784. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17785. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17786. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17787. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17788. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17789. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17790. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17791. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17792. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17793. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17794. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17795. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17796. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17797. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17798. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17799. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17800. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  17801. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17802. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17803. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17804. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17805. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17806. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17807. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17808. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17809. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17810. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17811. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17812. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17813. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17814. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17815. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17816. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17817. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17818. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17819. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17820. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17821. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17822. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17823. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17824. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17825. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17826. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17827. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17828. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17829. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17830. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17831. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17832. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17833. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17834. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17835. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17836. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  17837. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17838. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  17839. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  17840. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  17841. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  17842. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  17843. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  17844. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  17845. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  17846. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  17847. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  17848. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  17849. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  17850. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  17851. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  17852. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  17853. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17854. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17855. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17856. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17857. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17858. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17859. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17860. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17861. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17862. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17863. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17864. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17865. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17866. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17867. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17868. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17869. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  17870. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17871. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17872. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17873. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17874. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17875. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17876. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17877. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17878. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17879. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17880. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17881. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17882. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17883. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17884. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17885. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17886. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  17887. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17888. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17889. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17890. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17891. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17892. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17893. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17894. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17895. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17896. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17897. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17898. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17899. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17900. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17901. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17902. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17903. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  17904. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17905. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17906. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17907. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17908. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17909. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17910. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17911. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17912. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17913. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17914. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17915. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17916. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17917. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17918. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17919. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17920. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  17921. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17922. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17923. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17924. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17925. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17926. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17927. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17928. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17929. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17930. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17931. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17932. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17933. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17934. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17935. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17936. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17937. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  17938. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17939. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17940. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17941. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17942. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17943. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  17944. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17945. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17946. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17947. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  17948. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17949. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17950. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17951. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17952. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17953. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  17954. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17955. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17956. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17957. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17958. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17959. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  17960. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17961. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17962. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17963. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17964. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17965. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  17966. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17967. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17968. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17969. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17970. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17971. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  17972. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17973. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17974. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17975. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17976. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17977. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  17978. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  17979. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17980. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17981. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17982. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17983. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  17984. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17985. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17986. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17987. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17988. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17989. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  17990. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17991. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17992. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17993. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17994. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17995. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  17996. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17997. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17998. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17999. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18000. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18001. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  18002. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18003. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18004. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18005. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18006. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18007. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  18008. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18009. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18010. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18011. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18012. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18013. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  18014. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18015. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18016. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18017. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18018. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18019. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  18020. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18021. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18022. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18023. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18024. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18025. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  18026. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18027. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18028. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18029. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18030. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18031. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  18032. {"HDMI", NULL, "HDMI_DL_HL"},
  18033. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18034. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18035. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18036. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18037. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18038. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  18039. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18040. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18041. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18042. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18043. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18044. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  18045. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18046. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18047. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18048. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18049. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18050. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  18051. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18052. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18053. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18054. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18055. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18056. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  18057. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18058. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18059. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18060. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18061. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18062. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  18063. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18064. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18065. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18066. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18067. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  18068. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18069. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18070. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18071. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18072. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  18073. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18074. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  18075. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18076. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18077. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18078. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18079. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18080. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18081. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  18082. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  18083. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  18084. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18085. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18086. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18087. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18088. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18089. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18090. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  18091. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  18092. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  18093. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18094. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18095. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18096. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18097. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18098. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18099. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18100. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18101. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18102. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18103. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18104. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18105. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18106. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18107. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18108. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18109. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18110. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18111. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18112. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18113. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18114. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18115. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18116. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18117. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18118. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18119. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18120. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18121. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18122. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18123. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18124. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18125. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18126. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18127. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18128. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  18129. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  18130. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  18131. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18132. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18133. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18134. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18135. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18136. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18137. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18138. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18139. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18140. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18141. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18142. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18143. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18144. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18145. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18146. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18147. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18148. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18149. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18150. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18151. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18152. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18153. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18154. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18155. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18156. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18157. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18158. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18159. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18160. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18161. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18162. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18163. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18164. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18165. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  18166. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  18167. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  18168. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  18169. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  18170. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  18171. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  18172. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  18173. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  18174. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  18175. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  18176. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  18177. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  18178. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  18179. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  18180. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  18181. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  18182. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  18183. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  18184. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  18185. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  18186. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  18187. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  18188. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  18189. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  18190. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  18191. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  18192. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  18193. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  18194. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  18195. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  18196. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  18197. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  18198. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  18199. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  18200. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  18201. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  18202. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  18203. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  18204. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  18205. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  18206. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  18207. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  18208. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  18209. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  18210. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  18211. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  18212. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  18213. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  18214. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  18215. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  18216. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  18217. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  18218. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  18219. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  18220. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  18221. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  18222. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  18223. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  18224. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  18225. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  18226. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  18227. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  18228. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  18229. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  18230. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  18231. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  18232. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  18233. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  18234. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  18235. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  18236. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  18237. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  18238. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  18239. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  18240. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  18241. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  18242. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  18243. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  18244. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  18245. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  18246. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  18247. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  18248. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  18249. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18250. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18251. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18252. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18253. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18254. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18255. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18256. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18257. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18258. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18259. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  18260. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18261. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18262. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18263. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18264. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18265. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18266. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18267. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18268. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18269. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18270. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  18271. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18272. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18273. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18274. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18275. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18276. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18277. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18278. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18279. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18280. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18281. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  18282. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18283. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18284. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18285. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18286. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18287. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18288. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18289. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18290. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18291. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18292. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  18293. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18294. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18295. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18296. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18297. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18298. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18299. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18300. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18301. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18302. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18303. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  18304. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18305. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18306. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18307. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18308. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18309. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18310. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18311. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18312. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  18313. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18314. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18315. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18316. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18317. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18318. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18319. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18320. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18321. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  18322. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18323. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18324. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18325. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18326. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18327. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18328. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18329. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18330. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  18331. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  18332. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  18333. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  18334. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  18335. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  18336. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  18337. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  18338. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  18339. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  18340. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  18341. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  18342. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  18343. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  18344. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  18345. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  18346. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  18347. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  18348. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  18349. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  18350. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  18351. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  18352. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  18353. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  18354. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  18355. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  18356. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  18357. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  18358. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18359. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  18360. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  18361. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  18362. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18363. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  18364. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  18365. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  18366. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  18367. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  18368. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  18369. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  18370. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  18371. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18372. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  18373. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18374. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  18375. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  18376. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  18377. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  18378. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  18379. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  18380. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  18381. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  18382. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  18383. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  18384. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  18385. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18386. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  18387. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18388. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  18389. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  18390. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  18391. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  18392. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  18393. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  18394. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  18395. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  18396. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  18397. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  18398. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  18399. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  18400. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  18401. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  18402. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  18403. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  18404. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  18405. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  18406. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  18407. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  18408. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  18409. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  18410. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  18411. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  18412. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  18413. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  18414. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  18415. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  18416. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  18417. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  18418. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  18419. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  18420. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  18421. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  18422. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  18423. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  18424. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  18425. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  18426. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  18427. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  18428. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  18429. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  18430. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  18431. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  18432. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  18433. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  18434. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  18435. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18436. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18437. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18438. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18439. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18440. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18441. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18442. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18443. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18444. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18445. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18446. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18447. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18448. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18449. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18450. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18451. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18452. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18453. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18454. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18455. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  18456. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18457. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18458. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18459. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18460. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18461. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18462. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18463. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18464. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18465. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18466. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18467. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18468. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18469. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18470. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18471. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18472. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18473. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18474. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18475. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18476. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  18477. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18478. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18479. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18480. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18481. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18482. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18483. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18484. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18485. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18486. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18487. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18488. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18489. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18490. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18491. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18492. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18493. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18494. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18495. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18496. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18497. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  18498. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18499. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18500. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18501. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18502. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18503. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18504. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18505. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18506. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18507. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18508. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18509. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18510. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18511. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18512. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18513. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18514. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18515. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18516. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18517. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18518. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  18519. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18520. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18521. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18522. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18523. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18524. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18525. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18526. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18527. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18528. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18529. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18530. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18531. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18532. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18533. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18534. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18535. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18536. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18537. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18538. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18539. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  18540. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18541. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18542. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18543. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18544. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18545. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18546. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18547. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18548. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18549. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18550. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18551. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18552. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18553. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18554. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18555. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18556. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18557. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18558. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18559. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18560. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  18561. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18562. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18563. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18564. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18565. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18566. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18567. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18568. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18569. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18570. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18571. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18572. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18573. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18574. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18575. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18576. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18577. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18578. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18579. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18580. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18581. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  18582. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18583. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18584. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18585. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18586. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18587. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18588. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18589. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18590. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18591. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18592. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18593. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18594. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18595. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18596. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18597. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18598. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18599. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18600. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18601. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18602. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  18603. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18604. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18605. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18606. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18607. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18608. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18609. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18610. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18611. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18612. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18613. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18614. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18615. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18616. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18617. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18618. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18619. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18620. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18621. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18622. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18623. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  18624. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18625. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18626. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18627. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18628. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18629. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18630. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18631. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18632. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18633. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18634. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18635. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18636. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18637. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18638. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18639. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18640. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18641. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18642. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18643. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18644. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  18645. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18646. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18647. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18648. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18649. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18650. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18651. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18652. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18653. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18654. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18655. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18656. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18657. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18658. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18659. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18660. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18661. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18662. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18663. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18664. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18665. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  18666. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18667. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18668. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18669. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18670. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18671. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18672. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18673. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18674. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18675. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18676. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18677. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18678. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18679. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18680. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18681. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18682. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18683. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18684. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18685. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18686. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  18687. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18688. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18689. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18690. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18691. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18692. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18693. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18694. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18695. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18696. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18697. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18698. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18699. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18700. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18701. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18702. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18703. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18704. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18705. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18706. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18707. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  18708. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18709. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18710. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18711. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18712. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18713. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18714. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18715. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18716. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18717. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18718. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18719. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18720. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18721. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18722. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18723. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18724. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18725. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18726. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18727. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18728. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  18729. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18730. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18731. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18732. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18733. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18734. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18735. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18736. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18737. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18738. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18739. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18740. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18741. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18742. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18743. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18744. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18745. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18746. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18747. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18748. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18749. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  18750. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18751. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18752. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18753. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18754. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18755. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18756. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18757. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18758. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18759. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18760. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18761. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18762. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18763. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18764. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18765. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18766. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18767. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18768. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18769. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18770. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  18771. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18772. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18773. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18774. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18775. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18776. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18777. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18778. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18779. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18780. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18781. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18782. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18783. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18784. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18785. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18786. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18787. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18788. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18789. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18790. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18791. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  18792. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18793. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18794. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18795. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18796. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18797. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18798. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18799. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18800. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18801. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18802. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18803. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18804. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18805. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18806. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18807. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18808. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18809. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18810. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18811. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18812. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  18813. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18814. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18815. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18816. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18817. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18818. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18819. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18820. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18821. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18822. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18823. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18824. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18825. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18826. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18827. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18828. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18829. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18830. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18831. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18832. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18833. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  18834. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18835. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18836. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18837. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18838. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18839. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18840. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18841. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18842. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18843. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18844. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18845. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18846. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18847. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18848. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18849. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18850. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18851. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18852. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18853. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18854. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  18855. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18856. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18857. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18858. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18859. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18860. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18861. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18862. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18863. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18864. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18865. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  18866. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18867. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18868. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18869. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18870. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18871. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18872. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18873. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18874. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18875. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18876. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  18877. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18878. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18879. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18880. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18881. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18882. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18883. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18884. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18885. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18886. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18887. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18888. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18889. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18890. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18891. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18892. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18893. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18894. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  18895. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18896. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18897. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  18898. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  18899. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  18900. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  18901. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  18902. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  18903. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18904. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18905. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18906. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18907. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18908. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18909. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  18910. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18911. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18912. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18913. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18914. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  18915. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18916. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18917. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18918. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  18919. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18920. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18921. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18922. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  18923. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18924. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18925. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18926. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  18927. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18928. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18929. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18930. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18931. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18932. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18933. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18934. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18935. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18936. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  18937. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18938. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18939. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18940. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18941. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18942. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18943. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18944. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18945. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18946. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  18947. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18948. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18949. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18950. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18951. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18952. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18953. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18954. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18955. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18956. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18957. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18958. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  18959. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18960. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18961. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18962. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18963. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18964. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18965. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18966. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18967. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18968. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18969. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18970. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  18971. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18972. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18973. {"STUB_RX", NULL, "STUB_RX Mixer"},
  18974. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18975. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18976. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  18977. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18978. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18979. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  18980. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18981. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18982. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18983. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18984. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18985. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  18986. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18987. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18988. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18989. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18990. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18991. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  18992. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18993. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18994. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18995. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  18996. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18997. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18998. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  18999. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  19000. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  19001. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  19002. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  19003. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  19004. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  19005. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19006. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19007. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19008. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19009. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19010. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19011. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19012. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  19013. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19014. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19015. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19016. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19017. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  19018. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  19019. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  19020. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  19021. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  19022. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  19023. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  19024. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  19025. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  19026. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19027. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  19028. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  19029. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19030. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19031. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19032. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19033. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19034. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19035. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19036. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19037. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19038. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19039. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  19040. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19041. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19042. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19043. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19044. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19045. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19046. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19047. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19048. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19049. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  19050. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19051. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19052. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19053. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19054. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19055. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19056. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19057. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  19058. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19059. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19060. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19061. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19062. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19063. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19064. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19065. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19066. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19067. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  19068. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19069. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19070. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19071. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19072. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19073. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19074. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19075. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  19076. /* Backend Enablement */
  19077. {"BE_OUT", NULL, "PRI_I2S_RX"},
  19078. {"BE_OUT", NULL, "SEC_I2S_RX"},
  19079. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  19080. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  19081. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  19082. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  19083. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  19084. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  19085. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  19086. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  19087. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  19088. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  19089. {"BE_OUT", NULL, "HDMI"},
  19090. {"BE_OUT", NULL, "DISPLAY_PORT"},
  19091. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  19092. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  19093. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  19094. {"BE_OUT", NULL, "MI2S_RX"},
  19095. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  19096. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  19097. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  19098. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  19099. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  19100. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  19101. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  19102. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  19103. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  19104. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  19105. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  19106. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  19107. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  19108. {"BE_OUT", NULL, "INT_FM_RX"},
  19109. {"BE_OUT", NULL, "PCM_RX"},
  19110. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  19111. {"BE_OUT", NULL, "AUX_PCM_RX"},
  19112. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  19113. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  19114. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  19115. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  19116. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  19117. {"BE_OUT", NULL, "INT_FM_RX"},
  19118. {"BE_OUT", NULL, "PCM_RX"},
  19119. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  19120. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  19121. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  19122. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  19123. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  19124. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  19125. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  19126. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  19127. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  19128. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  19129. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  19130. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  19131. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  19132. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  19133. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  19134. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  19135. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  19136. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  19137. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  19138. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  19139. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  19140. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  19141. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  19142. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  19143. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  19144. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  19145. {"PRI_I2S_TX", NULL, "BE_IN"},
  19146. {"MI2S_TX", NULL, "BE_IN"},
  19147. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  19148. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  19149. {"PRI_MI2S_TX", NULL, "BE_IN"},
  19150. {"TERT_MI2S_TX", NULL, "BE_IN"},
  19151. {"INT0_MI2S_TX", NULL, "BE_IN"},
  19152. {"INT2_MI2S_TX", NULL, "BE_IN"},
  19153. {"INT3_MI2S_TX", NULL, "BE_IN"},
  19154. {"INT4_MI2S_TX", NULL, "BE_IN"},
  19155. {"INT5_MI2S_TX", NULL, "BE_IN"},
  19156. {"SEC_MI2S_TX", NULL, "BE_IN"},
  19157. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  19158. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  19159. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  19160. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  19161. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  19162. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  19163. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  19164. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  19165. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  19166. {"USB_AUDIO_TX", NULL, "BE_IN" },
  19167. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  19168. {"INT_FM_TX", NULL, "BE_IN"},
  19169. {"PCM_TX", NULL, "BE_IN"},
  19170. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  19171. {"BE_OUT", NULL, "STUB_RX"},
  19172. {"STUB_TX", NULL, "BE_IN"},
  19173. {"STUB_1_TX", NULL, "BE_IN"},
  19174. {"BE_OUT", NULL, "AUX_PCM_RX"},
  19175. {"AUX_PCM_TX", NULL, "BE_IN"},
  19176. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  19177. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  19178. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  19179. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  19180. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  19181. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  19182. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  19183. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  19184. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19185. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19186. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  19187. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  19188. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  19189. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  19190. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  19191. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  19192. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  19193. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  19194. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  19195. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  19196. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  19197. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  19198. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  19199. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  19200. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  19201. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  19202. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  19203. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  19204. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  19205. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  19206. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  19207. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  19208. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  19209. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  19210. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  19211. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  19212. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  19213. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  19214. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  19215. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  19216. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  19217. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  19218. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  19219. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  19220. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  19221. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  19222. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  19223. };
  19224. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  19225. struct snd_pcm_hw_params *params)
  19226. {
  19227. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  19228. unsigned int be_id = rtd->dai_link->id;
  19229. if (be_id >= MSM_BACKEND_DAI_MAX) {
  19230. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  19231. return -EINVAL;
  19232. }
  19233. mutex_lock(&routing_lock);
  19234. msm_bedais[be_id].sample_rate = params_rate(params);
  19235. msm_bedais[be_id].channel = params_channels(params);
  19236. msm_bedais[be_id].format = params_format(params);
  19237. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  19238. __func__, msm_bedais[be_id].sample_rate,
  19239. msm_bedais[be_id].format, be_id);
  19240. mutex_unlock(&routing_lock);
  19241. return 0;
  19242. }
  19243. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  19244. {
  19245. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  19246. unsigned int be_id = rtd->dai_link->id;
  19247. int i, session_type, path_type, topology;
  19248. struct msm_pcm_routing_bdai_data *bedai;
  19249. struct msm_pcm_routing_fdai_data *fdai;
  19250. pr_debug("%s: substream->pcm->id:%s\n",
  19251. __func__, substream->pcm->id);
  19252. if (be_id >= MSM_BACKEND_DAI_MAX) {
  19253. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  19254. return -EINVAL;
  19255. }
  19256. bedai = &msm_bedais[be_id];
  19257. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  19258. 0 : 1);
  19259. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  19260. path_type = ADM_PATH_PLAYBACK;
  19261. else
  19262. path_type = ADM_PATH_LIVE_REC;
  19263. mutex_lock(&routing_lock);
  19264. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19265. if (!is_mm_lsm_fe_id(i))
  19266. continue;
  19267. fdai = &fe_dai_map[i][session_type];
  19268. if (fdai->strm_id != INVALID_SESSION) {
  19269. int idx;
  19270. int port_id;
  19271. unsigned long copp =
  19272. session_copp_map[i][session_type][be_id];
  19273. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  19274. if (test_bit(idx, &copp))
  19275. break;
  19276. fdai->be_srate = bedai->sample_rate;
  19277. port_id = bedai->port_id;
  19278. topology = adm_get_topology_for_port_copp_idx(port_id,
  19279. idx);
  19280. msm_routing_unload_topology(topology);
  19281. adm_close(bedai->port_id, fdai->perf_mode, idx);
  19282. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  19283. __func__, copp, i, session_type, be_id,
  19284. topology);
  19285. clear_bit(idx,
  19286. &session_copp_map[i][session_type][be_id]);
  19287. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  19288. (bedai->passthr_mode[i] == LEGACY_PCM))
  19289. msm_pcm_routing_deinit_pp(bedai->port_id,
  19290. topology);
  19291. }
  19292. }
  19293. bedai->active = 0;
  19294. bedai->sample_rate = 0;
  19295. bedai->channel = 0;
  19296. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  19297. if (bedai->passthr_mode[i] != LISTEN)
  19298. bedai->passthr_mode[i] = LEGACY_PCM;
  19299. }
  19300. mutex_unlock(&routing_lock);
  19301. return 0;
  19302. }
  19303. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  19304. {
  19305. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  19306. unsigned int be_id = rtd->dai_link->id;
  19307. int i, path_type, topology;
  19308. int session_type = INVALID_SESSION;
  19309. struct msm_pcm_routing_bdai_data *bedai;
  19310. u32 channels, sample_rate;
  19311. uint16_t bits_per_sample = 16, voc_path_type;
  19312. struct msm_pcm_routing_fdai_data *fdai;
  19313. u32 session_id;
  19314. struct media_format_info voc_be_media_format;
  19315. bool is_lsm;
  19316. pr_debug("%s: substream->pcm->id:%s\n",
  19317. __func__, substream->pcm->id);
  19318. if (be_id >= MSM_BACKEND_DAI_MAX) {
  19319. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  19320. return -EINVAL;
  19321. }
  19322. bedai = &msm_bedais[be_id];
  19323. mutex_lock(&routing_lock);
  19324. if (bedai->active == 1)
  19325. goto done; /* Ignore prepare if back-end already active */
  19326. /* AFE port is not active at this point. However, still
  19327. * go ahead setting active flag under the notion that
  19328. * QDSP6 is able to handle ADM starting before AFE port
  19329. * is started.
  19330. */
  19331. bedai->active = 1;
  19332. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19333. if (!(is_mm_lsm_fe_id(i) &&
  19334. route_check_fe_id_adm_support(i)))
  19335. continue;
  19336. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  19337. if (bedai->passthr_mode[i] != LEGACY_PCM)
  19338. path_type = ADM_PATH_COMPRESSED_RX;
  19339. else
  19340. path_type = ADM_PATH_PLAYBACK;
  19341. session_type = SESSION_TYPE_RX;
  19342. } else {
  19343. if ((bedai->passthr_mode[i] != LEGACY_PCM) &&
  19344. (bedai->passthr_mode[i] != LISTEN))
  19345. path_type = ADM_PATH_COMPRESSED_TX;
  19346. else
  19347. path_type = ADM_PATH_LIVE_REC;
  19348. session_type = SESSION_TYPE_TX;
  19349. }
  19350. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  19351. (i <= MSM_FRONTEND_DAI_LSM8);
  19352. fdai = &fe_dai_map[i][session_type];
  19353. if (fdai->strm_id != INVALID_SESSION) {
  19354. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  19355. if (session_type == SESSION_TYPE_TX &&
  19356. fdai->be_srate &&
  19357. (fdai->be_srate != bedai->sample_rate)) {
  19358. pr_debug("%s: flush strm %d diff BE rates\n",
  19359. __func__,
  19360. fdai->strm_id);
  19361. if (fdai->event_info.event_func)
  19362. fdai->event_info.event_func(
  19363. MSM_PCM_RT_EVT_BUF_RECFG,
  19364. fdai->event_info.priv_data);
  19365. fdai->be_srate = 0; /* might not need it */
  19366. }
  19367. bits_per_sample = msm_routing_get_bit_width(
  19368. bedai->format);
  19369. app_type =
  19370. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  19371. if (app_type && is_lsm) {
  19372. app_type_idx =
  19373. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  19374. sample_rate =
  19375. fe_dai_app_type_cfg[i][session_type][be_id]
  19376. .sample_rate;
  19377. bits_per_sample =
  19378. lsm_app_type_cfg[app_type_idx].bit_width;
  19379. } else if (app_type) {
  19380. app_type_idx =
  19381. msm_pcm_routing_get_app_type_idx(app_type);
  19382. sample_rate =
  19383. fe_dai_app_type_cfg[i][session_type]
  19384. [be_id].sample_rate;
  19385. bits_per_sample =
  19386. app_type_cfg[app_type_idx].bit_width;
  19387. } else
  19388. sample_rate = bedai->sample_rate;
  19389. /*
  19390. * check if ADM needs to be configured with different
  19391. * channel mapping than backend
  19392. */
  19393. if (!bedai->adm_override_ch)
  19394. channels = bedai->channel;
  19395. else
  19396. channels = bedai->adm_override_ch;
  19397. acdb_dev_id =
  19398. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  19399. topology = msm_routing_get_adm_topology(i, session_type,
  19400. be_id);
  19401. if ((bedai->passthr_mode[i] ==
  19402. COMPRESSED_PASSTHROUGH_DSD)
  19403. || (bedai->passthr_mode[i] ==
  19404. COMPRESSED_PASSTHROUGH_GEN)
  19405. || (bedai->passthr_mode[i] ==
  19406. COMPRESSED_PASSTHROUGH_IEC61937))
  19407. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  19408. copp_idx = adm_open(bedai->port_id, path_type,
  19409. sample_rate, channels, topology,
  19410. fdai->perf_mode, bits_per_sample,
  19411. app_type, acdb_dev_id);
  19412. if ((copp_idx < 0) ||
  19413. (copp_idx >= MAX_COPPS_PER_PORT)) {
  19414. pr_err("%s: adm open failed\n", __func__);
  19415. mutex_unlock(&routing_lock);
  19416. return -EINVAL;
  19417. }
  19418. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  19419. __func__, i, session_type, be_id);
  19420. set_bit(copp_idx,
  19421. &session_copp_map[i][session_type][be_id]);
  19422. if (msm_is_resample_needed(
  19423. sample_rate,
  19424. bedai->sample_rate))
  19425. adm_copp_mfc_cfg(
  19426. bedai->port_id, copp_idx,
  19427. bedai->sample_rate);
  19428. msm_pcm_routing_build_matrix(i, session_type, path_type,
  19429. fdai->perf_mode,
  19430. bedai->passthr_mode[i]);
  19431. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  19432. (bedai->passthr_mode[i] == LEGACY_PCM))
  19433. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  19434. topology, channels);
  19435. }
  19436. }
  19437. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19438. session_id = msm_pcm_routing_get_voc_sessionid(i);
  19439. if (session_id) {
  19440. pr_debug("%s voice session_id: 0x%x\n", __func__,
  19441. session_id);
  19442. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  19443. voc_path_type = RX_PATH;
  19444. else
  19445. voc_path_type = TX_PATH;
  19446. voc_set_route_flag(session_id, voc_path_type, 1);
  19447. memset(&voc_be_media_format, 0,
  19448. sizeof(struct media_format_info));
  19449. voc_be_media_format.port_id = bedai->port_id;
  19450. voc_be_media_format.num_channels = bedai->channel;
  19451. voc_be_media_format.sample_rate = bedai->sample_rate;
  19452. voc_be_media_format.bits_per_sample = bedai->format;
  19453. /* Defaulting this to 1 for voice call usecases */
  19454. voc_be_media_format.channel_mapping[0] = 1;
  19455. voc_set_device_config(session_id, voc_path_type,
  19456. &voc_be_media_format);
  19457. if (voc_get_route_flag(session_id, RX_PATH) &&
  19458. voc_get_route_flag(session_id, TX_PATH))
  19459. voc_enable_device(session_id);
  19460. }
  19461. }
  19462. /* Check if backend is an external ec ref port and set as needed */
  19463. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  19464. memset(&voc_be_media_format, 0,
  19465. sizeof(struct media_format_info));
  19466. /* Get format info for ec ref port from msm_bedais[] */
  19467. voc_be_media_format.port_id = bedai->port_id;
  19468. voc_be_media_format.num_channels = bedai->channel;
  19469. voc_be_media_format.bits_per_sample = bedai->format;
  19470. voc_be_media_format.sample_rate = bedai->sample_rate;
  19471. /* Defaulting this to 1 for voice call usecases */
  19472. voc_be_media_format.channel_mapping[0] = 1;
  19473. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  19474. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  19475. __func__, voc_be_media_format.port_id,
  19476. voc_be_media_format.num_channels,
  19477. voc_be_media_format.bits_per_sample,
  19478. voc_be_media_format.sample_rate);
  19479. }
  19480. done:
  19481. mutex_unlock(&routing_lock);
  19482. return 0;
  19483. }
  19484. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  19485. int fe_id)
  19486. {
  19487. int index, topo_id, be_idx;
  19488. unsigned long pp_config = 0;
  19489. bool mute_on;
  19490. int latency;
  19491. bool compr_passthr_mode = true;
  19492. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  19493. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  19494. pr_err("%s: Device pp params on invalid port %d\n",
  19495. __func__, port_id);
  19496. return -EINVAL;
  19497. }
  19498. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19499. if (port_id == msm_bedais[be_idx].port_id)
  19500. break;
  19501. }
  19502. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19503. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19504. return -EINVAL;
  19505. }
  19506. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19507. if (msm_bedais_pp_params[index].port_id == port_id)
  19508. break;
  19509. }
  19510. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19511. pr_err("%s: Invalid backend pp params index %d\n",
  19512. __func__, index);
  19513. return -EINVAL;
  19514. }
  19515. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  19516. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  19517. pr_err("%s: Invalid passthrough topology 0x%x\n",
  19518. __func__, topo_id);
  19519. return -EINVAL;
  19520. }
  19521. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  19522. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  19523. compr_passthr_mode = false;
  19524. pp_config = msm_bedais_pp_params[index].pp_params_config;
  19525. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  19526. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19527. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  19528. mute_on = msm_bedais_pp_params[index].mute_on;
  19529. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19530. adm_send_compressed_device_mute(port_id,
  19531. copp_idx,
  19532. mute_on);
  19533. }
  19534. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  19535. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19536. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  19537. &pp_config);
  19538. latency = msm_bedais_pp_params[index].latency;
  19539. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19540. adm_send_compressed_device_latency(port_id,
  19541. copp_idx,
  19542. latency);
  19543. }
  19544. return 0;
  19545. }
  19546. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  19547. {
  19548. uint32_t topology = NULL_COPP_TOPOLOGY;
  19549. void *cal_info = NULL;
  19550. uint32_t size = 0;
  19551. /* Retrieve cal_info size from cal data*/
  19552. size = data_size - sizeof(struct audio_cal_type_basic);
  19553. cal_info = kzalloc(size, GFP_KERNEL);
  19554. if (!cal_info)
  19555. goto done;
  19556. memcpy(cal_info,
  19557. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  19558. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  19559. kfree(cal_info);
  19560. cal_info = NULL;
  19561. done:
  19562. pr_debug("%s: Using topology %d\n", __func__, topology);
  19563. return topology;
  19564. }
  19565. static void msm_routing_load_topology(size_t data_size, void *data)
  19566. {
  19567. uint32_t topology_id;
  19568. int ret = -EINVAL;
  19569. topology_id = msm_routing_get_topology(data_size, data);
  19570. if (topology_id != NULL_COPP_TOPOLOGY)
  19571. ret = q6core_load_unload_topo_modules(topology_id,
  19572. CORE_LOAD_TOPOLOGY);
  19573. if (ret < 0)
  19574. pr_debug("%s %d load topology failed\n",
  19575. __func__, topology_id);
  19576. }
  19577. static void msm_routing_unload_topology(uint32_t topology_id)
  19578. {
  19579. int ret = -EINVAL;
  19580. if (topology_id != NULL_COPP_TOPOLOGY)
  19581. ret = q6core_load_unload_topo_modules(topology_id,
  19582. CORE_UNLOAD_TOPOLOGY);
  19583. if (ret < 0)
  19584. pr_debug("%s %d unload topology failed\n",
  19585. __func__, topology_id);
  19586. }
  19587. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19588. struct snd_ctl_elem_value *ucontrol)
  19589. {
  19590. int pp_id = ucontrol->value.integer.value[0];
  19591. int port_id = 0;
  19592. int index, be_idx, i, topo_id, idx;
  19593. bool mute;
  19594. int latency;
  19595. bool compr_passthr_mode = true;
  19596. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  19597. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19598. port_id = msm_bedais[be_idx].port_id;
  19599. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  19600. break;
  19601. }
  19602. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19603. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19604. return -EINVAL;
  19605. }
  19606. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19607. if (msm_bedais_pp_params[index].port_id == port_id)
  19608. break;
  19609. }
  19610. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19611. pr_err("%s: Invalid pp params backend index %d\n",
  19612. __func__, index);
  19613. return -EINVAL;
  19614. }
  19615. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  19616. MSM_FRONTEND_DAI_MM_SIZE) {
  19617. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  19618. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  19619. compr_passthr_mode = false;
  19620. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19621. unsigned long copp =
  19622. session_copp_map[i]
  19623. [SESSION_TYPE_RX][be_idx];
  19624. if (!test_bit(idx, &copp))
  19625. continue;
  19626. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  19627. idx);
  19628. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  19629. continue;
  19630. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  19631. __func__, port_id, copp, msm_bedais[be_idx].active,
  19632. msm_bedais[be_idx].passthr_mode[i]);
  19633. switch (pp_id) {
  19634. case ADM_PP_PARAM_MUTE_ID:
  19635. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19636. mute = ucontrol->value.integer.value[1] ? true : false;
  19637. msm_bedais_pp_params[index].mute_on = mute;
  19638. set_bit(ADM_PP_PARAM_MUTE_BIT,
  19639. &msm_bedais_pp_params[index].pp_params_config);
  19640. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19641. adm_send_compressed_device_mute(port_id,
  19642. idx, mute);
  19643. break;
  19644. case ADM_PP_PARAM_LATENCY_ID:
  19645. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19646. msm_bedais_pp_params[index].latency =
  19647. ucontrol->value.integer.value[1];
  19648. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  19649. &msm_bedais_pp_params[index].pp_params_config);
  19650. latency = msm_bedais_pp_params[index].latency =
  19651. ucontrol->value.integer.value[1];
  19652. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19653. adm_send_compressed_device_latency(port_id,
  19654. idx, latency);
  19655. break;
  19656. default:
  19657. pr_info("%s, device pp param %d not supported\n",
  19658. __func__, pp_id);
  19659. break;
  19660. }
  19661. }
  19662. }
  19663. return 0;
  19664. }
  19665. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19666. struct snd_ctl_elem_value *ucontrol)
  19667. {
  19668. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  19669. return 0;
  19670. }
  19671. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  19672. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  19673. 0, 3, msm_routing_get_device_pp_params_mixer,
  19674. msm_routing_put_device_pp_params_mixer),
  19675. };
  19676. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  19677. struct snd_ctl_elem_value *ucontrol)
  19678. {
  19679. ucontrol->value.integer.value[0] =
  19680. core_get_license_status(ASM_MEDIA_FMT_APTX);
  19681. pr_debug("%s: status %ld\n", __func__,
  19682. ucontrol->value.integer.value[0]);
  19683. return 0;
  19684. }
  19685. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  19686. struct snd_ctl_elem_value *ucontrol)
  19687. {
  19688. int32_t status = 0;
  19689. status = core_set_license(ucontrol->value.integer.value[0],
  19690. APTX_CLASSIC_DEC_LICENSE_ID);
  19691. pr_debug("%s: status %d\n", __func__, status);
  19692. return status;
  19693. }
  19694. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  19695. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  19696. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  19697. msm_aptx_dec_license_control_put),
  19698. };
  19699. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  19700. struct snd_ctl_elem_info *uinfo)
  19701. {
  19702. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19703. uinfo->count = sizeof(be_dai_name_table);
  19704. return 0;
  19705. }
  19706. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  19707. unsigned int __user *bytes,
  19708. unsigned int size)
  19709. {
  19710. int i;
  19711. int ret = 0;
  19712. if (size < sizeof(be_dai_name_table)) {
  19713. pr_err("%s: invalid size %d requested, returning\n",
  19714. __func__, size);
  19715. ret = -EINVAL;
  19716. goto done;
  19717. }
  19718. /*
  19719. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  19720. * needed when adding new backends
  19721. */
  19722. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19723. be_dai_name_table[i].be_id = i;
  19724. strlcpy(be_dai_name_table[i].be_name,
  19725. msm_bedais[i].name,
  19726. LPASS_BE_NAME_MAX_LENGTH);
  19727. }
  19728. ret = copy_to_user(bytes, &be_dai_name_table,
  19729. sizeof(be_dai_name_table));
  19730. if (ret) {
  19731. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  19732. ret = -EFAULT;
  19733. }
  19734. done:
  19735. return ret;
  19736. }
  19737. static const struct snd_kcontrol_new
  19738. msm_routing_be_dai_name_table_mixer_controls[] = {
  19739. {
  19740. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  19741. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  19742. .info = msm_routing_be_dai_name_table_info,
  19743. .name = "Backend DAI Name Table",
  19744. .tlv.c = snd_soc_bytes_tlv_callback,
  19745. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  19746. .max = sizeof(be_dai_name_table),
  19747. .get = msm_routing_be_dai_name_table_tlv_get,
  19748. }
  19749. },
  19750. };
  19751. static int msm_routing_stereo_channel_reverse_control_get(
  19752. struct snd_kcontrol *kcontrol,
  19753. struct snd_ctl_elem_value *ucontrol)
  19754. {
  19755. ucontrol->value.integer.value[0] = swap_ch;
  19756. pr_debug("%s: Swap channel value: %ld\n", __func__,
  19757. ucontrol->value.integer.value[0]);
  19758. return 0;
  19759. }
  19760. static int msm_routing_stereo_channel_reverse_control_put(
  19761. struct snd_kcontrol *kcontrol,
  19762. struct snd_ctl_elem_value *ucontrol)
  19763. {
  19764. int i, idx, be_index, port_id;
  19765. int ret = 0;
  19766. unsigned long copp;
  19767. pr_debug("%s Swap channel value:%ld\n", __func__,
  19768. ucontrol->value.integer.value[0]);
  19769. swap_ch = ucontrol->value.integer.value[0];
  19770. mutex_lock(&routing_lock);
  19771. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  19772. port_id = msm_bedais[be_index].port_id;
  19773. if (!msm_bedais[be_index].active)
  19774. continue;
  19775. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  19776. MSM_FRONTEND_DAI_MM_SIZE) {
  19777. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  19778. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19779. if (!test_bit(idx, &copp))
  19780. continue;
  19781. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  19782. __func__, port_id, idx);
  19783. ret = adm_swap_speaker_channels(
  19784. port_id, idx,
  19785. msm_bedais[be_index].sample_rate,
  19786. swap_ch);
  19787. if (ret) {
  19788. pr_err("%s:Swap_channel failed, err=%d\n",
  19789. __func__, ret);
  19790. goto done;
  19791. }
  19792. }
  19793. }
  19794. }
  19795. done:
  19796. mutex_unlock(&routing_lock);
  19797. return ret;
  19798. }
  19799. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  19800. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  19801. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  19802. msm_routing_stereo_channel_reverse_control_put),
  19803. };
  19804. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  19805. struct snd_ctl_elem_info *uinfo)
  19806. {
  19807. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  19808. uinfo->count = 1;
  19809. return 0;
  19810. }
  19811. static int msm_routing_instance_id_support_put(
  19812. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19813. {
  19814. bool supported = ucontrol->value.integer.value[0] ? true : false;
  19815. q6common_update_instance_id_support(supported);
  19816. return 0;
  19817. }
  19818. static int msm_routing_instance_id_support_get(
  19819. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19820. {
  19821. bool supported = false;
  19822. supported = q6common_is_instance_id_supported();
  19823. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  19824. return 0;
  19825. }
  19826. static const struct snd_kcontrol_new
  19827. msm_routing_feature_support_mixer_controls[] = {
  19828. {
  19829. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  19830. SNDRV_CTL_ELEM_ACCESS_WRITE,
  19831. .info = msm_routing_instance_id_support_info,
  19832. .name = "Instance ID Support",
  19833. .put = msm_routing_instance_id_support_put,
  19834. .get = msm_routing_instance_id_support_get,
  19835. },
  19836. };
  19837. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  19838. .hw_params = msm_pcm_routing_hw_params,
  19839. .close = msm_pcm_routing_close,
  19840. .prepare = msm_pcm_routing_prepare,
  19841. };
  19842. /* Not used but frame seems to require it */
  19843. static int msm_routing_probe(struct snd_soc_platform *platform)
  19844. {
  19845. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  19846. ARRAY_SIZE(msm_qdsp6_widgets));
  19847. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  19848. ARRAY_SIZE(intercon));
  19849. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  19850. snd_soc_add_platform_controls(platform, lsm_controls,
  19851. ARRAY_SIZE(lsm_controls));
  19852. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  19853. ARRAY_SIZE(aanc_slim_0_rx_mux));
  19854. snd_soc_add_platform_controls(platform, aanc_noise_level,
  19855. ARRAY_SIZE(aanc_noise_level));
  19856. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  19857. ARRAY_SIZE(msm_voc_session_controls));
  19858. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  19859. ARRAY_SIZE(app_type_cfg_controls));
  19860. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  19861. ARRAY_SIZE(lsm_app_type_cfg_controls));
  19862. snd_soc_add_platform_controls(platform, module_cfg_controls,
  19863. ARRAY_SIZE(module_cfg_controls));
  19864. snd_soc_add_platform_controls(platform,
  19865. stereo_to_custom_stereo_controls,
  19866. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  19867. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  19868. ARRAY_SIZE(ec_ref_param_controls));
  19869. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  19870. ARRAY_SIZE(channel_mixer_controls));
  19871. msm_qti_pp_add_controls(platform);
  19872. msm_dts_srs_tm_add_controls(platform);
  19873. msm_dolby_dap_add_controls(platform);
  19874. snd_soc_add_platform_controls(platform,
  19875. use_ds1_or_ds2_controls,
  19876. ARRAY_SIZE(use_ds1_or_ds2_controls));
  19877. snd_soc_add_platform_controls(platform,
  19878. device_pp_params_mixer_controls,
  19879. ARRAY_SIZE(device_pp_params_mixer_controls));
  19880. snd_soc_add_platform_controls(platform,
  19881. msm_routing_be_dai_name_table_mixer_controls,
  19882. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  19883. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  19884. ARRAY_SIZE(msm_source_tracking_controls));
  19885. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  19886. ARRAY_SIZE(adm_channel_config_controls));
  19887. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  19888. ARRAY_SIZE(aptx_dec_license_controls));
  19889. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  19890. ARRAY_SIZE(stereo_channel_reverse_control));
  19891. snd_soc_add_platform_controls(
  19892. platform, msm_routing_feature_support_mixer_controls,
  19893. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  19894. return 0;
  19895. }
  19896. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  19897. {
  19898. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  19899. }
  19900. void msm_routing_pcm_free(struct snd_pcm *pcm)
  19901. {
  19902. msm_pcm_routing_hwdep_free(pcm);
  19903. }
  19904. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  19905. .ops = &msm_routing_pcm_ops,
  19906. .probe = msm_routing_probe,
  19907. .pcm_new = msm_routing_pcm_new,
  19908. .pcm_free = msm_routing_pcm_free,
  19909. };
  19910. static int msm_routing_pcm_probe(struct platform_device *pdev)
  19911. {
  19912. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  19913. return snd_soc_register_platform(&pdev->dev,
  19914. &msm_soc_routing_platform);
  19915. }
  19916. static int msm_routing_pcm_remove(struct platform_device *pdev)
  19917. {
  19918. snd_soc_unregister_platform(&pdev->dev);
  19919. return 0;
  19920. }
  19921. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  19922. {.compatible = "qcom,msm-pcm-routing"},
  19923. {}
  19924. };
  19925. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  19926. static struct platform_driver msm_routing_pcm_driver = {
  19927. .driver = {
  19928. .name = "msm-pcm-routing",
  19929. .owner = THIS_MODULE,
  19930. .of_match_table = msm_pcm_routing_dt_match,
  19931. },
  19932. .probe = msm_routing_pcm_probe,
  19933. .remove = msm_routing_pcm_remove,
  19934. };
  19935. int msm_routing_check_backend_enabled(int fedai_id)
  19936. {
  19937. int i;
  19938. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  19939. /* bad ID assigned in machine driver */
  19940. pr_err("%s: bad MM ID\n", __func__);
  19941. return 0;
  19942. }
  19943. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19944. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  19945. return msm_bedais[i].active;
  19946. }
  19947. return 0;
  19948. }
  19949. static int get_cal_type_index(int32_t cal_type)
  19950. {
  19951. int ret = -EINVAL;
  19952. switch (cal_type) {
  19953. case ADM_TOPOLOGY_CAL_TYPE:
  19954. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  19955. break;
  19956. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  19957. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  19958. break;
  19959. default:
  19960. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  19961. }
  19962. return ret;
  19963. }
  19964. static int msm_routing_set_cal(int32_t cal_type,
  19965. size_t data_size, void *data)
  19966. {
  19967. int ret = 0;
  19968. int cal_index;
  19969. pr_debug("%s\n", __func__);
  19970. cal_index = get_cal_type_index(cal_type);
  19971. if (cal_index < 0) {
  19972. pr_err("%s: Could not get cal index %d\n",
  19973. __func__, cal_index);
  19974. ret = -EINVAL;
  19975. goto done;
  19976. }
  19977. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  19978. if (ret < 0) {
  19979. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  19980. __func__, ret, cal_type);
  19981. ret = -EINVAL;
  19982. goto done;
  19983. }
  19984. /* Pre-load if it is ADM topology */
  19985. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  19986. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  19987. msm_routing_load_topology(data_size, data);
  19988. }
  19989. done:
  19990. return ret;
  19991. }
  19992. static void msm_routing_delete_cal_data(void)
  19993. {
  19994. pr_debug("%s\n", __func__);
  19995. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  19996. }
  19997. static int msm_routing_init_cal_data(void)
  19998. {
  19999. int ret = 0;
  20000. struct cal_type_info cal_type_info[] = {
  20001. {{ADM_TOPOLOGY_CAL_TYPE,
  20002. {NULL, NULL, NULL,
  20003. msm_routing_set_cal, NULL, NULL} },
  20004. {NULL, NULL, cal_utils_match_buf_num} },
  20005. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  20006. {NULL, NULL, NULL,
  20007. msm_routing_set_cal, NULL, NULL} },
  20008. {NULL, NULL, cal_utils_match_buf_num} },
  20009. };
  20010. pr_debug("%s\n", __func__);
  20011. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  20012. &cal_type_info[0]);
  20013. if (ret < 0) {
  20014. pr_err("%s: could not create cal type!\n",
  20015. __func__);
  20016. ret = -EINVAL;
  20017. goto err;
  20018. }
  20019. return ret;
  20020. err:
  20021. msm_routing_delete_cal_data();
  20022. return ret;
  20023. }
  20024. int __init msm_soc_routing_platform_init(void)
  20025. {
  20026. mutex_init(&routing_lock);
  20027. if (msm_routing_init_cal_data())
  20028. pr_err("%s: could not init cal data!\n", __func__);
  20029. afe_set_routing_callback(
  20030. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  20031. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  20032. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  20033. return platform_driver_register(&msm_routing_pcm_driver);
  20034. }
  20035. void msm_soc_routing_platform_exit(void)
  20036. {
  20037. msm_routing_delete_cal_data();
  20038. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  20039. mutex_destroy(&routing_lock);
  20040. platform_driver_unregister(&msm_routing_pcm_driver);
  20041. }
  20042. MODULE_DESCRIPTION("MSM routing platform driver");
  20043. MODULE_LICENSE("GPL v2");