msm-pcm-routing-v2.c 807 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638
  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. #define WEIGHT_0_DB 0x4000
  80. /* all the FEs which can support channel mixer */
  81. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  82. /* input BE for each FE */
  83. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  84. enum {
  85. MADNONE,
  86. MADAUDIO,
  87. MADBEACON,
  88. MADULTRASOUND,
  89. MADSWAUDIO,
  90. };
  91. #define ADM_LSM_PORT_INDEX 9
  92. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  93. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  94. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  95. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  96. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  97. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  98. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  99. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  100. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  101. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  102. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  103. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  104. #define LSM_FUNCTION_TEXT "LSM Function"
  105. static const char * const lsm_port_text[] = {
  106. "None",
  107. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  108. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  109. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  110. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT
  111. };
  112. struct msm_pcm_route_bdai_pp_params {
  113. u16 port_id; /* AFE port ID */
  114. unsigned long pp_params_config;
  115. bool mute_on;
  116. int latency;
  117. };
  118. static struct msm_pcm_route_bdai_pp_params
  119. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  120. {HDMI_RX, 0, 0, 0},
  121. {DISPLAY_PORT_RX, 0, 0, 0},
  122. };
  123. /*
  124. * The be_dai_name_table is passed to HAL so that it can specify the
  125. * BE ID for the BE it wants to enable based on the name. Thus there
  126. * is a matching table and structure in HAL that need to be updated
  127. * if any changes to these are made.
  128. */
  129. struct msm_pcm_route_bdai_name {
  130. unsigned int be_id;
  131. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  132. };
  133. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  134. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  135. int fe_id);
  136. static int msm_routing_get_bit_width(unsigned int format)
  137. {
  138. int bit_width;
  139. switch (format) {
  140. case SNDRV_PCM_FORMAT_S32_LE:
  141. bit_width = 32;
  142. break;
  143. case SNDRV_PCM_FORMAT_S24_LE:
  144. case SNDRV_PCM_FORMAT_S24_3LE:
  145. bit_width = 24;
  146. break;
  147. case SNDRV_PCM_FORMAT_S16_LE:
  148. default:
  149. bit_width = 16;
  150. }
  151. return bit_width;
  152. }
  153. static bool msm_is_resample_needed(int input_sr, int output_sr)
  154. {
  155. bool rc = false;
  156. if (input_sr != output_sr)
  157. rc = true;
  158. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  159. (rc ? "oh yes" : "not really"),
  160. input_sr, output_sr);
  161. return rc;
  162. }
  163. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  164. int channels)
  165. {
  166. int rc = 0;
  167. switch (topology) {
  168. case SRS_TRUMEDIA_TOPOLOGY_ID:
  169. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  170. msm_dts_srs_tm_init(port_id, copp_idx);
  171. break;
  172. case DS2_ADM_COPP_TOPOLOGY_ID:
  173. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  174. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  175. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  176. is_custom_stereo_on);
  177. if (rc < 0)
  178. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  179. __func__, topology, port_id,
  180. is_custom_stereo_on, rc);
  181. break;
  182. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  183. if (is_ds2_on) {
  184. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  185. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  186. is_custom_stereo_on);
  187. if (rc < 0)
  188. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  189. __func__, topology, port_id, rc);
  190. } else {
  191. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  192. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  193. is_custom_stereo_on);
  194. if (rc < 0)
  195. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  196. __func__, topology, port_id, rc);
  197. }
  198. break;
  199. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  200. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  201. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  202. if (rc < 0)
  203. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  204. __func__, topology, port_id, copp_idx, rc);
  205. break;
  206. default:
  207. /* custom topology specific feature param handlers */
  208. break;
  209. }
  210. }
  211. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  212. {
  213. switch (topology) {
  214. case SRS_TRUMEDIA_TOPOLOGY_ID:
  215. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  216. msm_dts_srs_tm_deinit(port_id);
  217. break;
  218. case DS2_ADM_COPP_TOPOLOGY_ID:
  219. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  220. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  221. msm_ds2_dap_deinit(port_id);
  222. break;
  223. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  224. if (is_ds2_on) {
  225. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  226. msm_ds2_dap_deinit(port_id);
  227. } else {
  228. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  229. msm_dolby_dap_deinit(port_id);
  230. }
  231. break;
  232. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  233. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  234. msm_qti_pp_asphere_deinit(port_id);
  235. break;
  236. default:
  237. /* custom topology specific feature deinit handlers */
  238. break;
  239. }
  240. }
  241. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  242. int path_type, int perf_mode)
  243. {
  244. int itr = 0, rc = 0;
  245. if ((path_type == ADM_PATH_PLAYBACK) &&
  246. (perf_mode == LEGACY_PCM_MODE) &&
  247. is_custom_stereo_on) {
  248. for (itr = 0; itr < payload.num_copps; itr++) {
  249. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  250. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  251. continue;
  252. }
  253. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  254. payload.port_id[itr],
  255. payload.copp_idx[itr],
  256. payload.session_id,
  257. Q14_GAIN_ZERO_POINT_FIVE,
  258. Q14_GAIN_ZERO_POINT_FIVE,
  259. Q14_GAIN_ZERO_POINT_FIVE,
  260. Q14_GAIN_ZERO_POINT_FIVE);
  261. if (rc < 0)
  262. pr_err("%s: err setting custom stereo\n",
  263. __func__);
  264. }
  265. }
  266. }
  267. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  268. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  269. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  270. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  271. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  272. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  273. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  274. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  275. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  276. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  277. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  278. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  279. LPASS_BE_AFE_PCM_RX},
  280. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  281. LPASS_BE_AFE_PCM_TX},
  282. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  283. LPASS_BE_AUXPCM_RX},
  284. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  285. LPASS_BE_AUXPCM_TX},
  286. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  287. LPASS_BE_VOICE_PLAYBACK_TX},
  288. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  289. LPASS_BE_VOICE2_PLAYBACK_TX},
  290. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  291. LPASS_BE_INCALL_RECORD_RX},
  292. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  293. LPASS_BE_INCALL_RECORD_TX},
  294. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  295. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  296. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  297. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  298. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  299. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  300. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  301. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  302. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  303. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  304. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  305. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  306. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  307. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  308. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  309. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  310. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  311. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  312. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  313. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  314. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  315. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  316. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  317. LPASS_BE_QUAT_MI2S_RX},
  318. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  319. LPASS_BE_QUAT_MI2S_TX},
  320. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  321. LPASS_BE_SEC_MI2S_RX},
  322. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  323. LPASS_BE_SEC_MI2S_TX},
  324. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  325. LPASS_BE_PRI_MI2S_RX},
  326. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  327. LPASS_BE_PRI_MI2S_TX},
  328. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  329. LPASS_BE_TERT_MI2S_RX},
  330. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  331. LPASS_BE_TERT_MI2S_TX},
  332. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  333. LPASS_BE_AUDIO_I2S_RX},
  334. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  335. LPASS_BE_SEC_AUXPCM_RX},
  336. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  337. LPASS_BE_SEC_AUXPCM_TX},
  338. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  339. LPASS_BE_SPDIF_RX},
  340. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  341. LPASS_BE_SEC_MI2S_RX_SD1},
  342. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  343. LPASS_BE_QUIN_MI2S_RX},
  344. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  345. LPASS_BE_QUIN_MI2S_TX},
  346. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  347. LPASS_BE_SENARY_MI2S_TX},
  348. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  349. LPASS_BE_PRI_TDM_RX_0},
  350. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  351. LPASS_BE_PRI_TDM_TX_0},
  352. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  353. LPASS_BE_PRI_TDM_RX_1},
  354. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  355. LPASS_BE_PRI_TDM_TX_1},
  356. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  357. LPASS_BE_PRI_TDM_RX_2},
  358. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  359. LPASS_BE_PRI_TDM_TX_2},
  360. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  361. LPASS_BE_PRI_TDM_RX_3},
  362. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  363. LPASS_BE_PRI_TDM_TX_3},
  364. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  365. LPASS_BE_PRI_TDM_RX_4},
  366. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  367. LPASS_BE_PRI_TDM_TX_4},
  368. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  369. LPASS_BE_PRI_TDM_RX_5},
  370. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  371. LPASS_BE_PRI_TDM_TX_5},
  372. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  373. LPASS_BE_PRI_TDM_RX_6},
  374. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  375. LPASS_BE_PRI_TDM_TX_6},
  376. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  377. LPASS_BE_PRI_TDM_RX_7},
  378. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  379. LPASS_BE_PRI_TDM_TX_7},
  380. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  381. LPASS_BE_SEC_TDM_RX_0},
  382. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  383. LPASS_BE_SEC_TDM_TX_0},
  384. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  385. LPASS_BE_SEC_TDM_RX_1},
  386. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  387. LPASS_BE_SEC_TDM_TX_1},
  388. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  389. LPASS_BE_SEC_TDM_RX_2},
  390. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  391. LPASS_BE_SEC_TDM_TX_2},
  392. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  393. LPASS_BE_SEC_TDM_RX_3},
  394. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  395. LPASS_BE_SEC_TDM_TX_3},
  396. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  397. LPASS_BE_SEC_TDM_RX_4},
  398. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  399. LPASS_BE_SEC_TDM_TX_4},
  400. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  401. LPASS_BE_SEC_TDM_RX_5},
  402. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  403. LPASS_BE_SEC_TDM_TX_5},
  404. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  405. LPASS_BE_SEC_TDM_RX_6},
  406. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  407. LPASS_BE_SEC_TDM_TX_6},
  408. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  409. LPASS_BE_SEC_TDM_RX_7},
  410. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  411. LPASS_BE_SEC_TDM_TX_7},
  412. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  413. LPASS_BE_TERT_TDM_RX_0},
  414. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  415. LPASS_BE_TERT_TDM_TX_0},
  416. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  417. LPASS_BE_TERT_TDM_RX_1},
  418. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  419. LPASS_BE_TERT_TDM_TX_1},
  420. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  421. LPASS_BE_TERT_TDM_RX_2},
  422. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  423. LPASS_BE_TERT_TDM_TX_2},
  424. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  425. LPASS_BE_TERT_TDM_RX_3},
  426. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  427. LPASS_BE_TERT_TDM_TX_3},
  428. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  429. LPASS_BE_TERT_TDM_RX_4},
  430. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  431. LPASS_BE_TERT_TDM_TX_4},
  432. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  433. LPASS_BE_TERT_TDM_RX_5},
  434. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  435. LPASS_BE_TERT_TDM_TX_5},
  436. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  437. LPASS_BE_TERT_TDM_RX_6},
  438. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  439. LPASS_BE_TERT_TDM_TX_6},
  440. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  441. LPASS_BE_TERT_TDM_RX_7},
  442. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  443. LPASS_BE_TERT_TDM_TX_7},
  444. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  445. LPASS_BE_QUAT_TDM_RX_0},
  446. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  447. LPASS_BE_QUAT_TDM_TX_0},
  448. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  449. LPASS_BE_QUAT_TDM_RX_1},
  450. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  451. LPASS_BE_QUAT_TDM_TX_1},
  452. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  453. LPASS_BE_QUAT_TDM_RX_2},
  454. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  455. LPASS_BE_QUAT_TDM_TX_2},
  456. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  457. LPASS_BE_QUAT_TDM_RX_3},
  458. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  459. LPASS_BE_QUAT_TDM_TX_3},
  460. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  461. LPASS_BE_QUAT_TDM_RX_4},
  462. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  463. LPASS_BE_QUAT_TDM_TX_4},
  464. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  465. LPASS_BE_QUAT_TDM_RX_5},
  466. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  467. LPASS_BE_QUAT_TDM_TX_5},
  468. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  469. LPASS_BE_QUAT_TDM_RX_6},
  470. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  471. LPASS_BE_QUAT_TDM_TX_6},
  472. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  473. LPASS_BE_QUAT_TDM_RX_7},
  474. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  475. LPASS_BE_QUAT_TDM_TX_7},
  476. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  477. LPASS_BE_QUIN_TDM_RX_0},
  478. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  479. LPASS_BE_QUIN_TDM_TX_0},
  480. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  481. LPASS_BE_QUIN_TDM_RX_1},
  482. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  483. LPASS_BE_QUIN_TDM_TX_1},
  484. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  485. LPASS_BE_QUIN_TDM_RX_2},
  486. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  487. LPASS_BE_QUIN_TDM_TX_2},
  488. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  489. LPASS_BE_QUIN_TDM_RX_3},
  490. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  491. LPASS_BE_QUIN_TDM_TX_3},
  492. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  493. LPASS_BE_QUIN_TDM_RX_4},
  494. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  495. LPASS_BE_QUIN_TDM_TX_4},
  496. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  497. LPASS_BE_QUIN_TDM_RX_5},
  498. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  499. LPASS_BE_QUIN_TDM_TX_5},
  500. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  501. LPASS_BE_QUIN_TDM_RX_6},
  502. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  503. LPASS_BE_QUIN_TDM_TX_6},
  504. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  505. LPASS_BE_QUIN_TDM_RX_7},
  506. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  507. LPASS_BE_QUIN_TDM_TX_7},
  508. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  509. LPASS_BE_INT_BT_A2DP_RX},
  510. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  511. LPASS_BE_USB_AUDIO_RX},
  512. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  513. LPASS_BE_USB_AUDIO_TX},
  514. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  515. LPASS_BE_DISPLAY_PORT},
  516. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  517. LPASS_BE_DISPLAY_PORT1},
  518. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  519. LPASS_BE_TERT_AUXPCM_RX},
  520. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  521. LPASS_BE_TERT_AUXPCM_TX},
  522. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  523. LPASS_BE_QUAT_AUXPCM_RX},
  524. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  525. LPASS_BE_QUAT_AUXPCM_TX},
  526. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  527. LPASS_BE_QUIN_AUXPCM_RX},
  528. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  529. LPASS_BE_QUIN_AUXPCM_TX},
  530. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  531. LPASS_BE_INT0_MI2S_RX},
  532. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  533. LPASS_BE_INT0_MI2S_TX},
  534. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  535. LPASS_BE_INT1_MI2S_RX},
  536. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  537. LPASS_BE_INT1_MI2S_TX},
  538. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  539. LPASS_BE_INT2_MI2S_RX},
  540. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  541. LPASS_BE_INT2_MI2S_TX},
  542. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  543. LPASS_BE_INT3_MI2S_RX},
  544. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  545. LPASS_BE_INT3_MI2S_TX},
  546. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  547. LPASS_BE_INT4_MI2S_RX},
  548. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  549. LPASS_BE_INT4_MI2S_TX},
  550. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  551. LPASS_BE_INT5_MI2S_RX},
  552. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  553. LPASS_BE_INT5_MI2S_TX},
  554. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  555. LPASS_BE_INT6_MI2S_RX},
  556. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  557. LPASS_BE_INT6_MI2S_TX},
  558. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  559. LPASS_BE_WSA_CDC_DMA_RX_0},
  560. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  561. LPASS_BE_WSA_CDC_DMA_TX_0},
  562. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  563. LPASS_BE_WSA_CDC_DMA_RX_1},
  564. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  565. LPASS_BE_WSA_CDC_DMA_TX_1},
  566. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  567. LPASS_BE_WSA_CDC_DMA_TX_2},
  568. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  569. LPASS_BE_VA_CDC_DMA_TX_0},
  570. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  571. LPASS_BE_VA_CDC_DMA_TX_1},
  572. };
  573. /* Track ASM playback & capture sessions of DAI
  574. * Track LSM listen sessions
  575. */
  576. static struct msm_pcm_routing_fdai_data
  577. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  578. /* MULTIMEDIA1 */
  579. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  580. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  581. /* MULTIMEDIA2 */
  582. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  583. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  584. /* MULTIMEDIA3 */
  585. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  586. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  587. /* MULTIMEDIA4 */
  588. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  589. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  590. /* MULTIMEDIA5 */
  591. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  592. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  593. /* MULTIMEDIA6 */
  594. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  595. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  596. /* MULTIMEDIA7*/
  597. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  598. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  599. /* MULTIMEDIA8 */
  600. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  601. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  602. /* MULTIMEDIA9 */
  603. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  604. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  605. /* MULTIMEDIA10 */
  606. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  607. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  608. /* MULTIMEDIA11 */
  609. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  610. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  611. /* MULTIMEDIA12 */
  612. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  613. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  614. /* MULTIMEDIA13 */
  615. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  616. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  617. /* MULTIMEDIA14 */
  618. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  619. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  620. /* MULTIMEDIA15 */
  621. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  622. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  623. /* MULTIMEDIA16 */
  624. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  625. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  626. /* MULTIMEDIA17 */
  627. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  628. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  629. /* MULTIMEDIA18 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  632. /* MULTIMEDIA19 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  635. /* MULTIMEDIA20 */
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  638. /* MULTIMEDIA28 */
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  641. /* MULTIMEDIA29 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  644. /* VOIP */
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  647. /* AFE_RX */
  648. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  649. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  650. /* AFE_TX */
  651. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  652. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  653. /* VOICE_STUB */
  654. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  655. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  656. /* DTMF_RX */
  657. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  658. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  659. /* QCHAT */
  660. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  661. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  662. /* VOLTE_STUB */
  663. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  664. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  665. /* LSM1 */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  668. /* LSM2 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  671. /* LSM3 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  674. /* LSM4 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  677. /* LSM5 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  680. /* LSM6 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  683. /* LSM7 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  686. /* LSM8 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  689. /* VOICE2_STUB */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  692. /* VOICEMMODE1 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  695. /* VOICEMMODE2 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  698. };
  699. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  700. [MSM_BACKEND_DAI_MAX];
  701. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  702. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  703. static struct msm_pcm_stream_app_type_cfg
  704. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  705. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  706. /* The caller of this should aqcuire routing lock */
  707. void msm_pcm_routing_get_bedai_info(int be_idx,
  708. struct msm_pcm_routing_bdai_data *be_dai)
  709. {
  710. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  711. memcpy(be_dai, &msm_bedais[be_idx],
  712. sizeof(struct msm_pcm_routing_bdai_data));
  713. }
  714. /* The caller of this should aqcuire routing lock */
  715. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  716. struct msm_pcm_routing_fdai_data *fe_dai)
  717. {
  718. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  719. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  720. sizeof(struct msm_pcm_routing_fdai_data));
  721. }
  722. void msm_pcm_routing_acquire_lock(void)
  723. {
  724. mutex_lock(&routing_lock);
  725. }
  726. void msm_pcm_routing_release_lock(void)
  727. {
  728. mutex_unlock(&routing_lock);
  729. }
  730. static int msm_pcm_routing_get_app_type_idx(int app_type)
  731. {
  732. int idx;
  733. pr_debug("%s: app_type: %d\n", __func__, app_type);
  734. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  735. if (app_type_cfg[idx].app_type == app_type)
  736. return idx;
  737. }
  738. pr_info("%s: App type not available, fallback to default\n", __func__);
  739. return 0;
  740. }
  741. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  742. {
  743. int idx;
  744. pr_debug("%s: app_type: %d\n", __func__, app_type);
  745. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  746. if (lsm_app_type_cfg[idx].app_type == app_type)
  747. return idx;
  748. }
  749. pr_debug("%s: App type not available, fallback to default\n", __func__);
  750. return 0;
  751. }
  752. static bool is_mm_lsm_fe_id(int fe_id)
  753. {
  754. bool rc = true;
  755. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  756. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  757. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  758. rc = false;
  759. }
  760. return rc;
  761. }
  762. int msm_pcm_routing_reg_stream_app_type_cfg(
  763. int fedai_id, int session_type, int be_id,
  764. struct msm_pcm_stream_app_type_cfg *cfg_data)
  765. {
  766. int ret = 0;
  767. if (cfg_data == NULL) {
  768. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  769. ret = -EINVAL;
  770. goto done;
  771. }
  772. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  773. __func__, fedai_id, session_type, be_id,
  774. cfg_data->app_type, cfg_data->acdb_dev_id,
  775. cfg_data->sample_rate);
  776. if (!is_mm_lsm_fe_id(fedai_id)) {
  777. pr_err("%s: Invalid machine driver ID %d\n",
  778. __func__, fedai_id);
  779. ret = -EINVAL;
  780. goto done;
  781. }
  782. if (session_type != SESSION_TYPE_RX &&
  783. session_type != SESSION_TYPE_TX) {
  784. pr_err("%s: Invalid session type %d\n",
  785. __func__, session_type);
  786. ret = -EINVAL;
  787. goto done;
  788. }
  789. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  790. pr_err("%s: Received out of bounds be_id %d\n",
  791. __func__, be_id);
  792. ret = -EINVAL;
  793. goto done;
  794. }
  795. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  796. /*
  797. * Store the BE ID of the configuration information set as the latest so
  798. * the get mixer control knows what to return.
  799. */
  800. last_be_id_configured[fedai_id][session_type] = be_id;
  801. done:
  802. return ret;
  803. }
  804. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  805. /**
  806. * msm_pcm_routing_get_stream_app_type_cfg
  807. *
  808. * Receives fedai_id, session_type, be_id, and populates app_type,
  809. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  810. * -EINVAL and does not alter passed values.
  811. *
  812. * fedai_id - Passed value, front end ID for which app type config is wanted
  813. * session_type - Passed value, session type for which app type config
  814. * is wanted
  815. * be_id - Returned value, back end device id the app type config data is for
  816. * cfg_data - Returned value, configuration data used by app type config
  817. */
  818. int msm_pcm_routing_get_stream_app_type_cfg(
  819. int fedai_id, int session_type, int *bedai_id,
  820. struct msm_pcm_stream_app_type_cfg *cfg_data)
  821. {
  822. int be_id;
  823. int ret = 0;
  824. if (bedai_id == NULL) {
  825. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  826. ret = -EINVAL;
  827. goto done;
  828. } else if (cfg_data == NULL) {
  829. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  830. ret = -EINVAL;
  831. goto done;
  832. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  833. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  834. ret = -EINVAL;
  835. goto done;
  836. } else if (session_type != SESSION_TYPE_RX &&
  837. session_type != SESSION_TYPE_TX) {
  838. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  839. ret = -EINVAL;
  840. goto done;
  841. }
  842. be_id = last_be_id_configured[fedai_id][session_type];
  843. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  844. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  845. ret = -EINVAL;
  846. goto done;
  847. }
  848. *bedai_id = be_id;
  849. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  850. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  851. __func__, fedai_id, session_type, *bedai_id,
  852. cfg_data->app_type, cfg_data->acdb_dev_id,
  853. cfg_data->sample_rate);
  854. done:
  855. return ret;
  856. }
  857. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  858. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  859. int cal_index)
  860. {
  861. struct list_head *ptr, *next;
  862. struct cal_block_data *cal_block = NULL;
  863. pr_debug("%s\n", __func__);
  864. list_for_each_safe(ptr, next,
  865. &cal_data[cal_index]->cal_blocks) {
  866. cal_block = list_entry(ptr,
  867. struct cal_block_data, list);
  868. if (cal_utils_is_cal_stale(cal_block))
  869. continue;
  870. if (((struct audio_cal_info_adm_top *)cal_block
  871. ->cal_info)->path == path) {
  872. return cal_block;
  873. }
  874. }
  875. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  876. return NULL;
  877. }
  878. static struct cal_block_data *msm_routing_find_topology(int path,
  879. int app_type,
  880. int acdb_id,
  881. int cal_index)
  882. {
  883. struct list_head *ptr, *next;
  884. struct cal_block_data *cal_block = NULL;
  885. struct audio_cal_info_adm_top *cal_info;
  886. pr_debug("%s\n", __func__);
  887. list_for_each_safe(ptr, next,
  888. &cal_data[cal_index]->cal_blocks) {
  889. cal_block = list_entry(ptr,
  890. struct cal_block_data, list);
  891. if (cal_utils_is_cal_stale(cal_block))
  892. continue;
  893. cal_info = (struct audio_cal_info_adm_top *)
  894. cal_block->cal_info;
  895. if ((cal_info->path == path) &&
  896. (cal_info->app_type == app_type) &&
  897. (cal_info->acdb_id == acdb_id)) {
  898. return cal_block;
  899. }
  900. }
  901. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  902. __func__, path, app_type, acdb_id);
  903. return msm_routing_find_topology_by_path(path, cal_index);
  904. }
  905. /*
  906. * Retrieving cal_block will mark cal_block as stale.
  907. * Hence it cannot be reused or resent unless the flag
  908. * is reset.
  909. */
  910. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  911. int be_id)
  912. {
  913. int topology = NULL_COPP_TOPOLOGY;
  914. struct cal_block_data *cal_block = NULL;
  915. int app_type = 0, acdb_dev_id = 0;
  916. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  917. __func__, fedai_id, session_type, be_id);
  918. if (cal_data == NULL)
  919. goto done;
  920. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  921. acdb_dev_id =
  922. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  923. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  924. cal_block = msm_routing_find_topology(session_type, app_type,
  925. acdb_dev_id,
  926. ADM_TOPOLOGY_CAL_TYPE_IDX);
  927. if (cal_block != NULL) {
  928. topology = ((struct audio_cal_info_adm_top *)
  929. cal_block->cal_info)->topology;
  930. cal_utils_mark_cal_used(cal_block);
  931. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  932. } else {
  933. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  934. pr_debug("%s: Check for LSM topology\n", __func__);
  935. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  936. cal_block = msm_routing_find_topology(session_type, app_type,
  937. acdb_dev_id,
  938. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  939. if (cal_block != NULL) {
  940. topology = ((struct audio_cal_info_adm_top *)
  941. cal_block->cal_info)->topology;
  942. cal_utils_mark_cal_used(cal_block);
  943. }
  944. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  945. }
  946. done:
  947. pr_debug("%s: Using topology %d\n", __func__, topology);
  948. return topology;
  949. }
  950. static uint8_t is_be_dai_extproc(int be_dai)
  951. {
  952. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  953. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  954. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  955. return 1;
  956. else
  957. return 0;
  958. }
  959. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  960. int path_type, int perf_mode,
  961. uint32_t passthr_mode)
  962. {
  963. int i, port_type, j, num_copps = 0;
  964. struct route_payload payload;
  965. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  966. path_type == ADM_PATH_COMPRESSED_RX) ?
  967. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  968. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  969. if (!is_be_dai_extproc(i) &&
  970. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  971. (msm_bedais[i].active) &&
  972. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  973. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  974. unsigned long copp =
  975. session_copp_map[fedai_id][sess_type][i];
  976. if (test_bit(j, &copp)) {
  977. payload.port_id[num_copps] =
  978. msm_bedais[i].port_id;
  979. payload.copp_idx[num_copps] = j;
  980. payload.app_type[num_copps] =
  981. fe_dai_app_type_cfg
  982. [fedai_id][sess_type][i]
  983. .app_type;
  984. payload.acdb_dev_id[num_copps] =
  985. fe_dai_app_type_cfg
  986. [fedai_id][sess_type][i]
  987. .acdb_dev_id;
  988. payload.sample_rate[num_copps] =
  989. fe_dai_app_type_cfg
  990. [fedai_id][sess_type][i]
  991. .sample_rate;
  992. num_copps++;
  993. }
  994. }
  995. }
  996. }
  997. if (num_copps) {
  998. payload.num_copps = num_copps;
  999. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1000. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1001. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1002. }
  1003. }
  1004. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1005. int stream_type)
  1006. {
  1007. int i, session_type, path_type, port_type;
  1008. u32 mode = 0;
  1009. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1010. /* bad ID assigned in machine driver */
  1011. pr_err("%s: bad MM ID\n", __func__);
  1012. return;
  1013. }
  1014. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1015. session_type = SESSION_TYPE_RX;
  1016. path_type = ADM_PATH_PLAYBACK;
  1017. port_type = MSM_AFE_PORT_TYPE_RX;
  1018. } else {
  1019. session_type = SESSION_TYPE_TX;
  1020. path_type = ADM_PATH_LIVE_REC;
  1021. port_type = MSM_AFE_PORT_TYPE_TX;
  1022. }
  1023. mutex_lock(&routing_lock);
  1024. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1025. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1026. if (!is_be_dai_extproc(i) &&
  1027. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1028. (msm_bedais[i].active) &&
  1029. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1030. mode = afe_get_port_type(msm_bedais[i].port_id);
  1031. adm_connect_afe_port(mode, dspst_id,
  1032. msm_bedais[i].port_id);
  1033. break;
  1034. }
  1035. }
  1036. mutex_unlock(&routing_lock);
  1037. }
  1038. static bool route_check_fe_id_adm_support(int fe_id)
  1039. {
  1040. bool rc = true;
  1041. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1042. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1043. /* fe id is listen while port is set to afe */
  1044. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1045. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1046. __func__, fe_id, lsm_port_index);
  1047. rc = false;
  1048. }
  1049. }
  1050. return rc;
  1051. }
  1052. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1053. int dspst_id, int stream_type,
  1054. uint32_t passthr_mode)
  1055. {
  1056. int i, j, session_type, path_type, port_type, topology;
  1057. int num_copps = 0;
  1058. struct route_payload payload;
  1059. u32 channels, sample_rate;
  1060. u16 bit_width = 16;
  1061. bool is_lsm;
  1062. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1063. __func__, fe_id, perf_mode, dspst_id,
  1064. stream_type, passthr_mode);
  1065. if (!is_mm_lsm_fe_id(fe_id)) {
  1066. /* bad ID assigned in machine driver */
  1067. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1068. return -EINVAL;
  1069. }
  1070. if (!route_check_fe_id_adm_support(fe_id)) {
  1071. /* ignore adm open if not supported for fe_id */
  1072. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1073. return 0;
  1074. }
  1075. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1076. session_type = SESSION_TYPE_RX;
  1077. if (passthr_mode != LEGACY_PCM)
  1078. path_type = ADM_PATH_COMPRESSED_RX;
  1079. else
  1080. path_type = ADM_PATH_PLAYBACK;
  1081. port_type = MSM_AFE_PORT_TYPE_RX;
  1082. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1083. session_type = SESSION_TYPE_TX;
  1084. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1085. path_type = ADM_PATH_COMPRESSED_TX;
  1086. else
  1087. path_type = ADM_PATH_LIVE_REC;
  1088. port_type = MSM_AFE_PORT_TYPE_TX;
  1089. } else {
  1090. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1091. return -EINVAL;
  1092. }
  1093. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1094. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1095. mutex_lock(&routing_lock);
  1096. payload.num_copps = 0; /* only RX needs to use payload */
  1097. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1098. /* re-enable EQ if active */
  1099. msm_qti_pp_send_eq_values(fe_id);
  1100. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1101. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1102. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1103. if (!is_be_dai_extproc(i) &&
  1104. (afe_get_port_type(msm_bedais[i].port_id) ==
  1105. port_type) &&
  1106. (msm_bedais[i].active) &&
  1107. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1108. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1109. /*
  1110. * check if ADM needs to be configured with different
  1111. * channel mapping than backend
  1112. */
  1113. if (!msm_bedais[i].adm_override_ch)
  1114. channels = msm_bedais[i].channel;
  1115. else
  1116. channels = msm_bedais[i].adm_override_ch;
  1117. bit_width = msm_routing_get_bit_width(
  1118. msm_bedais[i].format);
  1119. app_type =
  1120. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1121. if (app_type && is_lsm) {
  1122. app_type_idx =
  1123. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1124. sample_rate =
  1125. fe_dai_app_type_cfg[fe_id][session_type][i]
  1126. .sample_rate;
  1127. bit_width =
  1128. lsm_app_type_cfg[app_type_idx].bit_width;
  1129. } else if (app_type) {
  1130. app_type_idx =
  1131. msm_pcm_routing_get_app_type_idx(
  1132. app_type);
  1133. sample_rate =
  1134. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1135. bit_width =
  1136. app_type_cfg[app_type_idx].bit_width;
  1137. } else {
  1138. sample_rate = msm_bedais[i].sample_rate;
  1139. }
  1140. acdb_dev_id =
  1141. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1142. topology = msm_routing_get_adm_topology(fe_id,
  1143. session_type,
  1144. i);
  1145. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1146. || (passthr_mode ==
  1147. COMPRESSED_PASSTHROUGH_GEN))
  1148. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1149. pr_debug("%s: Before adm open topology %d\n", __func__,
  1150. topology);
  1151. copp_idx =
  1152. adm_open(msm_bedais[i].port_id,
  1153. path_type, sample_rate, channels,
  1154. topology, perf_mode, bit_width,
  1155. app_type, acdb_dev_id);
  1156. if ((copp_idx < 0) ||
  1157. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1158. pr_err("%s:adm open failed coppid:%d\n",
  1159. __func__, copp_idx);
  1160. mutex_unlock(&routing_lock);
  1161. return -EINVAL;
  1162. }
  1163. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1164. __func__, fe_id, session_type, i);
  1165. set_bit(copp_idx,
  1166. &session_copp_map[fe_id][session_type][i]);
  1167. if (msm_is_resample_needed(
  1168. sample_rate,
  1169. msm_bedais[i].sample_rate))
  1170. adm_copp_mfc_cfg(
  1171. msm_bedais[i].port_id, copp_idx,
  1172. msm_bedais[i].sample_rate);
  1173. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1174. unsigned long copp =
  1175. session_copp_map[fe_id][session_type][i];
  1176. if (test_bit(j, &copp)) {
  1177. payload.port_id[num_copps] =
  1178. msm_bedais[i].port_id;
  1179. payload.copp_idx[num_copps] = j;
  1180. payload.app_type[num_copps] =
  1181. fe_dai_app_type_cfg
  1182. [fe_id][session_type][i]
  1183. .app_type;
  1184. payload.acdb_dev_id[num_copps] =
  1185. fe_dai_app_type_cfg
  1186. [fe_id][session_type][i]
  1187. .acdb_dev_id;
  1188. payload.sample_rate[num_copps] =
  1189. fe_dai_app_type_cfg
  1190. [fe_id][session_type][i]
  1191. .sample_rate;
  1192. num_copps++;
  1193. }
  1194. }
  1195. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1196. && passthr_mode !=
  1197. COMPRESSED_PASSTHROUGH_GEN) {
  1198. msm_routing_send_device_pp_params(
  1199. msm_bedais[i].port_id,
  1200. copp_idx, fe_id);
  1201. }
  1202. }
  1203. }
  1204. if (num_copps) {
  1205. payload.num_copps = num_copps;
  1206. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1207. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1208. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1209. }
  1210. mutex_unlock(&routing_lock);
  1211. return 0;
  1212. }
  1213. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1214. {
  1215. u32 session_id;
  1216. switch (val) {
  1217. case MSM_FRONTEND_DAI_QCHAT:
  1218. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1219. break;
  1220. case MSM_FRONTEND_DAI_VOIP:
  1221. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1222. break;
  1223. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1224. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1225. break;
  1226. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1227. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1228. break;
  1229. default:
  1230. session_id = 0;
  1231. }
  1232. pr_debug("%s session_id 0x%x", __func__, session_id);
  1233. return session_id;
  1234. }
  1235. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1236. int dspst_id, int stream_type)
  1237. {
  1238. int copp_idx = 0;
  1239. int sess_type = 0;
  1240. int i = 0, j = 0, be_id;
  1241. int ret = 0;
  1242. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1243. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1244. return 0;
  1245. }
  1246. if (!(channel_mixer[fe_id].enable)) {
  1247. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1248. __func__, fe_id);
  1249. return 0;
  1250. }
  1251. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1252. sess_type = SESSION_TYPE_RX;
  1253. else
  1254. sess_type = SESSION_TYPE_TX;
  1255. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1256. ++i) {
  1257. be_id = channel_input[fe_id][i] - 1;
  1258. channel_mixer[fe_id].input_channels[i] =
  1259. msm_bedais[be_id].channel;
  1260. if ((msm_bedais[be_id].active) &&
  1261. test_bit(fe_id,
  1262. &msm_bedais[be_id].fe_sessions[0])) {
  1263. unsigned long copp =
  1264. session_copp_map[fe_id][sess_type][be_id];
  1265. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1266. if (test_bit(j, &copp)) {
  1267. copp_idx = j;
  1268. break;
  1269. }
  1270. }
  1271. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1272. __func__,
  1273. fe_id, be_id, msm_bedais[be_id].channel,
  1274. copp_idx);
  1275. ret = adm_programable_channel_mixer(
  1276. msm_bedais[be_id].port_id,
  1277. copp_idx, dspst_id, sess_type,
  1278. channel_mixer + fe_id, i);
  1279. }
  1280. }
  1281. return ret;
  1282. }
  1283. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1284. int dspst_id, int stream_type)
  1285. {
  1286. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1287. struct route_payload payload;
  1288. u32 channels, sample_rate;
  1289. uint16_t bits_per_sample = 16;
  1290. uint32_t passthr_mode = LEGACY_PCM;
  1291. int ret = 0;
  1292. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1293. /* bad ID assigned in machine driver */
  1294. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1295. return -EINVAL;
  1296. }
  1297. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1298. session_type = SESSION_TYPE_RX;
  1299. path_type = ADM_PATH_PLAYBACK;
  1300. port_type = MSM_AFE_PORT_TYPE_RX;
  1301. } else {
  1302. session_type = SESSION_TYPE_TX;
  1303. path_type = ADM_PATH_LIVE_REC;
  1304. port_type = MSM_AFE_PORT_TYPE_TX;
  1305. }
  1306. mutex_lock(&routing_lock);
  1307. payload.num_copps = 0; /* only RX needs to use payload */
  1308. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1309. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1310. /* re-enable EQ if active */
  1311. msm_qti_pp_send_eq_values(fedai_id);
  1312. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1313. if (!is_be_dai_extproc(i) &&
  1314. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1315. (msm_bedais[i].active) &&
  1316. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1317. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1318. /*
  1319. * check if ADM needs to be configured with different
  1320. * channel mapping than backend
  1321. */
  1322. if (!msm_bedais[i].adm_override_ch)
  1323. channels = msm_bedais[i].channel;
  1324. else
  1325. channels = msm_bedais[i].adm_override_ch;
  1326. msm_bedais[i].passthr_mode[fedai_id] =
  1327. LEGACY_PCM;
  1328. bits_per_sample = msm_routing_get_bit_width(
  1329. msm_bedais[i].format);
  1330. app_type =
  1331. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1332. if (app_type) {
  1333. app_type_idx =
  1334. msm_pcm_routing_get_app_type_idx(app_type);
  1335. sample_rate =
  1336. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1337. .sample_rate;
  1338. bits_per_sample =
  1339. app_type_cfg[app_type_idx].bit_width;
  1340. } else
  1341. sample_rate = msm_bedais[i].sample_rate;
  1342. acdb_dev_id =
  1343. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1344. .acdb_dev_id;
  1345. topology = msm_routing_get_adm_topology(fedai_id,
  1346. session_type,
  1347. i);
  1348. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1349. sample_rate, channels, topology,
  1350. perf_mode, bits_per_sample,
  1351. app_type, acdb_dev_id);
  1352. if ((copp_idx < 0) ||
  1353. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1354. pr_err("%s: adm open failed copp_idx:%d\n",
  1355. __func__, copp_idx);
  1356. mutex_unlock(&routing_lock);
  1357. return -EINVAL;
  1358. }
  1359. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1360. __func__, fedai_id, session_type, i);
  1361. set_bit(copp_idx,
  1362. &session_copp_map[fedai_id][session_type][i]);
  1363. if (msm_is_resample_needed(
  1364. sample_rate,
  1365. msm_bedais[i].sample_rate))
  1366. adm_copp_mfc_cfg(
  1367. msm_bedais[i].port_id, copp_idx,
  1368. msm_bedais[i].sample_rate);
  1369. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1370. unsigned long copp =
  1371. session_copp_map[fedai_id][session_type][i];
  1372. if (test_bit(j, &copp)) {
  1373. payload.port_id[num_copps] =
  1374. msm_bedais[i].port_id;
  1375. payload.copp_idx[num_copps] = j;
  1376. payload.app_type[num_copps] =
  1377. fe_dai_app_type_cfg
  1378. [fedai_id][session_type]
  1379. [i].app_type;
  1380. payload.acdb_dev_id[num_copps] =
  1381. fe_dai_app_type_cfg
  1382. [fedai_id][session_type]
  1383. [i].acdb_dev_id;
  1384. payload.sample_rate[num_copps] =
  1385. fe_dai_app_type_cfg
  1386. [fedai_id][session_type]
  1387. [i].sample_rate;
  1388. num_copps++;
  1389. }
  1390. }
  1391. if ((perf_mode == LEGACY_PCM_MODE) &&
  1392. (msm_bedais[i].passthr_mode[fedai_id] ==
  1393. LEGACY_PCM))
  1394. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1395. copp_idx, topology,
  1396. channels);
  1397. }
  1398. }
  1399. if (num_copps) {
  1400. payload.num_copps = num_copps;
  1401. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1402. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1403. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1404. }
  1405. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1406. dspst_id, stream_type);
  1407. mutex_unlock(&routing_lock);
  1408. return ret;
  1409. }
  1410. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1411. int dspst_id, int stream_type,
  1412. struct msm_pcm_routing_evt event_info)
  1413. {
  1414. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1415. stream_type)) {
  1416. pr_err("%s: failed to reg phy stream\n", __func__);
  1417. return -EINVAL;
  1418. }
  1419. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1420. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1421. else
  1422. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1423. return 0;
  1424. }
  1425. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1426. {
  1427. int i, port_type, session_type, path_type, topology;
  1428. struct msm_pcm_routing_fdai_data *fdai;
  1429. if (!is_mm_lsm_fe_id(fedai_id)) {
  1430. /* bad ID assigned in machine driver */
  1431. pr_err("%s: bad MM ID\n", __func__);
  1432. return;
  1433. }
  1434. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1435. port_type = MSM_AFE_PORT_TYPE_RX;
  1436. session_type = SESSION_TYPE_RX;
  1437. path_type = ADM_PATH_PLAYBACK;
  1438. } else {
  1439. port_type = MSM_AFE_PORT_TYPE_TX;
  1440. session_type = SESSION_TYPE_TX;
  1441. path_type = ADM_PATH_LIVE_REC;
  1442. }
  1443. mutex_lock(&routing_lock);
  1444. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1445. if (!is_be_dai_extproc(i) &&
  1446. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1447. (msm_bedais[i].active) &&
  1448. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1449. int idx;
  1450. unsigned long copp =
  1451. session_copp_map[fedai_id][session_type][i];
  1452. fdai = &fe_dai_map[fedai_id][session_type];
  1453. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1454. if (test_bit(idx, &copp))
  1455. break;
  1456. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1457. pr_debug("%s: copp idx is invalid, exiting\n",
  1458. __func__);
  1459. continue;
  1460. }
  1461. topology = adm_get_topology_for_port_copp_idx(
  1462. msm_bedais[i].port_id, idx);
  1463. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1464. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1465. __func__, copp, fedai_id, session_type, i);
  1466. clear_bit(idx,
  1467. &session_copp_map[fedai_id][session_type][i]);
  1468. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1469. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1470. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1471. (msm_bedais[i].passthr_mode[fedai_id] ==
  1472. LEGACY_PCM))
  1473. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1474. topology);
  1475. }
  1476. }
  1477. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1478. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1479. mutex_unlock(&routing_lock);
  1480. }
  1481. /* Check if FE/BE route is set */
  1482. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1483. {
  1484. bool rc = false;
  1485. if (!is_mm_lsm_fe_id(fe_id)) {
  1486. /* recheck FE ID in the mixer control defined in this file */
  1487. pr_err("%s: bad MM ID\n", __func__);
  1488. return rc;
  1489. }
  1490. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1491. rc = true;
  1492. return rc;
  1493. }
  1494. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1495. {
  1496. int session_type, path_type, topology;
  1497. u32 channels, sample_rate;
  1498. uint16_t bits_per_sample = 16;
  1499. struct msm_pcm_routing_fdai_data *fdai;
  1500. uint32_t passthr_mode;
  1501. bool is_lsm;
  1502. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1503. if (!is_mm_lsm_fe_id(val)) {
  1504. /* recheck FE ID in the mixer control defined in this file */
  1505. pr_err("%s: bad MM ID\n", __func__);
  1506. return;
  1507. }
  1508. if (!route_check_fe_id_adm_support(val)) {
  1509. /* ignore adm open if not supported for fe_id */
  1510. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1511. return;
  1512. }
  1513. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1514. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1515. MSM_AFE_PORT_TYPE_RX) {
  1516. session_type = SESSION_TYPE_RX;
  1517. if (passthr_mode != LEGACY_PCM)
  1518. path_type = ADM_PATH_COMPRESSED_RX;
  1519. else
  1520. path_type = ADM_PATH_PLAYBACK;
  1521. } else {
  1522. session_type = SESSION_TYPE_TX;
  1523. if (passthr_mode != LEGACY_PCM)
  1524. path_type = ADM_PATH_COMPRESSED_TX;
  1525. else
  1526. path_type = ADM_PATH_LIVE_REC;
  1527. }
  1528. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1529. (val <= MSM_FRONTEND_DAI_LSM8);
  1530. mutex_lock(&routing_lock);
  1531. if (set) {
  1532. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1533. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1534. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1535. voc_start_playback(set, msm_bedais[reg].port_id);
  1536. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1537. fdai = &fe_dai_map[val][session_type];
  1538. if (msm_bedais[reg].active && fdai->strm_id !=
  1539. INVALID_SESSION) {
  1540. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1541. /*
  1542. * check if ADM needs to be configured with different
  1543. * channel mapping than backend
  1544. */
  1545. if (!msm_bedais[reg].adm_override_ch)
  1546. channels = msm_bedais[reg].channel;
  1547. else
  1548. channels = msm_bedais[reg].adm_override_ch;
  1549. if (session_type == SESSION_TYPE_TX &&
  1550. fdai->be_srate &&
  1551. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1552. pr_debug("%s: flush strm %d diff BE rates\n",
  1553. __func__, fdai->strm_id);
  1554. if (fdai->event_info.event_func)
  1555. fdai->event_info.event_func(
  1556. MSM_PCM_RT_EVT_BUF_RECFG,
  1557. fdai->event_info.priv_data);
  1558. fdai->be_srate = 0; /* might not need it */
  1559. }
  1560. bits_per_sample = msm_routing_get_bit_width(
  1561. msm_bedais[reg].format);
  1562. app_type =
  1563. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1564. if (app_type && is_lsm) {
  1565. app_type_idx =
  1566. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1567. sample_rate =
  1568. fe_dai_app_type_cfg[val][session_type][reg]
  1569. .sample_rate;
  1570. bits_per_sample =
  1571. lsm_app_type_cfg[app_type_idx].bit_width;
  1572. } else if (app_type) {
  1573. app_type_idx =
  1574. msm_pcm_routing_get_app_type_idx(app_type);
  1575. sample_rate =
  1576. fe_dai_app_type_cfg[val][session_type][reg]
  1577. .sample_rate;
  1578. bits_per_sample =
  1579. app_type_cfg[app_type_idx].bit_width;
  1580. } else
  1581. sample_rate = msm_bedais[reg].sample_rate;
  1582. topology = msm_routing_get_adm_topology(val,
  1583. session_type,
  1584. reg);
  1585. acdb_dev_id =
  1586. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1587. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1588. sample_rate, channels, topology,
  1589. fdai->perf_mode, bits_per_sample,
  1590. app_type, acdb_dev_id);
  1591. if ((copp_idx < 0) ||
  1592. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1593. pr_err("%s: adm open failed\n", __func__);
  1594. mutex_unlock(&routing_lock);
  1595. return;
  1596. }
  1597. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1598. __func__, val, session_type, reg);
  1599. set_bit(copp_idx,
  1600. &session_copp_map[val][session_type][reg]);
  1601. if (msm_is_resample_needed(
  1602. sample_rate,
  1603. msm_bedais[reg].sample_rate))
  1604. adm_copp_mfc_cfg(
  1605. msm_bedais[reg].port_id, copp_idx,
  1606. msm_bedais[reg].sample_rate);
  1607. if (session_type == SESSION_TYPE_RX &&
  1608. fdai->event_info.event_func)
  1609. fdai->event_info.event_func(
  1610. MSM_PCM_RT_EVT_DEVSWITCH,
  1611. fdai->event_info.priv_data);
  1612. msm_pcm_routing_build_matrix(val, session_type,
  1613. path_type,
  1614. fdai->perf_mode,
  1615. passthr_mode);
  1616. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1617. (passthr_mode == LEGACY_PCM))
  1618. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1619. copp_idx, topology,
  1620. channels);
  1621. }
  1622. } else {
  1623. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1624. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1625. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1626. voc_start_playback(set, msm_bedais[reg].port_id);
  1627. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1628. fdai = &fe_dai_map[val][session_type];
  1629. if (msm_bedais[reg].active && fdai->strm_id !=
  1630. INVALID_SESSION) {
  1631. int idx;
  1632. int port_id;
  1633. unsigned long copp =
  1634. session_copp_map[val][session_type][reg];
  1635. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1636. if (test_bit(idx, &copp))
  1637. break;
  1638. port_id = msm_bedais[reg].port_id;
  1639. topology = adm_get_topology_for_port_copp_idx(port_id,
  1640. idx);
  1641. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1642. idx);
  1643. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1644. __func__, copp, val, session_type, reg,
  1645. topology);
  1646. clear_bit(idx,
  1647. &session_copp_map[val][session_type][reg]);
  1648. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1649. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1650. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1651. (passthr_mode == LEGACY_PCM))
  1652. msm_pcm_routing_deinit_pp(
  1653. msm_bedais[reg].port_id,
  1654. topology);
  1655. msm_pcm_routing_build_matrix(val, session_type,
  1656. path_type,
  1657. fdai->perf_mode,
  1658. passthr_mode);
  1659. }
  1660. }
  1661. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1662. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1663. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1664. mutex_unlock(&routing_lock);
  1665. }
  1666. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1667. struct snd_ctl_elem_value *ucontrol)
  1668. {
  1669. struct soc_mixer_control *mc =
  1670. (struct soc_mixer_control *)kcontrol->private_value;
  1671. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1672. ucontrol->value.integer.value[0] = 1;
  1673. else
  1674. ucontrol->value.integer.value[0] = 0;
  1675. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1676. ucontrol->value.integer.value[0]);
  1677. return 0;
  1678. }
  1679. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1680. struct snd_ctl_elem_value *ucontrol)
  1681. {
  1682. struct snd_soc_dapm_widget *widget =
  1683. snd_soc_dapm_kcontrol_widget(kcontrol);
  1684. struct soc_mixer_control *mc =
  1685. (struct soc_mixer_control *)kcontrol->private_value;
  1686. struct snd_soc_dapm_update *update = NULL;
  1687. if (ucontrol->value.integer.value[0] &&
  1688. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1689. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1690. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1691. update);
  1692. } else if (!ucontrol->value.integer.value[0] &&
  1693. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1694. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1695. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1696. update);
  1697. }
  1698. return 1;
  1699. }
  1700. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1701. struct snd_ctl_elem_value *ucontrol)
  1702. {
  1703. struct soc_mixer_control *mc =
  1704. (struct soc_mixer_control *)kcontrol->private_value;
  1705. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1706. ucontrol->value.integer.value[0] = 1;
  1707. else
  1708. ucontrol->value.integer.value[0] = 0;
  1709. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1710. ucontrol->value.integer.value[0]);
  1711. return 0;
  1712. }
  1713. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1714. struct snd_ctl_elem_value *ucontrol)
  1715. {
  1716. struct snd_soc_dapm_widget *widget =
  1717. snd_soc_dapm_kcontrol_widget(kcontrol);
  1718. struct soc_mixer_control *mc =
  1719. (struct soc_mixer_control *)kcontrol->private_value;
  1720. struct snd_soc_dapm_update *update = NULL;
  1721. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1722. ucontrol->value.integer.value[0]);
  1723. if (ucontrol->value.integer.value[0]) {
  1724. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1725. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1726. snd_soc_dapm_mixer_update_power(widget->dapm,
  1727. kcontrol, 1, update);
  1728. } else if (!ucontrol->value.integer.value[0]) {
  1729. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1730. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1731. snd_soc_dapm_mixer_update_power(widget->dapm,
  1732. kcontrol, 0, update);
  1733. }
  1734. return 1;
  1735. }
  1736. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1737. {
  1738. u32 session_id = 0;
  1739. u16 path_type;
  1740. struct media_format_info voc_be_media_format;
  1741. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1742. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1743. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1744. __func__, val, session_id);
  1745. mutex_lock(&routing_lock);
  1746. if (set)
  1747. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1748. else
  1749. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1750. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1751. afe_get_port_type(msm_bedais[reg].port_id) ==
  1752. MSM_AFE_PORT_TYPE_RX) {
  1753. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1754. __func__, set, msm_bedais[reg].port_id);
  1755. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1756. }
  1757. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1758. MSM_AFE_PORT_TYPE_RX)
  1759. path_type = RX_PATH;
  1760. else
  1761. path_type = TX_PATH;
  1762. if (set) {
  1763. if (msm_bedais[reg].active) {
  1764. voc_set_route_flag(session_id, path_type, 1);
  1765. memset(&voc_be_media_format, 0,
  1766. sizeof(struct media_format_info));
  1767. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1768. voc_be_media_format.num_channels =
  1769. msm_bedais[reg].channel;
  1770. voc_be_media_format.sample_rate =
  1771. msm_bedais[reg].sample_rate;
  1772. voc_be_media_format.bits_per_sample =
  1773. msm_bedais[reg].format;
  1774. /* Defaulting this to 1 for voice call usecases */
  1775. voc_be_media_format.channel_mapping[0] = 1;
  1776. voc_set_device_config(session_id, path_type,
  1777. &voc_be_media_format);
  1778. if (voc_get_route_flag(session_id, TX_PATH) &&
  1779. voc_get_route_flag(session_id, RX_PATH))
  1780. voc_enable_device(session_id);
  1781. } else {
  1782. pr_debug("%s BE is not active\n", __func__);
  1783. }
  1784. } else {
  1785. voc_set_route_flag(session_id, path_type, 0);
  1786. voc_disable_device(session_id);
  1787. }
  1788. mutex_unlock(&routing_lock);
  1789. }
  1790. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1791. struct snd_ctl_elem_value *ucontrol)
  1792. {
  1793. struct soc_mixer_control *mc =
  1794. (struct soc_mixer_control *)kcontrol->private_value;
  1795. mutex_lock(&routing_lock);
  1796. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1797. ucontrol->value.integer.value[0] = 1;
  1798. else
  1799. ucontrol->value.integer.value[0] = 0;
  1800. mutex_unlock(&routing_lock);
  1801. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1802. ucontrol->value.integer.value[0]);
  1803. return 0;
  1804. }
  1805. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1806. struct snd_ctl_elem_value *ucontrol)
  1807. {
  1808. struct snd_soc_dapm_widget *widget =
  1809. snd_soc_dapm_kcontrol_widget(kcontrol);
  1810. struct soc_mixer_control *mc =
  1811. (struct soc_mixer_control *)kcontrol->private_value;
  1812. struct snd_soc_dapm_update *update = NULL;
  1813. if (ucontrol->value.integer.value[0]) {
  1814. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1815. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1816. update);
  1817. } else {
  1818. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1819. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1820. update);
  1821. }
  1822. return 1;
  1823. }
  1824. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1825. struct snd_ctl_elem_value *ucontrol)
  1826. {
  1827. struct soc_mixer_control *mc =
  1828. (struct soc_mixer_control *)kcontrol->private_value;
  1829. mutex_lock(&routing_lock);
  1830. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1831. ucontrol->value.integer.value[0] = 1;
  1832. else
  1833. ucontrol->value.integer.value[0] = 0;
  1834. mutex_unlock(&routing_lock);
  1835. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1836. ucontrol->value.integer.value[0]);
  1837. return 0;
  1838. }
  1839. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1840. struct snd_ctl_elem_value *ucontrol)
  1841. {
  1842. struct snd_soc_dapm_widget *widget =
  1843. snd_soc_dapm_kcontrol_widget(kcontrol);
  1844. struct soc_mixer_control *mc =
  1845. (struct soc_mixer_control *)kcontrol->private_value;
  1846. struct snd_soc_dapm_update *update = NULL;
  1847. if (ucontrol->value.integer.value[0]) {
  1848. mutex_lock(&routing_lock);
  1849. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1850. mutex_unlock(&routing_lock);
  1851. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1852. update);
  1853. } else {
  1854. mutex_lock(&routing_lock);
  1855. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1856. mutex_unlock(&routing_lock);
  1857. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1858. update);
  1859. }
  1860. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1861. ucontrol->value.integer.value[0]);
  1862. return 1;
  1863. }
  1864. /*
  1865. * Return the mapping between port ID and backend ID to enable the AFE callback
  1866. * to determine the acdb_dev_id from the port id
  1867. */
  1868. int msm_pcm_get_be_id_from_port_id(int port_id)
  1869. {
  1870. int i;
  1871. int be_id = -EINVAL;
  1872. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1873. if (msm_bedais[i].port_id == port_id) {
  1874. be_id = i;
  1875. break;
  1876. }
  1877. }
  1878. return be_id;
  1879. }
  1880. /*
  1881. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1882. * correct AFE calibration information by comparing the header information.
  1883. */
  1884. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1885. {
  1886. int acdb_id = -EINVAL;
  1887. int i = 0;
  1888. int session;
  1889. int port_type = afe_get_port_type(port_id);
  1890. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1891. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1892. __func__, port_id, be_id, port_type);
  1893. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1894. session = SESSION_TYPE_TX;
  1895. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1896. session = SESSION_TYPE_RX;
  1897. } else {
  1898. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1899. acdb_id = -EINVAL;
  1900. goto exit;
  1901. }
  1902. if (be_id < 0) {
  1903. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1904. goto exit;
  1905. }
  1906. mutex_lock(&routing_lock);
  1907. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1908. MSM_FRONTEND_DAI_MAX);
  1909. if (i < MSM_FRONTEND_DAI_MAX)
  1910. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1911. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  1912. __func__, i, session, be_id, acdb_id);
  1913. mutex_unlock(&routing_lock);
  1914. exit:
  1915. return acdb_id;
  1916. }
  1917. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  1918. struct snd_ctl_elem_value *ucontrol)
  1919. {
  1920. ucontrol->value.integer.value[0] = fm_switch_enable;
  1921. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1922. ucontrol->value.integer.value[0]);
  1923. return 0;
  1924. }
  1925. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  1926. struct snd_ctl_elem_value *ucontrol)
  1927. {
  1928. struct snd_soc_dapm_widget *widget =
  1929. snd_soc_dapm_kcontrol_widget(kcontrol);
  1930. struct snd_soc_dapm_update *update = NULL;
  1931. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1932. ucontrol->value.integer.value[0]);
  1933. if (ucontrol->value.integer.value[0])
  1934. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1935. update);
  1936. else
  1937. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1938. update);
  1939. fm_switch_enable = ucontrol->value.integer.value[0];
  1940. return 1;
  1941. }
  1942. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1943. struct snd_ctl_elem_value *ucontrol)
  1944. {
  1945. ucontrol->value.integer.value[0] = hfp_switch_enable;
  1946. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1947. ucontrol->value.integer.value[0]);
  1948. return 0;
  1949. }
  1950. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1951. struct snd_ctl_elem_value *ucontrol)
  1952. {
  1953. struct snd_soc_dapm_widget *widget =
  1954. snd_soc_dapm_kcontrol_widget(kcontrol);
  1955. struct snd_soc_dapm_update *update = NULL;
  1956. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1957. ucontrol->value.integer.value[0]);
  1958. if (ucontrol->value.integer.value[0])
  1959. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1960. 1, update);
  1961. else
  1962. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1963. 0, update);
  1964. hfp_switch_enable = ucontrol->value.integer.value[0];
  1965. return 1;
  1966. }
  1967. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  1968. struct snd_ctl_elem_value *ucontrol)
  1969. {
  1970. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  1971. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  1972. ucontrol->value.integer.value[0]);
  1973. return 0;
  1974. }
  1975. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  1976. struct snd_ctl_elem_value *ucontrol)
  1977. {
  1978. struct snd_soc_dapm_widget *widget =
  1979. snd_soc_dapm_kcontrol_widget(kcontrol);
  1980. struct snd_soc_dapm_update *update = NULL;
  1981. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  1982. ucontrol->value.integer.value[0]);
  1983. a2dp_switch_enable = ucontrol->value.integer.value[0];
  1984. if (a2dp_switch_enable)
  1985. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1986. 1, update);
  1987. else
  1988. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1989. 0, update);
  1990. return 1;
  1991. }
  1992. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1993. struct snd_ctl_elem_value *ucontrol)
  1994. {
  1995. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  1996. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1997. ucontrol->value.integer.value[0]);
  1998. return 0;
  1999. }
  2000. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2001. struct snd_ctl_elem_value *ucontrol)
  2002. {
  2003. struct snd_soc_dapm_widget *widget =
  2004. snd_soc_dapm_kcontrol_widget(kcontrol);
  2005. struct snd_soc_dapm_update *update = NULL;
  2006. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2007. ucontrol->value.integer.value[0]);
  2008. if (ucontrol->value.integer.value[0])
  2009. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2010. update);
  2011. else
  2012. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2013. update);
  2014. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2015. return 1;
  2016. }
  2017. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2018. struct snd_ctl_elem_value *ucontrol)
  2019. {
  2020. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2021. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2022. ucontrol->value.integer.value[0]);
  2023. return 0;
  2024. }
  2025. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2026. struct snd_ctl_elem_value *ucontrol)
  2027. {
  2028. struct snd_soc_dapm_widget *widget =
  2029. snd_soc_dapm_kcontrol_widget(kcontrol);
  2030. struct snd_soc_dapm_update *update = NULL;
  2031. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2032. ucontrol->value.integer.value[0]);
  2033. if (ucontrol->value.integer.value[0])
  2034. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2035. update);
  2036. else
  2037. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2038. update);
  2039. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2040. return 1;
  2041. }
  2042. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2043. struct snd_ctl_elem_value *ucontrol)
  2044. {
  2045. ucontrol->value.integer.value[0] = usb_switch_enable;
  2046. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2047. ucontrol->value.integer.value[0]);
  2048. return 0;
  2049. }
  2050. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2051. struct snd_ctl_elem_value *ucontrol)
  2052. {
  2053. struct snd_soc_dapm_widget *widget =
  2054. snd_soc_dapm_kcontrol_widget(kcontrol);
  2055. struct snd_soc_dapm_update *update = NULL;
  2056. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2057. ucontrol->value.integer.value[0]);
  2058. if (ucontrol->value.integer.value[0])
  2059. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2060. 1, update);
  2061. else
  2062. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2063. 0, update);
  2064. usb_switch_enable = ucontrol->value.integer.value[0];
  2065. return 1;
  2066. }
  2067. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2068. struct snd_ctl_elem_value *ucontrol)
  2069. {
  2070. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2071. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2072. ucontrol->value.integer.value[0]);
  2073. return 0;
  2074. }
  2075. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2076. struct snd_ctl_elem_value *ucontrol)
  2077. {
  2078. struct snd_soc_dapm_widget *widget =
  2079. snd_soc_dapm_kcontrol_widget(kcontrol);
  2080. struct snd_soc_dapm_update *update = NULL;
  2081. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2082. ucontrol->value.integer.value[0]);
  2083. if (ucontrol->value.integer.value[0])
  2084. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2085. update);
  2086. else
  2087. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2088. update);
  2089. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2090. return 1;
  2091. }
  2092. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2093. struct snd_ctl_elem_value *ucontrol)
  2094. {
  2095. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2096. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2097. ucontrol->value.integer.value[0]);
  2098. return 0;
  2099. }
  2100. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2101. struct snd_ctl_elem_value *ucontrol)
  2102. {
  2103. struct snd_soc_dapm_widget *widget =
  2104. snd_soc_dapm_kcontrol_widget(kcontrol);
  2105. struct snd_soc_dapm_update *update = NULL;
  2106. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2107. ucontrol->value.integer.value[0]);
  2108. if (ucontrol->value.integer.value[0])
  2109. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2110. update);
  2111. else
  2112. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2113. update);
  2114. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2115. return 1;
  2116. }
  2117. static int msm_routing_get_tert_mi2s_switch_mixer(
  2118. struct snd_kcontrol *kcontrol,
  2119. struct snd_ctl_elem_value *ucontrol)
  2120. {
  2121. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2122. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2123. ucontrol->value.integer.value[0]);
  2124. return 0;
  2125. }
  2126. static int msm_routing_put_tert_mi2s_switch_mixer(
  2127. struct snd_kcontrol *kcontrol,
  2128. struct snd_ctl_elem_value *ucontrol)
  2129. {
  2130. struct snd_soc_dapm_widget *widget =
  2131. snd_soc_dapm_kcontrol_widget(kcontrol);
  2132. struct snd_soc_dapm_update *update = NULL;
  2133. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2134. ucontrol->value.integer.value[0]);
  2135. if (ucontrol->value.integer.value[0])
  2136. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2137. update);
  2138. else
  2139. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2140. update);
  2141. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2142. return 1;
  2143. }
  2144. static int msm_routing_get_quat_mi2s_switch_mixer(
  2145. struct snd_kcontrol *kcontrol,
  2146. struct snd_ctl_elem_value *ucontrol)
  2147. {
  2148. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2149. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2150. ucontrol->value.integer.value[0]);
  2151. return 0;
  2152. }
  2153. static int msm_routing_put_quat_mi2s_switch_mixer(
  2154. struct snd_kcontrol *kcontrol,
  2155. struct snd_ctl_elem_value *ucontrol)
  2156. {
  2157. struct snd_soc_dapm_widget *widget =
  2158. snd_soc_dapm_kcontrol_widget(kcontrol);
  2159. struct snd_soc_dapm_update *update = NULL;
  2160. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2161. ucontrol->value.integer.value[0]);
  2162. if (ucontrol->value.integer.value[0])
  2163. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2164. update);
  2165. else
  2166. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2167. update);
  2168. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2169. return 1;
  2170. }
  2171. static int msm_routing_get_quin_mi2s_switch_mixer(
  2172. struct snd_kcontrol *kcontrol,
  2173. struct snd_ctl_elem_value *ucontrol)
  2174. {
  2175. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2176. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2177. ucontrol->value.integer.value[0]);
  2178. return 0;
  2179. }
  2180. static int msm_routing_put_quin_mi2s_switch_mixer(
  2181. struct snd_kcontrol *kcontrol,
  2182. struct snd_ctl_elem_value *ucontrol)
  2183. {
  2184. struct snd_soc_dapm_widget *widget =
  2185. snd_soc_dapm_kcontrol_widget(kcontrol);
  2186. struct snd_soc_dapm_update *update = NULL;
  2187. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2188. ucontrol->value.integer.value[0]);
  2189. if (ucontrol->value.integer.value[0])
  2190. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2191. update);
  2192. else
  2193. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2194. update);
  2195. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2196. return 1;
  2197. }
  2198. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2199. struct snd_ctl_elem_value *ucontrol)
  2200. {
  2201. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2202. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2203. ucontrol->value.integer.value[0]);
  2204. return 0;
  2205. }
  2206. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2207. struct snd_ctl_elem_value *ucontrol)
  2208. {
  2209. struct snd_soc_dapm_widget *widget =
  2210. snd_soc_dapm_kcontrol_widget(kcontrol);
  2211. struct snd_soc_dapm_update *update = NULL;
  2212. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2213. ucontrol->value.integer.value[0]);
  2214. if (ucontrol->value.integer.value[0])
  2215. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2216. update);
  2217. else
  2218. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2219. update);
  2220. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2221. return 1;
  2222. }
  2223. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2224. struct snd_ctl_elem_value *ucontrol)
  2225. {
  2226. ucontrol->value.integer.value[0] = lsm_port_index;
  2227. return 0;
  2228. }
  2229. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2230. struct snd_ctl_elem_value *ucontrol)
  2231. {
  2232. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2233. int mux = ucontrol->value.enumerated.item[0];
  2234. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2235. if (mux >= e->items) {
  2236. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2237. return -EINVAL;
  2238. }
  2239. pr_debug("%s: LSM enable %ld\n", __func__,
  2240. ucontrol->value.integer.value[0]);
  2241. switch (ucontrol->value.integer.value[0]) {
  2242. case 1:
  2243. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2244. break;
  2245. case 2:
  2246. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2247. break;
  2248. case 3:
  2249. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2250. break;
  2251. case 4:
  2252. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2253. break;
  2254. case 5:
  2255. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2256. break;
  2257. case 6:
  2258. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2259. break;
  2260. case 7:
  2261. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2262. break;
  2263. case 8:
  2264. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2265. break;
  2266. case 9:
  2267. lsm_port = ADM_LSM_PORT_ID;
  2268. break;
  2269. case 10:
  2270. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2271. break;
  2272. case 11:
  2273. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2274. break;
  2275. case 12:
  2276. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2277. break;
  2278. default:
  2279. pr_err("Default lsm port");
  2280. break;
  2281. }
  2282. set_lsm_port(lsm_port);
  2283. lsm_port_index = ucontrol->value.integer.value[0];
  2284. return 0;
  2285. }
  2286. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2287. struct snd_ctl_elem_value *ucontrol)
  2288. {
  2289. int i;
  2290. u16 port_id;
  2291. enum afe_mad_type mad_type;
  2292. pr_debug("%s: enter\n", __func__);
  2293. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2294. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2295. strlen(lsm_port_text[i])))
  2296. break;
  2297. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2298. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2299. return -EINVAL;
  2300. }
  2301. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2302. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2303. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2304. strlen(lsm_port_text[7])))
  2305. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2306. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2307. strlen(lsm_port_text[8])))
  2308. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2309. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2310. strlen(lsm_port_text[10])))
  2311. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2312. mad_type = afe_port_get_mad_type(port_id);
  2313. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2314. mad_type);
  2315. switch (mad_type) {
  2316. case MAD_HW_NONE:
  2317. ucontrol->value.integer.value[0] = MADNONE;
  2318. break;
  2319. case MAD_HW_AUDIO:
  2320. ucontrol->value.integer.value[0] = MADAUDIO;
  2321. break;
  2322. case MAD_HW_BEACON:
  2323. ucontrol->value.integer.value[0] = MADBEACON;
  2324. break;
  2325. case MAD_HW_ULTRASOUND:
  2326. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2327. break;
  2328. case MAD_SW_AUDIO:
  2329. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2330. break;
  2331. default:
  2332. WARN(1, "Unknown\n");
  2333. return -EINVAL;
  2334. }
  2335. return 0;
  2336. }
  2337. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2338. struct snd_ctl_elem_value *ucontrol)
  2339. {
  2340. int i;
  2341. u16 port_id;
  2342. enum afe_mad_type mad_type;
  2343. pr_debug("%s: enter\n", __func__);
  2344. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2345. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2346. strlen(lsm_port_text[i])))
  2347. break;
  2348. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2349. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2350. return -EINVAL;
  2351. }
  2352. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2353. switch (ucontrol->value.integer.value[0]) {
  2354. case MADNONE:
  2355. mad_type = MAD_HW_NONE;
  2356. break;
  2357. case MADAUDIO:
  2358. mad_type = MAD_HW_AUDIO;
  2359. break;
  2360. case MADBEACON:
  2361. mad_type = MAD_HW_BEACON;
  2362. break;
  2363. case MADULTRASOUND:
  2364. mad_type = MAD_HW_ULTRASOUND;
  2365. break;
  2366. case MADSWAUDIO:
  2367. mad_type = MAD_SW_AUDIO;
  2368. break;
  2369. default:
  2370. WARN(1, "Unknown\n");
  2371. return -EINVAL;
  2372. }
  2373. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2374. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2375. strlen(lsm_port_text[7])))
  2376. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2377. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2378. strlen(lsm_port_text[8])))
  2379. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2380. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2381. strlen(lsm_port_text[10])))
  2382. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2383. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2384. mad_type);
  2385. return afe_port_set_mad_type(port_id, mad_type);
  2386. }
  2387. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2388. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2389. adm_override_chs_text);
  2390. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2391. {
  2392. int backend_id;
  2393. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2394. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2395. } else {
  2396. pr_err("%s: unsupported backend id: %s",
  2397. __func__, kcontrol->id.name);
  2398. return -EINVAL;
  2399. }
  2400. return backend_id;
  2401. }
  2402. static int msm_routing_adm_channel_config_get(
  2403. struct snd_kcontrol *kcontrol,
  2404. struct snd_ctl_elem_value *ucontrol)
  2405. {
  2406. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2407. if (backend_id >= 0) {
  2408. mutex_lock(&routing_lock);
  2409. ucontrol->value.integer.value[0] =
  2410. msm_bedais[backend_id].adm_override_ch;
  2411. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2412. ucontrol->value.integer.value[0], backend_id);
  2413. mutex_unlock(&routing_lock);
  2414. }
  2415. return 0;
  2416. }
  2417. static int msm_routing_adm_channel_config_put(
  2418. struct snd_kcontrol *kcontrol,
  2419. struct snd_ctl_elem_value *ucontrol)
  2420. {
  2421. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2422. if (backend_id >= 0) {
  2423. mutex_lock(&routing_lock);
  2424. msm_bedais[backend_id].adm_override_ch =
  2425. ucontrol->value.integer.value[0];
  2426. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2427. __func__, backend_id,
  2428. msm_bedais[backend_id].adm_override_ch);
  2429. mutex_unlock(&routing_lock);
  2430. }
  2431. return 0;
  2432. }
  2433. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2434. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2435. msm_routing_adm_channel_config_get,
  2436. msm_routing_adm_channel_config_put),
  2437. };
  2438. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2439. struct snd_ctl_elem_value *ucontrol)
  2440. {
  2441. mutex_lock(&routing_lock);
  2442. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2443. mutex_unlock(&routing_lock);
  2444. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2445. ucontrol->value.integer.value[0]);
  2446. return 0;
  2447. };
  2448. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2449. struct snd_ctl_elem_value *ucontrol)
  2450. {
  2451. struct aanc_data aanc_info;
  2452. mutex_lock(&routing_lock);
  2453. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2454. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2455. ucontrol->value.integer.value[0]);
  2456. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2457. if (ucontrol->value.integer.value[0] == 0) {
  2458. aanc_info.aanc_active = false;
  2459. aanc_info.aanc_tx_port = 0;
  2460. aanc_info.aanc_rx_port = 0;
  2461. } else {
  2462. aanc_info.aanc_active = true;
  2463. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2464. aanc_info.aanc_tx_port =
  2465. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2466. }
  2467. afe_set_aanc_info(&aanc_info);
  2468. mutex_unlock(&routing_lock);
  2469. return 0;
  2470. };
  2471. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2472. struct snd_ctl_elem_value *ucontrol)
  2473. {
  2474. int idx = 0, shift = 0;
  2475. struct soc_mixer_control *mc =
  2476. (struct soc_mixer_control *)kcontrol->private_value;
  2477. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2478. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2479. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2480. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2481. return -EINVAL;
  2482. }
  2483. if (test_bit(shift,
  2484. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2485. ucontrol->value.integer.value[0] = 1;
  2486. else
  2487. ucontrol->value.integer.value[0] = 0;
  2488. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2489. ucontrol->value.integer.value[0]);
  2490. return 0;
  2491. }
  2492. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2493. struct snd_ctl_elem_value *ucontrol)
  2494. {
  2495. int idx = 0, shift = 0;
  2496. struct soc_mixer_control *mc =
  2497. (struct soc_mixer_control *)kcontrol->private_value;
  2498. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2499. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2500. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2501. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2502. return -EINVAL;
  2503. }
  2504. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2505. __func__, mc->shift, mc->rshift,
  2506. ucontrol->value.integer.value[0], idx, shift);
  2507. if (ucontrol->value.integer.value[0]) {
  2508. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2509. msm_bedais[mc->rshift].port_id);
  2510. set_bit(shift,
  2511. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2512. } else {
  2513. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2514. msm_bedais[mc->rshift].port_id);
  2515. clear_bit(shift,
  2516. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2517. }
  2518. return 1;
  2519. }
  2520. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2521. struct snd_ctl_elem_value *ucontrol)
  2522. {
  2523. u16 fe_id = 0;
  2524. fe_id = ((struct soc_mixer_control *)
  2525. kcontrol->private_value)->shift;
  2526. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2527. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2528. return -EINVAL;
  2529. }
  2530. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2531. return 0;
  2532. }
  2533. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2534. struct snd_ctl_elem_value *ucontrol)
  2535. {
  2536. u16 fe_id = 0;
  2537. fe_id = ((struct soc_mixer_control *)
  2538. kcontrol->private_value)->shift;
  2539. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2540. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2541. return -EINVAL;
  2542. }
  2543. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2544. return 1;
  2545. }
  2546. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2547. struct snd_ctl_elem_value *ucontrol)
  2548. {
  2549. u16 fe_id = 0;
  2550. fe_id = ((struct soc_multi_mixer_control *)
  2551. kcontrol->private_value)->shift;
  2552. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2553. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2554. return -EINVAL;
  2555. }
  2556. ucontrol->value.integer.value[0] =
  2557. channel_mixer[fe_id].output_channel;
  2558. return 0;
  2559. }
  2560. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2561. struct snd_ctl_elem_value *ucontrol)
  2562. {
  2563. u16 fe_id = 0;
  2564. fe_id = ((struct soc_multi_mixer_control *)
  2565. kcontrol->private_value)->shift;
  2566. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2567. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2568. return -EINVAL;
  2569. }
  2570. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2571. fe_id,
  2572. (unsigned int)(ucontrol->value.integer.value[0]));
  2573. channel_mixer[fe_id].output_channel =
  2574. (unsigned int)(ucontrol->value.integer.value[0]);
  2575. return 1;
  2576. }
  2577. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2578. /* If new backend is added, need update this array */
  2579. static const char *const be_name[] = {
  2580. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2581. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2582. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2583. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2584. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2585. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2586. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2587. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2588. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2589. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2590. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2591. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2592. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2593. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2594. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2595. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2596. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2597. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2598. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2599. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2600. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2601. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2602. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2603. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2604. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2605. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2606. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2607. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2608. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2609. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2610. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2611. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2612. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2613. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2614. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2615. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2616. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2617. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2618. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2619. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2620. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2621. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2622. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1"
  2623. };
  2624. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2625. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2626. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2627. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2628. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2629. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2630. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2631. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2632. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2633. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2634. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2635. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2636. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2637. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2638. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2639. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2640. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2641. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2642. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2643. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2644. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2645. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2646. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2647. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2648. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2649. unsigned int channels,
  2650. unsigned int items, const char *const names[])
  2651. {
  2652. if (uinfo->value.enumerated.item >= items)
  2653. uinfo->value.enumerated.item = items - 1;
  2654. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2655. sizeof(uinfo->value.enumerated.name),
  2656. "ALSA: too long item name '%s'\n",
  2657. names[uinfo->value.enumerated.item]);
  2658. strlcpy(uinfo->value.enumerated.name,
  2659. names[uinfo->value.enumerated.item],
  2660. sizeof(uinfo->value.enumerated.name));
  2661. return 0;
  2662. }
  2663. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2664. struct snd_ctl_elem_info *uinfo)
  2665. {
  2666. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2667. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2668. uinfo->count = 1;
  2669. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2670. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2671. return 0;
  2672. }
  2673. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2674. struct snd_ctl_elem_value *ucontrol)
  2675. {
  2676. u16 fe_id = 0;
  2677. fe_id = ((struct soc_enum *)
  2678. kcontrol->private_value)->shift_l;
  2679. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2680. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2681. return -EINVAL;
  2682. }
  2683. pr_debug("%s: FE %d %s\n", __func__,
  2684. fe_id,
  2685. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2686. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2687. return 0;
  2688. }
  2689. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2690. struct snd_ctl_elem_value *ucontrol)
  2691. {
  2692. u16 fe_id = 0;
  2693. fe_id = ((struct soc_enum *)
  2694. kcontrol->private_value)->shift_l;
  2695. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2696. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2697. return -EINVAL;
  2698. }
  2699. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2700. pr_debug("%s: %s FE %d\n", __func__,
  2701. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2702. fe_id);
  2703. return 0;
  2704. }
  2705. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2706. struct snd_ctl_elem_info *uinfo)
  2707. {
  2708. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2709. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2710. uinfo->count = 1;
  2711. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2712. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2713. return 0;
  2714. }
  2715. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2716. struct snd_ctl_elem_value *ucontrol)
  2717. {
  2718. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2719. u16 fe_id = 0, in_ch = 0;
  2720. fe_id = e->shift_l;
  2721. in_ch = e->shift_r;
  2722. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2723. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2724. return -EINVAL;
  2725. }
  2726. if (in_ch >= ADM_MAX_CHANNELS) {
  2727. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2728. return -EINVAL;
  2729. }
  2730. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2731. return 1;
  2732. }
  2733. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2734. struct snd_ctl_elem_value *ucontrol)
  2735. {
  2736. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2737. u16 fe_id = 0, in_ch = 0;
  2738. fe_id = e->shift_l;
  2739. in_ch = e->shift_r;
  2740. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2741. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2742. return -EINVAL;
  2743. }
  2744. if (in_ch >= ADM_MAX_CHANNELS) {
  2745. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2746. return -EINVAL;
  2747. }
  2748. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2749. return 1;
  2750. }
  2751. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2752. struct snd_ctl_elem_info *uinfo)
  2753. {
  2754. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2755. uinfo->count = ADM_MAX_CHANNELS;
  2756. uinfo->value.integer.min = 0;
  2757. uinfo->value.integer.max = WEIGHT_0_DB;
  2758. return 0;
  2759. }
  2760. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2761. struct snd_ctl_elem_value *ucontrol)
  2762. {
  2763. u16 fe_id = 0, out_ch = 0;
  2764. int i, weight;
  2765. fe_id = ((struct soc_multi_mixer_control *)
  2766. kcontrol->private_value)->shift;
  2767. out_ch = ((struct soc_multi_mixer_control *)
  2768. kcontrol->private_value)->rshift;
  2769. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2770. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2771. return -EINVAL;
  2772. }
  2773. if (out_ch >= ADM_MAX_CHANNELS) {
  2774. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2775. return -EINVAL;
  2776. }
  2777. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2778. __func__, fe_id,
  2779. ucontrol->value.integer.value[0],
  2780. ucontrol->value.integer.value[1],
  2781. ucontrol->value.integer.value[2],
  2782. ucontrol->value.integer.value[3],
  2783. ucontrol->value.integer.value[4],
  2784. ucontrol->value.integer.value[5],
  2785. ucontrol->value.integer.value[6],
  2786. ucontrol->value.integer.value[7]);
  2787. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2788. weight = ucontrol->value.integer.value[i];
  2789. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2790. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2791. __func__, fe_id, out_ch, i,
  2792. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2793. }
  2794. return 0;
  2795. }
  2796. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2797. struct snd_ctl_elem_value *ucontrol)
  2798. {
  2799. u16 fe_id = 0, out_ch = 0;
  2800. int i;
  2801. fe_id = ((struct soc_multi_mixer_control *)
  2802. kcontrol->private_value)->shift;
  2803. out_ch = ((struct soc_multi_mixer_control *)
  2804. kcontrol->private_value)->rshift;
  2805. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2806. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2807. return -EINVAL;
  2808. }
  2809. if (out_ch >= ADM_MAX_CHANNELS) {
  2810. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2811. return -EINVAL;
  2812. }
  2813. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2814. ucontrol->value.integer.value[i] =
  2815. channel_mixer[fe_id].channel_weight[out_ch][i];
  2816. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2817. __func__, fe_id,
  2818. ucontrol->value.integer.value[0],
  2819. ucontrol->value.integer.value[1],
  2820. ucontrol->value.integer.value[2],
  2821. ucontrol->value.integer.value[3],
  2822. ucontrol->value.integer.value[4],
  2823. ucontrol->value.integer.value[5],
  2824. ucontrol->value.integer.value[6],
  2825. ucontrol->value.integer.value[7]);
  2826. return 0;
  2827. }
  2828. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2829. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2830. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2831. msm_pcm_get_channel_rule_index,
  2832. msm_pcm_put_channel_rule_index),
  2833. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2834. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2835. msm_pcm_get_channel_rule_index,
  2836. msm_pcm_put_channel_rule_index),
  2837. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2838. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2839. msm_pcm_get_channel_rule_index,
  2840. msm_pcm_put_channel_rule_index),
  2841. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2842. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2843. msm_pcm_get_channel_rule_index,
  2844. msm_pcm_put_channel_rule_index),
  2845. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2846. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2847. msm_pcm_get_channel_rule_index,
  2848. msm_pcm_put_channel_rule_index),
  2849. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2850. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2851. msm_pcm_get_channel_rule_index,
  2852. msm_pcm_put_channel_rule_index),
  2853. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2854. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2855. msm_pcm_get_out_chs,
  2856. msm_pcm_put_out_chs),
  2857. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2858. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2859. msm_pcm_get_out_chs,
  2860. msm_pcm_put_out_chs),
  2861. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2862. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2863. msm_pcm_get_out_chs,
  2864. msm_pcm_put_out_chs),
  2865. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2866. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2867. msm_pcm_get_out_chs,
  2868. msm_pcm_put_out_chs),
  2869. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2870. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2871. msm_pcm_get_out_chs,
  2872. msm_pcm_put_out_chs),
  2873. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2874. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2875. msm_pcm_get_out_chs,
  2876. msm_pcm_put_out_chs),
  2877. {
  2878. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2879. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2880. .name = "MultiMedia1 Channel Mixer",
  2881. .info = msm_pcm_channel_mixer_info,
  2882. .get = msm_pcm_channel_mixer_get,
  2883. .put = msm_pcm_channel_mixer_put,
  2884. .private_value = (unsigned long)&(mm1_channel_mux)
  2885. },
  2886. {
  2887. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2888. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2889. .name = "MultiMedia2 Channel Mixer",
  2890. .info = msm_pcm_channel_mixer_info,
  2891. .get = msm_pcm_channel_mixer_get,
  2892. .put = msm_pcm_channel_mixer_put,
  2893. .private_value = (unsigned long)&(mm2_channel_mux)
  2894. },
  2895. {
  2896. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2897. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2898. .name = "MultiMedia3 Channel Mixer",
  2899. .info = msm_pcm_channel_mixer_info,
  2900. .get = msm_pcm_channel_mixer_get,
  2901. .put = msm_pcm_channel_mixer_put,
  2902. .private_value = (unsigned long)&(mm3_channel_mux)
  2903. },
  2904. {
  2905. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2906. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2907. .name = "MultiMedia4 Channel Mixer",
  2908. .info = msm_pcm_channel_mixer_info,
  2909. .get = msm_pcm_channel_mixer_get,
  2910. .put = msm_pcm_channel_mixer_put,
  2911. .private_value = (unsigned long)&(mm4_channel_mux)
  2912. },
  2913. {
  2914. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2915. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2916. .name = "MultiMedia1 Output Channel1",
  2917. .info = msm_pcm_channel_weight_info,
  2918. .get = msm_pcm_channel_weight_get,
  2919. .put = msm_pcm_channel_weight_put,
  2920. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2921. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  2922. },
  2923. {
  2924. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2925. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2926. .name = "MultiMedia1 Output Channel2",
  2927. .info = msm_pcm_channel_weight_info,
  2928. .get = msm_pcm_channel_weight_get,
  2929. .put = msm_pcm_channel_weight_put,
  2930. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2931. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  2932. },
  2933. {
  2934. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2935. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2936. .name = "MultiMedia1 Output Channel3",
  2937. .info = msm_pcm_channel_weight_info,
  2938. .get = msm_pcm_channel_weight_get,
  2939. .put = msm_pcm_channel_weight_put,
  2940. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2941. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  2942. },
  2943. {
  2944. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2945. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2946. .name = "MultiMedia1 Output Channel4",
  2947. .info = msm_pcm_channel_weight_info,
  2948. .get = msm_pcm_channel_weight_get,
  2949. .put = msm_pcm_channel_weight_put,
  2950. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2951. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  2952. },
  2953. {
  2954. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2955. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2956. .name = "MultiMedia1 Output Channel5",
  2957. .info = msm_pcm_channel_weight_info,
  2958. .get = msm_pcm_channel_weight_get,
  2959. .put = msm_pcm_channel_weight_put,
  2960. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2961. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  2962. },
  2963. {
  2964. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2965. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2966. .name = "MultiMedia1 Output Channel6",
  2967. .info = msm_pcm_channel_weight_info,
  2968. .get = msm_pcm_channel_weight_get,
  2969. .put = msm_pcm_channel_weight_put,
  2970. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2971. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  2972. },
  2973. {
  2974. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2975. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2976. .name = "MultiMedia1 Output Channel7",
  2977. .info = msm_pcm_channel_weight_info,
  2978. .get = msm_pcm_channel_weight_get,
  2979. .put = msm_pcm_channel_weight_put,
  2980. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2981. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  2982. },
  2983. {
  2984. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2985. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2986. .name = "MultiMedia1 Output Channel8",
  2987. .info = msm_pcm_channel_weight_info,
  2988. .get = msm_pcm_channel_weight_get,
  2989. .put = msm_pcm_channel_weight_put,
  2990. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2991. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  2992. },
  2993. {
  2994. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2995. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2996. .name = "MultiMedia2 Output Channel1",
  2997. .info = msm_pcm_channel_weight_info,
  2998. .get = msm_pcm_channel_weight_get,
  2999. .put = msm_pcm_channel_weight_put,
  3000. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3001. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3002. },
  3003. {
  3004. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3005. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3006. .name = "MultiMedia2 Output Channel2",
  3007. .info = msm_pcm_channel_weight_info,
  3008. .get = msm_pcm_channel_weight_get,
  3009. .put = msm_pcm_channel_weight_put,
  3010. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3011. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3012. },
  3013. {
  3014. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3015. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3016. .name = "MultiMedia2 Output Channel3",
  3017. .info = msm_pcm_channel_weight_info,
  3018. .get = msm_pcm_channel_weight_get,
  3019. .put = msm_pcm_channel_weight_put,
  3020. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3021. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3022. },
  3023. {
  3024. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3025. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3026. .name = "MultiMedia3 Output Channel1",
  3027. .info = msm_pcm_channel_weight_info,
  3028. .get = msm_pcm_channel_weight_get,
  3029. .put = msm_pcm_channel_weight_put,
  3030. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3031. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3032. },
  3033. {
  3034. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3035. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3036. .name = "MultiMedia3 Output Channel2",
  3037. .info = msm_pcm_channel_weight_info,
  3038. .get = msm_pcm_channel_weight_get,
  3039. .put = msm_pcm_channel_weight_put,
  3040. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3041. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3042. },
  3043. {
  3044. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3045. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3046. .name = "MultiMedia1 Channel1",
  3047. .info = msm_pcm_channel_input_be_info,
  3048. .get = msm_pcm_channel_input_be_get,
  3049. .put = msm_pcm_channel_input_be_put,
  3050. .private_value = (unsigned long)&(mm1_ch1_enum)
  3051. },
  3052. {
  3053. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3054. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3055. .name = "MultiMedia1 Channel2",
  3056. .info = msm_pcm_channel_input_be_info,
  3057. .get = msm_pcm_channel_input_be_get,
  3058. .put = msm_pcm_channel_input_be_put,
  3059. .private_value = (unsigned long)&(mm1_ch2_enum)
  3060. },
  3061. {
  3062. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3063. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3064. .name = "MultiMedia1 Channel3",
  3065. .info = msm_pcm_channel_input_be_info,
  3066. .get = msm_pcm_channel_input_be_get,
  3067. .put = msm_pcm_channel_input_be_put,
  3068. .private_value = (unsigned long)&(mm1_ch3_enum)
  3069. },
  3070. {
  3071. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3072. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3073. .name = "MultiMedia1 Channel4",
  3074. .info = msm_pcm_channel_input_be_info,
  3075. .get = msm_pcm_channel_input_be_get,
  3076. .put = msm_pcm_channel_input_be_put,
  3077. .private_value = (unsigned long)&(mm1_ch4_enum)
  3078. },
  3079. {
  3080. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3081. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3082. .name = "MultiMedia1 Channel5",
  3083. .info = msm_pcm_channel_input_be_info,
  3084. .get = msm_pcm_channel_input_be_get,
  3085. .put = msm_pcm_channel_input_be_put,
  3086. .private_value = (unsigned long)&(mm1_ch5_enum)
  3087. },
  3088. {
  3089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3090. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3091. .name = "MultiMedia1 Channel6",
  3092. .info = msm_pcm_channel_input_be_info,
  3093. .get = msm_pcm_channel_input_be_get,
  3094. .put = msm_pcm_channel_input_be_put,
  3095. .private_value = (unsigned long)&(mm1_ch6_enum)
  3096. },
  3097. {
  3098. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3099. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3100. .name = "MultiMedia1 Channel7",
  3101. .info = msm_pcm_channel_input_be_info,
  3102. .get = msm_pcm_channel_input_be_get,
  3103. .put = msm_pcm_channel_input_be_put,
  3104. .private_value = (unsigned long)&(mm1_ch7_enum)
  3105. },
  3106. {
  3107. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3108. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3109. .name = "MultiMedia1 Channel8",
  3110. .info = msm_pcm_channel_input_be_info,
  3111. .get = msm_pcm_channel_input_be_get,
  3112. .put = msm_pcm_channel_input_be_put,
  3113. .private_value = (unsigned long)&(mm1_ch8_enum)
  3114. },
  3115. };
  3116. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3117. struct snd_ctl_elem_value *ucontrol)
  3118. {
  3119. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3120. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3121. ucontrol->value.integer.value[0]);
  3122. return 0;
  3123. }
  3124. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3125. struct snd_ctl_elem_value *ucontrol)
  3126. {
  3127. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3128. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3129. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3130. return 0;
  3131. }
  3132. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3133. "Four", "Five", "Six", "Seven", "Eight"};
  3134. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3135. struct snd_ctl_elem_value *ucontrol)
  3136. {
  3137. switch (msm_ec_ref_bit_format) {
  3138. case SNDRV_PCM_FORMAT_S24_LE:
  3139. ucontrol->value.integer.value[0] = 2;
  3140. break;
  3141. case SNDRV_PCM_FORMAT_S16_LE:
  3142. ucontrol->value.integer.value[0] = 1;
  3143. break;
  3144. default:
  3145. ucontrol->value.integer.value[0] = 0;
  3146. break;
  3147. }
  3148. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3149. __func__, ucontrol->value.integer.value[0]);
  3150. return 0;
  3151. }
  3152. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3153. struct snd_ctl_elem_value *ucontrol)
  3154. {
  3155. u16 bit_width = 0;
  3156. switch (ucontrol->value.integer.value[0]) {
  3157. case 2:
  3158. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3159. break;
  3160. case 1:
  3161. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3162. break;
  3163. default:
  3164. msm_ec_ref_bit_format = 0;
  3165. break;
  3166. }
  3167. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3168. bit_width = 16;
  3169. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3170. bit_width = 24;
  3171. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3172. __func__, msm_ec_ref_bit_format);
  3173. adm_ec_ref_rx_bit_width(bit_width);
  3174. return 0;
  3175. }
  3176. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3177. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3178. struct snd_ctl_elem_value *ucontrol)
  3179. {
  3180. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3181. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3182. __func__, ucontrol->value.integer.value[0]);
  3183. return 0;
  3184. }
  3185. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3186. struct snd_ctl_elem_value *ucontrol)
  3187. {
  3188. switch (ucontrol->value.integer.value[0]) {
  3189. case 0:
  3190. msm_ec_ref_sampling_rate = 0;
  3191. break;
  3192. case 1:
  3193. msm_ec_ref_sampling_rate = 8000;
  3194. break;
  3195. case 2:
  3196. msm_ec_ref_sampling_rate = 16000;
  3197. break;
  3198. case 3:
  3199. msm_ec_ref_sampling_rate = 32000;
  3200. break;
  3201. case 4:
  3202. msm_ec_ref_sampling_rate = 44100;
  3203. break;
  3204. case 5:
  3205. msm_ec_ref_sampling_rate = 48000;
  3206. break;
  3207. case 6:
  3208. msm_ec_ref_sampling_rate = 96000;
  3209. break;
  3210. case 7:
  3211. msm_ec_ref_sampling_rate = 192000;
  3212. break;
  3213. case 8:
  3214. msm_ec_ref_sampling_rate = 384000;
  3215. break;
  3216. default:
  3217. msm_ec_ref_sampling_rate = 48000;
  3218. break;
  3219. }
  3220. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3221. __func__, msm_ec_ref_sampling_rate);
  3222. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3223. return 0;
  3224. }
  3225. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3226. "32000", "44100", "48000", "96000", "192000", "384000"};
  3227. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3228. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3229. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3230. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3231. };
  3232. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3233. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3234. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3235. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3236. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3237. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3238. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3239. };
  3240. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3241. struct snd_ctl_elem_value *ucontrol)
  3242. {
  3243. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3244. mutex_lock(&routing_lock);
  3245. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3246. mutex_unlock(&routing_lock);
  3247. return 0;
  3248. }
  3249. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3250. struct snd_ctl_elem_value *ucontrol)
  3251. {
  3252. int ec_ref_port_id;
  3253. struct snd_soc_dapm_widget *widget =
  3254. snd_soc_dapm_kcontrol_widget(kcontrol);
  3255. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3256. struct snd_soc_dapm_update *update = NULL;
  3257. mutex_lock(&routing_lock);
  3258. switch (ucontrol->value.integer.value[0]) {
  3259. case 0:
  3260. msm_route_ec_ref_rx = 0;
  3261. ec_ref_port_id = AFE_PORT_INVALID;
  3262. break;
  3263. case 1:
  3264. msm_route_ec_ref_rx = 1;
  3265. ec_ref_port_id = SLIMBUS_0_RX;
  3266. break;
  3267. case 2:
  3268. msm_route_ec_ref_rx = 2;
  3269. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3270. break;
  3271. case 3:
  3272. msm_route_ec_ref_rx = 3;
  3273. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3274. break;
  3275. case 4:
  3276. msm_route_ec_ref_rx = 4;
  3277. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3278. break;
  3279. case 5:
  3280. msm_route_ec_ref_rx = 5;
  3281. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3282. break;
  3283. case 6:
  3284. msm_route_ec_ref_rx = 6;
  3285. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3286. break;
  3287. case 7:
  3288. msm_route_ec_ref_rx = 7;
  3289. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3290. break;
  3291. case 9:
  3292. msm_route_ec_ref_rx = 9;
  3293. ec_ref_port_id = SLIMBUS_5_RX;
  3294. break;
  3295. case 10:
  3296. msm_route_ec_ref_rx = 10;
  3297. ec_ref_port_id = SLIMBUS_1_TX;
  3298. break;
  3299. case 11:
  3300. msm_route_ec_ref_rx = 11;
  3301. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3302. break;
  3303. case 12:
  3304. msm_route_ec_ref_rx = 12;
  3305. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3306. break;
  3307. case 13:
  3308. msm_route_ec_ref_rx = 13;
  3309. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3310. break;
  3311. case 14:
  3312. msm_route_ec_ref_rx = 14;
  3313. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3314. break;
  3315. case 15:
  3316. msm_route_ec_ref_rx = 15;
  3317. ec_ref_port_id = SLIMBUS_6_RX;
  3318. break;
  3319. case 16:
  3320. msm_route_ec_ref_rx = 16;
  3321. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3322. break;
  3323. case 17:
  3324. msm_route_ec_ref_rx = 17;
  3325. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3326. break;
  3327. case 18:
  3328. msm_route_ec_ref_rx = 18;
  3329. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3330. break;
  3331. case 19:
  3332. msm_route_ec_ref_rx = 19;
  3333. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3334. break;
  3335. case 20:
  3336. msm_route_ec_ref_rx = 20;
  3337. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3338. break;
  3339. case 21:
  3340. msm_route_ec_ref_rx = 21;
  3341. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3342. break;
  3343. case 22:
  3344. msm_route_ec_ref_rx = 22;
  3345. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3346. break;
  3347. case 23:
  3348. msm_route_ec_ref_rx = 23;
  3349. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3350. break;
  3351. case 24:
  3352. msm_route_ec_ref_rx = 24;
  3353. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3354. break;
  3355. case 25:
  3356. msm_route_ec_ref_rx = 25;
  3357. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3358. break;
  3359. case 26:
  3360. msm_route_ec_ref_rx = 26;
  3361. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3362. break;
  3363. case 27:
  3364. msm_route_ec_ref_rx = 27;
  3365. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3366. break;
  3367. case 28:
  3368. msm_route_ec_ref_rx = 28;
  3369. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3370. break;
  3371. default:
  3372. msm_route_ec_ref_rx = 0; /* NONE */
  3373. pr_err("%s EC ref rx %ld not valid\n",
  3374. __func__, ucontrol->value.integer.value[0]);
  3375. ec_ref_port_id = AFE_PORT_INVALID;
  3376. break;
  3377. }
  3378. adm_ec_ref_rx_id(ec_ref_port_id);
  3379. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3380. __func__, msm_route_ec_ref_rx);
  3381. mutex_unlock(&routing_lock);
  3382. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3383. msm_route_ec_ref_rx, e, update);
  3384. return 0;
  3385. }
  3386. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3387. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3388. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3389. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3390. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3391. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3392. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3393. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3394. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2"
  3395. };
  3396. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3397. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3398. };
  3399. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3400. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3401. msm_route_ec_ref_rx_enum[0],
  3402. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3403. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3404. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3405. msm_route_ec_ref_rx_enum[0],
  3406. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3407. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3408. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3409. msm_route_ec_ref_rx_enum[0],
  3410. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3411. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3412. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3413. msm_route_ec_ref_rx_enum[0],
  3414. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3415. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3416. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3417. msm_route_ec_ref_rx_enum[0],
  3418. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3419. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3420. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3421. msm_route_ec_ref_rx_enum[0],
  3422. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3423. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3424. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3425. msm_route_ec_ref_rx_enum[0],
  3426. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3427. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3428. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3429. msm_route_ec_ref_rx_enum[0],
  3430. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3431. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3432. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3433. msm_route_ec_ref_rx_enum[0],
  3434. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3435. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3436. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3437. msm_route_ec_ref_rx_enum[0],
  3438. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3439. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3440. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3441. msm_route_ec_ref_rx_enum[0],
  3442. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3443. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3444. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3445. msm_route_ec_ref_rx_enum[0],
  3446. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3447. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3448. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3449. msm_route_ec_ref_rx_enum[0],
  3450. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3451. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3452. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3453. msm_route_ec_ref_rx_enum[0],
  3454. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3455. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3456. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3457. msm_route_ec_ref_rx_enum[0],
  3458. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3459. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3460. struct snd_ctl_elem_value *ucontrol)
  3461. {
  3462. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3463. mutex_lock(&routing_lock);
  3464. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3465. mutex_unlock(&routing_lock);
  3466. return 0;
  3467. }
  3468. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3469. struct snd_ctl_elem_value *ucontrol)
  3470. {
  3471. struct snd_soc_dapm_widget *widget =
  3472. snd_soc_dapm_kcontrol_widget(kcontrol);
  3473. int mux = ucontrol->value.enumerated.item[0];
  3474. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3475. int ret = 1;
  3476. bool state = true;
  3477. uint16_t ext_ec_ref_port_id;
  3478. struct snd_soc_dapm_update *update = NULL;
  3479. if (mux >= e->items) {
  3480. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3481. return -EINVAL;
  3482. }
  3483. mutex_lock(&routing_lock);
  3484. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3485. switch (msm_route_ext_ec_ref) {
  3486. case EXT_EC_REF_PRI_MI2S_TX:
  3487. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3488. break;
  3489. case EXT_EC_REF_SEC_MI2S_TX:
  3490. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3491. break;
  3492. case EXT_EC_REF_TERT_MI2S_TX:
  3493. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3494. break;
  3495. case EXT_EC_REF_QUAT_MI2S_TX:
  3496. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3497. break;
  3498. case EXT_EC_REF_QUIN_MI2S_TX:
  3499. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3500. break;
  3501. case EXT_EC_REF_SLIM_1_TX:
  3502. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3503. break;
  3504. case EXT_EC_REF_NONE:
  3505. default:
  3506. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3507. state = false;
  3508. break;
  3509. }
  3510. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3511. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3512. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3513. mutex_unlock(&routing_lock);
  3514. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3515. update);
  3516. } else {
  3517. ret = -EINVAL;
  3518. mutex_unlock(&routing_lock);
  3519. }
  3520. return ret;
  3521. }
  3522. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3523. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3524. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3525. "SLIM_1_TX"};
  3526. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3527. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3528. };
  3529. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3530. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3531. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3532. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3533. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3534. MSM_BACKEND_DAI_PRI_I2S_RX,
  3535. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3536. msm_routing_put_audio_mixer),
  3537. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3538. MSM_BACKEND_DAI_PRI_I2S_RX,
  3539. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3540. msm_routing_put_audio_mixer),
  3541. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3542. MSM_BACKEND_DAI_PRI_I2S_RX,
  3543. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3544. msm_routing_put_audio_mixer),
  3545. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3546. MSM_BACKEND_DAI_PRI_I2S_RX,
  3547. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3548. msm_routing_put_audio_mixer),
  3549. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3550. MSM_BACKEND_DAI_PRI_I2S_RX,
  3551. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3552. msm_routing_put_audio_mixer),
  3553. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3554. MSM_BACKEND_DAI_PRI_I2S_RX,
  3555. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3556. msm_routing_put_audio_mixer),
  3557. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3558. MSM_BACKEND_DAI_PRI_I2S_RX,
  3559. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3560. msm_routing_put_audio_mixer),
  3561. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3562. MSM_BACKEND_DAI_PRI_I2S_RX,
  3563. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3564. msm_routing_put_audio_mixer),
  3565. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3566. MSM_BACKEND_DAI_PRI_I2S_RX,
  3567. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3568. msm_routing_put_audio_mixer),
  3569. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3570. MSM_BACKEND_DAI_PRI_I2S_RX,
  3571. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3572. msm_routing_put_audio_mixer),
  3573. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3574. MSM_BACKEND_DAI_PRI_I2S_RX,
  3575. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3576. msm_routing_put_audio_mixer),
  3577. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3578. MSM_BACKEND_DAI_PRI_I2S_RX,
  3579. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3580. msm_routing_put_audio_mixer),
  3581. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3582. MSM_BACKEND_DAI_PRI_I2S_RX,
  3583. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3584. msm_routing_put_audio_mixer),
  3585. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3586. MSM_BACKEND_DAI_PRI_I2S_RX,
  3587. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3588. msm_routing_put_audio_mixer),
  3589. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3590. MSM_BACKEND_DAI_PRI_I2S_RX,
  3591. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3592. msm_routing_put_audio_mixer),
  3593. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3594. MSM_BACKEND_DAI_PRI_I2S_RX,
  3595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3596. msm_routing_put_audio_mixer),
  3597. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3598. MSM_BACKEND_DAI_PRI_I2S_RX,
  3599. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3600. msm_routing_put_audio_mixer),
  3601. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3602. MSM_BACKEND_DAI_PRI_I2S_RX,
  3603. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3604. msm_routing_put_audio_mixer),
  3605. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3606. MSM_BACKEND_DAI_PRI_I2S_RX,
  3607. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3608. msm_routing_put_audio_mixer),
  3609. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3610. MSM_BACKEND_DAI_PRI_I2S_RX,
  3611. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3612. msm_routing_put_audio_mixer),
  3613. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3614. MSM_BACKEND_DAI_PRI_I2S_RX,
  3615. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3616. msm_routing_put_audio_mixer),
  3617. };
  3618. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3619. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3620. MSM_BACKEND_DAI_SEC_I2S_RX,
  3621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3622. msm_routing_put_audio_mixer),
  3623. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3624. MSM_BACKEND_DAI_SEC_I2S_RX,
  3625. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3626. msm_routing_put_audio_mixer),
  3627. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3628. MSM_BACKEND_DAI_SEC_I2S_RX,
  3629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3630. msm_routing_put_audio_mixer),
  3631. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3632. MSM_BACKEND_DAI_SEC_I2S_RX,
  3633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3634. msm_routing_put_audio_mixer),
  3635. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3636. MSM_BACKEND_DAI_SEC_I2S_RX,
  3637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3638. msm_routing_put_audio_mixer),
  3639. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3640. MSM_BACKEND_DAI_SEC_I2S_RX,
  3641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3642. msm_routing_put_audio_mixer),
  3643. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3644. MSM_BACKEND_DAI_SEC_I2S_RX,
  3645. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3646. msm_routing_put_audio_mixer),
  3647. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3648. MSM_BACKEND_DAI_SEC_I2S_RX,
  3649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3650. msm_routing_put_audio_mixer),
  3651. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3652. MSM_BACKEND_DAI_SEC_I2S_RX,
  3653. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3654. msm_routing_put_audio_mixer),
  3655. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3656. MSM_BACKEND_DAI_SEC_I2S_RX,
  3657. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3658. msm_routing_put_audio_mixer),
  3659. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3660. MSM_BACKEND_DAI_SEC_I2S_RX,
  3661. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3662. msm_routing_put_audio_mixer),
  3663. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3664. MSM_BACKEND_DAI_SEC_I2S_RX,
  3665. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3666. msm_routing_put_audio_mixer),
  3667. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3668. MSM_BACKEND_DAI_SEC_I2S_RX,
  3669. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3670. msm_routing_put_audio_mixer),
  3671. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3672. MSM_BACKEND_DAI_SEC_I2S_RX,
  3673. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3674. msm_routing_put_audio_mixer),
  3675. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3676. MSM_BACKEND_DAI_SEC_I2S_RX,
  3677. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3678. msm_routing_put_audio_mixer),
  3679. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3680. MSM_BACKEND_DAI_SEC_I2S_RX,
  3681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3682. msm_routing_put_audio_mixer),
  3683. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3684. MSM_BACKEND_DAI_SEC_I2S_RX,
  3685. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3686. msm_routing_put_audio_mixer),
  3687. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3688. MSM_BACKEND_DAI_SEC_I2S_RX,
  3689. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3690. msm_routing_put_audio_mixer),
  3691. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3692. MSM_BACKEND_DAI_SEC_I2S_RX,
  3693. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3694. msm_routing_put_audio_mixer),
  3695. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3696. MSM_BACKEND_DAI_SEC_I2S_RX,
  3697. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3698. msm_routing_put_audio_mixer),
  3699. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3700. MSM_BACKEND_DAI_SEC_I2S_RX,
  3701. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3702. msm_routing_put_audio_mixer),
  3703. };
  3704. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3705. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3706. MSM_BACKEND_DAI_SPDIF_RX,
  3707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3708. msm_routing_put_audio_mixer),
  3709. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3710. MSM_BACKEND_DAI_SPDIF_RX,
  3711. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3712. msm_routing_put_audio_mixer),
  3713. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3714. MSM_BACKEND_DAI_SPDIF_RX,
  3715. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3716. msm_routing_put_audio_mixer),
  3717. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3718. MSM_BACKEND_DAI_SPDIF_RX,
  3719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3720. msm_routing_put_audio_mixer),
  3721. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3722. MSM_BACKEND_DAI_SPDIF_RX,
  3723. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3724. msm_routing_put_audio_mixer),
  3725. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3726. MSM_BACKEND_DAI_SPDIF_RX,
  3727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3728. msm_routing_put_audio_mixer),
  3729. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3730. MSM_BACKEND_DAI_SPDIF_RX,
  3731. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3732. msm_routing_put_audio_mixer),
  3733. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3734. MSM_BACKEND_DAI_SPDIF_RX,
  3735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3736. msm_routing_put_audio_mixer),
  3737. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3738. MSM_BACKEND_DAI_SPDIF_RX,
  3739. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3740. msm_routing_put_audio_mixer),
  3741. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3742. MSM_BACKEND_DAI_SPDIF_RX,
  3743. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3744. msm_routing_put_audio_mixer),
  3745. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3746. MSM_BACKEND_DAI_SPDIF_RX,
  3747. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3748. msm_routing_put_audio_mixer),
  3749. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3750. MSM_BACKEND_DAI_SPDIF_RX,
  3751. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3752. msm_routing_put_audio_mixer),
  3753. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3754. MSM_BACKEND_DAI_SPDIF_RX,
  3755. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3756. msm_routing_put_audio_mixer),
  3757. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3758. MSM_BACKEND_DAI_SPDIF_RX,
  3759. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3760. msm_routing_put_audio_mixer),
  3761. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3762. MSM_BACKEND_DAI_SPDIF_RX,
  3763. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3764. msm_routing_put_audio_mixer),
  3765. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3766. MSM_BACKEND_DAI_SPDIF_RX,
  3767. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3768. msm_routing_put_audio_mixer),
  3769. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3770. MSM_BACKEND_DAI_SPDIF_RX,
  3771. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3772. msm_routing_put_audio_mixer),
  3773. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3774. MSM_BACKEND_DAI_SPDIF_RX,
  3775. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3776. msm_routing_put_audio_mixer),
  3777. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3778. MSM_BACKEND_DAI_SPDIF_RX,
  3779. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3780. msm_routing_put_audio_mixer),
  3781. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3782. MSM_BACKEND_DAI_SPDIF_RX,
  3783. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3784. msm_routing_put_audio_mixer),
  3785. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3786. MSM_BACKEND_DAI_SPDIF_RX,
  3787. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3788. msm_routing_put_audio_mixer),
  3789. };
  3790. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3791. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3792. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3793. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3794. msm_routing_put_audio_mixer),
  3795. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3796. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3800. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3801. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3802. msm_routing_put_audio_mixer),
  3803. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3804. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3805. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3806. msm_routing_put_audio_mixer),
  3807. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3808. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3812. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3813. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3814. msm_routing_put_audio_mixer),
  3815. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3816. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3817. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3818. msm_routing_put_audio_mixer),
  3819. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3820. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3822. msm_routing_put_audio_mixer),
  3823. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3824. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3825. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3826. msm_routing_put_audio_mixer),
  3827. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3828. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3829. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3830. msm_routing_put_audio_mixer),
  3831. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3832. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3833. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3834. msm_routing_put_audio_mixer),
  3835. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3836. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3837. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3838. msm_routing_put_audio_mixer),
  3839. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3840. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3841. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3842. msm_routing_put_audio_mixer),
  3843. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3844. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3845. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3846. msm_routing_put_audio_mixer),
  3847. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3848. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3849. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3850. msm_routing_put_audio_mixer),
  3851. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3852. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3853. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3854. msm_routing_put_audio_mixer),
  3855. };
  3856. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3857. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3858. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3862. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3864. msm_routing_put_audio_mixer),
  3865. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3866. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3868. msm_routing_put_audio_mixer),
  3869. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3870. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3874. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3876. msm_routing_put_audio_mixer),
  3877. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3878. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3880. msm_routing_put_audio_mixer),
  3881. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3882. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3883. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3884. msm_routing_put_audio_mixer),
  3885. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3886. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3887. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3888. msm_routing_put_audio_mixer),
  3889. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3890. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3892. msm_routing_put_audio_mixer),
  3893. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3894. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3895. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3896. msm_routing_put_audio_mixer),
  3897. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3898. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3899. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3900. msm_routing_put_audio_mixer),
  3901. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3902. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3903. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3904. msm_routing_put_audio_mixer),
  3905. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3906. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3907. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3908. msm_routing_put_audio_mixer),
  3909. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3910. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3911. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3912. msm_routing_put_audio_mixer),
  3913. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3914. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3915. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3916. msm_routing_put_audio_mixer),
  3917. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3918. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3920. msm_routing_put_audio_mixer),
  3921. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3922. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3923. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3924. msm_routing_put_audio_mixer),
  3925. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3926. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3927. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3928. msm_routing_put_audio_mixer),
  3929. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3930. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3931. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3932. msm_routing_put_audio_mixer),
  3933. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3934. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3935. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3936. msm_routing_put_audio_mixer),
  3937. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3938. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3939. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3940. msm_routing_put_audio_mixer),
  3941. };
  3942. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  3943. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3944. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3948. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3949. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3950. msm_routing_put_audio_mixer),
  3951. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3952. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3953. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3954. msm_routing_put_audio_mixer),
  3955. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3956. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3957. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3958. msm_routing_put_audio_mixer),
  3959. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3960. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3961. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3962. msm_routing_put_audio_mixer),
  3963. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3964. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3966. msm_routing_put_audio_mixer),
  3967. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3968. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3969. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3970. msm_routing_put_audio_mixer),
  3971. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3972. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3974. msm_routing_put_audio_mixer),
  3975. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3976. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3977. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3978. msm_routing_put_audio_mixer),
  3979. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3980. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3981. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3982. msm_routing_put_audio_mixer),
  3983. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3984. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3985. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3986. msm_routing_put_audio_mixer),
  3987. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3988. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3989. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3990. msm_routing_put_audio_mixer),
  3991. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3992. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3993. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3994. msm_routing_put_audio_mixer),
  3995. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3996. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3997. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3998. msm_routing_put_audio_mixer),
  3999. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4000. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4001. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4002. msm_routing_put_audio_mixer),
  4003. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4004. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4005. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4006. msm_routing_put_audio_mixer),
  4007. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4008. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4009. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4010. msm_routing_put_audio_mixer),
  4011. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4012. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4013. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4014. msm_routing_put_audio_mixer),
  4015. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4016. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4017. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4018. msm_routing_put_audio_mixer),
  4019. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4020. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4021. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4022. msm_routing_put_audio_mixer),
  4023. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4024. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4025. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4026. msm_routing_put_audio_mixer),
  4027. };
  4028. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4029. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4030. MSM_BACKEND_DAI_MI2S_RX,
  4031. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4032. msm_routing_put_audio_mixer),
  4033. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4034. MSM_BACKEND_DAI_MI2S_RX,
  4035. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4036. msm_routing_put_audio_mixer),
  4037. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4038. MSM_BACKEND_DAI_MI2S_RX,
  4039. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4040. msm_routing_put_audio_mixer),
  4041. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4042. MSM_BACKEND_DAI_MI2S_RX,
  4043. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4044. msm_routing_put_audio_mixer),
  4045. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4046. MSM_BACKEND_DAI_MI2S_RX,
  4047. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4048. msm_routing_put_audio_mixer),
  4049. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4050. MSM_BACKEND_DAI_MI2S_RX,
  4051. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4052. msm_routing_put_audio_mixer),
  4053. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4054. MSM_BACKEND_DAI_MI2S_RX,
  4055. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4056. msm_routing_put_audio_mixer),
  4057. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4058. MSM_BACKEND_DAI_MI2S_RX,
  4059. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4060. msm_routing_put_audio_mixer),
  4061. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4062. MSM_BACKEND_DAI_MI2S_RX,
  4063. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4064. msm_routing_put_audio_mixer),
  4065. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4066. MSM_BACKEND_DAI_MI2S_RX,
  4067. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4068. msm_routing_put_audio_mixer),
  4069. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4070. MSM_BACKEND_DAI_MI2S_RX,
  4071. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4072. msm_routing_put_audio_mixer),
  4073. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4074. MSM_BACKEND_DAI_MI2S_RX,
  4075. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4076. msm_routing_put_audio_mixer),
  4077. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4078. MSM_BACKEND_DAI_MI2S_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4082. MSM_BACKEND_DAI_MI2S_RX,
  4083. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4084. msm_routing_put_audio_mixer),
  4085. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4086. MSM_BACKEND_DAI_MI2S_RX,
  4087. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4088. msm_routing_put_audio_mixer),
  4089. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4090. MSM_BACKEND_DAI_MI2S_RX,
  4091. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4092. msm_routing_put_audio_mixer),
  4093. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4094. MSM_BACKEND_DAI_MI2S_RX,
  4095. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4096. msm_routing_put_audio_mixer),
  4097. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4098. MSM_BACKEND_DAI_MI2S_RX,
  4099. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4100. msm_routing_put_audio_mixer),
  4101. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4102. MSM_BACKEND_DAI_MI2S_RX,
  4103. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4104. msm_routing_put_audio_mixer),
  4105. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4106. MSM_BACKEND_DAI_MI2S_RX,
  4107. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4108. msm_routing_put_audio_mixer),
  4109. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4110. MSM_BACKEND_DAI_MI2S_RX,
  4111. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4112. msm_routing_put_audio_mixer),
  4113. };
  4114. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4115. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4116. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4118. msm_routing_put_audio_mixer),
  4119. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4120. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4124. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4126. msm_routing_put_audio_mixer),
  4127. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4128. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4129. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4130. msm_routing_put_audio_mixer),
  4131. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4132. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4133. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4134. msm_routing_put_audio_mixer),
  4135. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4136. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4138. msm_routing_put_audio_mixer),
  4139. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4140. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4141. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4142. msm_routing_put_audio_mixer),
  4143. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4144. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4145. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4146. msm_routing_put_audio_mixer),
  4147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4148. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4150. msm_routing_put_audio_mixer),
  4151. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4152. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4154. msm_routing_put_audio_mixer),
  4155. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4156. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4157. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4158. msm_routing_put_audio_mixer),
  4159. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4160. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4161. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4162. msm_routing_put_audio_mixer),
  4163. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4164. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4165. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4166. msm_routing_put_audio_mixer),
  4167. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4168. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4169. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4170. msm_routing_put_audio_mixer),
  4171. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4172. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4173. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4174. msm_routing_put_audio_mixer),
  4175. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4176. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4178. msm_routing_put_audio_mixer),
  4179. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4180. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4181. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4182. msm_routing_put_audio_mixer),
  4183. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4184. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4185. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4186. msm_routing_put_audio_mixer),
  4187. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4188. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4189. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4190. msm_routing_put_audio_mixer),
  4191. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4192. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4193. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4194. msm_routing_put_audio_mixer),
  4195. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4196. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4197. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4198. msm_routing_put_audio_mixer),
  4199. };
  4200. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4201. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4202. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4206. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4207. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4208. msm_routing_put_audio_mixer),
  4209. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4210. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4211. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4212. msm_routing_put_audio_mixer),
  4213. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4214. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4215. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4216. msm_routing_put_audio_mixer),
  4217. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4218. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4219. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4220. msm_routing_put_audio_mixer),
  4221. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4222. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4223. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4224. msm_routing_put_audio_mixer),
  4225. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4226. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4227. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4228. msm_routing_put_audio_mixer),
  4229. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4230. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4231. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4232. msm_routing_put_audio_mixer),
  4233. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4234. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4235. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4236. msm_routing_put_audio_mixer),
  4237. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4238. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4239. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4240. msm_routing_put_audio_mixer),
  4241. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4242. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4243. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4244. msm_routing_put_audio_mixer),
  4245. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4246. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4247. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4248. msm_routing_put_audio_mixer),
  4249. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4250. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4251. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4252. msm_routing_put_audio_mixer),
  4253. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4254. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4255. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4256. msm_routing_put_audio_mixer),
  4257. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4258. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4259. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4260. msm_routing_put_audio_mixer),
  4261. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4262. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4263. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4264. msm_routing_put_audio_mixer),
  4265. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4266. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4267. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4268. msm_routing_put_audio_mixer),
  4269. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4270. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4271. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4272. msm_routing_put_audio_mixer),
  4273. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4274. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4275. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4276. msm_routing_put_audio_mixer),
  4277. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4278. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4279. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4280. msm_routing_put_audio_mixer),
  4281. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4282. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4283. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4284. msm_routing_put_audio_mixer),
  4285. };
  4286. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4287. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4288. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4289. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4290. msm_routing_put_audio_mixer),
  4291. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4292. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4293. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4294. msm_routing_put_audio_mixer),
  4295. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4296. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4297. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4298. msm_routing_put_audio_mixer),
  4299. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4300. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4301. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4302. msm_routing_put_audio_mixer),
  4303. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4304. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4305. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4306. msm_routing_put_audio_mixer),
  4307. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4308. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4309. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4310. msm_routing_put_audio_mixer),
  4311. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4312. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4313. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4314. msm_routing_put_audio_mixer),
  4315. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4316. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4318. msm_routing_put_audio_mixer),
  4319. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4320. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4321. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4322. msm_routing_put_audio_mixer),
  4323. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4324. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4325. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4326. msm_routing_put_audio_mixer),
  4327. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4328. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4329. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4330. msm_routing_put_audio_mixer),
  4331. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4332. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4333. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4334. msm_routing_put_audio_mixer),
  4335. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4336. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4337. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4338. msm_routing_put_audio_mixer),
  4339. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4340. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4342. msm_routing_put_audio_mixer),
  4343. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4344. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4345. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4346. msm_routing_put_audio_mixer),
  4347. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4348. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4349. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4350. msm_routing_put_audio_mixer),
  4351. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4352. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4353. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4354. msm_routing_put_audio_mixer),
  4355. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4356. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4357. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4358. msm_routing_put_audio_mixer),
  4359. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4360. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4361. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4362. msm_routing_put_audio_mixer),
  4363. };
  4364. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4365. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4366. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. };
  4370. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4371. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4372. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4373. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4374. msm_routing_put_audio_mixer),
  4375. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4376. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4377. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4378. msm_routing_put_audio_mixer),
  4379. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4380. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4381. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4382. msm_routing_put_audio_mixer),
  4383. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4384. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4385. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4386. msm_routing_put_audio_mixer),
  4387. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4388. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4389. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4390. msm_routing_put_audio_mixer),
  4391. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4392. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4393. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4394. msm_routing_put_audio_mixer),
  4395. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4396. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4397. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4398. msm_routing_put_audio_mixer),
  4399. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4400. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4401. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4402. msm_routing_put_audio_mixer),
  4403. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4404. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4405. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4406. msm_routing_put_audio_mixer),
  4407. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4408. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4409. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4410. msm_routing_put_audio_mixer),
  4411. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4412. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4413. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4414. msm_routing_put_audio_mixer),
  4415. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4416. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4417. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4418. msm_routing_put_audio_mixer),
  4419. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4420. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4421. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4422. msm_routing_put_audio_mixer),
  4423. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4424. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4425. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4426. msm_routing_put_audio_mixer),
  4427. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4428. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4429. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4430. msm_routing_put_audio_mixer),
  4431. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4432. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4433. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4434. msm_routing_put_audio_mixer),
  4435. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4436. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4440. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4441. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4442. msm_routing_put_audio_mixer),
  4443. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4444. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4445. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4446. msm_routing_put_audio_mixer),
  4447. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4448. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4452. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4453. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4454. msm_routing_put_audio_mixer),
  4455. };
  4456. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4457. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4458. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4459. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4460. msm_routing_put_audio_mixer),
  4461. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4462. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4463. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4464. msm_routing_put_audio_mixer),
  4465. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4466. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4467. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4468. msm_routing_put_audio_mixer),
  4469. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4470. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4471. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4472. msm_routing_put_audio_mixer),
  4473. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4474. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4475. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4476. msm_routing_put_audio_mixer),
  4477. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4478. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4479. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4480. msm_routing_put_audio_mixer),
  4481. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4482. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4483. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4484. msm_routing_put_audio_mixer),
  4485. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4486. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4487. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4488. msm_routing_put_audio_mixer),
  4489. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4490. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4491. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4492. msm_routing_put_audio_mixer),
  4493. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4494. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4495. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4496. msm_routing_put_audio_mixer),
  4497. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4498. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4499. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4500. msm_routing_put_audio_mixer),
  4501. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4502. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4503. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4504. msm_routing_put_audio_mixer),
  4505. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4506. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4507. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4508. msm_routing_put_audio_mixer),
  4509. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4510. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4511. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4512. msm_routing_put_audio_mixer),
  4513. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4514. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4515. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4516. msm_routing_put_audio_mixer),
  4517. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4518. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4519. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4520. msm_routing_put_audio_mixer),
  4521. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4522. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4523. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4524. msm_routing_put_audio_mixer),
  4525. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4526. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4527. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4528. msm_routing_put_audio_mixer),
  4529. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4530. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4531. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4532. msm_routing_put_audio_mixer),
  4533. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4534. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4535. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4536. msm_routing_put_audio_mixer),
  4537. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4538. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4539. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4540. msm_routing_put_audio_mixer),
  4541. };
  4542. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4543. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4544. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4545. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4546. msm_routing_put_audio_mixer),
  4547. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4548. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4549. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4550. msm_routing_put_audio_mixer),
  4551. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4552. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4553. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4554. msm_routing_put_audio_mixer),
  4555. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4556. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4557. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4558. msm_routing_put_audio_mixer),
  4559. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4560. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4562. msm_routing_put_audio_mixer),
  4563. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4564. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4565. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4566. msm_routing_put_audio_mixer),
  4567. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4568. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4569. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4570. msm_routing_put_audio_mixer),
  4571. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4572. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4573. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4574. msm_routing_put_audio_mixer),
  4575. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4576. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4577. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4578. msm_routing_put_audio_mixer),
  4579. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4580. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4581. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4582. msm_routing_put_audio_mixer),
  4583. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4584. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4585. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4586. msm_routing_put_audio_mixer),
  4587. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4588. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4589. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4590. msm_routing_put_audio_mixer),
  4591. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4592. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4593. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4594. msm_routing_put_audio_mixer),
  4595. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4596. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4597. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4598. msm_routing_put_audio_mixer),
  4599. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4600. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4601. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4602. msm_routing_put_audio_mixer),
  4603. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4604. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4605. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4606. msm_routing_put_audio_mixer),
  4607. };
  4608. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4609. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4610. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4611. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4612. msm_routing_put_audio_mixer),
  4613. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4614. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4615. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4616. msm_routing_put_audio_mixer),
  4617. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4618. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4619. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4620. msm_routing_put_audio_mixer),
  4621. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4622. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4623. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4624. msm_routing_put_audio_mixer),
  4625. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4626. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4627. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4628. msm_routing_put_audio_mixer),
  4629. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4630. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4631. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4632. msm_routing_put_audio_mixer),
  4633. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4634. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4635. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4636. msm_routing_put_audio_mixer),
  4637. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4638. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4639. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4640. msm_routing_put_audio_mixer),
  4641. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4642. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4643. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4644. msm_routing_put_audio_mixer),
  4645. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4646. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4647. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4648. msm_routing_put_audio_mixer),
  4649. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4650. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4651. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4652. msm_routing_put_audio_mixer),
  4653. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4654. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4655. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4656. msm_routing_put_audio_mixer),
  4657. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4658. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4659. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4660. msm_routing_put_audio_mixer),
  4661. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4662. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4663. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4664. msm_routing_put_audio_mixer),
  4665. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4666. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4667. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4668. msm_routing_put_audio_mixer),
  4669. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4670. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4671. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4672. msm_routing_put_audio_mixer),
  4673. };
  4674. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4675. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4676. MSM_BACKEND_DAI_HDMI_RX,
  4677. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4678. msm_routing_put_audio_mixer),
  4679. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4680. MSM_BACKEND_DAI_HDMI_RX,
  4681. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4682. msm_routing_put_audio_mixer),
  4683. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4684. MSM_BACKEND_DAI_HDMI_RX,
  4685. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4686. msm_routing_put_audio_mixer),
  4687. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4688. MSM_BACKEND_DAI_HDMI_RX,
  4689. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4690. msm_routing_put_audio_mixer),
  4691. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4692. MSM_BACKEND_DAI_HDMI_RX,
  4693. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4694. msm_routing_put_audio_mixer),
  4695. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4696. MSM_BACKEND_DAI_HDMI_RX,
  4697. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4698. msm_routing_put_audio_mixer),
  4699. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4700. MSM_BACKEND_DAI_HDMI_RX,
  4701. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4702. msm_routing_put_audio_mixer),
  4703. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4704. MSM_BACKEND_DAI_HDMI_RX,
  4705. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4706. msm_routing_put_audio_mixer),
  4707. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4708. MSM_BACKEND_DAI_HDMI_RX,
  4709. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4710. msm_routing_put_audio_mixer),
  4711. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4712. MSM_BACKEND_DAI_HDMI_RX,
  4713. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4714. msm_routing_put_audio_mixer),
  4715. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4716. MSM_BACKEND_DAI_HDMI_RX,
  4717. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4718. msm_routing_put_audio_mixer),
  4719. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4720. MSM_BACKEND_DAI_HDMI_RX,
  4721. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4722. msm_routing_put_audio_mixer),
  4723. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4724. MSM_BACKEND_DAI_HDMI_RX,
  4725. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4726. msm_routing_put_audio_mixer),
  4727. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4728. MSM_BACKEND_DAI_HDMI_RX,
  4729. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4730. msm_routing_put_audio_mixer),
  4731. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4732. MSM_BACKEND_DAI_HDMI_RX,
  4733. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4734. msm_routing_put_audio_mixer),
  4735. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4736. MSM_BACKEND_DAI_HDMI_RX,
  4737. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4738. msm_routing_put_audio_mixer),
  4739. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4740. MSM_BACKEND_DAI_HDMI_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4744. MSM_BACKEND_DAI_HDMI_RX,
  4745. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4746. msm_routing_put_audio_mixer),
  4747. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4748. MSM_BACKEND_DAI_HDMI_RX,
  4749. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4750. msm_routing_put_audio_mixer),
  4751. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4752. MSM_BACKEND_DAI_HDMI_RX,
  4753. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4754. msm_routing_put_audio_mixer),
  4755. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4756. MSM_BACKEND_DAI_HDMI_RX,
  4757. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4758. msm_routing_put_audio_mixer),
  4759. };
  4760. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4761. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4762. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4763. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4764. msm_routing_put_audio_mixer),
  4765. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4766. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4767. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4768. msm_routing_put_audio_mixer),
  4769. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4770. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4771. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4772. msm_routing_put_audio_mixer),
  4773. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4774. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4775. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4776. msm_routing_put_audio_mixer),
  4777. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4778. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4779. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4780. msm_routing_put_audio_mixer),
  4781. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4782. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4783. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4784. msm_routing_put_audio_mixer),
  4785. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4786. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4787. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4788. msm_routing_put_audio_mixer),
  4789. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4790. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4791. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4792. msm_routing_put_audio_mixer),
  4793. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4794. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4795. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4796. msm_routing_put_audio_mixer),
  4797. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4798. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4799. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4800. msm_routing_put_audio_mixer),
  4801. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4802. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4803. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4804. msm_routing_put_audio_mixer),
  4805. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4806. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4807. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4808. msm_routing_put_audio_mixer),
  4809. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4810. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4811. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4812. msm_routing_put_audio_mixer),
  4813. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4814. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4815. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4816. msm_routing_put_audio_mixer),
  4817. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4818. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4819. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4820. msm_routing_put_audio_mixer),
  4821. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4822. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4823. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4824. msm_routing_put_audio_mixer),
  4825. };
  4826. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  4827. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4828. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4829. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4830. msm_routing_put_audio_mixer),
  4831. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4832. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4833. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4834. msm_routing_put_audio_mixer),
  4835. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4836. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4837. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4838. msm_routing_put_audio_mixer),
  4839. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4840. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4841. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4842. msm_routing_put_audio_mixer),
  4843. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4844. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4845. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4846. msm_routing_put_audio_mixer),
  4847. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4848. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4849. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4850. msm_routing_put_audio_mixer),
  4851. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4852. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4853. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4854. msm_routing_put_audio_mixer),
  4855. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4856. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4858. msm_routing_put_audio_mixer),
  4859. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4860. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4861. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4862. msm_routing_put_audio_mixer),
  4863. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4864. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4865. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4866. msm_routing_put_audio_mixer),
  4867. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4868. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4869. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4870. msm_routing_put_audio_mixer),
  4871. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4872. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4873. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4874. msm_routing_put_audio_mixer),
  4875. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4876. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4877. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4878. msm_routing_put_audio_mixer),
  4879. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4880. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4881. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4882. msm_routing_put_audio_mixer),
  4883. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4884. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4885. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4886. msm_routing_put_audio_mixer),
  4887. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4888. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4889. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4890. msm_routing_put_audio_mixer),
  4891. };
  4892. /* incall music delivery mixer */
  4893. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4894. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4895. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4896. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4897. msm_routing_put_audio_mixer),
  4898. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4899. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4900. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4901. msm_routing_put_audio_mixer),
  4902. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4903. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4904. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4905. msm_routing_put_audio_mixer),
  4906. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4907. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4908. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4909. msm_routing_put_audio_mixer),
  4910. };
  4911. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4912. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4913. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4915. msm_routing_put_audio_mixer),
  4916. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4917. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4918. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4919. msm_routing_put_audio_mixer),
  4920. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4921. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4922. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4923. msm_routing_put_audio_mixer),
  4924. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4925. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4926. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4927. msm_routing_put_audio_mixer),
  4928. };
  4929. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  4930. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4931. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4935. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4939. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4943. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. };
  4947. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  4948. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4949. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4951. msm_routing_put_audio_mixer),
  4952. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4953. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4954. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4955. msm_routing_put_audio_mixer),
  4956. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4957. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4958. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4959. msm_routing_put_audio_mixer),
  4960. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4961. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4962. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4963. msm_routing_put_audio_mixer),
  4964. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4965. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4966. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4967. msm_routing_put_audio_mixer),
  4968. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4969. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4971. msm_routing_put_audio_mixer),
  4972. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4973. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4974. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4975. msm_routing_put_audio_mixer),
  4976. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4977. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4978. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4979. msm_routing_put_audio_mixer),
  4980. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4981. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4982. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4983. msm_routing_put_audio_mixer),
  4984. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4985. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4986. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4987. msm_routing_put_audio_mixer),
  4988. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4989. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4990. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4991. msm_routing_put_audio_mixer),
  4992. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4993. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4994. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4995. msm_routing_put_audio_mixer),
  4996. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4997. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4998. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4999. msm_routing_put_audio_mixer),
  5000. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5001. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5002. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5003. msm_routing_put_audio_mixer),
  5004. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5005. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5006. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5007. msm_routing_put_audio_mixer),
  5008. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5009. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5010. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5011. msm_routing_put_audio_mixer),
  5012. };
  5013. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5014. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5015. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5017. msm_routing_put_audio_mixer),
  5018. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5019. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5020. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5021. msm_routing_put_audio_mixer),
  5022. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5023. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5024. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5025. msm_routing_put_audio_mixer),
  5026. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5027. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5028. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5029. msm_routing_put_audio_mixer),
  5030. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5031. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5032. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5033. msm_routing_put_audio_mixer),
  5034. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5035. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5036. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5037. msm_routing_put_audio_mixer),
  5038. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5039. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5040. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5041. msm_routing_put_audio_mixer),
  5042. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5043. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5045. msm_routing_put_audio_mixer),
  5046. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5047. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5048. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5049. msm_routing_put_audio_mixer),
  5050. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5051. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5052. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5053. msm_routing_put_audio_mixer),
  5054. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5055. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5056. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5057. msm_routing_put_audio_mixer),
  5058. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5059. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5060. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5061. msm_routing_put_audio_mixer),
  5062. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5063. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5064. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5065. msm_routing_put_audio_mixer),
  5066. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5067. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5068. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5069. msm_routing_put_audio_mixer),
  5070. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5071. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5072. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5073. msm_routing_put_audio_mixer),
  5074. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5075. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. };
  5079. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5080. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5081. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5082. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5083. msm_routing_put_audio_mixer),
  5084. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5085. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5086. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5087. msm_routing_put_audio_mixer),
  5088. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5089. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5090. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5091. msm_routing_put_audio_mixer),
  5092. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5093. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5094. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5095. msm_routing_put_audio_mixer),
  5096. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5097. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5098. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5099. msm_routing_put_audio_mixer),
  5100. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5101. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5102. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5103. msm_routing_put_audio_mixer),
  5104. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5105. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5106. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5107. msm_routing_put_audio_mixer),
  5108. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5109. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5110. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5111. msm_routing_put_audio_mixer),
  5112. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5113. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5114. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5115. msm_routing_put_audio_mixer),
  5116. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5117. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5118. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5119. msm_routing_put_audio_mixer),
  5120. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5121. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5122. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5123. msm_routing_put_audio_mixer),
  5124. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5125. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5126. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5127. msm_routing_put_audio_mixer),
  5128. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5129. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5130. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5131. msm_routing_put_audio_mixer),
  5132. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5133. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5134. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5135. msm_routing_put_audio_mixer),
  5136. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5137. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5138. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5139. msm_routing_put_audio_mixer),
  5140. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5141. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5142. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5143. msm_routing_put_audio_mixer),
  5144. };
  5145. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  5146. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5147. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5148. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5149. msm_routing_put_audio_mixer),
  5150. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5151. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5152. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5153. msm_routing_put_audio_mixer),
  5154. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5155. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5156. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5157. msm_routing_put_audio_mixer),
  5158. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5159. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5160. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5161. msm_routing_put_audio_mixer),
  5162. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5163. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5164. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5165. msm_routing_put_audio_mixer),
  5166. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5167. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5168. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5169. msm_routing_put_audio_mixer),
  5170. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5171. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5172. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5173. msm_routing_put_audio_mixer),
  5174. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5175. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5176. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5177. msm_routing_put_audio_mixer),
  5178. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5179. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5180. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5181. msm_routing_put_audio_mixer),
  5182. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5183. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5184. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5185. msm_routing_put_audio_mixer),
  5186. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5187. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5188. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5189. msm_routing_put_audio_mixer),
  5190. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5191. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5192. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5193. msm_routing_put_audio_mixer),
  5194. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5195. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5196. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5197. msm_routing_put_audio_mixer),
  5198. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5199. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5200. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5201. msm_routing_put_audio_mixer),
  5202. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5203. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5204. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5205. msm_routing_put_audio_mixer),
  5206. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5207. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5208. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5209. msm_routing_put_audio_mixer),
  5210. };
  5211. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5212. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5213. MSM_BACKEND_DAI_USB_RX,
  5214. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5215. msm_routing_put_audio_mixer),
  5216. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5217. MSM_BACKEND_DAI_USB_RX,
  5218. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5219. msm_routing_put_audio_mixer),
  5220. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5221. MSM_BACKEND_DAI_USB_RX,
  5222. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5223. msm_routing_put_audio_mixer),
  5224. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5225. MSM_BACKEND_DAI_USB_RX,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5229. MSM_BACKEND_DAI_USB_RX,
  5230. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5231. msm_routing_put_audio_mixer),
  5232. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5233. MSM_BACKEND_DAI_USB_RX,
  5234. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5235. msm_routing_put_audio_mixer),
  5236. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5237. MSM_BACKEND_DAI_USB_RX,
  5238. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5239. msm_routing_put_audio_mixer),
  5240. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5241. MSM_BACKEND_DAI_USB_RX,
  5242. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5243. msm_routing_put_audio_mixer),
  5244. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5245. MSM_BACKEND_DAI_USB_RX,
  5246. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5247. msm_routing_put_audio_mixer),
  5248. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5249. MSM_BACKEND_DAI_USB_RX,
  5250. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5251. msm_routing_put_audio_mixer),
  5252. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5253. MSM_BACKEND_DAI_USB_RX,
  5254. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5255. msm_routing_put_audio_mixer),
  5256. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5257. MSM_BACKEND_DAI_USB_RX,
  5258. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5259. msm_routing_put_audio_mixer),
  5260. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5261. MSM_BACKEND_DAI_USB_RX,
  5262. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5263. msm_routing_put_audio_mixer),
  5264. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5265. MSM_BACKEND_DAI_USB_RX,
  5266. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5267. msm_routing_put_audio_mixer),
  5268. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5269. MSM_BACKEND_DAI_USB_RX,
  5270. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5271. msm_routing_put_audio_mixer),
  5272. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5273. MSM_BACKEND_DAI_USB_RX,
  5274. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5275. msm_routing_put_audio_mixer),
  5276. };
  5277. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  5278. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5359. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. };
  5363. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  5364. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. };
  5429. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  5430. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_INT_FM_RX,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_INT_FM_RX,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5439. MSM_BACKEND_DAI_INT_FM_RX,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_INT_FM_RX,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_INT_FM_RX,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_INT_FM_RX,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_INT_FM_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_INT_FM_RX,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_INT_FM_RX,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_INT_FM_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_INT_FM_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_INT_FM_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_INT_FM_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_INT_FM_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_INT_FM_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_INT_FM_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_INT_FM_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_INT_FM_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_INT_FM_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_INT_FM_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_INT_FM_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. };
  5515. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  5516. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5517. MSM_BACKEND_DAI_AFE_PCM_RX,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5521. MSM_BACKEND_DAI_AFE_PCM_RX,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5525. MSM_BACKEND_DAI_AFE_PCM_RX,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5529. MSM_BACKEND_DAI_AFE_PCM_RX,
  5530. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5531. msm_routing_put_audio_mixer),
  5532. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5533. MSM_BACKEND_DAI_AFE_PCM_RX,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_AFE_PCM_RX,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_AFE_PCM_RX,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_AFE_PCM_RX,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_AFE_PCM_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_AFE_PCM_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_AFE_PCM_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_AFE_PCM_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_AFE_PCM_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_AFE_PCM_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_AFE_PCM_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_AFE_PCM_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_AFE_PCM_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_AFE_PCM_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_AFE_PCM_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_AFE_PCM_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_AFE_PCM_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. };
  5601. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  5602. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5603. MSM_BACKEND_DAI_AUXPCM_RX,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5607. MSM_BACKEND_DAI_AUXPCM_RX,
  5608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5609. msm_routing_put_audio_mixer),
  5610. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5611. MSM_BACKEND_DAI_AUXPCM_RX,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5615. MSM_BACKEND_DAI_AUXPCM_RX,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5619. MSM_BACKEND_DAI_AUXPCM_RX,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5623. MSM_BACKEND_DAI_AUXPCM_RX,
  5624. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5625. msm_routing_put_audio_mixer),
  5626. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5627. MSM_BACKEND_DAI_AUXPCM_RX,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5631. MSM_BACKEND_DAI_AUXPCM_RX,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5635. MSM_BACKEND_DAI_AUXPCM_RX,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_AUXPCM_RX,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_AUXPCM_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_AUXPCM_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_AUXPCM_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_AUXPCM_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_AUXPCM_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_AUXPCM_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_AUXPCM_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_AUXPCM_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_AUXPCM_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_AUXPCM_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_AUXPCM_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. };
  5687. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  5688. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5689. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5693. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5697. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5698. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5699. msm_routing_put_audio_mixer),
  5700. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5701. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5702. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5703. msm_routing_put_audio_mixer),
  5704. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5705. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5709. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. };
  5773. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  5774. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5775. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5779. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5780. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5781. msm_routing_put_audio_mixer),
  5782. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5783. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5784. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5785. msm_routing_put_audio_mixer),
  5786. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5787. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5791. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. };
  5839. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  5840. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5841. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5842. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5843. msm_routing_put_audio_mixer),
  5844. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5845. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5846. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5847. msm_routing_put_audio_mixer),
  5848. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5849. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5850. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5851. msm_routing_put_audio_mixer),
  5852. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5853. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5854. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5855. msm_routing_put_audio_mixer),
  5856. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5857. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5858. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5859. msm_routing_put_audio_mixer),
  5860. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5869. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5873. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5877. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5881. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5885. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5886. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5887. msm_routing_put_audio_mixer),
  5888. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. };
  5905. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  5906. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5907. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5911. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5915. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5916. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5917. msm_routing_put_audio_mixer),
  5918. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5919. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5923. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5924. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5925. msm_routing_put_audio_mixer),
  5926. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5927. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5935. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5936. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5937. msm_routing_put_audio_mixer),
  5938. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5939. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5940. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5941. msm_routing_put_audio_mixer),
  5942. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5943. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5947. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5948. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5949. msm_routing_put_audio_mixer),
  5950. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5951. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5952. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5953. msm_routing_put_audio_mixer),
  5954. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5955. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5959. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5963. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5964. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5965. msm_routing_put_audio_mixer),
  5966. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. };
  5971. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  5972. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5993. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5997. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6001. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6005. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6009. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6013. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6017. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6021. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6025. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6029. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6033. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6034. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6035. msm_routing_put_audio_mixer),
  6036. };
  6037. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  6038. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6087. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6091. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. };
  6103. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  6104. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. };
  6169. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  6170. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. };
  6235. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  6236. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6237. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6241. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6243. msm_routing_put_audio_mixer),
  6244. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6245. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6257. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6261. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6265. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6266. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6267. msm_routing_put_audio_mixer),
  6268. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6269. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. };
  6301. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  6302. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6303. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6304. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6305. msm_routing_put_audio_mixer),
  6306. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6307. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6308. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6309. msm_routing_put_audio_mixer),
  6310. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6311. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6315. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6316. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6317. msm_routing_put_audio_mixer),
  6318. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6319. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6320. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6321. msm_routing_put_audio_mixer),
  6322. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6323. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6327. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6328. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6329. msm_routing_put_audio_mixer),
  6330. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6331. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6332. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6333. msm_routing_put_audio_mixer),
  6334. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6335. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6336. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6337. msm_routing_put_audio_mixer),
  6338. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6339. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6340. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6341. msm_routing_put_audio_mixer),
  6342. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6343. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6344. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6345. msm_routing_put_audio_mixer),
  6346. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6347. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6348. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6349. msm_routing_put_audio_mixer),
  6350. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6351. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6352. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6353. msm_routing_put_audio_mixer),
  6354. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6355. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6356. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6357. msm_routing_put_audio_mixer),
  6358. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6359. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6363. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6364. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6365. msm_routing_put_audio_mixer),
  6366. };
  6367. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  6368. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6401. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6405. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6417. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6421. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6425. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6426. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6427. msm_routing_put_audio_mixer),
  6428. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6429. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. };
  6433. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  6434. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6439. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6443. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6444. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6445. msm_routing_put_audio_mixer),
  6446. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6447. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6471. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6475. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. };
  6499. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  6500. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6529. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6530. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6531. msm_routing_put_audio_mixer),
  6532. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6533. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6534. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6535. msm_routing_put_audio_mixer),
  6536. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6537. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6541. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6542. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6543. msm_routing_put_audio_mixer),
  6544. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6545. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6546. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6547. msm_routing_put_audio_mixer),
  6548. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6549. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6561. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. };
  6565. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  6566. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6615. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6616. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6617. msm_routing_put_audio_mixer),
  6618. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6619. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. };
  6631. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  6632. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6665. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6669. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6677. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6681. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. };
  6697. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  6698. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6731. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6732. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6733. msm_routing_put_audio_mixer),
  6734. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6735. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6743. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6747. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6748. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6749. msm_routing_put_audio_mixer),
  6750. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6751. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6755. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6756. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6757. msm_routing_put_audio_mixer),
  6758. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6759. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6760. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6761. msm_routing_put_audio_mixer),
  6762. };
  6763. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  6764. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6793. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6794. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6795. msm_routing_put_audio_mixer),
  6796. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6797. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6801. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6805. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6821. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6825. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. };
  6829. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  6830. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6863. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6864. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6865. msm_routing_put_audio_mixer),
  6866. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6867. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6871. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6872. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6873. msm_routing_put_audio_mixer),
  6874. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. };
  6895. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  6896. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6957. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. };
  6961. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  6962. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. };
  7027. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  7028. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7073. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. };
  7097. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  7098. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7099. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7103. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7104. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7105. msm_routing_put_audio_mixer),
  7106. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7107. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7108. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7109. msm_routing_put_audio_mixer),
  7110. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7111. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7112. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7113. msm_routing_put_audio_mixer),
  7114. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7115. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7116. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7117. msm_routing_put_audio_mixer),
  7118. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7119. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7120. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7121. msm_routing_put_audio_mixer),
  7122. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7123. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7124. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7125. msm_routing_put_audio_mixer),
  7126. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7127. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7128. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7129. msm_routing_put_audio_mixer),
  7130. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7131. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7132. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7133. msm_routing_put_audio_mixer),
  7134. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7135. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7136. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7137. msm_routing_put_audio_mixer),
  7138. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7139. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7140. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7141. msm_routing_put_audio_mixer),
  7142. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7143. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7144. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7145. msm_routing_put_audio_mixer),
  7146. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7147. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7148. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7149. msm_routing_put_audio_mixer),
  7150. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7151. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7152. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7153. msm_routing_put_audio_mixer),
  7154. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7155. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7159. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7160. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7161. msm_routing_put_audio_mixer),
  7162. };
  7163. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  7164. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7165. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7166. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7167. msm_routing_put_audio_mixer),
  7168. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7169. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7170. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7171. msm_routing_put_audio_mixer),
  7172. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7173. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7174. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7175. msm_routing_put_audio_mixer),
  7176. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7177. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7178. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7179. msm_routing_put_audio_mixer),
  7180. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7181. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7182. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7183. msm_routing_put_audio_mixer),
  7184. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7185. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7186. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7187. msm_routing_put_audio_mixer),
  7188. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7189. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7190. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7191. msm_routing_put_audio_mixer),
  7192. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7193. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7194. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7195. msm_routing_put_audio_mixer),
  7196. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7197. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7198. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7199. msm_routing_put_audio_mixer),
  7200. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7201. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7202. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7203. msm_routing_put_audio_mixer),
  7204. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7205. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7206. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7207. msm_routing_put_audio_mixer),
  7208. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7209. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7210. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7211. msm_routing_put_audio_mixer),
  7212. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7213. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7214. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7215. msm_routing_put_audio_mixer),
  7216. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7217. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7218. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7219. msm_routing_put_audio_mixer),
  7220. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7221. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7222. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7223. msm_routing_put_audio_mixer),
  7224. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7225. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7226. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7227. msm_routing_put_audio_mixer),
  7228. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7229. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. };
  7233. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  7234. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7235. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7239. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7240. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7241. msm_routing_put_audio_mixer),
  7242. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7243. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7244. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7245. msm_routing_put_audio_mixer),
  7246. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7247. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7251. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7252. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7253. msm_routing_put_audio_mixer),
  7254. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7255. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7256. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7257. msm_routing_put_audio_mixer),
  7258. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7259. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7260. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7261. msm_routing_put_audio_mixer),
  7262. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7263. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7264. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7265. msm_routing_put_audio_mixer),
  7266. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7267. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7268. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7269. msm_routing_put_audio_mixer),
  7270. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7271. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7272. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7273. msm_routing_put_audio_mixer),
  7274. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7275. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7276. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7277. msm_routing_put_audio_mixer),
  7278. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7279. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7280. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7281. msm_routing_put_audio_mixer),
  7282. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7283. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7284. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7285. msm_routing_put_audio_mixer),
  7286. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7287. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7288. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7289. msm_routing_put_audio_mixer),
  7290. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7291. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7292. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7293. msm_routing_put_audio_mixer),
  7294. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7295. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7296. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7297. msm_routing_put_audio_mixer),
  7298. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7299. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7300. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7301. msm_routing_put_audio_mixer),
  7302. };
  7303. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  7304. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7305. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7309. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7313. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7314. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7315. msm_routing_put_audio_mixer),
  7316. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7317. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7318. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7319. msm_routing_put_audio_mixer),
  7320. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7321. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7322. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7323. msm_routing_put_audio_mixer),
  7324. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7325. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7326. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7327. msm_routing_put_audio_mixer),
  7328. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7329. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7330. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7331. msm_routing_put_audio_mixer),
  7332. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7333. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7334. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7335. msm_routing_put_audio_mixer),
  7336. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7337. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7338. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7339. msm_routing_put_audio_mixer),
  7340. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7341. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7342. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7343. msm_routing_put_audio_mixer),
  7344. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7345. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7346. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7347. msm_routing_put_audio_mixer),
  7348. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7349. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7350. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7351. msm_routing_put_audio_mixer),
  7352. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7353. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7354. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7355. msm_routing_put_audio_mixer),
  7356. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7357. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7358. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7359. msm_routing_put_audio_mixer),
  7360. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7361. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7362. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7363. msm_routing_put_audio_mixer),
  7364. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7365. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7366. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7367. msm_routing_put_audio_mixer),
  7368. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7369. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7370. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7371. msm_routing_put_audio_mixer),
  7372. };
  7373. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  7374. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7375. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7376. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7377. msm_routing_put_audio_mixer),
  7378. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7379. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7380. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7381. msm_routing_put_audio_mixer),
  7382. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7383. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7385. msm_routing_put_audio_mixer),
  7386. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7387. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7388. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7389. msm_routing_put_audio_mixer),
  7390. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7391. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7392. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7393. msm_routing_put_audio_mixer),
  7394. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7395. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7396. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7397. msm_routing_put_audio_mixer),
  7398. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7399. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7400. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7401. msm_routing_put_audio_mixer),
  7402. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7403. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7404. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7405. msm_routing_put_audio_mixer),
  7406. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7407. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7408. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7409. msm_routing_put_audio_mixer),
  7410. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7411. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7412. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7413. msm_routing_put_audio_mixer),
  7414. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7415. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7416. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7417. msm_routing_put_audio_mixer),
  7418. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7419. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7420. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7421. msm_routing_put_audio_mixer),
  7422. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7423. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7424. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7425. msm_routing_put_audio_mixer),
  7426. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7427. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7428. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7429. msm_routing_put_audio_mixer),
  7430. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7431. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7432. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7433. msm_routing_put_audio_mixer),
  7434. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7435. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7436. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7437. msm_routing_put_audio_mixer),
  7438. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7439. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7440. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7441. msm_routing_put_audio_mixer),
  7442. };
  7443. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  7444. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7445. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7446. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7447. msm_routing_put_audio_mixer),
  7448. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7449. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7453. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7454. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7455. msm_routing_put_audio_mixer),
  7456. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7457. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7458. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7459. msm_routing_put_audio_mixer),
  7460. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7461. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7462. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7463. msm_routing_put_audio_mixer),
  7464. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7465. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7466. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7467. msm_routing_put_audio_mixer),
  7468. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7469. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7470. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7471. msm_routing_put_audio_mixer),
  7472. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7473. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7474. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7475. msm_routing_put_audio_mixer),
  7476. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7477. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7478. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7479. msm_routing_put_audio_mixer),
  7480. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7481. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7482. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7483. msm_routing_put_audio_mixer),
  7484. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7485. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7486. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7487. msm_routing_put_audio_mixer),
  7488. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7489. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7490. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7491. msm_routing_put_audio_mixer),
  7492. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7493. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7494. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7495. msm_routing_put_audio_mixer),
  7496. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7497. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7498. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7499. msm_routing_put_audio_mixer),
  7500. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7501. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7502. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7503. msm_routing_put_audio_mixer),
  7504. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7505. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7506. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7507. msm_routing_put_audio_mixer),
  7508. };
  7509. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  7510. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7511. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7515. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7519. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7523. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7524. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7525. msm_routing_put_audio_mixer),
  7526. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7527. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7528. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7529. msm_routing_put_audio_mixer),
  7530. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7531. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7532. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7533. msm_routing_put_audio_mixer),
  7534. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7535. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7536. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7537. msm_routing_put_audio_mixer),
  7538. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7539. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7540. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7541. msm_routing_put_audio_mixer),
  7542. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7543. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7544. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7545. msm_routing_put_audio_mixer),
  7546. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7547. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7548. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7549. msm_routing_put_audio_mixer),
  7550. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7551. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7552. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7553. msm_routing_put_audio_mixer),
  7554. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7555. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7556. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7557. msm_routing_put_audio_mixer),
  7558. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7559. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7560. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7561. msm_routing_put_audio_mixer),
  7562. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7563. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7564. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7565. msm_routing_put_audio_mixer),
  7566. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7567. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7568. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7569. msm_routing_put_audio_mixer),
  7570. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7571. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7572. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7573. msm_routing_put_audio_mixer),
  7574. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7575. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7576. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7577. msm_routing_put_audio_mixer),
  7578. };
  7579. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  7580. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7581. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7582. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7583. msm_routing_put_audio_mixer),
  7584. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7585. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7586. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7587. msm_routing_put_audio_mixer),
  7588. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7589. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7590. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7591. msm_routing_put_audio_mixer),
  7592. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7593. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7594. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7595. msm_routing_put_audio_mixer),
  7596. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7597. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7598. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7599. msm_routing_put_audio_mixer),
  7600. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7601. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7602. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7603. msm_routing_put_audio_mixer),
  7604. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7605. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7606. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7607. msm_routing_put_audio_mixer),
  7608. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7609. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7610. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7611. msm_routing_put_audio_mixer),
  7612. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7613. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7614. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7615. msm_routing_put_audio_mixer),
  7616. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7617. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7618. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7619. msm_routing_put_audio_mixer),
  7620. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7621. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7622. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7623. msm_routing_put_audio_mixer),
  7624. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7625. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7626. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7627. msm_routing_put_audio_mixer),
  7628. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7629. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7630. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7631. msm_routing_put_audio_mixer),
  7632. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7633. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7634. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7635. msm_routing_put_audio_mixer),
  7636. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7637. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7638. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7639. msm_routing_put_audio_mixer),
  7640. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7641. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7642. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7643. msm_routing_put_audio_mixer),
  7644. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7645. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7646. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7647. msm_routing_put_audio_mixer),
  7648. };
  7649. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  7650. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7651. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7652. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7653. msm_routing_put_audio_mixer),
  7654. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7655. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7656. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7657. msm_routing_put_audio_mixer),
  7658. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7659. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7660. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7661. msm_routing_put_audio_mixer),
  7662. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7663. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7664. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7665. msm_routing_put_audio_mixer),
  7666. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7667. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7668. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7669. msm_routing_put_audio_mixer),
  7670. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7671. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7672. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7673. msm_routing_put_audio_mixer),
  7674. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7675. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7676. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7677. msm_routing_put_audio_mixer),
  7678. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7679. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7680. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7681. msm_routing_put_audio_mixer),
  7682. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7683. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7684. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7685. msm_routing_put_audio_mixer),
  7686. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7687. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7688. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7689. msm_routing_put_audio_mixer),
  7690. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7691. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7692. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7693. msm_routing_put_audio_mixer),
  7694. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7695. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7696. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7697. msm_routing_put_audio_mixer),
  7698. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7699. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7700. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7701. msm_routing_put_audio_mixer),
  7702. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7703. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7704. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7705. msm_routing_put_audio_mixer),
  7706. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7707. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7708. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7709. msm_routing_put_audio_mixer),
  7710. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7711. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7712. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7713. msm_routing_put_audio_mixer),
  7714. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7715. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7716. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7717. msm_routing_put_audio_mixer),
  7718. };
  7719. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  7720. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  7721. MSM_BACKEND_DAI_PRI_I2S_TX,
  7722. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7723. msm_routing_put_audio_mixer),
  7724. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7725. MSM_BACKEND_DAI_MI2S_TX,
  7726. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7727. msm_routing_put_audio_mixer),
  7728. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7729. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7730. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7731. msm_routing_put_audio_mixer),
  7732. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7733. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7734. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7735. msm_routing_put_audio_mixer),
  7736. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7737. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7738. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7739. msm_routing_put_audio_mixer),
  7740. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7741. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7742. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7743. msm_routing_put_audio_mixer),
  7744. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7745. MSM_BACKEND_DAI_INT3_MI2S_TX,
  7746. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7747. msm_routing_put_audio_mixer),
  7748. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7749. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7750. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7751. msm_routing_put_audio_mixer),
  7752. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7753. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7754. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7755. msm_routing_put_audio_mixer),
  7756. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  7757. MSM_BACKEND_DAI_AUXPCM_TX,
  7758. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7759. msm_routing_put_audio_mixer),
  7760. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  7761. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7762. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7763. msm_routing_put_audio_mixer),
  7764. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7765. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7766. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7767. msm_routing_put_audio_mixer),
  7768. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7769. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7770. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7771. msm_routing_put_audio_mixer),
  7772. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  7773. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  7774. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7775. msm_routing_put_audio_mixer),
  7776. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7777. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7778. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7779. msm_routing_put_audio_mixer),
  7780. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7781. MSM_BACKEND_DAI_INT_FM_TX,
  7782. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7783. msm_routing_put_audio_mixer),
  7784. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  7785. MSM_BACKEND_DAI_AFE_PCM_TX,
  7786. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7787. msm_routing_put_audio_mixer),
  7788. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  7789. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7790. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7791. msm_routing_put_audio_mixer),
  7792. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  7793. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7794. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7795. msm_routing_put_audio_mixer),
  7796. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  7797. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  7798. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7799. msm_routing_put_audio_mixer),
  7800. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  7801. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7802. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7803. msm_routing_put_audio_mixer),
  7804. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7805. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7806. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7807. msm_routing_put_audio_mixer),
  7808. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  7809. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7810. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7811. msm_routing_put_audio_mixer),
  7812. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  7813. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7814. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7815. msm_routing_put_audio_mixer),
  7816. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  7861. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7863. msm_routing_put_audio_mixer),
  7864. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  7865. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7866. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7867. msm_routing_put_audio_mixer),
  7868. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  7869. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7870. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7871. msm_routing_put_audio_mixer),
  7872. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  7873. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7874. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7875. msm_routing_put_audio_mixer),
  7876. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  7877. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7878. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7879. msm_routing_put_audio_mixer),
  7880. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  7881. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7882. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7883. msm_routing_put_audio_mixer),
  7884. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  7885. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7886. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7887. msm_routing_put_audio_mixer),
  7888. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  7889. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7890. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7891. msm_routing_put_audio_mixer),
  7892. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7893. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7894. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7895. msm_routing_put_audio_mixer),
  7896. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  7897. MSM_BACKEND_DAI_USB_TX,
  7898. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7899. msm_routing_put_audio_mixer),
  7900. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  7901. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  7902. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7903. msm_routing_put_audio_mixer),
  7904. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  7905. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  7906. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7907. msm_routing_put_audio_mixer),
  7908. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  7909. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  7910. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7911. msm_routing_put_audio_mixer),
  7912. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  7913. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  7914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7915. msm_routing_put_audio_mixer),
  7916. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  7917. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  7918. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7919. msm_routing_put_audio_mixer),
  7920. };
  7921. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  7922. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7923. MSM_BACKEND_DAI_INT_FM_TX,
  7924. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7925. msm_routing_put_audio_mixer),
  7926. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7927. MSM_BACKEND_DAI_MI2S_TX,
  7928. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7929. msm_routing_put_audio_mixer),
  7930. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7931. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7932. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7933. msm_routing_put_audio_mixer),
  7934. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7935. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7936. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7937. msm_routing_put_audio_mixer),
  7938. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7939. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7940. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7941. msm_routing_put_audio_mixer),
  7942. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7943. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7944. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7945. msm_routing_put_audio_mixer),
  7946. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7947. MSM_BACKEND_DAI_INT3_MI2S_TX,
  7948. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7949. msm_routing_put_audio_mixer),
  7950. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7951. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7952. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7953. msm_routing_put_audio_mixer),
  7954. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7955. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7956. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7957. msm_routing_put_audio_mixer),
  7958. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  7959. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7960. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7961. msm_routing_put_audio_mixer),
  7962. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  7963. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  7964. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7965. msm_routing_put_audio_mixer),
  7966. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7967. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7968. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7969. msm_routing_put_audio_mixer),
  7970. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  7971. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7972. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7973. msm_routing_put_audio_mixer),
  7974. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  7975. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7976. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7977. msm_routing_put_audio_mixer),
  7978. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  7979. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7980. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7981. msm_routing_put_audio_mixer),
  7982. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  7983. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7984. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7985. msm_routing_put_audio_mixer),
  7986. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  7987. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7988. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7989. msm_routing_put_audio_mixer),
  7990. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  7991. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7992. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7993. msm_routing_put_audio_mixer),
  7994. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  7995. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7996. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7997. msm_routing_put_audio_mixer),
  7998. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  7999. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8000. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8001. msm_routing_put_audio_mixer),
  8002. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8003. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8004. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8005. msm_routing_put_audio_mixer),
  8006. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8007. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8008. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8009. msm_routing_put_audio_mixer),
  8010. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8011. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8012. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8013. msm_routing_put_audio_mixer),
  8014. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8015. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8016. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8017. msm_routing_put_audio_mixer),
  8018. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8051. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8052. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8053. msm_routing_put_audio_mixer),
  8054. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8055. MSM_BACKEND_DAI_USB_TX,
  8056. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8057. msm_routing_put_audio_mixer),
  8058. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8059. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8060. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8061. msm_routing_put_audio_mixer),
  8062. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8063. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8064. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8065. msm_routing_put_audio_mixer),
  8066. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8067. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8068. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8069. msm_routing_put_audio_mixer),
  8070. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8071. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8072. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8073. msm_routing_put_audio_mixer),
  8074. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8075. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8076. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8077. msm_routing_put_audio_mixer),
  8078. };
  8079. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  8080. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8081. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8082. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8083. msm_routing_put_audio_mixer),
  8084. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8085. MSM_BACKEND_DAI_INT_FM_TX,
  8086. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8087. msm_routing_put_audio_mixer),
  8088. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8089. MSM_BACKEND_DAI_MI2S_TX,
  8090. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8091. msm_routing_put_audio_mixer),
  8092. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8093. MSM_BACKEND_DAI_AFE_PCM_TX,
  8094. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8095. msm_routing_put_audio_mixer),
  8096. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8097. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8099. msm_routing_put_audio_mixer),
  8100. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  8101. MSM_BACKEND_DAI_AUXPCM_TX,
  8102. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8103. msm_routing_put_audio_mixer),
  8104. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8105. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8106. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8107. msm_routing_put_audio_mixer),
  8108. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8121. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8122. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8123. msm_routing_put_audio_mixer),
  8124. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8125. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8126. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8127. msm_routing_put_audio_mixer),
  8128. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8129. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8130. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8131. msm_routing_put_audio_mixer),
  8132. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8133. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8134. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8135. msm_routing_put_audio_mixer),
  8136. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8137. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8138. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8139. msm_routing_put_audio_mixer),
  8140. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8141. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8142. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8143. msm_routing_put_audio_mixer),
  8144. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8145. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8146. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8147. msm_routing_put_audio_mixer),
  8148. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8149. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8150. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8151. msm_routing_put_audio_mixer),
  8152. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8153. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8154. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8155. msm_routing_put_audio_mixer),
  8156. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8157. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8158. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8159. msm_routing_put_audio_mixer),
  8160. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8161. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8162. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8163. msm_routing_put_audio_mixer),
  8164. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8165. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8166. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8167. msm_routing_put_audio_mixer),
  8168. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8169. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8170. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8171. msm_routing_put_audio_mixer),
  8172. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8173. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8174. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8175. msm_routing_put_audio_mixer),
  8176. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8177. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8178. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8179. msm_routing_put_audio_mixer),
  8180. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8181. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8182. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8183. msm_routing_put_audio_mixer),
  8184. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8185. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8186. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8187. msm_routing_put_audio_mixer),
  8188. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8189. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8190. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8191. msm_routing_put_audio_mixer),
  8192. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8193. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8194. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8195. msm_routing_put_audio_mixer),
  8196. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8197. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8198. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8199. msm_routing_put_audio_mixer),
  8200. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8201. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8202. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8203. msm_routing_put_audio_mixer),
  8204. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8205. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8206. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8207. msm_routing_put_audio_mixer),
  8208. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8209. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8210. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8211. msm_routing_put_audio_mixer),
  8212. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8213. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8214. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8215. msm_routing_put_audio_mixer),
  8216. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8217. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8218. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8219. msm_routing_put_audio_mixer),
  8220. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8221. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8222. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8223. msm_routing_put_audio_mixer),
  8224. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8225. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8226. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8227. msm_routing_put_audio_mixer),
  8228. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8229. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8230. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8231. msm_routing_put_audio_mixer),
  8232. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8233. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8234. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8235. msm_routing_put_audio_mixer),
  8236. };
  8237. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  8238. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8239. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8240. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8241. msm_routing_put_audio_mixer),
  8242. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8243. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8244. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8245. msm_routing_put_audio_mixer),
  8246. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8247. MSM_BACKEND_DAI_INT_FM_TX,
  8248. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8249. msm_routing_put_audio_mixer),
  8250. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8251. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8252. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8253. msm_routing_put_audio_mixer),
  8254. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8255. MSM_BACKEND_DAI_AFE_PCM_TX,
  8256. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8257. msm_routing_put_audio_mixer),
  8258. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8259. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8260. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8261. msm_routing_put_audio_mixer),
  8262. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8263. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8264. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8265. msm_routing_put_audio_mixer),
  8266. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8267. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8268. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8269. msm_routing_put_audio_mixer),
  8270. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8271. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8272. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8273. msm_routing_put_audio_mixer),
  8274. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8275. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8276. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8277. msm_routing_put_audio_mixer),
  8278. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8279. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8280. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8281. msm_routing_put_audio_mixer),
  8282. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8283. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8284. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8285. msm_routing_put_audio_mixer),
  8286. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8287. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8288. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8289. msm_routing_put_audio_mixer),
  8290. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8291. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8292. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8293. msm_routing_put_audio_mixer),
  8294. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8295. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8296. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8297. msm_routing_put_audio_mixer),
  8298. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8299. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8300. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8301. msm_routing_put_audio_mixer),
  8302. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8303. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8304. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8305. msm_routing_put_audio_mixer),
  8306. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8307. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8308. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8309. msm_routing_put_audio_mixer),
  8310. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8311. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8312. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8313. msm_routing_put_audio_mixer),
  8314. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8315. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8316. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8317. msm_routing_put_audio_mixer),
  8318. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8339. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8340. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8341. msm_routing_put_audio_mixer),
  8342. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8343. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8344. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8345. msm_routing_put_audio_mixer),
  8346. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8347. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8348. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8349. msm_routing_put_audio_mixer),
  8350. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8351. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8352. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8353. msm_routing_put_audio_mixer),
  8354. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8355. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8356. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8357. msm_routing_put_audio_mixer),
  8358. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8359. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8360. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8361. msm_routing_put_audio_mixer),
  8362. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8363. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8364. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8365. msm_routing_put_audio_mixer),
  8366. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8367. MSM_BACKEND_DAI_USB_TX,
  8368. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8369. msm_routing_put_audio_mixer),
  8370. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8371. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8372. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8373. msm_routing_put_audio_mixer),
  8374. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8375. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8376. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8377. msm_routing_put_audio_mixer),
  8378. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8379. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8380. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8381. msm_routing_put_audio_mixer),
  8382. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8383. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8384. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8385. msm_routing_put_audio_mixer),
  8386. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8387. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8388. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8389. msm_routing_put_audio_mixer),
  8390. };
  8391. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  8392. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8393. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8394. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8395. msm_routing_put_audio_mixer),
  8396. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8397. MSM_BACKEND_DAI_INT_FM_TX,
  8398. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8399. msm_routing_put_audio_mixer),
  8400. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_MI2S_TX,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_AFE_PCM_TX,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8409. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8410. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8411. msm_routing_put_audio_mixer),
  8412. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8413. MSM_BACKEND_DAI_AUXPCM_TX,
  8414. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8415. msm_routing_put_audio_mixer),
  8416. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8417. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8418. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8419. msm_routing_put_audio_mixer),
  8420. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8421. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8422. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8423. msm_routing_put_audio_mixer),
  8424. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8425. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8426. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8427. msm_routing_put_audio_mixer),
  8428. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8429. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8430. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8431. msm_routing_put_audio_mixer),
  8432. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8433. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8434. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8435. msm_routing_put_audio_mixer),
  8436. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8437. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8438. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8439. msm_routing_put_audio_mixer),
  8440. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8441. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8442. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8443. msm_routing_put_audio_mixer),
  8444. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8445. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8446. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8447. msm_routing_put_audio_mixer),
  8448. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8449. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8450. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8451. msm_routing_put_audio_mixer),
  8452. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8453. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8454. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8455. msm_routing_put_audio_mixer),
  8456. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8457. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8458. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8459. msm_routing_put_audio_mixer),
  8460. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8461. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8462. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8463. msm_routing_put_audio_mixer),
  8464. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8465. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8466. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8467. msm_routing_put_audio_mixer),
  8468. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8469. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8470. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8471. msm_routing_put_audio_mixer),
  8472. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8473. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8474. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8475. msm_routing_put_audio_mixer),
  8476. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8477. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8478. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8479. msm_routing_put_audio_mixer),
  8480. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8481. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8482. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8483. msm_routing_put_audio_mixer),
  8484. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8485. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8486. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8487. msm_routing_put_audio_mixer),
  8488. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8489. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8490. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8491. msm_routing_put_audio_mixer),
  8492. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8493. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8494. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8495. msm_routing_put_audio_mixer),
  8496. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8497. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8498. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8499. msm_routing_put_audio_mixer),
  8500. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8501. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8502. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8503. msm_routing_put_audio_mixer),
  8504. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8505. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8506. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8507. msm_routing_put_audio_mixer),
  8508. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8509. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8510. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8511. msm_routing_put_audio_mixer),
  8512. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8513. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8514. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8515. msm_routing_put_audio_mixer),
  8516. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8517. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8518. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8519. msm_routing_put_audio_mixer),
  8520. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8521. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8522. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8523. msm_routing_put_audio_mixer),
  8524. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8525. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8526. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8527. msm_routing_put_audio_mixer),
  8528. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8529. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8530. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8531. msm_routing_put_audio_mixer),
  8532. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8533. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8534. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8535. msm_routing_put_audio_mixer),
  8536. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8537. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8538. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8539. msm_routing_put_audio_mixer),
  8540. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8541. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8542. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8543. msm_routing_put_audio_mixer),
  8544. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_USB_TX,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8549. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8550. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8551. msm_routing_put_audio_mixer),
  8552. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8553. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8554. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8555. msm_routing_put_audio_mixer),
  8556. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8557. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8558. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8559. msm_routing_put_audio_mixer),
  8560. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8561. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8562. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8563. msm_routing_put_audio_mixer),
  8564. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8565. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8566. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8567. msm_routing_put_audio_mixer),
  8568. };
  8569. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  8570. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8571. MSM_BACKEND_DAI_INT_FM_TX,
  8572. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8573. msm_routing_put_audio_mixer),
  8574. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8575. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8576. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8577. msm_routing_put_audio_mixer),
  8578. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8579. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8580. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8581. msm_routing_put_audio_mixer),
  8582. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8583. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8584. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8585. msm_routing_put_audio_mixer),
  8586. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8587. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8588. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8589. msm_routing_put_audio_mixer),
  8590. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8591. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8592. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8593. msm_routing_put_audio_mixer),
  8594. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8595. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8596. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8597. msm_routing_put_audio_mixer),
  8598. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8599. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8600. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8601. msm_routing_put_audio_mixer),
  8602. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8603. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8604. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8605. msm_routing_put_audio_mixer),
  8606. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8607. MSM_BACKEND_DAI_AUXPCM_TX,
  8608. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8609. msm_routing_put_audio_mixer),
  8610. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8611. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8612. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8613. msm_routing_put_audio_mixer),
  8614. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8615. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8616. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8617. msm_routing_put_audio_mixer),
  8618. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8619. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8620. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8621. msm_routing_put_audio_mixer),
  8622. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8623. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8624. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8625. msm_routing_put_audio_mixer),
  8626. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8627. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8628. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8629. msm_routing_put_audio_mixer),
  8630. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8631. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8632. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8633. msm_routing_put_audio_mixer),
  8634. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8635. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8636. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8637. msm_routing_put_audio_mixer),
  8638. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8639. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8640. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8641. msm_routing_put_audio_mixer),
  8642. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8643. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8644. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8645. msm_routing_put_audio_mixer),
  8646. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8647. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8648. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8649. msm_routing_put_audio_mixer),
  8650. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8651. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8652. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8653. msm_routing_put_audio_mixer),
  8654. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8655. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8656. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8657. msm_routing_put_audio_mixer),
  8658. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8659. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8660. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8661. msm_routing_put_audio_mixer),
  8662. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8663. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8664. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8665. msm_routing_put_audio_mixer),
  8666. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8667. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8668. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8669. msm_routing_put_audio_mixer),
  8670. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8671. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8672. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8673. msm_routing_put_audio_mixer),
  8674. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8675. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8676. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8677. msm_routing_put_audio_mixer),
  8678. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8679. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8680. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8681. msm_routing_put_audio_mixer),
  8682. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8683. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8684. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8685. msm_routing_put_audio_mixer),
  8686. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8687. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8688. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8689. msm_routing_put_audio_mixer),
  8690. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8691. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8692. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8693. msm_routing_put_audio_mixer),
  8694. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8695. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8696. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8697. msm_routing_put_audio_mixer),
  8698. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8699. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8700. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8701. msm_routing_put_audio_mixer),
  8702. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_USB_TX,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. };
  8727. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  8728. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8729. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8730. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8731. msm_routing_put_audio_mixer),
  8732. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8733. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8734. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8735. msm_routing_put_audio_mixer),
  8736. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8737. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8738. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8739. msm_routing_put_audio_mixer),
  8740. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8741. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8742. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8743. msm_routing_put_audio_mixer),
  8744. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8745. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8746. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8747. msm_routing_put_audio_mixer),
  8748. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8749. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8750. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8751. msm_routing_put_audio_mixer),
  8752. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8753. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8754. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8755. msm_routing_put_audio_mixer),
  8756. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8757. MSM_BACKEND_DAI_INT_FM_TX,
  8758. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8759. msm_routing_put_audio_mixer),
  8760. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8761. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8762. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8763. msm_routing_put_audio_mixer),
  8764. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8765. MSM_BACKEND_DAI_AFE_PCM_TX,
  8766. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8767. msm_routing_put_audio_mixer),
  8768. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8769. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8770. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8771. msm_routing_put_audio_mixer),
  8772. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8773. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8774. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8775. msm_routing_put_audio_mixer),
  8776. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8777. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8778. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8779. msm_routing_put_audio_mixer),
  8780. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8781. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8782. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8783. msm_routing_put_audio_mixer),
  8784. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8785. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8786. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8787. msm_routing_put_audio_mixer),
  8788. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8789. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8790. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8791. msm_routing_put_audio_mixer),
  8792. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8793. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8794. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8795. msm_routing_put_audio_mixer),
  8796. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8797. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8798. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8799. msm_routing_put_audio_mixer),
  8800. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8801. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8802. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8803. msm_routing_put_audio_mixer),
  8804. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8805. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8806. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8807. msm_routing_put_audio_mixer),
  8808. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8809. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8810. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8811. msm_routing_put_audio_mixer),
  8812. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8845. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8846. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8847. msm_routing_put_audio_mixer),
  8848. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8849. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8850. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8851. msm_routing_put_audio_mixer),
  8852. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8853. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8854. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8855. msm_routing_put_audio_mixer),
  8856. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8857. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8858. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8859. msm_routing_put_audio_mixer),
  8860. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8861. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8862. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8863. msm_routing_put_audio_mixer),
  8864. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8865. MSM_BACKEND_DAI_USB_TX,
  8866. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8867. msm_routing_put_audio_mixer),
  8868. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8869. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8870. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8871. msm_routing_put_audio_mixer),
  8872. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8873. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8874. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8875. msm_routing_put_audio_mixer),
  8876. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8877. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8878. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8879. msm_routing_put_audio_mixer),
  8880. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8881. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8882. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8883. msm_routing_put_audio_mixer),
  8884. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8885. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8886. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8887. msm_routing_put_audio_mixer),
  8888. };
  8889. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  8890. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8915. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8916. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8917. msm_routing_put_audio_mixer),
  8918. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8919. MSM_BACKEND_DAI_INT_FM_TX,
  8920. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8921. msm_routing_put_audio_mixer),
  8922. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8923. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8924. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8925. msm_routing_put_audio_mixer),
  8926. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8927. MSM_BACKEND_DAI_AFE_PCM_TX,
  8928. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8929. msm_routing_put_audio_mixer),
  8930. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8931. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8932. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8933. msm_routing_put_audio_mixer),
  8934. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8935. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8936. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8937. msm_routing_put_audio_mixer),
  8938. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8939. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8940. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8941. msm_routing_put_audio_mixer),
  8942. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8943. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8944. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8945. msm_routing_put_audio_mixer),
  8946. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8947. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8948. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8949. msm_routing_put_audio_mixer),
  8950. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8951. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8952. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8953. msm_routing_put_audio_mixer),
  8954. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8955. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8956. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8957. msm_routing_put_audio_mixer),
  8958. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8959. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8960. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8961. msm_routing_put_audio_mixer),
  8962. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8963. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8964. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8965. msm_routing_put_audio_mixer),
  8966. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8967. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8968. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8969. msm_routing_put_audio_mixer),
  8970. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8971. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8972. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8973. msm_routing_put_audio_mixer),
  8974. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8975. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8976. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8977. msm_routing_put_audio_mixer),
  8978. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8979. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8980. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8981. msm_routing_put_audio_mixer),
  8982. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8983. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8984. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8985. msm_routing_put_audio_mixer),
  8986. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8987. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8988. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8989. msm_routing_put_audio_mixer),
  8990. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8991. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8992. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8993. msm_routing_put_audio_mixer),
  8994. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8995. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8996. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8997. msm_routing_put_audio_mixer),
  8998. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8999. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9000. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9001. msm_routing_put_audio_mixer),
  9002. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9003. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9004. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9005. msm_routing_put_audio_mixer),
  9006. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9007. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9008. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9009. msm_routing_put_audio_mixer),
  9010. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9011. MSM_BACKEND_DAI_USB_TX,
  9012. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9013. msm_routing_put_audio_mixer),
  9014. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9015. MSM_BACKEND_DAI_MI2S_TX,
  9016. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9017. msm_routing_put_audio_mixer),
  9018. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9019. MSM_BACKEND_DAI_AUXPCM_TX,
  9020. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9021. msm_routing_put_audio_mixer),
  9022. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. };
  9051. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  9052. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9053. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9054. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9055. msm_routing_put_audio_mixer),
  9056. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9057. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9058. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9059. msm_routing_put_audio_mixer),
  9060. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9061. MSM_BACKEND_DAI_INT_FM_TX,
  9062. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9063. msm_routing_put_audio_mixer),
  9064. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9065. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9066. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9067. msm_routing_put_audio_mixer),
  9068. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9069. MSM_BACKEND_DAI_AFE_PCM_TX,
  9070. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9071. msm_routing_put_audio_mixer),
  9072. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9073. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9074. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9075. msm_routing_put_audio_mixer),
  9076. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9077. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9078. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9079. msm_routing_put_audio_mixer),
  9080. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9081. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9082. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9083. msm_routing_put_audio_mixer),
  9084. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9085. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9086. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9087. msm_routing_put_audio_mixer),
  9088. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9089. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9090. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9091. msm_routing_put_audio_mixer),
  9092. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9093. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9094. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9095. msm_routing_put_audio_mixer),
  9096. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9097. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9098. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9099. msm_routing_put_audio_mixer),
  9100. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9101. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9102. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9103. msm_routing_put_audio_mixer),
  9104. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9105. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9106. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9107. msm_routing_put_audio_mixer),
  9108. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9109. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9110. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9111. msm_routing_put_audio_mixer),
  9112. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9113. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9114. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9115. msm_routing_put_audio_mixer),
  9116. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9117. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9118. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9119. msm_routing_put_audio_mixer),
  9120. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9121. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9122. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9123. msm_routing_put_audio_mixer),
  9124. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9125. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9126. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9127. msm_routing_put_audio_mixer),
  9128. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9129. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9130. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9131. msm_routing_put_audio_mixer),
  9132. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9133. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9134. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9135. msm_routing_put_audio_mixer),
  9136. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9137. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9138. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9139. msm_routing_put_audio_mixer),
  9140. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9141. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9142. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9143. msm_routing_put_audio_mixer),
  9144. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9145. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9146. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9147. msm_routing_put_audio_mixer),
  9148. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9149. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9150. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9151. msm_routing_put_audio_mixer),
  9152. };
  9153. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  9154. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9155. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9156. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9157. msm_routing_put_audio_mixer),
  9158. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9159. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9160. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9161. msm_routing_put_audio_mixer),
  9162. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9163. MSM_BACKEND_DAI_INT_FM_TX,
  9164. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9165. msm_routing_put_audio_mixer),
  9166. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9167. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9168. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9169. msm_routing_put_audio_mixer),
  9170. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9171. MSM_BACKEND_DAI_AFE_PCM_TX,
  9172. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9173. msm_routing_put_audio_mixer),
  9174. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9175. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9176. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9177. msm_routing_put_audio_mixer),
  9178. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9179. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9180. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9181. msm_routing_put_audio_mixer),
  9182. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9183. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9184. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9185. msm_routing_put_audio_mixer),
  9186. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9187. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9188. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9189. msm_routing_put_audio_mixer),
  9190. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9191. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9192. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9193. msm_routing_put_audio_mixer),
  9194. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9195. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9196. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9197. msm_routing_put_audio_mixer),
  9198. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9199. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9200. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9201. msm_routing_put_audio_mixer),
  9202. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9203. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9204. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9205. msm_routing_put_audio_mixer),
  9206. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9207. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9208. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9209. msm_routing_put_audio_mixer),
  9210. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9211. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9212. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9213. msm_routing_put_audio_mixer),
  9214. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9215. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9216. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9217. msm_routing_put_audio_mixer),
  9218. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9219. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9220. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9221. msm_routing_put_audio_mixer),
  9222. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9223. MSM_BACKEND_DAI_USB_TX,
  9224. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9225. msm_routing_put_audio_mixer),
  9226. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9227. MSM_BACKEND_DAI_MI2S_TX,
  9228. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9229. msm_routing_put_audio_mixer),
  9230. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9231. MSM_BACKEND_DAI_AUXPCM_TX,
  9232. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9233. msm_routing_put_audio_mixer),
  9234. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9235. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9236. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9237. msm_routing_put_audio_mixer),
  9238. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9239. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9240. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9241. msm_routing_put_audio_mixer),
  9242. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9243. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9244. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9245. msm_routing_put_audio_mixer),
  9246. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9247. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9248. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9249. msm_routing_put_audio_mixer),
  9250. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9251. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9252. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9253. msm_routing_put_audio_mixer),
  9254. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9255. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9256. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9257. msm_routing_put_audio_mixer),
  9258. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9259. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9260. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9261. msm_routing_put_audio_mixer),
  9262. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9263. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9264. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9265. msm_routing_put_audio_mixer),
  9266. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9267. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9268. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9269. msm_routing_put_audio_mixer),
  9270. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9271. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9272. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9273. msm_routing_put_audio_mixer),
  9274. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9275. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9276. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9277. msm_routing_put_audio_mixer),
  9278. };
  9279. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  9280. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9281. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9282. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9283. msm_routing_put_audio_mixer),
  9284. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9285. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9286. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9287. msm_routing_put_audio_mixer),
  9288. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9289. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9290. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9291. msm_routing_put_audio_mixer),
  9292. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9293. MSM_BACKEND_DAI_INT_FM_TX,
  9294. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9295. msm_routing_put_audio_mixer),
  9296. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9297. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9298. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9299. msm_routing_put_audio_mixer),
  9300. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9301. MSM_BACKEND_DAI_AFE_PCM_TX,
  9302. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9303. msm_routing_put_audio_mixer),
  9304. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9305. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9306. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9307. msm_routing_put_audio_mixer),
  9308. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9309. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9310. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9311. msm_routing_put_audio_mixer),
  9312. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9313. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9314. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9315. msm_routing_put_audio_mixer),
  9316. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9317. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9318. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9319. msm_routing_put_audio_mixer),
  9320. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9321. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9322. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9323. msm_routing_put_audio_mixer),
  9324. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9325. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9326. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9327. msm_routing_put_audio_mixer),
  9328. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9329. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9330. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9331. msm_routing_put_audio_mixer),
  9332. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9333. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9334. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9335. msm_routing_put_audio_mixer),
  9336. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9337. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9338. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9339. msm_routing_put_audio_mixer),
  9340. };
  9341. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  9342. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_INT_FM_TX,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_AFE_PCM_TX,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9375. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9376. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9377. msm_routing_put_audio_mixer),
  9378. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9379. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9380. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9381. msm_routing_put_audio_mixer),
  9382. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9383. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9384. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9385. msm_routing_put_audio_mixer),
  9386. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9387. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9388. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9389. msm_routing_put_audio_mixer),
  9390. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9391. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9392. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9393. msm_routing_put_audio_mixer),
  9394. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9395. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9396. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9397. msm_routing_put_audio_mixer),
  9398. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9399. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9400. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9401. msm_routing_put_audio_mixer),
  9402. };
  9403. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  9404. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9405. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9406. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9407. msm_routing_put_audio_mixer),
  9408. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9409. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9410. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9411. msm_routing_put_audio_mixer),
  9412. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9413. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9414. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9415. msm_routing_put_audio_mixer),
  9416. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9417. MSM_BACKEND_DAI_INT_FM_TX,
  9418. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9419. msm_routing_put_audio_mixer),
  9420. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9421. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9422. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9423. msm_routing_put_audio_mixer),
  9424. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9425. MSM_BACKEND_DAI_AFE_PCM_TX,
  9426. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9427. msm_routing_put_audio_mixer),
  9428. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9429. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9430. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9431. msm_routing_put_audio_mixer),
  9432. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9433. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9434. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9435. msm_routing_put_audio_mixer),
  9436. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9437. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9438. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9439. msm_routing_put_audio_mixer),
  9440. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9441. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9442. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9443. msm_routing_put_audio_mixer),
  9444. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9445. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9446. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9447. msm_routing_put_audio_mixer),
  9448. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9449. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9450. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9451. msm_routing_put_audio_mixer),
  9452. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9453. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9454. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9455. msm_routing_put_audio_mixer),
  9456. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9457. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9458. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9459. msm_routing_put_audio_mixer),
  9460. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9461. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9462. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9463. msm_routing_put_audio_mixer),
  9464. };
  9465. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  9466. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9467. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9468. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9469. msm_routing_put_audio_mixer),
  9470. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9471. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9472. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9473. msm_routing_put_audio_mixer),
  9474. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9475. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9476. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9477. msm_routing_put_audio_mixer),
  9478. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9479. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9480. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9481. msm_routing_put_audio_mixer),
  9482. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9483. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9484. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9485. msm_routing_put_audio_mixer),
  9486. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9487. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9488. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9489. msm_routing_put_audio_mixer),
  9490. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9491. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9492. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9493. msm_routing_put_audio_mixer),
  9494. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9495. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9496. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9497. msm_routing_put_audio_mixer),
  9498. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9499. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9500. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9501. msm_routing_put_audio_mixer),
  9502. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9503. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9504. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9505. msm_routing_put_audio_mixer),
  9506. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9507. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9508. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9509. msm_routing_put_audio_mixer),
  9510. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9511. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9512. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9513. msm_routing_put_audio_mixer),
  9514. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9515. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9516. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9517. msm_routing_put_audio_mixer),
  9518. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9519. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9520. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9521. msm_routing_put_audio_mixer),
  9522. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9523. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9524. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9525. msm_routing_put_audio_mixer),
  9526. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9527. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9528. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9529. msm_routing_put_audio_mixer),
  9530. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9531. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9532. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9533. msm_routing_put_audio_mixer),
  9534. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9535. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9536. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9537. msm_routing_put_audio_mixer),
  9538. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9539. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9540. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9541. msm_routing_put_audio_mixer),
  9542. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9543. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9544. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9545. msm_routing_put_audio_mixer),
  9546. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9547. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9548. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9549. msm_routing_put_audio_mixer),
  9550. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9551. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9552. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9553. msm_routing_put_audio_mixer),
  9554. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9555. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9556. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9557. msm_routing_put_audio_mixer),
  9558. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9559. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9560. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9561. msm_routing_put_audio_mixer),
  9562. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9563. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9564. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9565. msm_routing_put_audio_mixer),
  9566. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9567. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9568. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9569. msm_routing_put_audio_mixer),
  9570. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9571. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9572. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9573. msm_routing_put_audio_mixer),
  9574. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9575. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9576. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9577. msm_routing_put_audio_mixer),
  9578. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9579. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9580. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9581. msm_routing_put_audio_mixer),
  9582. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9583. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9584. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9585. msm_routing_put_audio_mixer),
  9586. };
  9587. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  9588. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9589. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9590. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9591. msm_routing_put_audio_mixer),
  9592. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9593. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9594. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9595. msm_routing_put_audio_mixer),
  9596. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9597. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9598. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9599. msm_routing_put_audio_mixer),
  9600. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9601. MSM_BACKEND_DAI_INT_FM_TX,
  9602. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9603. msm_routing_put_audio_mixer),
  9604. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9605. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9606. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9607. msm_routing_put_audio_mixer),
  9608. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9609. MSM_BACKEND_DAI_AFE_PCM_TX,
  9610. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9611. msm_routing_put_audio_mixer),
  9612. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9613. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9614. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9615. msm_routing_put_audio_mixer),
  9616. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9617. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9618. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9619. msm_routing_put_audio_mixer),
  9620. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9621. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9622. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9623. msm_routing_put_audio_mixer),
  9624. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9625. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9626. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9627. msm_routing_put_audio_mixer),
  9628. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9629. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9630. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9631. msm_routing_put_audio_mixer),
  9632. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9633. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9634. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9635. msm_routing_put_audio_mixer),
  9636. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9637. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9638. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9639. msm_routing_put_audio_mixer),
  9640. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9641. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9642. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9643. msm_routing_put_audio_mixer),
  9644. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9645. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9646. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9647. msm_routing_put_audio_mixer),
  9648. };
  9649. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  9650. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9651. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9652. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9653. msm_routing_put_audio_mixer),
  9654. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9655. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9656. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9657. msm_routing_put_audio_mixer),
  9658. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9659. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9660. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9661. msm_routing_put_audio_mixer),
  9662. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9663. MSM_BACKEND_DAI_INT_FM_TX,
  9664. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9665. msm_routing_put_audio_mixer),
  9666. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9667. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9668. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9669. msm_routing_put_audio_mixer),
  9670. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9671. MSM_BACKEND_DAI_AFE_PCM_TX,
  9672. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9673. msm_routing_put_audio_mixer),
  9674. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9675. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9676. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9677. msm_routing_put_audio_mixer),
  9678. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9679. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9680. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9681. msm_routing_put_audio_mixer),
  9682. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9683. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9684. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9685. msm_routing_put_audio_mixer),
  9686. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9687. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9688. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9689. msm_routing_put_audio_mixer),
  9690. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9691. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9692. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9693. msm_routing_put_audio_mixer),
  9694. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9695. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9696. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9697. msm_routing_put_audio_mixer),
  9698. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9699. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9700. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9701. msm_routing_put_audio_mixer),
  9702. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9703. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9704. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9705. msm_routing_put_audio_mixer),
  9706. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9707. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9708. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9709. msm_routing_put_audio_mixer),
  9710. };
  9711. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  9712. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9713. MSM_BACKEND_DAI_PRI_I2S_RX,
  9714. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9715. msm_routing_put_voice_mixer),
  9716. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9717. MSM_BACKEND_DAI_PRI_I2S_RX,
  9718. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9719. msm_routing_put_voice_mixer),
  9720. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9721. MSM_BACKEND_DAI_PRI_I2S_RX,
  9722. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9723. msm_routing_put_voice_mixer),
  9724. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9725. MSM_BACKEND_DAI_PRI_I2S_RX,
  9726. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9727. msm_routing_put_voice_mixer),
  9728. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9729. MSM_BACKEND_DAI_PRI_I2S_RX,
  9730. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9731. msm_routing_put_voice_mixer),
  9732. };
  9733. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  9734. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9735. MSM_BACKEND_DAI_SEC_I2S_RX,
  9736. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9737. msm_routing_put_voice_mixer),
  9738. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9739. MSM_BACKEND_DAI_SEC_I2S_RX,
  9740. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9741. msm_routing_put_voice_mixer),
  9742. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9743. MSM_BACKEND_DAI_SEC_I2S_RX,
  9744. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9745. msm_routing_put_voice_mixer),
  9746. };
  9747. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  9748. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9749. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9750. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9751. msm_routing_put_voice_mixer),
  9752. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9753. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9754. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9755. msm_routing_put_voice_mixer),
  9756. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9757. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9758. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9759. msm_routing_put_voice_mixer),
  9760. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9761. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9762. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9763. msm_routing_put_voice_mixer),
  9764. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9765. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9766. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9767. msm_routing_put_voice_mixer),
  9768. };
  9769. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  9770. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9771. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9772. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9773. msm_routing_put_voice_mixer),
  9774. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9775. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9776. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9777. msm_routing_put_voice_mixer),
  9778. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9779. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9780. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9781. msm_routing_put_voice_mixer),
  9782. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9783. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9784. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9785. msm_routing_put_voice_mixer),
  9786. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9787. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9788. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9789. msm_routing_put_voice_mixer),
  9790. };
  9791. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  9792. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9793. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9794. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9795. msm_routing_put_voice_mixer),
  9796. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9797. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9798. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9799. msm_routing_put_voice_mixer),
  9800. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9801. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9802. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9803. msm_routing_put_voice_mixer),
  9804. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9805. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9806. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9807. msm_routing_put_voice_mixer),
  9808. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9809. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9810. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9811. msm_routing_put_voice_mixer),
  9812. };
  9813. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  9814. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9815. MSM_BACKEND_DAI_USB_RX,
  9816. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9817. msm_routing_put_voice_mixer),
  9818. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9819. MSM_BACKEND_DAI_USB_RX,
  9820. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9821. msm_routing_put_voice_mixer),
  9822. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9823. MSM_BACKEND_DAI_USB_RX,
  9824. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9825. msm_routing_put_voice_mixer),
  9826. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9827. MSM_BACKEND_DAI_USB_RX,
  9828. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9829. msm_routing_put_voice_mixer),
  9830. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9831. MSM_BACKEND_DAI_USB_RX,
  9832. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9833. msm_routing_put_voice_mixer),
  9834. };
  9835. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  9836. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9837. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9838. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9839. msm_routing_put_voice_mixer),
  9840. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9841. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9842. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9843. msm_routing_put_voice_mixer),
  9844. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9845. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9846. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9847. msm_routing_put_voice_mixer),
  9848. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9849. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9850. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9851. msm_routing_put_voice_mixer),
  9852. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9853. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9854. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9855. msm_routing_put_voice_mixer),
  9856. };
  9857. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  9858. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9860. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9861. msm_routing_put_voice_mixer),
  9862. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9864. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9865. msm_routing_put_voice_mixer),
  9866. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9868. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9869. msm_routing_put_voice_mixer),
  9870. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9872. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9873. msm_routing_put_voice_mixer),
  9874. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9876. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9877. msm_routing_put_voice_mixer),
  9878. };
  9879. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  9880. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9881. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9882. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9883. msm_routing_put_voice_mixer),
  9884. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9885. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9886. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9887. msm_routing_put_voice_mixer),
  9888. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9889. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9890. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9891. msm_routing_put_voice_mixer),
  9892. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9893. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9894. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9895. msm_routing_put_voice_mixer),
  9896. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9897. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9898. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9899. msm_routing_put_voice_mixer),
  9900. };
  9901. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  9902. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9903. MSM_BACKEND_DAI_MI2S_RX,
  9904. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9905. msm_routing_put_voice_mixer),
  9906. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9907. MSM_BACKEND_DAI_MI2S_RX,
  9908. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9909. msm_routing_put_voice_mixer),
  9910. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9911. MSM_BACKEND_DAI_MI2S_RX,
  9912. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9913. msm_routing_put_voice_mixer),
  9914. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9915. MSM_BACKEND_DAI_MI2S_RX,
  9916. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9917. msm_routing_put_voice_mixer),
  9918. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9919. MSM_BACKEND_DAI_MI2S_RX,
  9920. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9921. msm_routing_put_voice_mixer),
  9922. };
  9923. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  9924. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9925. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9926. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9927. msm_routing_put_voice_mixer),
  9928. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9929. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9930. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9931. msm_routing_put_voice_mixer),
  9932. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9934. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9935. msm_routing_put_voice_mixer),
  9936. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9938. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9939. msm_routing_put_voice_mixer),
  9940. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9942. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9943. msm_routing_put_voice_mixer),
  9944. };
  9945. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  9946. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9947. MSM_BACKEND_DAI_INT0_MI2S_RX,
  9948. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9949. msm_routing_put_voice_mixer),
  9950. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9951. MSM_BACKEND_DAI_INT0_MI2S_RX,
  9952. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9953. msm_routing_put_voice_mixer),
  9954. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9955. MSM_BACKEND_DAI_INT0_MI2S_RX,
  9956. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9957. msm_routing_put_voice_mixer),
  9958. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9959. MSM_BACKEND_DAI_INT0_MI2S_RX,
  9960. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9961. msm_routing_put_voice_mixer),
  9962. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9963. MSM_BACKEND_DAI_INT0_MI2S_RX,
  9964. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9965. msm_routing_put_voice_mixer),
  9966. };
  9967. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  9968. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9969. MSM_BACKEND_DAI_INT4_MI2S_RX,
  9970. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9971. msm_routing_put_voice_mixer),
  9972. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9973. MSM_BACKEND_DAI_INT4_MI2S_RX,
  9974. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9975. msm_routing_put_voice_mixer),
  9976. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9977. MSM_BACKEND_DAI_INT4_MI2S_RX,
  9978. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9979. msm_routing_put_voice_mixer),
  9980. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9981. MSM_BACKEND_DAI_INT4_MI2S_RX,
  9982. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9983. msm_routing_put_voice_mixer),
  9984. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9985. MSM_BACKEND_DAI_INT4_MI2S_RX,
  9986. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9987. msm_routing_put_voice_mixer),
  9988. };
  9989. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  9990. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9991. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  9992. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9993. msm_routing_put_voice_mixer),
  9994. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9995. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  9996. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9997. msm_routing_put_voice_mixer),
  9998. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9999. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10000. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10001. msm_routing_put_voice_mixer),
  10002. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10003. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10004. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10005. msm_routing_put_voice_mixer),
  10006. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10007. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10008. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10009. msm_routing_put_voice_mixer),
  10010. };
  10011. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  10012. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10013. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10014. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10015. msm_routing_put_voice_mixer),
  10016. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10017. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10018. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10019. msm_routing_put_voice_mixer),
  10020. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10021. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10022. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10023. msm_routing_put_voice_mixer),
  10024. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10025. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10026. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10027. msm_routing_put_voice_mixer),
  10028. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10029. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10030. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10031. msm_routing_put_voice_mixer),
  10032. };
  10033. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  10034. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10035. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10036. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10037. msm_routing_put_voice_mixer),
  10038. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10039. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10040. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10041. msm_routing_put_voice_mixer),
  10042. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10043. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10044. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10045. msm_routing_put_voice_mixer),
  10046. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10047. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10048. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10049. msm_routing_put_voice_mixer),
  10050. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10051. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10052. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10053. msm_routing_put_voice_mixer),
  10054. };
  10055. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  10056. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10057. MSM_BACKEND_DAI_AFE_PCM_RX,
  10058. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10059. msm_routing_put_voice_mixer),
  10060. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10061. MSM_BACKEND_DAI_AFE_PCM_RX,
  10062. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10063. msm_routing_put_voice_mixer),
  10064. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10065. MSM_BACKEND_DAI_AFE_PCM_RX,
  10066. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10067. msm_routing_put_voice_mixer),
  10068. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10069. MSM_BACKEND_DAI_AFE_PCM_RX,
  10070. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10071. msm_routing_put_voice_mixer),
  10072. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10073. MSM_BACKEND_DAI_AFE_PCM_RX,
  10074. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10075. msm_routing_put_voice_mixer),
  10076. };
  10077. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  10078. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10079. MSM_BACKEND_DAI_AUXPCM_RX,
  10080. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10081. msm_routing_put_voice_mixer),
  10082. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10083. MSM_BACKEND_DAI_AUXPCM_RX,
  10084. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10085. msm_routing_put_voice_mixer),
  10086. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10087. MSM_BACKEND_DAI_AUXPCM_RX,
  10088. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10089. msm_routing_put_voice_mixer),
  10090. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10091. MSM_BACKEND_DAI_AUXPCM_RX,
  10092. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10093. msm_routing_put_voice_mixer),
  10094. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10095. MSM_BACKEND_DAI_AUXPCM_RX,
  10096. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10097. msm_routing_put_voice_mixer),
  10098. };
  10099. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  10100. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10101. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10102. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10103. msm_routing_put_voice_mixer),
  10104. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10105. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10106. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10107. msm_routing_put_voice_mixer),
  10108. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10109. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10110. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10111. msm_routing_put_voice_mixer),
  10112. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10113. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10114. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10115. msm_routing_put_voice_mixer),
  10116. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10117. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10118. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10119. msm_routing_put_voice_mixer),
  10120. };
  10121. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  10122. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10123. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10124. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10125. msm_routing_put_voice_mixer),
  10126. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10127. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10128. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10129. msm_routing_put_voice_mixer),
  10130. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10131. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10132. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10133. msm_routing_put_voice_mixer),
  10134. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10135. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10136. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10137. msm_routing_put_voice_mixer),
  10138. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10139. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10140. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10141. msm_routing_put_voice_mixer),
  10142. };
  10143. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  10144. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10145. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10146. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10147. msm_routing_put_voice_mixer),
  10148. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10149. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10150. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10151. msm_routing_put_voice_mixer),
  10152. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10153. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10154. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10155. msm_routing_put_voice_mixer),
  10156. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10157. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10158. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10159. msm_routing_put_voice_mixer),
  10160. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10161. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10162. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10163. msm_routing_put_voice_mixer),
  10164. };
  10165. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  10166. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10168. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10169. msm_routing_put_voice_mixer),
  10170. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10171. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10172. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10173. msm_routing_put_voice_mixer),
  10174. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10176. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10177. msm_routing_put_voice_mixer),
  10178. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10180. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10181. msm_routing_put_voice_mixer),
  10182. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10184. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10185. msm_routing_put_voice_mixer),
  10186. };
  10187. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  10188. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10189. MSM_BACKEND_DAI_HDMI_RX,
  10190. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10191. msm_routing_put_voice_mixer),
  10192. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10193. MSM_BACKEND_DAI_HDMI_RX,
  10194. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10195. msm_routing_put_voice_mixer),
  10196. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10197. MSM_BACKEND_DAI_HDMI_RX,
  10198. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10199. msm_routing_put_voice_mixer),
  10200. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10201. MSM_BACKEND_DAI_HDMI_RX,
  10202. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10203. msm_routing_put_voice_mixer),
  10204. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10205. MSM_BACKEND_DAI_HDMI_RX,
  10206. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10207. msm_routing_put_voice_mixer),
  10208. };
  10209. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  10210. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10211. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10212. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10213. msm_routing_put_voice_mixer),
  10214. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10215. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10216. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10217. msm_routing_put_voice_mixer),
  10218. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10220. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10221. msm_routing_put_voice_mixer),
  10222. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10223. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10224. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10225. msm_routing_put_voice_mixer),
  10226. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10227. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10228. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10229. msm_routing_put_voice_mixer),
  10230. };
  10231. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  10232. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10233. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10234. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10235. msm_routing_put_voice_mixer),
  10236. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10237. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10238. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10239. msm_routing_put_voice_mixer),
  10240. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10241. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10242. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10243. msm_routing_put_voice_mixer),
  10244. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10245. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10246. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10247. msm_routing_put_voice_mixer),
  10248. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10249. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10250. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10251. msm_routing_put_voice_mixer),
  10252. };
  10253. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  10254. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10255. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10256. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10257. msm_routing_put_voice_mixer),
  10258. };
  10259. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  10260. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10261. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10262. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10263. msm_routing_put_voice_mixer),
  10264. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10265. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10266. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10267. msm_routing_put_voice_mixer),
  10268. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10269. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10270. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10271. msm_routing_put_voice_mixer),
  10272. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10273. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10274. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10275. msm_routing_put_voice_mixer),
  10276. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10277. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10278. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10279. msm_routing_put_voice_mixer),
  10280. };
  10281. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  10282. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10283. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10284. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10285. msm_routing_put_voice_mixer),
  10286. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10287. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10288. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10289. msm_routing_put_voice_mixer),
  10290. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10291. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10292. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10293. msm_routing_put_voice_mixer),
  10294. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10295. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10296. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10297. msm_routing_put_voice_mixer),
  10298. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10299. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10300. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10301. msm_routing_put_voice_mixer),
  10302. };
  10303. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  10304. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10305. MSM_BACKEND_DAI_EXTPROC_RX,
  10306. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10307. msm_routing_put_voice_mixer),
  10308. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10309. MSM_BACKEND_DAI_EXTPROC_RX,
  10310. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10311. msm_routing_put_voice_mixer),
  10312. };
  10313. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  10314. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10315. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10316. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10317. msm_routing_put_voice_mixer),
  10318. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10319. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10320. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10321. msm_routing_put_voice_mixer),
  10322. };
  10323. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  10324. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10325. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10326. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10327. msm_routing_put_voice_mixer),
  10328. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10329. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10330. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10331. msm_routing_put_voice_mixer),
  10332. };
  10333. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  10334. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  10335. MSM_BACKEND_DAI_PRI_I2S_TX,
  10336. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10337. msm_routing_put_voice_mixer),
  10338. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  10339. MSM_BACKEND_DAI_MI2S_TX,
  10340. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10341. msm_routing_put_voice_mixer),
  10342. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  10343. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10344. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10345. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  10346. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10347. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10348. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  10349. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10350. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10351. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10353. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10354. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10355. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10356. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10357. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10358. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10359. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10360. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10361. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10362. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10363. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10365. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10366. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  10367. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10368. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10369. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10371. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10372. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  10373. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10374. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10375. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10377. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10378. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  10379. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10380. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10381. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_USB_TX,
  10383. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10384. msm_routing_put_voice_mixer),
  10385. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10387. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10388. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  10389. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10390. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10391. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  10393. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10394. };
  10395. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  10396. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  10397. MSM_BACKEND_DAI_PRI_I2S_TX,
  10398. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10399. msm_routing_put_voice_mixer),
  10400. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_MI2S_TX,
  10402. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10403. msm_routing_put_voice_mixer),
  10404. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10406. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10407. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10409. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10410. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  10411. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10412. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10413. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10415. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10416. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10417. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10418. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10419. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10421. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10422. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10423. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10424. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10425. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10427. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10428. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  10429. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10430. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10431. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  10432. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10433. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10434. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  10435. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10436. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10437. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10439. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10440. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10442. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10443. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  10444. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10445. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10446. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  10447. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  10448. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10449. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  10451. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10452. };
  10453. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  10454. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  10455. MSM_BACKEND_DAI_PRI_I2S_TX,
  10456. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10457. msm_routing_put_voice_mixer),
  10458. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  10459. MSM_BACKEND_DAI_MI2S_TX,
  10460. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10461. msm_routing_put_voice_mixer),
  10462. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  10463. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10464. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10465. msm_routing_put_voice_mixer),
  10466. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  10467. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10468. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10469. msm_routing_put_voice_mixer),
  10470. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  10471. MSM_BACKEND_DAI_AFE_PCM_TX,
  10472. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10473. msm_routing_put_voice_mixer),
  10474. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10475. MSM_BACKEND_DAI_AUXPCM_TX,
  10476. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10477. msm_routing_put_voice_mixer),
  10478. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10479. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10480. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10481. msm_routing_put_voice_mixer),
  10482. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10483. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10484. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10485. msm_routing_put_voice_mixer),
  10486. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10487. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10488. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10489. msm_routing_put_voice_mixer),
  10490. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10491. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10492. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10493. msm_routing_put_voice_mixer),
  10494. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  10495. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10496. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10497. msm_routing_put_voice_mixer),
  10498. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  10499. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10500. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10501. msm_routing_put_voice_mixer),
  10502. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  10503. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10504. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10505. msm_routing_put_voice_mixer),
  10506. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  10507. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10508. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10509. msm_routing_put_voice_mixer),
  10510. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  10511. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10512. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10513. msm_routing_put_voice_mixer),
  10514. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  10515. MSM_BACKEND_DAI_USB_TX,
  10516. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10517. msm_routing_put_voice_mixer),
  10518. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  10519. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  10520. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10521. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  10523. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10524. };
  10525. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  10526. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10527. MSM_BACKEND_DAI_EXTPROC_TX,
  10528. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10529. msm_routing_put_voice_stub_mixer),
  10530. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10531. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10532. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10533. msm_routing_put_voice_stub_mixer),
  10534. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10535. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10536. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10537. msm_routing_put_voice_stub_mixer),
  10538. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10539. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10540. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10541. msm_routing_put_voice_stub_mixer),
  10542. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10543. MSM_BACKEND_DAI_MI2S_TX,
  10544. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10545. msm_routing_put_voice_stub_mixer),
  10546. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10547. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10548. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10549. msm_routing_put_voice_stub_mixer),
  10550. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10551. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10552. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10553. msm_routing_put_voice_stub_mixer),
  10554. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10555. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10556. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10557. msm_routing_put_voice_stub_mixer),
  10558. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10559. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10560. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10561. msm_routing_put_voice_stub_mixer),
  10562. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10563. MSM_BACKEND_DAI_AUXPCM_TX,
  10564. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10565. msm_routing_put_voice_stub_mixer),
  10566. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10567. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10568. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10569. msm_routing_put_voice_stub_mixer),
  10570. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10571. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10572. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10573. msm_routing_put_voice_stub_mixer),
  10574. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10575. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10576. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10577. msm_routing_put_voice_stub_mixer),
  10578. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10579. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10580. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10581. msm_routing_put_voice_stub_mixer),
  10582. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10583. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10584. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10585. msm_routing_put_voice_stub_mixer),
  10586. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10587. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10588. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10589. msm_routing_put_voice_stub_mixer),
  10590. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10591. MSM_BACKEND_DAI_AFE_PCM_TX,
  10592. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10593. msm_routing_put_voice_stub_mixer),
  10594. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10595. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10596. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10597. msm_routing_put_voice_stub_mixer),
  10598. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10599. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10600. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10601. msm_routing_put_voice_stub_mixer),
  10602. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10603. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  10604. 1, 0, msm_routing_get_voice_stub_mixer,
  10605. msm_routing_put_voice_stub_mixer),
  10606. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10607. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  10608. 1, 0, msm_routing_get_voice_stub_mixer,
  10609. msm_routing_put_voice_stub_mixer),
  10610. };
  10611. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  10612. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10613. MSM_BACKEND_DAI_EXTPROC_TX,
  10614. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10615. msm_routing_put_voice_stub_mixer),
  10616. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10617. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10618. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10619. msm_routing_put_voice_stub_mixer),
  10620. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10621. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10622. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10623. msm_routing_put_voice_stub_mixer),
  10624. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10625. MSM_BACKEND_DAI_AUXPCM_TX,
  10626. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10627. msm_routing_put_voice_stub_mixer),
  10628. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10629. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10630. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10631. msm_routing_put_voice_stub_mixer),
  10632. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10633. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10634. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10635. msm_routing_put_voice_stub_mixer),
  10636. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10637. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10638. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10639. msm_routing_put_voice_stub_mixer),
  10640. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10641. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10642. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10643. msm_routing_put_voice_stub_mixer),
  10644. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10645. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10646. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10647. msm_routing_put_voice_stub_mixer),
  10648. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10649. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10650. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10651. msm_routing_put_voice_stub_mixer),
  10652. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10653. MSM_BACKEND_DAI_AFE_PCM_TX,
  10654. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10655. msm_routing_put_voice_stub_mixer),
  10656. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10657. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10658. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10659. msm_routing_put_voice_stub_mixer),
  10660. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10661. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10662. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10663. msm_routing_put_voice_stub_mixer),
  10664. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10665. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10666. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10667. msm_routing_put_voice_stub_mixer),
  10668. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10669. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10670. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10671. msm_routing_put_voice_stub_mixer),
  10672. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10673. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  10674. 1, 0, msm_routing_get_voice_stub_mixer,
  10675. msm_routing_put_voice_stub_mixer),
  10676. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10677. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  10678. 1, 0, msm_routing_get_voice_stub_mixer,
  10679. msm_routing_put_voice_stub_mixer),
  10680. };
  10681. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  10682. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_EXTPROC_TX,
  10684. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10685. msm_routing_put_voice_stub_mixer),
  10686. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10688. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10689. msm_routing_put_voice_stub_mixer),
  10690. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10692. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10693. msm_routing_put_voice_stub_mixer),
  10694. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_AUXPCM_TX,
  10696. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10697. msm_routing_put_voice_stub_mixer),
  10698. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10700. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10701. msm_routing_put_voice_stub_mixer),
  10702. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10704. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10705. msm_routing_put_voice_stub_mixer),
  10706. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10708. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10709. msm_routing_put_voice_stub_mixer),
  10710. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10711. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10712. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10713. msm_routing_put_voice_stub_mixer),
  10714. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10716. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10717. msm_routing_put_voice_stub_mixer),
  10718. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10720. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10721. msm_routing_put_voice_stub_mixer),
  10722. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10723. MSM_BACKEND_DAI_AFE_PCM_TX,
  10724. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10725. msm_routing_put_voice_stub_mixer),
  10726. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10727. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10728. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10729. msm_routing_put_voice_stub_mixer),
  10730. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10732. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10733. msm_routing_put_voice_stub_mixer),
  10734. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10735. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10736. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10737. msm_routing_put_voice_stub_mixer),
  10738. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10740. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10741. msm_routing_put_voice_stub_mixer),
  10742. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10743. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  10744. 1, 0, msm_routing_get_voice_stub_mixer,
  10745. msm_routing_put_voice_stub_mixer),
  10746. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10747. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  10748. 1, 0, msm_routing_get_voice_stub_mixer,
  10749. msm_routing_put_voice_stub_mixer),
  10750. };
  10751. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  10752. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  10753. MSM_BACKEND_DAI_PRI_I2S_TX,
  10754. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10755. msm_routing_put_voice_mixer),
  10756. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  10757. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10758. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10759. msm_routing_put_voice_mixer),
  10760. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  10761. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10762. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  10763. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10764. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  10765. MSM_BACKEND_DAI_AFE_PCM_TX,
  10766. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10767. msm_routing_put_voice_mixer),
  10768. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10769. MSM_BACKEND_DAI_AUXPCM_TX,
  10770. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10771. msm_routing_put_voice_mixer),
  10772. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10773. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10774. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10775. msm_routing_put_voice_mixer),
  10776. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10777. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10778. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10779. msm_routing_put_voice_mixer),
  10780. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10781. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10782. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10783. msm_routing_put_voice_mixer),
  10784. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10785. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10786. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10787. msm_routing_put_voice_mixer),
  10788. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  10789. MSM_BACKEND_DAI_MI2S_TX,
  10790. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10791. msm_routing_put_voice_mixer),
  10792. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10793. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10794. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10795. msm_routing_put_voice_mixer),
  10796. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10797. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10798. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10799. msm_routing_put_voice_mixer),
  10800. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10801. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10802. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10803. msm_routing_put_voice_mixer),
  10804. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  10805. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10806. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10807. msm_routing_put_voice_mixer),
  10808. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  10809. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10810. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10811. msm_routing_put_voice_mixer),
  10812. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  10813. MSM_BACKEND_DAI_USB_TX,
  10814. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10815. msm_routing_put_voice_mixer),
  10816. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  10817. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  10818. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10819. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  10821. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10822. };
  10823. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  10824. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10825. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10826. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10827. msm_routing_put_port_mixer),
  10828. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10829. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10830. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10831. msm_routing_put_port_mixer),
  10832. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10833. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10834. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10835. msm_routing_put_port_mixer),
  10836. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10837. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10838. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10839. msm_routing_put_port_mixer),
  10840. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10841. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10842. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10843. msm_routing_put_port_mixer),
  10844. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10845. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10846. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10847. msm_routing_put_port_mixer),
  10848. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10849. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10850. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10851. msm_routing_put_port_mixer),
  10852. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10853. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10854. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10855. msm_routing_put_port_mixer),
  10856. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10857. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10858. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10859. msm_routing_put_port_mixer),
  10860. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10861. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10862. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10863. msm_routing_put_port_mixer),
  10864. };
  10865. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  10866. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10868. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10869. msm_routing_put_port_mixer),
  10870. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10871. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10872. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10873. msm_routing_put_port_mixer),
  10874. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10875. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10876. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10877. msm_routing_put_port_mixer),
  10878. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10880. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10881. msm_routing_put_port_mixer),
  10882. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10883. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10884. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10885. msm_routing_put_port_mixer),
  10886. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10888. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10889. msm_routing_put_port_mixer),
  10890. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10892. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10893. msm_routing_put_port_mixer),
  10894. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10895. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10896. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10897. msm_routing_put_port_mixer),
  10898. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10900. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10901. msm_routing_put_port_mixer),
  10902. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10904. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10905. msm_routing_put_port_mixer),
  10906. };
  10907. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  10908. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10909. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10910. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10911. msm_routing_put_port_mixer),
  10912. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10913. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10914. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10915. msm_routing_put_port_mixer),
  10916. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10917. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10918. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  10919. msm_routing_put_port_mixer),
  10920. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10921. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10922. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10923. msm_routing_put_port_mixer),
  10924. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10925. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10926. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10927. msm_routing_put_port_mixer),
  10928. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10929. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10930. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10931. msm_routing_put_port_mixer),
  10932. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10933. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10934. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10935. msm_routing_put_port_mixer),
  10936. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10937. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10938. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10939. msm_routing_put_port_mixer),
  10940. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10941. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10942. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10943. msm_routing_put_port_mixer),
  10944. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10945. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10946. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10947. msm_routing_put_port_mixer),
  10948. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10950. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10951. msm_routing_put_port_mixer),
  10952. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10954. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10955. msm_routing_put_port_mixer),
  10956. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10958. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10959. msm_routing_put_port_mixer),
  10960. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10962. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10963. msm_routing_put_port_mixer),
  10964. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10965. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10966. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10967. msm_routing_put_port_mixer),
  10968. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10969. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10970. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10971. msm_routing_put_port_mixer),
  10972. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10973. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10974. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10975. msm_routing_put_port_mixer),
  10976. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  10977. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10978. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  10979. msm_routing_put_port_mixer),
  10980. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  10981. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10982. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  10983. msm_routing_put_port_mixer),
  10984. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10986. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  10987. msm_routing_put_port_mixer),
  10988. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  10989. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10990. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  10991. msm_routing_put_port_mixer),
  10992. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  10993. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10994. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  10995. msm_routing_put_port_mixer),
  10996. };
  10997. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  10998. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10999. MSM_BACKEND_DAI_AUXPCM_RX,
  11000. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11001. msm_routing_put_port_mixer),
  11002. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11003. MSM_BACKEND_DAI_AUXPCM_RX,
  11004. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11005. msm_routing_put_port_mixer),
  11006. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11007. MSM_BACKEND_DAI_AUXPCM_RX,
  11008. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11009. msm_routing_put_port_mixer),
  11010. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11011. MSM_BACKEND_DAI_AUXPCM_RX,
  11012. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11013. msm_routing_put_port_mixer),
  11014. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11015. MSM_BACKEND_DAI_AUXPCM_RX,
  11016. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  11017. msm_routing_put_port_mixer),
  11018. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11019. MSM_BACKEND_DAI_AUXPCM_RX,
  11020. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11021. msm_routing_put_port_mixer),
  11022. };
  11023. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  11024. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11025. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11026. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11027. msm_routing_put_port_mixer),
  11028. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11029. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11030. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11031. msm_routing_put_port_mixer),
  11032. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11033. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11034. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11035. msm_routing_put_port_mixer),
  11036. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11037. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11038. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11039. msm_routing_put_port_mixer),
  11040. };
  11041. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  11042. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11043. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11044. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11045. msm_routing_put_port_mixer),
  11046. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11047. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11048. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11049. msm_routing_put_port_mixer),
  11050. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11051. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11052. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11053. msm_routing_put_port_mixer),
  11054. };
  11055. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  11056. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11057. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11058. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11059. msm_routing_put_port_mixer),
  11060. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11061. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11062. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11063. msm_routing_put_port_mixer),
  11064. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11065. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11066. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11067. msm_routing_put_port_mixer),
  11068. };
  11069. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  11070. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11071. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11072. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11073. msm_routing_put_port_mixer),
  11074. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11075. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11076. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11077. msm_routing_put_port_mixer),
  11078. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11079. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11080. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11081. msm_routing_put_port_mixer),
  11082. };
  11083. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  11084. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11085. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11086. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11087. msm_routing_put_port_mixer),
  11088. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11089. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11090. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  11091. msm_routing_put_port_mixer),
  11092. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11093. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11094. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11095. msm_routing_put_port_mixer),
  11096. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11097. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11098. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11099. msm_routing_put_port_mixer),
  11100. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11101. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11102. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11103. msm_routing_put_port_mixer),
  11104. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11105. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11106. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11107. msm_routing_put_port_mixer),
  11108. };
  11109. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  11110. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  11111. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11112. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  11113. msm_routing_put_port_mixer),
  11114. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11115. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11116. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11117. msm_routing_put_port_mixer),
  11118. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  11119. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11120. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  11121. msm_routing_put_port_mixer),
  11122. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  11123. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11124. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  11125. msm_routing_put_port_mixer),
  11126. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  11127. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11128. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  11129. msm_routing_put_port_mixer),
  11130. };
  11131. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  11132. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11134. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11135. msm_routing_put_port_mixer),
  11136. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11137. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11138. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11139. msm_routing_put_port_mixer),
  11140. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11141. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11142. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11143. msm_routing_put_port_mixer),
  11144. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11145. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11146. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11147. msm_routing_put_port_mixer),
  11148. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11149. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11150. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11151. msm_routing_put_port_mixer),
  11152. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11153. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11154. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11155. msm_routing_put_port_mixer),
  11156. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11157. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11158. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11159. msm_routing_put_port_mixer),
  11160. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11161. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11162. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11163. msm_routing_put_port_mixer),
  11164. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11165. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11166. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11167. msm_routing_put_port_mixer),
  11168. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11169. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11170. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11171. msm_routing_put_port_mixer),
  11172. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11173. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11174. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11175. msm_routing_put_port_mixer),
  11176. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11177. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11178. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11179. msm_routing_put_port_mixer),
  11180. };
  11181. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  11182. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11183. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11184. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11185. msm_routing_put_port_mixer),
  11186. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11187. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11188. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11189. msm_routing_put_port_mixer),
  11190. };
  11191. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  11192. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11193. MSM_BACKEND_DAI_AFE_PCM_RX,
  11194. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11195. msm_routing_put_port_mixer),
  11196. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11197. MSM_BACKEND_DAI_AFE_PCM_RX,
  11198. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11199. msm_routing_put_port_mixer),
  11200. };
  11201. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  11202. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_HDMI_RX,
  11204. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11205. msm_routing_put_port_mixer),
  11206. };
  11207. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  11208. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11209. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11210. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11211. msm_routing_put_port_mixer),
  11212. };
  11213. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  11214. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11216. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11217. msm_routing_put_port_mixer),
  11218. };
  11219. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  11220. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11221. MSM_BACKEND_DAI_SEC_I2S_RX,
  11222. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11223. msm_routing_put_port_mixer),
  11224. };
  11225. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  11226. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11227. MSM_BACKEND_DAI_MI2S_RX,
  11228. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11229. msm_routing_put_port_mixer),
  11230. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11231. MSM_BACKEND_DAI_MI2S_RX,
  11232. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11233. msm_routing_put_port_mixer),
  11234. };
  11235. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  11236. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11237. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11238. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11239. msm_routing_put_port_mixer),
  11240. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11241. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11242. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11243. msm_routing_put_port_mixer),
  11244. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11245. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11246. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11247. msm_routing_put_port_mixer),
  11248. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11249. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11250. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11251. msm_routing_put_port_mixer),
  11252. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11253. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11254. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11255. msm_routing_put_port_mixer),
  11256. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11257. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11258. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11259. msm_routing_put_port_mixer),
  11260. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11261. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11262. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11263. msm_routing_put_port_mixer),
  11264. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11265. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11266. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11267. msm_routing_put_port_mixer),
  11268. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11269. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11270. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11271. msm_routing_put_port_mixer),
  11272. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11273. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11274. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11275. msm_routing_put_port_mixer),
  11276. };
  11277. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  11278. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11279. MSM_BACKEND_DAI_USB_RX,
  11280. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  11281. msm_routing_put_port_mixer),
  11282. };
  11283. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  11284. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11285. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11286. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11287. msm_routing_put_port_mixer),
  11288. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11289. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11290. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11291. msm_routing_put_port_mixer),
  11292. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11293. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11294. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11295. msm_routing_put_port_mixer),
  11296. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11297. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11298. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11299. msm_routing_put_port_mixer),
  11300. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11301. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11302. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11303. msm_routing_put_port_mixer),
  11304. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11306. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11307. msm_routing_put_port_mixer),
  11308. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11309. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11310. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11311. msm_routing_put_port_mixer),
  11312. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11313. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11314. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11315. msm_routing_put_port_mixer),
  11316. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11318. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11319. msm_routing_put_port_mixer),
  11320. };
  11321. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  11322. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11323. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11324. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11325. msm_routing_put_port_mixer),
  11326. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11327. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11328. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11329. msm_routing_put_port_mixer),
  11330. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11331. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11332. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11333. msm_routing_put_port_mixer),
  11334. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11335. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11336. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11337. msm_routing_put_port_mixer),
  11338. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11339. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11340. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11341. msm_routing_put_port_mixer),
  11342. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11343. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11344. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11345. msm_routing_put_port_mixer),
  11346. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11347. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11348. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11349. msm_routing_put_port_mixer),
  11350. };
  11351. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  11352. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11353. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11354. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11355. msm_routing_get_port_mixer,
  11356. msm_routing_put_port_mixer),
  11357. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11359. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11360. msm_routing_get_port_mixer,
  11361. msm_routing_put_port_mixer),
  11362. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11363. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11364. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11365. msm_routing_get_port_mixer,
  11366. msm_routing_put_port_mixer),
  11367. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11369. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11370. msm_routing_get_port_mixer,
  11371. msm_routing_put_port_mixer),
  11372. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11373. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11374. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11375. msm_routing_get_port_mixer,
  11376. msm_routing_put_port_mixer),
  11377. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11379. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11380. msm_routing_get_port_mixer,
  11381. msm_routing_put_port_mixer),
  11382. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11383. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11384. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11385. msm_routing_get_port_mixer,
  11386. msm_routing_put_port_mixer),
  11387. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11389. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11390. msm_routing_get_port_mixer,
  11391. msm_routing_put_port_mixer),
  11392. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11393. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11394. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11395. msm_routing_get_port_mixer,
  11396. msm_routing_put_port_mixer),
  11397. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11399. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11400. msm_routing_get_port_mixer,
  11401. msm_routing_put_port_mixer),
  11402. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11403. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11404. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11405. msm_routing_get_port_mixer,
  11406. msm_routing_put_port_mixer),
  11407. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11409. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11410. msm_routing_get_port_mixer,
  11411. msm_routing_put_port_mixer),
  11412. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11414. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11415. msm_routing_get_port_mixer,
  11416. msm_routing_put_port_mixer),
  11417. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11419. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11420. msm_routing_get_port_mixer,
  11421. msm_routing_put_port_mixer),
  11422. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11423. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11424. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11425. msm_routing_get_port_mixer,
  11426. msm_routing_put_port_mixer),
  11427. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11428. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11429. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11430. msm_routing_get_port_mixer,
  11431. msm_routing_put_port_mixer),
  11432. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11433. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11434. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11435. msm_routing_get_port_mixer,
  11436. msm_routing_put_port_mixer),
  11437. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11439. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11440. msm_routing_get_port_mixer,
  11441. msm_routing_put_port_mixer),
  11442. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11443. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11444. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11445. msm_routing_get_port_mixer,
  11446. msm_routing_put_port_mixer),
  11447. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11449. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11450. msm_routing_get_port_mixer,
  11451. msm_routing_put_port_mixer),
  11452. };
  11453. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  11454. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11455. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11456. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11457. msm_routing_get_port_mixer,
  11458. msm_routing_put_port_mixer),
  11459. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11461. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11462. msm_routing_get_port_mixer,
  11463. msm_routing_put_port_mixer),
  11464. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11465. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11466. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11467. msm_routing_get_port_mixer,
  11468. msm_routing_put_port_mixer),
  11469. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11471. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11472. msm_routing_get_port_mixer,
  11473. msm_routing_put_port_mixer),
  11474. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11475. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11476. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11477. msm_routing_get_port_mixer,
  11478. msm_routing_put_port_mixer),
  11479. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11481. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11482. msm_routing_get_port_mixer,
  11483. msm_routing_put_port_mixer),
  11484. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11485. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11486. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11487. msm_routing_get_port_mixer,
  11488. msm_routing_put_port_mixer),
  11489. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11491. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11492. msm_routing_get_port_mixer,
  11493. msm_routing_put_port_mixer),
  11494. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11495. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11496. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11497. msm_routing_get_port_mixer,
  11498. msm_routing_put_port_mixer),
  11499. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11501. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11502. msm_routing_get_port_mixer,
  11503. msm_routing_put_port_mixer),
  11504. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11505. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11506. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11507. msm_routing_get_port_mixer,
  11508. msm_routing_put_port_mixer),
  11509. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11510. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11511. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11512. msm_routing_get_port_mixer,
  11513. msm_routing_put_port_mixer),
  11514. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11515. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11516. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11517. msm_routing_get_port_mixer,
  11518. msm_routing_put_port_mixer),
  11519. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11521. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11522. msm_routing_get_port_mixer,
  11523. msm_routing_put_port_mixer),
  11524. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11525. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11526. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11527. msm_routing_get_port_mixer,
  11528. msm_routing_put_port_mixer),
  11529. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11531. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11532. msm_routing_get_port_mixer,
  11533. msm_routing_put_port_mixer),
  11534. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11535. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11536. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11537. msm_routing_get_port_mixer,
  11538. msm_routing_put_port_mixer),
  11539. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11541. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11542. msm_routing_get_port_mixer,
  11543. msm_routing_put_port_mixer),
  11544. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11545. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11546. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11547. msm_routing_get_port_mixer,
  11548. msm_routing_put_port_mixer),
  11549. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11551. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11552. msm_routing_get_port_mixer,
  11553. msm_routing_put_port_mixer),
  11554. };
  11555. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  11556. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11557. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11558. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11559. msm_routing_get_port_mixer,
  11560. msm_routing_put_port_mixer),
  11561. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11563. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11564. msm_routing_get_port_mixer,
  11565. msm_routing_put_port_mixer),
  11566. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11567. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11568. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11569. msm_routing_get_port_mixer,
  11570. msm_routing_put_port_mixer),
  11571. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11573. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11574. msm_routing_get_port_mixer,
  11575. msm_routing_put_port_mixer),
  11576. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11577. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11578. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11579. msm_routing_get_port_mixer,
  11580. msm_routing_put_port_mixer),
  11581. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11583. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11584. msm_routing_get_port_mixer,
  11585. msm_routing_put_port_mixer),
  11586. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11587. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11588. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11589. msm_routing_get_port_mixer,
  11590. msm_routing_put_port_mixer),
  11591. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11593. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11594. msm_routing_get_port_mixer,
  11595. msm_routing_put_port_mixer),
  11596. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11597. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11598. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11599. msm_routing_get_port_mixer,
  11600. msm_routing_put_port_mixer),
  11601. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11603. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11604. msm_routing_get_port_mixer,
  11605. msm_routing_put_port_mixer),
  11606. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11607. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11608. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11609. msm_routing_get_port_mixer,
  11610. msm_routing_put_port_mixer),
  11611. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11613. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11614. msm_routing_get_port_mixer,
  11615. msm_routing_put_port_mixer),
  11616. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11618. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11619. msm_routing_get_port_mixer,
  11620. msm_routing_put_port_mixer),
  11621. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11623. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11624. msm_routing_get_port_mixer,
  11625. msm_routing_put_port_mixer),
  11626. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11627. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11628. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11629. msm_routing_get_port_mixer,
  11630. msm_routing_put_port_mixer),
  11631. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11633. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11634. msm_routing_get_port_mixer,
  11635. msm_routing_put_port_mixer),
  11636. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11637. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11638. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11639. msm_routing_get_port_mixer,
  11640. msm_routing_put_port_mixer),
  11641. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11643. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11644. msm_routing_get_port_mixer,
  11645. msm_routing_put_port_mixer),
  11646. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11647. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11648. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11649. msm_routing_get_port_mixer,
  11650. msm_routing_put_port_mixer),
  11651. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11652. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11653. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11654. msm_routing_get_port_mixer,
  11655. msm_routing_put_port_mixer),
  11656. };
  11657. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  11658. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11659. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11660. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11661. msm_routing_get_port_mixer,
  11662. msm_routing_put_port_mixer),
  11663. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11664. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11665. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11666. msm_routing_get_port_mixer,
  11667. msm_routing_put_port_mixer),
  11668. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11669. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11670. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11671. msm_routing_get_port_mixer,
  11672. msm_routing_put_port_mixer),
  11673. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11675. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11676. msm_routing_get_port_mixer,
  11677. msm_routing_put_port_mixer),
  11678. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11680. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11681. msm_routing_get_port_mixer,
  11682. msm_routing_put_port_mixer),
  11683. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11685. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11686. msm_routing_get_port_mixer,
  11687. msm_routing_put_port_mixer),
  11688. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11689. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11690. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11691. msm_routing_get_port_mixer,
  11692. msm_routing_put_port_mixer),
  11693. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11695. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11696. msm_routing_get_port_mixer,
  11697. msm_routing_put_port_mixer),
  11698. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11699. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11700. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11701. msm_routing_get_port_mixer,
  11702. msm_routing_put_port_mixer),
  11703. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11705. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11706. msm_routing_get_port_mixer,
  11707. msm_routing_put_port_mixer),
  11708. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11709. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11710. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11711. msm_routing_get_port_mixer,
  11712. msm_routing_put_port_mixer),
  11713. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11715. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11716. msm_routing_get_port_mixer,
  11717. msm_routing_put_port_mixer),
  11718. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11719. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11720. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11721. msm_routing_get_port_mixer,
  11722. msm_routing_put_port_mixer),
  11723. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11725. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11726. msm_routing_get_port_mixer,
  11727. msm_routing_put_port_mixer),
  11728. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11729. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11730. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11731. msm_routing_get_port_mixer,
  11732. msm_routing_put_port_mixer),
  11733. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11735. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11736. msm_routing_get_port_mixer,
  11737. msm_routing_put_port_mixer),
  11738. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11739. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11740. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11741. msm_routing_get_port_mixer,
  11742. msm_routing_put_port_mixer),
  11743. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11745. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11746. msm_routing_get_port_mixer,
  11747. msm_routing_put_port_mixer),
  11748. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11749. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11750. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11751. msm_routing_get_port_mixer,
  11752. msm_routing_put_port_mixer),
  11753. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11755. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11756. msm_routing_get_port_mixer,
  11757. msm_routing_put_port_mixer),
  11758. };
  11759. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  11760. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11761. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11762. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11763. msm_routing_get_port_mixer,
  11764. msm_routing_put_port_mixer),
  11765. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11767. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11768. msm_routing_get_port_mixer,
  11769. msm_routing_put_port_mixer),
  11770. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11771. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11772. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11773. msm_routing_get_port_mixer,
  11774. msm_routing_put_port_mixer),
  11775. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11777. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11778. msm_routing_get_port_mixer,
  11779. msm_routing_put_port_mixer),
  11780. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11781. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11782. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11783. msm_routing_get_port_mixer,
  11784. msm_routing_put_port_mixer),
  11785. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11787. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11788. msm_routing_get_port_mixer,
  11789. msm_routing_put_port_mixer),
  11790. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11791. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11792. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11793. msm_routing_get_port_mixer,
  11794. msm_routing_put_port_mixer),
  11795. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11797. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11798. msm_routing_get_port_mixer,
  11799. msm_routing_put_port_mixer),
  11800. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11801. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11802. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11803. msm_routing_get_port_mixer,
  11804. msm_routing_put_port_mixer),
  11805. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11807. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11808. msm_routing_get_port_mixer,
  11809. msm_routing_put_port_mixer),
  11810. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11811. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11812. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11813. msm_routing_get_port_mixer,
  11814. msm_routing_put_port_mixer),
  11815. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11817. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  11818. msm_routing_get_port_mixer,
  11819. msm_routing_put_port_mixer),
  11820. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11821. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11822. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11823. msm_routing_get_port_mixer,
  11824. msm_routing_put_port_mixer),
  11825. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11827. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11828. msm_routing_get_port_mixer,
  11829. msm_routing_put_port_mixer),
  11830. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11831. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11832. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11833. msm_routing_get_port_mixer,
  11834. msm_routing_put_port_mixer),
  11835. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11837. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11838. msm_routing_get_port_mixer,
  11839. msm_routing_put_port_mixer),
  11840. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11841. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11842. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11843. msm_routing_get_port_mixer,
  11844. msm_routing_put_port_mixer),
  11845. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11847. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11848. msm_routing_get_port_mixer,
  11849. msm_routing_put_port_mixer),
  11850. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11851. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11852. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11853. msm_routing_get_port_mixer,
  11854. msm_routing_put_port_mixer),
  11855. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11857. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11858. msm_routing_get_port_mixer,
  11859. msm_routing_put_port_mixer),
  11860. };
  11861. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  11862. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11863. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11864. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11865. msm_routing_get_port_mixer,
  11866. msm_routing_put_port_mixer),
  11867. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11869. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11870. msm_routing_get_port_mixer,
  11871. msm_routing_put_port_mixer),
  11872. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11874. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11875. msm_routing_get_port_mixer,
  11876. msm_routing_put_port_mixer),
  11877. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11879. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11880. msm_routing_get_port_mixer,
  11881. msm_routing_put_port_mixer),
  11882. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11883. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11884. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11885. msm_routing_get_port_mixer,
  11886. msm_routing_put_port_mixer),
  11887. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11889. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11890. msm_routing_get_port_mixer,
  11891. msm_routing_put_port_mixer),
  11892. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11893. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11894. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11895. msm_routing_get_port_mixer,
  11896. msm_routing_put_port_mixer),
  11897. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11899. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11900. msm_routing_get_port_mixer,
  11901. msm_routing_put_port_mixer),
  11902. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11903. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11904. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11905. msm_routing_get_port_mixer,
  11906. msm_routing_put_port_mixer),
  11907. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11909. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11910. msm_routing_get_port_mixer,
  11911. msm_routing_put_port_mixer),
  11912. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11914. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11915. msm_routing_get_port_mixer,
  11916. msm_routing_put_port_mixer),
  11917. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11919. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  11920. msm_routing_get_port_mixer,
  11921. msm_routing_put_port_mixer),
  11922. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11923. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11924. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11925. msm_routing_get_port_mixer,
  11926. msm_routing_put_port_mixer),
  11927. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11929. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11930. msm_routing_get_port_mixer,
  11931. msm_routing_put_port_mixer),
  11932. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11933. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11934. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11935. msm_routing_get_port_mixer,
  11936. msm_routing_put_port_mixer),
  11937. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11939. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11940. msm_routing_get_port_mixer,
  11941. msm_routing_put_port_mixer),
  11942. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11943. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11944. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11945. msm_routing_get_port_mixer,
  11946. msm_routing_put_port_mixer),
  11947. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11949. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11950. msm_routing_get_port_mixer,
  11951. msm_routing_put_port_mixer),
  11952. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11954. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11955. msm_routing_get_port_mixer,
  11956. msm_routing_put_port_mixer),
  11957. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11959. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11960. msm_routing_get_port_mixer,
  11961. msm_routing_put_port_mixer),
  11962. };
  11963. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  11964. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11965. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11966. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11967. msm_routing_get_port_mixer,
  11968. msm_routing_put_port_mixer),
  11969. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11971. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11972. msm_routing_get_port_mixer,
  11973. msm_routing_put_port_mixer),
  11974. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11976. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11977. msm_routing_get_port_mixer,
  11978. msm_routing_put_port_mixer),
  11979. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11981. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11982. msm_routing_get_port_mixer,
  11983. msm_routing_put_port_mixer),
  11984. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11985. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11986. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11987. msm_routing_get_port_mixer,
  11988. msm_routing_put_port_mixer),
  11989. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11991. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11992. msm_routing_get_port_mixer,
  11993. msm_routing_put_port_mixer),
  11994. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11995. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11996. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11997. msm_routing_get_port_mixer,
  11998. msm_routing_put_port_mixer),
  11999. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12001. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12002. msm_routing_get_port_mixer,
  12003. msm_routing_put_port_mixer),
  12004. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12005. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12006. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12007. msm_routing_get_port_mixer,
  12008. msm_routing_put_port_mixer),
  12009. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12011. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12012. msm_routing_get_port_mixer,
  12013. msm_routing_put_port_mixer),
  12014. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12015. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12016. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12017. msm_routing_get_port_mixer,
  12018. msm_routing_put_port_mixer),
  12019. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12021. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12022. msm_routing_get_port_mixer,
  12023. msm_routing_put_port_mixer),
  12024. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12025. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12026. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12027. msm_routing_get_port_mixer,
  12028. msm_routing_put_port_mixer),
  12029. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12031. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12032. msm_routing_get_port_mixer,
  12033. msm_routing_put_port_mixer),
  12034. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12035. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12036. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12037. msm_routing_get_port_mixer,
  12038. msm_routing_put_port_mixer),
  12039. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12041. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12042. msm_routing_get_port_mixer,
  12043. msm_routing_put_port_mixer),
  12044. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12045. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12046. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12047. msm_routing_get_port_mixer,
  12048. msm_routing_put_port_mixer),
  12049. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12051. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12052. msm_routing_get_port_mixer,
  12053. msm_routing_put_port_mixer),
  12054. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12055. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12056. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12057. msm_routing_get_port_mixer,
  12058. msm_routing_put_port_mixer),
  12059. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12060. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12061. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12062. msm_routing_get_port_mixer,
  12063. msm_routing_put_port_mixer),
  12064. };
  12065. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  12066. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12068. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12069. msm_routing_get_port_mixer,
  12070. msm_routing_put_port_mixer),
  12071. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12073. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12074. msm_routing_get_port_mixer,
  12075. msm_routing_put_port_mixer),
  12076. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12077. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12078. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12079. msm_routing_get_port_mixer,
  12080. msm_routing_put_port_mixer),
  12081. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12083. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12084. msm_routing_get_port_mixer,
  12085. msm_routing_put_port_mixer),
  12086. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12087. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12088. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12089. msm_routing_get_port_mixer,
  12090. msm_routing_put_port_mixer),
  12091. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12093. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12094. msm_routing_get_port_mixer,
  12095. msm_routing_put_port_mixer),
  12096. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12097. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12098. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12099. msm_routing_get_port_mixer,
  12100. msm_routing_put_port_mixer),
  12101. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12103. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12104. msm_routing_get_port_mixer,
  12105. msm_routing_put_port_mixer),
  12106. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12108. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12109. msm_routing_get_port_mixer,
  12110. msm_routing_put_port_mixer),
  12111. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12113. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12114. msm_routing_get_port_mixer,
  12115. msm_routing_put_port_mixer),
  12116. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12117. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12118. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12119. msm_routing_get_port_mixer,
  12120. msm_routing_put_port_mixer),
  12121. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12123. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12124. msm_routing_get_port_mixer,
  12125. msm_routing_put_port_mixer),
  12126. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12127. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12128. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12129. msm_routing_get_port_mixer,
  12130. msm_routing_put_port_mixer),
  12131. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12133. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12134. msm_routing_get_port_mixer,
  12135. msm_routing_put_port_mixer),
  12136. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12137. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12138. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12139. msm_routing_get_port_mixer,
  12140. msm_routing_put_port_mixer),
  12141. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12143. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12144. msm_routing_get_port_mixer,
  12145. msm_routing_put_port_mixer),
  12146. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12148. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12149. msm_routing_get_port_mixer,
  12150. msm_routing_put_port_mixer),
  12151. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12152. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12153. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12154. msm_routing_get_port_mixer,
  12155. msm_routing_put_port_mixer),
  12156. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12157. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12158. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12159. msm_routing_get_port_mixer,
  12160. msm_routing_put_port_mixer),
  12161. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12163. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12164. msm_routing_get_port_mixer,
  12165. msm_routing_put_port_mixer),
  12166. };
  12167. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  12168. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12169. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12170. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12171. msm_routing_get_port_mixer,
  12172. msm_routing_put_port_mixer),
  12173. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12175. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12176. msm_routing_get_port_mixer,
  12177. msm_routing_put_port_mixer),
  12178. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12180. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12181. msm_routing_get_port_mixer,
  12182. msm_routing_put_port_mixer),
  12183. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12185. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12186. msm_routing_get_port_mixer,
  12187. msm_routing_put_port_mixer),
  12188. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12189. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12190. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12191. msm_routing_get_port_mixer,
  12192. msm_routing_put_port_mixer),
  12193. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12195. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12196. msm_routing_get_port_mixer,
  12197. msm_routing_put_port_mixer),
  12198. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12199. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12200. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12201. msm_routing_get_port_mixer,
  12202. msm_routing_put_port_mixer),
  12203. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12205. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12206. msm_routing_get_port_mixer,
  12207. msm_routing_put_port_mixer),
  12208. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12209. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12210. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12211. msm_routing_get_port_mixer,
  12212. msm_routing_put_port_mixer),
  12213. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12215. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12216. msm_routing_get_port_mixer,
  12217. msm_routing_put_port_mixer),
  12218. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12219. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12220. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12221. msm_routing_get_port_mixer,
  12222. msm_routing_put_port_mixer),
  12223. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12225. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12226. msm_routing_get_port_mixer,
  12227. msm_routing_put_port_mixer),
  12228. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12229. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12230. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12231. msm_routing_get_port_mixer,
  12232. msm_routing_put_port_mixer),
  12233. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12235. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12236. msm_routing_get_port_mixer,
  12237. msm_routing_put_port_mixer),
  12238. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12239. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12240. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12241. msm_routing_get_port_mixer,
  12242. msm_routing_put_port_mixer),
  12243. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12245. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12246. msm_routing_get_port_mixer,
  12247. msm_routing_put_port_mixer),
  12248. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12250. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12251. msm_routing_get_port_mixer,
  12252. msm_routing_put_port_mixer),
  12253. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12255. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12256. msm_routing_get_port_mixer,
  12257. msm_routing_put_port_mixer),
  12258. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12259. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12260. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12261. msm_routing_get_port_mixer,
  12262. msm_routing_put_port_mixer),
  12263. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12265. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12266. msm_routing_get_port_mixer,
  12267. msm_routing_put_port_mixer),
  12268. };
  12269. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  12270. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12271. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12272. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12273. msm_routing_get_port_mixer,
  12274. msm_routing_put_port_mixer),
  12275. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12277. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12278. msm_routing_get_port_mixer,
  12279. msm_routing_put_port_mixer),
  12280. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12281. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12282. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12283. msm_routing_get_port_mixer,
  12284. msm_routing_put_port_mixer),
  12285. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12287. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12288. msm_routing_get_port_mixer,
  12289. msm_routing_put_port_mixer),
  12290. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12291. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12292. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12293. msm_routing_get_port_mixer,
  12294. msm_routing_put_port_mixer),
  12295. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12297. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12298. msm_routing_get_port_mixer,
  12299. msm_routing_put_port_mixer),
  12300. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12301. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12302. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12303. msm_routing_get_port_mixer,
  12304. msm_routing_put_port_mixer),
  12305. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12307. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12308. msm_routing_get_port_mixer,
  12309. msm_routing_put_port_mixer),
  12310. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12311. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12312. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12313. msm_routing_get_port_mixer,
  12314. msm_routing_put_port_mixer),
  12315. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12317. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12318. msm_routing_get_port_mixer,
  12319. msm_routing_put_port_mixer),
  12320. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12321. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12322. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12323. msm_routing_get_port_mixer,
  12324. msm_routing_put_port_mixer),
  12325. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12327. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12328. msm_routing_get_port_mixer,
  12329. msm_routing_put_port_mixer),
  12330. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12331. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12332. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12333. msm_routing_get_port_mixer,
  12334. msm_routing_put_port_mixer),
  12335. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12337. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12338. msm_routing_get_port_mixer,
  12339. msm_routing_put_port_mixer),
  12340. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12342. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12343. msm_routing_get_port_mixer,
  12344. msm_routing_put_port_mixer),
  12345. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12347. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12348. msm_routing_get_port_mixer,
  12349. msm_routing_put_port_mixer),
  12350. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12351. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12352. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12353. msm_routing_get_port_mixer,
  12354. msm_routing_put_port_mixer),
  12355. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12357. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12358. msm_routing_get_port_mixer,
  12359. msm_routing_put_port_mixer),
  12360. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12361. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12362. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12363. msm_routing_get_port_mixer,
  12364. msm_routing_put_port_mixer),
  12365. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12367. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12368. msm_routing_get_port_mixer,
  12369. msm_routing_put_port_mixer),
  12370. };
  12371. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  12372. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12374. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12375. msm_routing_get_port_mixer,
  12376. msm_routing_put_port_mixer),
  12377. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12379. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12380. msm_routing_get_port_mixer,
  12381. msm_routing_put_port_mixer),
  12382. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12383. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12384. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12385. msm_routing_get_port_mixer,
  12386. msm_routing_put_port_mixer),
  12387. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12389. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12390. msm_routing_get_port_mixer,
  12391. msm_routing_put_port_mixer),
  12392. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12393. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12394. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12395. msm_routing_get_port_mixer,
  12396. msm_routing_put_port_mixer),
  12397. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12398. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12399. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12400. msm_routing_get_port_mixer,
  12401. msm_routing_put_port_mixer),
  12402. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12403. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12404. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12405. msm_routing_get_port_mixer,
  12406. msm_routing_put_port_mixer),
  12407. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12409. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12410. msm_routing_get_port_mixer,
  12411. msm_routing_put_port_mixer),
  12412. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12413. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12414. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12415. msm_routing_get_port_mixer,
  12416. msm_routing_put_port_mixer),
  12417. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12419. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12420. msm_routing_get_port_mixer,
  12421. msm_routing_put_port_mixer),
  12422. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12423. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12424. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12425. msm_routing_get_port_mixer,
  12426. msm_routing_put_port_mixer),
  12427. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12429. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12430. msm_routing_get_port_mixer,
  12431. msm_routing_put_port_mixer),
  12432. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12433. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12434. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12435. msm_routing_get_port_mixer,
  12436. msm_routing_put_port_mixer),
  12437. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12439. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12440. msm_routing_get_port_mixer,
  12441. msm_routing_put_port_mixer),
  12442. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12443. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12444. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12445. msm_routing_get_port_mixer,
  12446. msm_routing_put_port_mixer),
  12447. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12449. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12450. msm_routing_get_port_mixer,
  12451. msm_routing_put_port_mixer),
  12452. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12453. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12454. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12455. msm_routing_get_port_mixer,
  12456. msm_routing_put_port_mixer),
  12457. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12459. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12460. msm_routing_get_port_mixer,
  12461. msm_routing_put_port_mixer),
  12462. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12463. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12464. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12465. msm_routing_get_port_mixer,
  12466. msm_routing_put_port_mixer),
  12467. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12469. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12470. msm_routing_get_port_mixer,
  12471. msm_routing_put_port_mixer),
  12472. };
  12473. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  12474. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12475. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12476. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12477. msm_routing_get_port_mixer,
  12478. msm_routing_put_port_mixer),
  12479. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12481. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12482. msm_routing_get_port_mixer,
  12483. msm_routing_put_port_mixer),
  12484. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12485. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12486. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12487. msm_routing_get_port_mixer,
  12488. msm_routing_put_port_mixer),
  12489. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12491. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12492. msm_routing_get_port_mixer,
  12493. msm_routing_put_port_mixer),
  12494. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12495. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12496. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12497. msm_routing_get_port_mixer,
  12498. msm_routing_put_port_mixer),
  12499. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12501. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12502. msm_routing_get_port_mixer,
  12503. msm_routing_put_port_mixer),
  12504. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12505. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12506. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12507. msm_routing_get_port_mixer,
  12508. msm_routing_put_port_mixer),
  12509. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12511. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12512. msm_routing_get_port_mixer,
  12513. msm_routing_put_port_mixer),
  12514. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12515. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12516. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12517. msm_routing_get_port_mixer,
  12518. msm_routing_put_port_mixer),
  12519. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12521. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12522. msm_routing_get_port_mixer,
  12523. msm_routing_put_port_mixer),
  12524. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12525. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12526. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12527. msm_routing_get_port_mixer,
  12528. msm_routing_put_port_mixer),
  12529. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12531. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12532. msm_routing_get_port_mixer,
  12533. msm_routing_put_port_mixer),
  12534. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12535. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12536. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12537. msm_routing_get_port_mixer,
  12538. msm_routing_put_port_mixer),
  12539. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12541. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12542. msm_routing_get_port_mixer,
  12543. msm_routing_put_port_mixer),
  12544. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12545. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12546. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12547. msm_routing_get_port_mixer,
  12548. msm_routing_put_port_mixer),
  12549. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12551. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12552. msm_routing_get_port_mixer,
  12553. msm_routing_put_port_mixer),
  12554. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12556. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12557. msm_routing_get_port_mixer,
  12558. msm_routing_put_port_mixer),
  12559. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12560. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12561. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12562. msm_routing_get_port_mixer,
  12563. msm_routing_put_port_mixer),
  12564. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12565. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12566. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12567. msm_routing_get_port_mixer,
  12568. msm_routing_put_port_mixer),
  12569. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12571. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12572. msm_routing_get_port_mixer,
  12573. msm_routing_put_port_mixer),
  12574. };
  12575. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  12576. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12577. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12578. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12579. msm_routing_get_port_mixer,
  12580. msm_routing_put_port_mixer),
  12581. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12583. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12584. msm_routing_get_port_mixer,
  12585. msm_routing_put_port_mixer),
  12586. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12588. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12589. msm_routing_get_port_mixer,
  12590. msm_routing_put_port_mixer),
  12591. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12593. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12594. msm_routing_get_port_mixer,
  12595. msm_routing_put_port_mixer),
  12596. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12597. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12598. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12599. msm_routing_get_port_mixer,
  12600. msm_routing_put_port_mixer),
  12601. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12603. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12604. msm_routing_get_port_mixer,
  12605. msm_routing_put_port_mixer),
  12606. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12608. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12609. msm_routing_get_port_mixer,
  12610. msm_routing_put_port_mixer),
  12611. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12613. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12614. msm_routing_get_port_mixer,
  12615. msm_routing_put_port_mixer),
  12616. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12617. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12618. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12619. msm_routing_get_port_mixer,
  12620. msm_routing_put_port_mixer),
  12621. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12623. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12624. msm_routing_get_port_mixer,
  12625. msm_routing_put_port_mixer),
  12626. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12628. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12629. msm_routing_get_port_mixer,
  12630. msm_routing_put_port_mixer),
  12631. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12633. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12634. msm_routing_get_port_mixer,
  12635. msm_routing_put_port_mixer),
  12636. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12637. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12638. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12639. msm_routing_get_port_mixer,
  12640. msm_routing_put_port_mixer),
  12641. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12643. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12644. msm_routing_get_port_mixer,
  12645. msm_routing_put_port_mixer),
  12646. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12647. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12648. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12649. msm_routing_get_port_mixer,
  12650. msm_routing_put_port_mixer),
  12651. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12653. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12654. msm_routing_get_port_mixer,
  12655. msm_routing_put_port_mixer),
  12656. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12657. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12658. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12659. msm_routing_get_port_mixer,
  12660. msm_routing_put_port_mixer),
  12661. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12663. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12664. msm_routing_get_port_mixer,
  12665. msm_routing_put_port_mixer),
  12666. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12667. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12668. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12669. msm_routing_get_port_mixer,
  12670. msm_routing_put_port_mixer),
  12671. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12673. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12674. msm_routing_get_port_mixer,
  12675. msm_routing_put_port_mixer),
  12676. };
  12677. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  12678. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12679. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12680. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12681. msm_routing_get_port_mixer,
  12682. msm_routing_put_port_mixer),
  12683. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12685. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12686. msm_routing_get_port_mixer,
  12687. msm_routing_put_port_mixer),
  12688. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12689. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12690. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12691. msm_routing_get_port_mixer,
  12692. msm_routing_put_port_mixer),
  12693. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12695. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12696. msm_routing_get_port_mixer,
  12697. msm_routing_put_port_mixer),
  12698. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12699. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12700. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12701. msm_routing_get_port_mixer,
  12702. msm_routing_put_port_mixer),
  12703. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12705. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12706. msm_routing_get_port_mixer,
  12707. msm_routing_put_port_mixer),
  12708. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12710. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12711. msm_routing_get_port_mixer,
  12712. msm_routing_put_port_mixer),
  12713. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12715. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12716. msm_routing_get_port_mixer,
  12717. msm_routing_put_port_mixer),
  12718. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12719. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12720. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12721. msm_routing_get_port_mixer,
  12722. msm_routing_put_port_mixer),
  12723. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12725. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12726. msm_routing_get_port_mixer,
  12727. msm_routing_put_port_mixer),
  12728. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12730. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12731. msm_routing_get_port_mixer,
  12732. msm_routing_put_port_mixer),
  12733. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12735. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12736. msm_routing_get_port_mixer,
  12737. msm_routing_put_port_mixer),
  12738. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12739. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12740. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12741. msm_routing_get_port_mixer,
  12742. msm_routing_put_port_mixer),
  12743. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12745. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12746. msm_routing_get_port_mixer,
  12747. msm_routing_put_port_mixer),
  12748. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12750. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12751. msm_routing_get_port_mixer,
  12752. msm_routing_put_port_mixer),
  12753. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12755. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12756. msm_routing_get_port_mixer,
  12757. msm_routing_put_port_mixer),
  12758. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12759. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12760. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12761. msm_routing_get_port_mixer,
  12762. msm_routing_put_port_mixer),
  12763. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12765. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12766. msm_routing_get_port_mixer,
  12767. msm_routing_put_port_mixer),
  12768. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12769. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12770. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12771. msm_routing_get_port_mixer,
  12772. msm_routing_put_port_mixer),
  12773. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12775. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12776. msm_routing_get_port_mixer,
  12777. msm_routing_put_port_mixer),
  12778. };
  12779. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  12780. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12782. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12783. msm_routing_get_port_mixer,
  12784. msm_routing_put_port_mixer),
  12785. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12787. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12788. msm_routing_get_port_mixer,
  12789. msm_routing_put_port_mixer),
  12790. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12791. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12792. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12793. msm_routing_get_port_mixer,
  12794. msm_routing_put_port_mixer),
  12795. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12797. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12798. msm_routing_get_port_mixer,
  12799. msm_routing_put_port_mixer),
  12800. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12802. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12803. msm_routing_get_port_mixer,
  12804. msm_routing_put_port_mixer),
  12805. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12807. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12808. msm_routing_get_port_mixer,
  12809. msm_routing_put_port_mixer),
  12810. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12811. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12812. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12813. msm_routing_get_port_mixer,
  12814. msm_routing_put_port_mixer),
  12815. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12817. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12818. msm_routing_get_port_mixer,
  12819. msm_routing_put_port_mixer),
  12820. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12822. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12823. msm_routing_get_port_mixer,
  12824. msm_routing_put_port_mixer),
  12825. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12827. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12828. msm_routing_get_port_mixer,
  12829. msm_routing_put_port_mixer),
  12830. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12831. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12832. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12833. msm_routing_get_port_mixer,
  12834. msm_routing_put_port_mixer),
  12835. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12837. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12838. msm_routing_get_port_mixer,
  12839. msm_routing_put_port_mixer),
  12840. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12841. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12842. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12843. msm_routing_get_port_mixer,
  12844. msm_routing_put_port_mixer),
  12845. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12847. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12848. msm_routing_get_port_mixer,
  12849. msm_routing_put_port_mixer),
  12850. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12851. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12852. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12853. msm_routing_get_port_mixer,
  12854. msm_routing_put_port_mixer),
  12855. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12857. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12858. msm_routing_get_port_mixer,
  12859. msm_routing_put_port_mixer),
  12860. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12861. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12862. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12863. msm_routing_get_port_mixer,
  12864. msm_routing_put_port_mixer),
  12865. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12867. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12868. msm_routing_get_port_mixer,
  12869. msm_routing_put_port_mixer),
  12870. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12871. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12872. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12873. msm_routing_get_port_mixer,
  12874. msm_routing_put_port_mixer),
  12875. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12876. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12877. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12878. msm_routing_get_port_mixer,
  12879. msm_routing_put_port_mixer),
  12880. };
  12881. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  12882. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12884. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12885. msm_routing_get_port_mixer,
  12886. msm_routing_put_port_mixer),
  12887. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12889. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12890. msm_routing_get_port_mixer,
  12891. msm_routing_put_port_mixer),
  12892. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12894. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12895. msm_routing_get_port_mixer,
  12896. msm_routing_put_port_mixer),
  12897. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12899. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12900. msm_routing_get_port_mixer,
  12901. msm_routing_put_port_mixer),
  12902. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12904. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12905. msm_routing_get_port_mixer,
  12906. msm_routing_put_port_mixer),
  12907. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12908. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12909. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12910. msm_routing_get_port_mixer,
  12911. msm_routing_put_port_mixer),
  12912. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12913. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12914. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12915. msm_routing_get_port_mixer,
  12916. msm_routing_put_port_mixer),
  12917. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12919. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12920. msm_routing_get_port_mixer,
  12921. msm_routing_put_port_mixer),
  12922. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12923. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12924. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12925. msm_routing_get_port_mixer,
  12926. msm_routing_put_port_mixer),
  12927. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12929. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12930. msm_routing_get_port_mixer,
  12931. msm_routing_put_port_mixer),
  12932. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12933. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12934. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12935. msm_routing_get_port_mixer,
  12936. msm_routing_put_port_mixer),
  12937. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12939. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12940. msm_routing_get_port_mixer,
  12941. msm_routing_put_port_mixer),
  12942. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12943. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12944. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12945. msm_routing_get_port_mixer,
  12946. msm_routing_put_port_mixer),
  12947. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12949. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12950. msm_routing_get_port_mixer,
  12951. msm_routing_put_port_mixer),
  12952. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12953. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12954. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12955. msm_routing_get_port_mixer,
  12956. msm_routing_put_port_mixer),
  12957. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12959. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12960. msm_routing_get_port_mixer,
  12961. msm_routing_put_port_mixer),
  12962. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12963. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12964. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12965. msm_routing_get_port_mixer,
  12966. msm_routing_put_port_mixer),
  12967. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12969. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12970. msm_routing_get_port_mixer,
  12971. msm_routing_put_port_mixer),
  12972. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12973. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12974. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12975. msm_routing_get_port_mixer,
  12976. msm_routing_put_port_mixer),
  12977. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12979. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12980. msm_routing_get_port_mixer,
  12981. msm_routing_put_port_mixer),
  12982. };
  12983. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  12984. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12985. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12986. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12987. msm_routing_get_port_mixer,
  12988. msm_routing_put_port_mixer),
  12989. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12991. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12992. msm_routing_get_port_mixer,
  12993. msm_routing_put_port_mixer),
  12994. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12995. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12996. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12997. msm_routing_get_port_mixer,
  12998. msm_routing_put_port_mixer),
  12999. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13001. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13002. msm_routing_get_port_mixer,
  13003. msm_routing_put_port_mixer),
  13004. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13005. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13006. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13007. msm_routing_get_port_mixer,
  13008. msm_routing_put_port_mixer),
  13009. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13011. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13012. msm_routing_get_port_mixer,
  13013. msm_routing_put_port_mixer),
  13014. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13015. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13016. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13017. msm_routing_get_port_mixer,
  13018. msm_routing_put_port_mixer),
  13019. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13021. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13022. msm_routing_get_port_mixer,
  13023. msm_routing_put_port_mixer),
  13024. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13025. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13026. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13027. msm_routing_get_port_mixer,
  13028. msm_routing_put_port_mixer),
  13029. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13031. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13032. msm_routing_get_port_mixer,
  13033. msm_routing_put_port_mixer),
  13034. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13036. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13037. msm_routing_get_port_mixer,
  13038. msm_routing_put_port_mixer),
  13039. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13041. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13042. msm_routing_get_port_mixer,
  13043. msm_routing_put_port_mixer),
  13044. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13045. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13046. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13047. msm_routing_get_port_mixer,
  13048. msm_routing_put_port_mixer),
  13049. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13051. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13052. msm_routing_get_port_mixer,
  13053. msm_routing_put_port_mixer),
  13054. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13056. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13057. msm_routing_get_port_mixer,
  13058. msm_routing_put_port_mixer),
  13059. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13061. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13062. msm_routing_get_port_mixer,
  13063. msm_routing_put_port_mixer),
  13064. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13065. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13066. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13067. msm_routing_get_port_mixer,
  13068. msm_routing_put_port_mixer),
  13069. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13070. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13071. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13072. msm_routing_get_port_mixer,
  13073. msm_routing_put_port_mixer),
  13074. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13076. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13077. msm_routing_get_port_mixer,
  13078. msm_routing_put_port_mixer),
  13079. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13081. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13082. msm_routing_get_port_mixer,
  13083. msm_routing_put_port_mixer),
  13084. };
  13085. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  13086. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13088. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13089. msm_routing_get_port_mixer,
  13090. msm_routing_put_port_mixer),
  13091. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13093. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13094. msm_routing_get_port_mixer,
  13095. msm_routing_put_port_mixer),
  13096. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13097. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13098. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13099. msm_routing_get_port_mixer,
  13100. msm_routing_put_port_mixer),
  13101. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13103. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13104. msm_routing_get_port_mixer,
  13105. msm_routing_put_port_mixer),
  13106. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13107. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13108. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13109. msm_routing_get_port_mixer,
  13110. msm_routing_put_port_mixer),
  13111. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13113. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13114. msm_routing_get_port_mixer,
  13115. msm_routing_put_port_mixer),
  13116. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13117. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13118. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13119. msm_routing_get_port_mixer,
  13120. msm_routing_put_port_mixer),
  13121. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13122. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13123. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13124. msm_routing_get_port_mixer,
  13125. msm_routing_put_port_mixer),
  13126. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13127. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13128. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13129. msm_routing_get_port_mixer,
  13130. msm_routing_put_port_mixer),
  13131. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13133. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13134. msm_routing_get_port_mixer,
  13135. msm_routing_put_port_mixer),
  13136. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13138. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13139. msm_routing_get_port_mixer,
  13140. msm_routing_put_port_mixer),
  13141. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13143. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13144. msm_routing_get_port_mixer,
  13145. msm_routing_put_port_mixer),
  13146. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13147. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13148. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13149. msm_routing_get_port_mixer,
  13150. msm_routing_put_port_mixer),
  13151. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13153. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13154. msm_routing_get_port_mixer,
  13155. msm_routing_put_port_mixer),
  13156. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13158. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13159. msm_routing_get_port_mixer,
  13160. msm_routing_put_port_mixer),
  13161. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13163. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13164. msm_routing_get_port_mixer,
  13165. msm_routing_put_port_mixer),
  13166. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13167. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13168. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13169. msm_routing_get_port_mixer,
  13170. msm_routing_put_port_mixer),
  13171. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13173. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13174. msm_routing_get_port_mixer,
  13175. msm_routing_put_port_mixer),
  13176. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13177. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13178. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13179. msm_routing_get_port_mixer,
  13180. msm_routing_put_port_mixer),
  13181. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13183. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13184. msm_routing_get_port_mixer,
  13185. msm_routing_put_port_mixer),
  13186. };
  13187. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  13188. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13190. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13191. msm_routing_get_port_mixer,
  13192. msm_routing_put_port_mixer),
  13193. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13195. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13196. msm_routing_get_port_mixer,
  13197. msm_routing_put_port_mixer),
  13198. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13199. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13200. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13201. msm_routing_get_port_mixer,
  13202. msm_routing_put_port_mixer),
  13203. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13204. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13205. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13206. msm_routing_get_port_mixer,
  13207. msm_routing_put_port_mixer),
  13208. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13210. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13211. msm_routing_get_port_mixer,
  13212. msm_routing_put_port_mixer),
  13213. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13215. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13216. msm_routing_get_port_mixer,
  13217. msm_routing_put_port_mixer),
  13218. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13219. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13220. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13221. msm_routing_get_port_mixer,
  13222. msm_routing_put_port_mixer),
  13223. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13224. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13225. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13226. msm_routing_get_port_mixer,
  13227. msm_routing_put_port_mixer),
  13228. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13230. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13231. msm_routing_get_port_mixer,
  13232. msm_routing_put_port_mixer),
  13233. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13235. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13236. msm_routing_get_port_mixer,
  13237. msm_routing_put_port_mixer),
  13238. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13239. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13240. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13241. msm_routing_get_port_mixer,
  13242. msm_routing_put_port_mixer),
  13243. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13245. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13246. msm_routing_get_port_mixer,
  13247. msm_routing_put_port_mixer),
  13248. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13250. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13251. msm_routing_get_port_mixer,
  13252. msm_routing_put_port_mixer),
  13253. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13255. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13256. msm_routing_get_port_mixer,
  13257. msm_routing_put_port_mixer),
  13258. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13259. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13260. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13261. msm_routing_get_port_mixer,
  13262. msm_routing_put_port_mixer),
  13263. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13265. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13266. msm_routing_get_port_mixer,
  13267. msm_routing_put_port_mixer),
  13268. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13270. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13271. msm_routing_get_port_mixer,
  13272. msm_routing_put_port_mixer),
  13273. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13275. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13276. msm_routing_get_port_mixer,
  13277. msm_routing_put_port_mixer),
  13278. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13279. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13280. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13281. msm_routing_get_port_mixer,
  13282. msm_routing_put_port_mixer),
  13283. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13285. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13286. msm_routing_get_port_mixer,
  13287. msm_routing_put_port_mixer),
  13288. };
  13289. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  13290. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13291. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13292. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13293. msm_routing_get_port_mixer,
  13294. msm_routing_put_port_mixer),
  13295. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13297. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13298. msm_routing_get_port_mixer,
  13299. msm_routing_put_port_mixer),
  13300. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13302. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13303. msm_routing_get_port_mixer,
  13304. msm_routing_put_port_mixer),
  13305. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13307. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13308. msm_routing_get_port_mixer,
  13309. msm_routing_put_port_mixer),
  13310. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13311. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13312. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13313. msm_routing_get_port_mixer,
  13314. msm_routing_put_port_mixer),
  13315. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13317. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13318. msm_routing_get_port_mixer,
  13319. msm_routing_put_port_mixer),
  13320. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13322. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13323. msm_routing_get_port_mixer,
  13324. msm_routing_put_port_mixer),
  13325. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13327. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13328. msm_routing_get_port_mixer,
  13329. msm_routing_put_port_mixer),
  13330. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13331. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13332. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13333. msm_routing_get_port_mixer,
  13334. msm_routing_put_port_mixer),
  13335. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13337. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13338. msm_routing_get_port_mixer,
  13339. msm_routing_put_port_mixer),
  13340. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13341. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13342. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13343. msm_routing_get_port_mixer,
  13344. msm_routing_put_port_mixer),
  13345. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13347. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13348. msm_routing_get_port_mixer,
  13349. msm_routing_put_port_mixer),
  13350. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13351. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13352. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13353. msm_routing_get_port_mixer,
  13354. msm_routing_put_port_mixer),
  13355. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13357. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13358. msm_routing_get_port_mixer,
  13359. msm_routing_put_port_mixer),
  13360. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13362. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13363. msm_routing_get_port_mixer,
  13364. msm_routing_put_port_mixer),
  13365. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13367. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13368. msm_routing_get_port_mixer,
  13369. msm_routing_put_port_mixer),
  13370. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13371. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13372. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13373. msm_routing_get_port_mixer,
  13374. msm_routing_put_port_mixer),
  13375. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13377. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13378. msm_routing_get_port_mixer,
  13379. msm_routing_put_port_mixer),
  13380. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13381. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13382. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13383. msm_routing_get_port_mixer,
  13384. msm_routing_put_port_mixer),
  13385. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13386. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13387. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13388. msm_routing_get_port_mixer,
  13389. msm_routing_put_port_mixer),
  13390. };
  13391. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  13392. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13394. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13395. msm_routing_put_port_mixer),
  13396. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13398. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13399. msm_routing_put_port_mixer),
  13400. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13401. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13402. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13403. msm_routing_put_port_mixer),
  13404. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13405. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13406. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13407. msm_routing_put_port_mixer),
  13408. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13409. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13410. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13411. msm_routing_put_port_mixer),
  13412. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13413. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13414. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13415. msm_routing_put_port_mixer),
  13416. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13418. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13419. msm_routing_put_port_mixer),
  13420. };
  13421. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  13422. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13423. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13424. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13425. msm_routing_put_port_mixer),
  13426. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13427. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13428. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13429. msm_routing_put_port_mixer),
  13430. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13431. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13432. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13433. msm_routing_put_port_mixer),
  13434. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13435. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13436. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13437. msm_routing_put_port_mixer),
  13438. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13439. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13440. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13441. msm_routing_put_port_mixer),
  13442. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13444. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13445. msm_routing_put_port_mixer),
  13446. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13448. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13449. msm_routing_put_port_mixer),
  13450. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13451. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13452. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13453. msm_routing_put_port_mixer),
  13454. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13455. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13456. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13457. msm_routing_put_port_mixer),
  13458. };
  13459. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  13460. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13461. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13462. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13463. msm_routing_put_listen_mixer),
  13464. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13465. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13466. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13467. msm_routing_put_listen_mixer),
  13468. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13469. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13470. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13471. msm_routing_put_listen_mixer),
  13472. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13473. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13474. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13475. msm_routing_put_listen_mixer),
  13476. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13477. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13478. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13479. msm_routing_put_listen_mixer),
  13480. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13481. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13482. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13483. msm_routing_put_listen_mixer),
  13484. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13485. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13486. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13487. msm_routing_put_listen_mixer),
  13488. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13489. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13490. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13491. msm_routing_put_listen_mixer),
  13492. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13493. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13494. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13495. msm_routing_put_listen_mixer),
  13496. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13497. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13498. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13499. msm_routing_put_listen_mixer),
  13500. };
  13501. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  13502. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13503. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13504. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13505. msm_routing_put_listen_mixer),
  13506. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  13507. SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13509. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13510. msm_routing_put_listen_mixer),
  13511. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13513. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13514. msm_routing_put_listen_mixer),
  13515. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13517. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13518. msm_routing_put_listen_mixer),
  13519. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13521. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13522. msm_routing_put_listen_mixer),
  13523. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13525. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13526. msm_routing_put_listen_mixer),
  13527. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13529. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13530. msm_routing_put_listen_mixer),
  13531. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13533. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13534. msm_routing_put_listen_mixer),
  13535. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13537. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13538. msm_routing_put_listen_mixer),
  13539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13541. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13542. msm_routing_put_listen_mixer),
  13543. };
  13544. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  13545. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13546. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13547. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13548. msm_routing_put_listen_mixer),
  13549. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13550. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13551. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13552. msm_routing_put_listen_mixer),
  13553. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13554. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13555. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13556. msm_routing_put_listen_mixer),
  13557. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13558. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13559. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13560. msm_routing_put_listen_mixer),
  13561. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13562. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13563. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13564. msm_routing_put_listen_mixer),
  13565. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13566. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13567. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13568. msm_routing_put_listen_mixer),
  13569. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13570. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13571. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13572. msm_routing_put_listen_mixer),
  13573. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13574. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13575. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13576. msm_routing_put_listen_mixer),
  13577. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13578. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13579. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13580. msm_routing_put_listen_mixer),
  13581. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13582. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13583. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13584. msm_routing_put_listen_mixer),
  13585. };
  13586. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  13587. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13589. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13590. msm_routing_put_listen_mixer),
  13591. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13593. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13594. msm_routing_put_listen_mixer),
  13595. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13597. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13598. msm_routing_put_listen_mixer),
  13599. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13601. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13602. msm_routing_put_listen_mixer),
  13603. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13605. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13606. msm_routing_put_listen_mixer),
  13607. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13609. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13610. msm_routing_put_listen_mixer),
  13611. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13613. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13614. msm_routing_put_listen_mixer),
  13615. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13617. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13618. msm_routing_put_listen_mixer),
  13619. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13621. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13622. msm_routing_put_listen_mixer),
  13623. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13624. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13625. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13626. msm_routing_put_listen_mixer),
  13627. };
  13628. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  13629. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13630. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13631. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13632. msm_routing_put_listen_mixer),
  13633. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13635. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13636. msm_routing_put_listen_mixer),
  13637. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13638. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13639. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13640. msm_routing_put_listen_mixer),
  13641. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13643. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13644. msm_routing_put_listen_mixer),
  13645. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13647. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13648. msm_routing_put_listen_mixer),
  13649. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13651. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13652. msm_routing_put_listen_mixer),
  13653. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13655. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13656. msm_routing_put_listen_mixer),
  13657. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13659. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13660. msm_routing_put_listen_mixer),
  13661. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13663. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13664. msm_routing_put_listen_mixer),
  13665. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13667. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13668. msm_routing_put_listen_mixer),
  13669. };
  13670. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  13671. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13673. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13674. msm_routing_put_listen_mixer),
  13675. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13677. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13678. msm_routing_put_listen_mixer),
  13679. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13681. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13682. msm_routing_put_listen_mixer),
  13683. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13685. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13686. msm_routing_put_listen_mixer),
  13687. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13689. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13690. msm_routing_put_listen_mixer),
  13691. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13693. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13694. msm_routing_put_listen_mixer),
  13695. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13697. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13698. msm_routing_put_listen_mixer),
  13699. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13701. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13702. msm_routing_put_listen_mixer),
  13703. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13705. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13706. msm_routing_put_listen_mixer),
  13707. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13709. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13710. msm_routing_put_listen_mixer),
  13711. };
  13712. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  13713. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13715. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13716. msm_routing_put_listen_mixer),
  13717. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13718. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13719. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13720. msm_routing_put_listen_mixer),
  13721. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13722. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13723. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13724. msm_routing_put_listen_mixer),
  13725. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13727. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13728. msm_routing_put_listen_mixer),
  13729. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13730. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13731. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13732. msm_routing_put_listen_mixer),
  13733. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13735. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13736. msm_routing_put_listen_mixer),
  13737. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13739. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13740. msm_routing_put_listen_mixer),
  13741. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13743. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13744. msm_routing_put_listen_mixer),
  13745. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13747. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13748. msm_routing_put_listen_mixer),
  13749. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13751. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13752. msm_routing_put_listen_mixer),
  13753. };
  13754. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  13755. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13756. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13757. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13758. msm_routing_put_listen_mixer),
  13759. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13761. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13762. msm_routing_put_listen_mixer),
  13763. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13765. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13766. msm_routing_put_listen_mixer),
  13767. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13769. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13770. msm_routing_put_listen_mixer),
  13771. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13773. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13774. msm_routing_put_listen_mixer),
  13775. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13777. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13778. msm_routing_put_listen_mixer),
  13779. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13781. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13782. msm_routing_put_listen_mixer),
  13783. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13785. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13786. msm_routing_put_listen_mixer),
  13787. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13789. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13790. msm_routing_put_listen_mixer),
  13791. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13793. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13794. msm_routing_put_listen_mixer),
  13795. };
  13796. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  13797. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13798. 0, 1, 0, msm_routing_get_switch_mixer,
  13799. msm_routing_put_switch_mixer);
  13800. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  13801. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13802. 0, 1, 0, msm_routing_get_switch_mixer,
  13803. msm_routing_put_switch_mixer);
  13804. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  13805. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13806. 0, 1, 0, msm_routing_get_switch_mixer,
  13807. msm_routing_put_switch_mixer);
  13808. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  13809. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13810. 0, 1, 0, msm_routing_get_switch_mixer,
  13811. msm_routing_put_switch_mixer);
  13812. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  13813. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13814. 0, 1, 0, msm_routing_get_switch_mixer,
  13815. msm_routing_put_switch_mixer);
  13816. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  13817. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13818. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  13819. msm_routing_put_fm_pcmrx_switch_mixer);
  13820. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  13821. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13822. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  13823. msm_routing_put_int0_mi2s_switch_mixer);
  13824. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  13825. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13826. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  13827. msm_routing_put_int4_mi2s_switch_mixer);
  13828. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  13829. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13830. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  13831. msm_routing_put_pri_mi2s_switch_mixer);
  13832. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  13833. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13834. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  13835. msm_routing_put_sec_mi2s_switch_mixer);
  13836. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  13837. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13838. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  13839. msm_routing_put_tert_mi2s_switch_mixer);
  13840. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  13841. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13842. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  13843. msm_routing_put_quat_mi2s_switch_mixer);
  13844. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  13845. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13846. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  13847. msm_routing_put_quin_mi2s_switch_mixer);
  13848. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  13849. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13850. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13851. msm_routing_put_hfp_switch_mixer);
  13852. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  13853. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13854. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13855. msm_routing_put_hfp_switch_mixer);
  13856. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  13857. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13858. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13859. msm_routing_put_hfp_switch_mixer);
  13860. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  13861. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13862. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13863. msm_routing_put_hfp_switch_mixer);
  13864. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  13865. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13866. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  13867. msm_routing_put_usb_switch_mixer);
  13868. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  13869. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13870. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  13871. msm_routing_a2dp_switch_mixer_put);
  13872. static const struct soc_enum lsm_port_enum =
  13873. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  13874. static const char * const lsm_func_text[] = {
  13875. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  13876. };
  13877. static const struct soc_enum lsm_func_enum =
  13878. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  13879. static const struct snd_kcontrol_new lsm_controls[] = {
  13880. /* kcontrol of lsm_function */
  13881. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13882. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13883. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13884. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13885. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13886. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13887. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13888. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13889. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13890. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13891. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13892. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13893. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13894. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13895. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13896. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13897. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13898. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13899. /* kcontrol of lsm_port */
  13900. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  13901. msm_routing_lsm_port_get,
  13902. msm_routing_lsm_port_put),
  13903. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  13904. msm_routing_lsm_port_get,
  13905. msm_routing_lsm_port_put),
  13906. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  13907. msm_routing_lsm_port_get,
  13908. msm_routing_lsm_port_put),
  13909. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  13910. msm_routing_lsm_port_get,
  13911. msm_routing_lsm_port_put),
  13912. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  13913. msm_routing_lsm_port_get,
  13914. msm_routing_lsm_port_put),
  13915. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  13916. msm_routing_lsm_port_get,
  13917. msm_routing_lsm_port_put),
  13918. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  13919. msm_routing_lsm_port_get,
  13920. msm_routing_lsm_port_put),
  13921. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  13922. msm_routing_lsm_port_get,
  13923. msm_routing_lsm_port_put),
  13924. };
  13925. static const char * const aanc_slim_0_rx_text[] = {
  13926. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  13927. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  13928. };
  13929. static const struct soc_enum aanc_slim_0_rx_enum =
  13930. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  13931. aanc_slim_0_rx_text);
  13932. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  13933. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  13934. msm_routing_slim_0_rx_aanc_mux_get,
  13935. msm_routing_slim_0_rx_aanc_mux_put)
  13936. };
  13937. static int msm_routing_get_stereo_to_custom_stereo_control(
  13938. struct snd_kcontrol *kcontrol,
  13939. struct snd_ctl_elem_value *ucontrol)
  13940. {
  13941. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  13942. return 0;
  13943. }
  13944. static int msm_routing_put_stereo_to_custom_stereo_control(
  13945. struct snd_kcontrol *kcontrol,
  13946. struct snd_ctl_elem_value *ucontrol)
  13947. {
  13948. int flag = 0, i = 0, rc = 0, idx = 0;
  13949. int be_index = 0, port_id, topo_id;
  13950. unsigned int session_id = 0;
  13951. uint16_t op_FL_ip_FL_weight = 0;
  13952. uint16_t op_FL_ip_FR_weight = 0;
  13953. uint16_t op_FR_ip_FL_weight = 0;
  13954. uint16_t op_FR_ip_FR_weight = 0;
  13955. flag = ucontrol->value.integer.value[0];
  13956. pr_debug("%s E flag %d\n", __func__, flag);
  13957. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  13958. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  13959. __func__, is_custom_stereo_on, flag);
  13960. return 0;
  13961. }
  13962. is_custom_stereo_on = flag ? true : false;
  13963. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  13964. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  13965. port_id = msm_bedais[be_index].port_id;
  13966. if (!msm_bedais[be_index].active)
  13967. continue;
  13968. if ((port_id != SLIMBUS_0_RX) &&
  13969. (port_id != RT_PROXY_PORT_001_RX) &&
  13970. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  13971. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  13972. continue;
  13973. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  13974. MSM_FRONTEND_DAI_MM_SIZE) {
  13975. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  13976. LEGACY_PCM_MODE)
  13977. goto skip_send_custom_stereo;
  13978. session_id =
  13979. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  13980. if (is_custom_stereo_on) {
  13981. op_FL_ip_FL_weight =
  13982. Q14_GAIN_ZERO_POINT_FIVE;
  13983. op_FL_ip_FR_weight =
  13984. Q14_GAIN_ZERO_POINT_FIVE;
  13985. op_FR_ip_FL_weight =
  13986. Q14_GAIN_ZERO_POINT_FIVE;
  13987. op_FR_ip_FR_weight =
  13988. Q14_GAIN_ZERO_POINT_FIVE;
  13989. } else {
  13990. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  13991. op_FL_ip_FR_weight = 0;
  13992. op_FR_ip_FL_weight = 0;
  13993. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  13994. }
  13995. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  13996. unsigned long copp =
  13997. session_copp_map[i]
  13998. [SESSION_TYPE_RX][be_index];
  13999. if (!test_bit(idx, &copp))
  14000. goto skip_send_custom_stereo;
  14001. topo_id = adm_get_topology_for_port_copp_idx(
  14002. msm_bedais[be_index].port_id, idx);
  14003. if (topo_id < 0)
  14004. pr_debug("%s:Err:custom stereo topo %d",
  14005. __func__, topo_id);
  14006. pr_debug("idx %d\n", idx);
  14007. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  14008. rc = msm_ds2_dap_set_custom_stereo_onoff
  14009. (msm_bedais[be_index].port_id,
  14010. idx, is_custom_stereo_on);
  14011. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  14012. rc = dolby_dap_set_custom_stereo_onoff(
  14013. msm_bedais[be_index].port_id,
  14014. idx, is_custom_stereo_on);
  14015. else
  14016. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  14017. (msm_bedais[be_index].port_id,
  14018. idx, session_id,
  14019. op_FL_ip_FL_weight,
  14020. op_FL_ip_FR_weight,
  14021. op_FR_ip_FL_weight,
  14022. op_FR_ip_FR_weight);
  14023. if (rc < 0)
  14024. skip_send_custom_stereo:
  14025. pr_err("%s: err setting custom stereo\n",
  14026. __func__);
  14027. }
  14028. }
  14029. }
  14030. return 0;
  14031. }
  14032. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  14033. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  14034. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  14035. msm_routing_put_stereo_to_custom_stereo_control),
  14036. };
  14037. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14038. struct snd_ctl_elem_value *ucontrol)
  14039. {
  14040. return 0;
  14041. }
  14042. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14043. struct snd_ctl_elem_value *ucontrol)
  14044. {
  14045. int i = 0, j;
  14046. int num_app_types = ucontrol->value.integer.value[i++];
  14047. pr_debug("%s\n", __func__);
  14048. memset(app_type_cfg, 0, MAX_APP_TYPES*
  14049. sizeof(struct msm_pcm_routing_app_type_data));
  14050. if (num_app_types > MAX_APP_TYPES) {
  14051. pr_err("%s: number of app types exceed the max supported\n",
  14052. __func__);
  14053. return -EINVAL;
  14054. }
  14055. for (j = 0; j < num_app_types; j++) {
  14056. app_type_cfg[j].app_type =
  14057. ucontrol->value.integer.value[i++];
  14058. app_type_cfg[j].sample_rate =
  14059. ucontrol->value.integer.value[i++];
  14060. app_type_cfg[j].bit_width =
  14061. ucontrol->value.integer.value[i++];
  14062. }
  14063. return 0;
  14064. }
  14065. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  14066. struct snd_ctl_elem_value *ucontrol)
  14067. {
  14068. int j, fe_id, be_id, port_type;
  14069. int ret = 0;
  14070. unsigned long copp;
  14071. struct msm_pcm_routing_bdai_data *bedai;
  14072. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14073. SESSION_TYPE_RX;
  14074. int app_type = ucontrol->value.integer.value[1];
  14075. int gain = (ucontrol->value.integer.value[2] +
  14076. ucontrol->value.integer.value[3])/2;
  14077. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14078. MSM_AFE_PORT_TYPE_TX;
  14079. mutex_lock(&routing_lock);
  14080. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14081. if (is_be_dai_extproc(be_id))
  14082. continue;
  14083. bedai = &msm_bedais[be_id];
  14084. if (afe_get_port_type(bedai->port_id) != port_type)
  14085. continue;
  14086. if (!bedai->active)
  14087. continue;
  14088. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14089. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14090. continue;
  14091. if (app_type !=
  14092. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14093. continue;
  14094. copp = session_copp_map[fe_id][dir][be_id];
  14095. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  14096. if (!test_bit(j, &copp))
  14097. continue;
  14098. ret |= adm_set_volume(bedai->port_id, j, gain);
  14099. }
  14100. }
  14101. }
  14102. mutex_unlock(&routing_lock);
  14103. return ret ? -EINVAL : 0;
  14104. }
  14105. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  14106. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  14107. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  14108. msm_routing_put_app_type_cfg_control),
  14109. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  14110. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  14111. };
  14112. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  14113. struct snd_ctl_elem_value *ucontrol)
  14114. {
  14115. int copp_idx, fe_id, be_id, port_type;
  14116. int ret = 0;
  14117. unsigned long copp;
  14118. struct msm_pcm_routing_bdai_data *bedai;
  14119. u8 *packed_params = NULL;
  14120. struct param_hdr_v3 param_hdr;
  14121. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  14122. sizeof(uint32_t));
  14123. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14124. SESSION_TYPE_RX;
  14125. int app_type = ucontrol->value.integer.value[1];
  14126. int module_id = ucontrol->value.integer.value[2];
  14127. int instance_id = ucontrol->value.integer.value[3];
  14128. int param_id = ucontrol->value.integer.value[4];
  14129. int param_value = ucontrol->value.integer.value[5];
  14130. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14131. MSM_AFE_PORT_TYPE_TX;
  14132. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  14133. __func__, app_type, module_id,
  14134. instance_id, param_id, param_value);
  14135. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  14136. if (!packed_params)
  14137. return -ENOMEM;
  14138. memset(&param_hdr, 0, sizeof(param_hdr));
  14139. param_hdr.module_id = module_id;
  14140. param_hdr.instance_id = instance_id;
  14141. param_hdr.param_id = param_id;
  14142. param_hdr.param_size = sizeof(uint32_t);
  14143. packed_param_size = 0;
  14144. mutex_lock(&routing_lock);
  14145. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14146. if (is_be_dai_extproc(be_id))
  14147. continue;
  14148. bedai = &msm_bedais[be_id];
  14149. if (afe_get_port_type(bedai->port_id) != port_type)
  14150. continue;
  14151. if (!bedai->active)
  14152. continue;
  14153. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14154. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14155. continue;
  14156. if (app_type !=
  14157. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14158. continue;
  14159. copp = session_copp_map[fe_id][dir][be_id];
  14160. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  14161. copp_idx++) {
  14162. if (!test_bit(copp_idx, &copp))
  14163. continue;
  14164. ret = q6common_pack_pp_params(packed_params,
  14165. &param_hdr,
  14166. (u8 *) &param_value,
  14167. &packed_param_size);
  14168. if (ret) {
  14169. pr_err("%s: Failed to pack params, error %d\n",
  14170. __func__, ret);
  14171. goto done;
  14172. }
  14173. ret = adm_set_pp_params(bedai->port_id,
  14174. copp_idx, NULL,
  14175. packed_params,
  14176. packed_param_size);
  14177. if (ret) {
  14178. pr_err("%s: Setting param failed with err=%d\n",
  14179. __func__, ret);
  14180. ret = -EINVAL;
  14181. goto done;
  14182. }
  14183. }
  14184. }
  14185. }
  14186. done:
  14187. mutex_unlock(&routing_lock);
  14188. kfree(packed_params);
  14189. return ret;
  14190. }
  14191. static const struct snd_kcontrol_new module_cfg_controls[] = {
  14192. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  14193. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  14194. };
  14195. static int msm_routing_get_lsm_app_type_cfg_control(
  14196. struct snd_kcontrol *kcontrol,
  14197. struct snd_ctl_elem_value *ucontrol)
  14198. {
  14199. return 0;
  14200. }
  14201. static int msm_routing_put_lsm_app_type_cfg_control(
  14202. struct snd_kcontrol *kcontrol,
  14203. struct snd_ctl_elem_value *ucontrol)
  14204. {
  14205. int shift = ((struct soc_multi_mixer_control *)
  14206. kcontrol->private_value)->shift;
  14207. int i = 0, j;
  14208. int num_app_types = ucontrol->value.integer.value[i++];
  14209. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  14210. sizeof(struct msm_pcm_routing_app_type_data));
  14211. if (num_app_types > MAX_APP_TYPES) {
  14212. pr_err("%s: number of app types exceed the max supported\n",
  14213. __func__);
  14214. return -EINVAL;
  14215. }
  14216. for (j = 0; j < num_app_types; j++) {
  14217. lsm_app_type_cfg[j].app_type =
  14218. ucontrol->value.integer.value[i++];
  14219. lsm_app_type_cfg[j].sample_rate =
  14220. ucontrol->value.integer.value[i++];
  14221. lsm_app_type_cfg[j].bit_width =
  14222. ucontrol->value.integer.value[i++];
  14223. /* Shift of 1 indicates this is V2 mixer control */
  14224. if (shift == 1)
  14225. lsm_app_type_cfg[j].num_out_channels =
  14226. ucontrol->value.integer.value[i++];
  14227. }
  14228. return 0;
  14229. }
  14230. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  14231. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  14232. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14233. msm_routing_put_lsm_app_type_cfg_control),
  14234. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  14235. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14236. msm_routing_put_lsm_app_type_cfg_control),
  14237. };
  14238. static int msm_routing_get_use_ds1_or_ds2_control(
  14239. struct snd_kcontrol *kcontrol,
  14240. struct snd_ctl_elem_value *ucontrol)
  14241. {
  14242. ucontrol->value.integer.value[0] = is_ds2_on;
  14243. return 0;
  14244. }
  14245. static int msm_routing_put_use_ds1_or_ds2_control(
  14246. struct snd_kcontrol *kcontrol,
  14247. struct snd_ctl_elem_value *ucontrol)
  14248. {
  14249. is_ds2_on = ucontrol->value.integer.value[0];
  14250. return 0;
  14251. }
  14252. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  14253. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  14254. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  14255. msm_routing_put_use_ds1_or_ds2_control),
  14256. };
  14257. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  14258. struct snd_ctl_elem_value *ucontrol) {
  14259. int rc = 0;
  14260. int be_idx = 0;
  14261. char *param_value;
  14262. int *update_param_value;
  14263. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  14264. struct param_hdr_v3 param_hdr;
  14265. param_value = kzalloc(param_size, GFP_KERNEL);
  14266. if (!param_value)
  14267. return -ENOMEM;
  14268. memset(&param_hdr, 0, sizeof(param_hdr));
  14269. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  14270. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  14271. break;
  14272. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  14273. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  14274. param_hdr.instance_id = INSTANCE_ID_0;
  14275. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  14276. param_hdr.param_size = param_size;
  14277. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  14278. NULL, &param_hdr, (u8 *) param_value);
  14279. if (rc) {
  14280. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  14281. kfree(param_value);
  14282. return -EINVAL;
  14283. }
  14284. update_param_value = (int *)param_value;
  14285. ucontrol->value.integer.value[0] = update_param_value[0];
  14286. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  14287. __func__, update_param_value[0]);
  14288. }
  14289. kfree(param_value);
  14290. return 0;
  14291. }
  14292. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  14293. struct snd_ctl_elem_value *ucontrol)
  14294. {
  14295. voc_session_id = ucontrol->value.integer.value[0];
  14296. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  14297. return 0;
  14298. }
  14299. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  14300. struct snd_ctl_elem_value *ucontrol)
  14301. {
  14302. ucontrol->value.integer.value[0] = voc_session_id;
  14303. return 0;
  14304. }
  14305. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  14306. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  14307. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  14308. msm_voc_session_id_put),
  14309. };
  14310. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  14311. struct snd_ctl_elem_info *uinfo)
  14312. {
  14313. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14314. uinfo->count = sizeof(struct sound_focus_param);
  14315. return 0;
  14316. }
  14317. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  14318. struct snd_ctl_elem_value *ucontrol)
  14319. {
  14320. int ret = 0;
  14321. struct sound_focus_param soundFocusData;
  14322. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14323. sizeof(struct sound_focus_param));
  14324. ret = voc_set_sound_focus(soundFocusData);
  14325. if (ret) {
  14326. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14327. __func__, ret);
  14328. ret = -EINVAL;
  14329. }
  14330. return ret;
  14331. }
  14332. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  14333. struct snd_ctl_elem_value *ucontrol)
  14334. {
  14335. int ret = 0;
  14336. struct sound_focus_param soundFocusData;
  14337. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  14338. ret = voc_get_sound_focus(&soundFocusData);
  14339. if (ret) {
  14340. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14341. __func__, ret);
  14342. ret = -EINVAL;
  14343. goto done;
  14344. }
  14345. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14346. sizeof(struct sound_focus_param));
  14347. done:
  14348. return ret;
  14349. }
  14350. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  14351. struct snd_ctl_elem_info *uinfo)
  14352. {
  14353. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14354. uinfo->count = sizeof(struct source_tracking_param);
  14355. return 0;
  14356. }
  14357. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  14358. struct snd_ctl_elem_value *ucontrol)
  14359. {
  14360. int ret = 0;
  14361. struct source_tracking_param sourceTrackingData;
  14362. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  14363. ret = voc_get_source_tracking(&sourceTrackingData);
  14364. if (ret) {
  14365. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14366. __func__, ret);
  14367. ret = -EINVAL;
  14368. goto done;
  14369. }
  14370. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14371. sizeof(struct source_tracking_param));
  14372. done:
  14373. return ret;
  14374. }
  14375. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  14376. int *copp_idx)
  14377. {
  14378. int i, idx, be_idx;
  14379. int ret = 0;
  14380. unsigned long copp;
  14381. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  14382. ret = q6audio_validate_port(port_id);
  14383. if (ret < 0) {
  14384. pr_err("%s: port validation failed id 0x%x ret %d\n",
  14385. __func__, port_id, ret);
  14386. ret = -EINVAL;
  14387. goto done;
  14388. }
  14389. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  14390. if (msm_bedais[be_idx].port_id == port_id)
  14391. break;
  14392. }
  14393. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  14394. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  14395. ret = -EINVAL;
  14396. goto done;
  14397. }
  14398. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  14399. MSM_FRONTEND_DAI_MM_SIZE) {
  14400. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14401. copp = session_copp_map[i]
  14402. [session_type][be_idx];
  14403. if (test_bit(idx, &copp))
  14404. break;
  14405. }
  14406. if (idx >= MAX_COPPS_PER_PORT)
  14407. continue;
  14408. else
  14409. break;
  14410. }
  14411. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  14412. pr_err("%s: Invalid FE, exiting\n", __func__);
  14413. ret = -EINVAL;
  14414. goto done;
  14415. }
  14416. *copp_idx = idx;
  14417. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  14418. done:
  14419. return ret;
  14420. }
  14421. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  14422. const char *prefix, int *port_id)
  14423. {
  14424. int ret = 0;
  14425. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  14426. /*
  14427. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  14428. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  14429. * and compare the string with the backend name to derive the port id.
  14430. */
  14431. if (!strcmp(kcontrol->id.name + strlen(prefix),
  14432. "SLIMBUS_0")) {
  14433. *port_id = SLIMBUS_0_TX;
  14434. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14435. "TERT_MI2S")) {
  14436. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  14437. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14438. "INT3_MI2S")) {
  14439. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  14440. } else {
  14441. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  14442. __func__, kcontrol->id.name);
  14443. ret = -EINVAL;
  14444. goto done;
  14445. }
  14446. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  14447. __func__, kcontrol->id.name, *port_id);
  14448. done:
  14449. return ret;
  14450. }
  14451. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  14452. struct snd_ctl_elem_value *ucontrol)
  14453. {
  14454. int ret = 0;
  14455. struct sound_focus_param soundFocusData;
  14456. int port_id, copp_idx;
  14457. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14458. "Sound Focus Audio Tx ", &port_id);
  14459. if (ret != 0) {
  14460. pr_err("%s: Error in deriving port id, err=%d\n",
  14461. __func__, ret);
  14462. ret = -EINVAL;
  14463. goto done;
  14464. }
  14465. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14466. &copp_idx);
  14467. if (ret) {
  14468. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14469. __func__, port_id);
  14470. ret = -EINVAL;
  14471. goto done;
  14472. }
  14473. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14474. sizeof(struct sound_focus_param));
  14475. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  14476. if (ret) {
  14477. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14478. __func__, ret);
  14479. ret = -EINVAL;
  14480. goto done;
  14481. }
  14482. done:
  14483. return ret;
  14484. }
  14485. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  14486. struct snd_ctl_elem_value *ucontrol)
  14487. {
  14488. int ret = 0;
  14489. struct sound_focus_param soundFocusData;
  14490. int port_id, copp_idx;
  14491. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14492. "Sound Focus Audio Tx ", &port_id);
  14493. if (ret) {
  14494. pr_err("%s: Error in deriving port id, err=%d\n",
  14495. __func__, ret);
  14496. ret = -EINVAL;
  14497. goto done;
  14498. }
  14499. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14500. &copp_idx);
  14501. if (ret) {
  14502. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14503. __func__, port_id);
  14504. ret = -EINVAL;
  14505. goto done;
  14506. }
  14507. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  14508. if (ret) {
  14509. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14510. __func__, ret);
  14511. ret = -EINVAL;
  14512. goto done;
  14513. }
  14514. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14515. sizeof(struct sound_focus_param));
  14516. done:
  14517. return ret;
  14518. }
  14519. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  14520. struct snd_ctl_elem_value *ucontrol)
  14521. {
  14522. int ret = 0;
  14523. struct source_tracking_param sourceTrackingData;
  14524. int port_id, copp_idx;
  14525. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14526. "Source Tracking Audio Tx ", &port_id);
  14527. if (ret) {
  14528. pr_err("%s: Error in deriving port id, err=%d\n",
  14529. __func__, ret);
  14530. ret = -EINVAL;
  14531. goto done;
  14532. }
  14533. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14534. &copp_idx);
  14535. if (ret) {
  14536. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14537. __func__, port_id);
  14538. ret = -EINVAL;
  14539. goto done;
  14540. }
  14541. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  14542. if (ret) {
  14543. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14544. __func__, ret);
  14545. ret = -EINVAL;
  14546. goto done;
  14547. }
  14548. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14549. sizeof(struct source_tracking_param));
  14550. done:
  14551. return ret;
  14552. }
  14553. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  14554. {
  14555. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14556. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14557. .name = "Sound Focus Voice Tx SLIMBUS_0",
  14558. .info = msm_sound_focus_info,
  14559. .get = msm_voice_sound_focus_get,
  14560. .put = msm_voice_sound_focus_put,
  14561. },
  14562. {
  14563. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14564. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14565. .name = "Source Tracking Voice Tx SLIMBUS_0",
  14566. .info = msm_source_tracking_info,
  14567. .get = msm_voice_source_tracking_get,
  14568. },
  14569. {
  14570. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14571. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14572. .name = "Sound Focus Audio Tx SLIMBUS_0",
  14573. .info = msm_sound_focus_info,
  14574. .get = msm_audio_sound_focus_get,
  14575. .put = msm_audio_sound_focus_put,
  14576. },
  14577. {
  14578. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14579. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14580. .name = "Source Tracking Audio Tx SLIMBUS_0",
  14581. .info = msm_source_tracking_info,
  14582. .get = msm_audio_source_tracking_get,
  14583. },
  14584. {
  14585. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14586. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14587. .name = "Sound Focus Voice Tx TERT_MI2S",
  14588. .info = msm_sound_focus_info,
  14589. .get = msm_voice_sound_focus_get,
  14590. .put = msm_voice_sound_focus_put,
  14591. },
  14592. {
  14593. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14594. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14595. .name = "Source Tracking Voice Tx TERT_MI2S",
  14596. .info = msm_source_tracking_info,
  14597. .get = msm_voice_source_tracking_get,
  14598. },
  14599. {
  14600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14601. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14602. .name = "Sound Focus Audio Tx TERT_MI2S",
  14603. .info = msm_sound_focus_info,
  14604. .get = msm_audio_sound_focus_get,
  14605. .put = msm_audio_sound_focus_put,
  14606. },
  14607. {
  14608. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14609. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14610. .name = "Source Tracking Audio Tx TERT_MI2S",
  14611. .info = msm_source_tracking_info,
  14612. .get = msm_audio_source_tracking_get,
  14613. },
  14614. {
  14615. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14616. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14617. .name = "Sound Focus Voice Tx INT3_MI2S",
  14618. .info = msm_sound_focus_info,
  14619. .get = msm_voice_sound_focus_get,
  14620. .put = msm_voice_sound_focus_put,
  14621. },
  14622. {
  14623. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14624. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14625. .name = "Source Tracking Voice Tx INT3_MI2S",
  14626. .info = msm_source_tracking_info,
  14627. .get = msm_voice_source_tracking_get,
  14628. },
  14629. {
  14630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14631. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14632. .name = "Sound Focus Audio Tx INT3_MI2S",
  14633. .info = msm_sound_focus_info,
  14634. .get = msm_audio_sound_focus_get,
  14635. .put = msm_audio_sound_focus_put,
  14636. },
  14637. {
  14638. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14640. .name = "Source Tracking Audio Tx INT3_MI2S",
  14641. .info = msm_source_tracking_info,
  14642. .get = msm_audio_source_tracking_get,
  14643. },
  14644. };
  14645. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  14646. struct snd_ctl_elem_value *ucontrol)
  14647. {
  14648. int ret = 0;
  14649. int item;
  14650. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14651. pr_debug("%s item is %d\n", __func__,
  14652. ucontrol->value.enumerated.item[0]);
  14653. mutex_lock(&routing_lock);
  14654. item = ucontrol->value.enumerated.item[0];
  14655. if (item < e->items) {
  14656. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14657. __func__, e->shift_l, e->values[item]);
  14658. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14659. e->values[item] < MSM_BACKEND_DAI_MAX)
  14660. /* Enable feedback TX path */
  14661. ret = afe_spk_prot_feed_back_cfg(
  14662. msm_bedais[e->values[item]].port_id,
  14663. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  14664. else {
  14665. pr_debug("%s values are out of range item %d\n",
  14666. __func__, e->values[item]);
  14667. /* Disable feedback TX path */
  14668. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14669. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  14670. else
  14671. ret = -EINVAL;
  14672. }
  14673. } else {
  14674. pr_err("%s item value is out of range item\n", __func__);
  14675. ret = -EINVAL;
  14676. }
  14677. mutex_unlock(&routing_lock);
  14678. return ret;
  14679. }
  14680. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  14681. struct snd_ctl_elem_value *ucontrol)
  14682. {
  14683. int ret = 0;
  14684. int item;
  14685. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14686. pr_debug("%s item is %d\n", __func__,
  14687. ucontrol->value.enumerated.item[0]);
  14688. mutex_lock(&routing_lock);
  14689. item = ucontrol->value.enumerated.item[0];
  14690. if (item < e->items) {
  14691. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14692. __func__, e->shift_l, e->values[item]);
  14693. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14694. e->values[item] < MSM_BACKEND_DAI_MAX)
  14695. /* Enable feedback TX path */
  14696. ret = afe_spk_prot_feed_back_cfg(
  14697. msm_bedais[e->values[item]].port_id,
  14698. msm_bedais[e->shift_l].port_id,
  14699. 1, 1, 1);
  14700. else {
  14701. pr_debug("%s values are out of range item %d\n",
  14702. __func__, e->values[item]);
  14703. /* Disable feedback TX path */
  14704. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14705. ret = afe_spk_prot_feed_back_cfg(0,
  14706. 0, 0, 0, 0);
  14707. else
  14708. ret = -EINVAL;
  14709. }
  14710. } else {
  14711. pr_err("%s item value is out of range item\n", __func__);
  14712. ret = -EINVAL;
  14713. }
  14714. mutex_unlock(&routing_lock);
  14715. return ret;
  14716. }
  14717. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  14718. struct snd_ctl_elem_value *ucontrol)
  14719. {
  14720. pr_debug("%s\n", __func__);
  14721. return 0;
  14722. }
  14723. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  14724. struct snd_ctl_elem_value *ucontrol)
  14725. {
  14726. pr_debug("%s\n", __func__);
  14727. ucontrol->value.enumerated.item[0] = 0;
  14728. return 0;
  14729. }
  14730. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  14731. "ZERO", "SLIM4_TX"
  14732. };
  14733. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  14734. "ZERO", "SLIM4_TX"
  14735. };
  14736. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  14737. "ZERO", "WSA_CDC_DMA_TX_0"
  14738. };
  14739. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  14740. "ZERO", "WSA_CDC_DMA_TX_0"
  14741. };
  14742. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  14743. "ZERO", "SENARY_TX"
  14744. };
  14745. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  14746. "ZERO", "INT5_MI2S_TX"
  14747. };
  14748. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  14749. "ZERO", "INT5_MI2S_TX"
  14750. };
  14751. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  14752. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14753. };
  14754. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  14755. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14756. };
  14757. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  14758. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14759. };
  14760. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  14761. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14762. };
  14763. static const int const mi2s_rx_vi_fb_tx_value[] = {
  14764. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  14765. };
  14766. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  14767. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14768. };
  14769. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  14770. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14771. };
  14772. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  14773. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14774. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  14775. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  14776. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  14777. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14778. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  14779. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  14780. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  14781. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14782. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  14783. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  14784. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  14785. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14786. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  14787. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  14788. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  14789. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  14790. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  14791. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  14792. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  14793. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14794. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  14795. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  14796. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  14797. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  14798. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14799. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  14800. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  14801. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  14802. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  14803. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  14804. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14805. spkr_prot_put_vi_lch_port);
  14806. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  14807. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  14808. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14809. spkr_prot_put_vi_rch_port);
  14810. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  14811. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  14812. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14813. spkr_prot_put_vi_lch_port);
  14814. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  14815. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  14816. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14817. spkr_prot_put_vi_rch_port);
  14818. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  14819. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  14820. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  14821. spkr_prot_put_vi_lch_port);
  14822. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  14823. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  14824. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  14825. spkr_prot_put_vi_lch_port);
  14826. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  14827. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  14828. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  14829. spkr_prot_put_vi_rch_port);
  14830. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  14831. /* Frontend AIF */
  14832. /* Widget name equals to Front-End DAI name<Need confirmation>,
  14833. * Stream name must contains substring of front-end dai name
  14834. */
  14835. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  14836. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  14837. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  14838. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  14839. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  14840. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  14841. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  14842. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  14843. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  14844. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  14845. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  14846. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  14847. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  14848. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  14849. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  14850. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  14851. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  14852. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  14853. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  14854. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  14855. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  14856. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  14857. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  14858. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  14859. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  14860. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  14861. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  14862. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  14863. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  14864. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  14865. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  14866. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  14867. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  14868. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  14869. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  14870. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  14871. "VoiceMMode1 Playback", 0, 0, 0, 0),
  14872. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  14873. "VoiceMMode1 Capture", 0, 0, 0, 0),
  14874. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  14875. "VoiceMMode2 Playback", 0, 0, 0, 0),
  14876. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  14877. "VoiceMMode2 Capture", 0, 0, 0, 0),
  14878. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  14879. 0, 0, 0, 0),
  14880. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  14881. 0, 0, 0, 0),
  14882. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  14883. 0, 0, 0, 0),
  14884. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  14885. 0, 0, 0, 0),
  14886. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  14887. 0, 0, 0, 0),
  14888. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  14889. 0, 0, 0, 0),
  14890. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  14891. 0, 0, 0, 0),
  14892. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  14893. 0, 0, 0, 0),
  14894. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  14895. 0, 0, 0, 0),
  14896. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  14897. 0, 0, 0, 0),
  14898. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  14899. 0, 0, 0, 0),
  14900. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  14901. 0, 0, 0, 0),
  14902. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  14903. 0, 0, 0, 0),
  14904. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  14905. 0, 0, 0, 0),
  14906. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  14907. 0, 0, 0, 0),
  14908. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  14909. 0, 0, 0, 0),
  14910. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  14911. 0, 0, 0, 0),
  14912. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  14913. 0, 0, 0, 0),
  14914. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  14915. 0, 0, 0, 0),
  14916. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  14917. 0, 0, 0, 0),
  14918. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  14919. 0, 0, 0, 0),
  14920. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  14921. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  14922. 0, 0, 0, 0),
  14923. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  14924. "INT0 MI2S_RX Hostless Playback",
  14925. 0, 0, 0, 0),
  14926. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  14927. "INT4 MI2S_RX Hostless Playback",
  14928. 0, 0, 0, 0),
  14929. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  14930. "Primary MI2S_RX Hostless Playback",
  14931. 0, 0, 0, 0),
  14932. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  14933. "Secondary MI2S_RX Hostless Playback",
  14934. 0, 0, 0, 0),
  14935. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  14936. "Tertiary MI2S_RX Hostless Playback",
  14937. 0, 0, 0, 0),
  14938. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  14939. "Quaternary MI2S_RX Hostless Playback",
  14940. 0, 0, 0, 0),
  14941. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  14942. "Quinary MI2S_RX Hostless Playback",
  14943. 0, 0, 0, 0),
  14944. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  14945. 0, 0, 0, 0),
  14946. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  14947. 0, 0, 0, 0),
  14948. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  14949. 0, 0, 0, 0),
  14950. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  14951. 0, 0, 0, 0),
  14952. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  14953. 0, 0, 0, 0),
  14954. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  14955. "INT3 MI2S_TX Hostless Capture",
  14956. 0, 0, 0, 0),
  14957. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  14958. "Tertiary MI2S_TX Hostless Capture",
  14959. 0, 0, 0, 0),
  14960. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  14961. "Secondary MI2S_TX Hostless Capture",
  14962. 0, 0, 0, 0),
  14963. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  14964. "Primary MI2S_TX Hostless Capture",
  14965. 0, 0, 0, 0),
  14966. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  14967. 0, 0, 0, 0),
  14968. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  14969. 0, 0, 0, 0),
  14970. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  14971. "Quaternary MI2S_TX Hostless Capture",
  14972. 0, 0, 0, 0),
  14973. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  14974. "Quinary MI2S_TX Hostless Capture",
  14975. 0, 0, 0, 0),
  14976. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  14977. "Primary TDM0 Hostless Playback",
  14978. 0, 0, 0, 0),
  14979. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  14980. "Primary TDM0 Hostless Capture",
  14981. 0, 0, 0, 0),
  14982. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  14983. "Primary TDM1 Hostless Playback",
  14984. 0, 0, 0, 0),
  14985. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  14986. "Primary TDM1 Hostless Capture",
  14987. 0, 0, 0, 0),
  14988. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  14989. "Primary TDM2 Hostless Playback",
  14990. 0, 0, 0, 0),
  14991. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  14992. "Primary TDM2 Hostless Capture",
  14993. 0, 0, 0, 0),
  14994. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  14995. "Primary TDM3 Hostless Playback",
  14996. 0, 0, 0, 0),
  14997. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  14998. "Primary TDM3 Hostless Capture",
  14999. 0, 0, 0, 0),
  15000. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  15001. "Primary TDM4 Hostless Playback",
  15002. 0, 0, 0, 0),
  15003. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  15004. "Primary TDM4 Hostless Capture",
  15005. 0, 0, 0, 0),
  15006. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  15007. "Primary TDM5 Hostless Playback",
  15008. 0, 0, 0, 0),
  15009. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  15010. "Primary TDM5 Hostless Capture",
  15011. 0, 0, 0, 0),
  15012. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  15013. "Primary TDM6 Hostless Playback",
  15014. 0, 0, 0, 0),
  15015. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  15016. "Primary TDM6 Hostless Capture",
  15017. 0, 0, 0, 0),
  15018. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  15019. "Primary TDM7 Hostless Playback",
  15020. 0, 0, 0, 0),
  15021. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  15022. "Primary TDM7 Hostless Capture",
  15023. 0, 0, 0, 0),
  15024. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  15025. "Secondary TDM0 Hostless Playback",
  15026. 0, 0, 0, 0),
  15027. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  15028. "Secondary TDM0 Hostless Capture",
  15029. 0, 0, 0, 0),
  15030. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  15031. "Secondary TDM1 Hostless Playback",
  15032. 0, 0, 0, 0),
  15033. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  15034. "Secondary TDM1 Hostless Capture",
  15035. 0, 0, 0, 0),
  15036. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  15037. "Secondary TDM2 Hostless Playback",
  15038. 0, 0, 0, 0),
  15039. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  15040. "Secondary TDM2 Hostless Capture",
  15041. 0, 0, 0, 0),
  15042. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  15043. "Secondary TDM3 Hostless Playback",
  15044. 0, 0, 0, 0),
  15045. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  15046. "Secondary TDM3 Hostless Capture",
  15047. 0, 0, 0, 0),
  15048. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  15049. "Secondary TDM4 Hostless Playback",
  15050. 0, 0, 0, 0),
  15051. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  15052. "Secondary TDM4 Hostless Capture",
  15053. 0, 0, 0, 0),
  15054. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  15055. "Secondary TDM5 Hostless Playback",
  15056. 0, 0, 0, 0),
  15057. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  15058. "Secondary TDM5 Hostless Capture",
  15059. 0, 0, 0, 0),
  15060. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  15061. "Secondary TDM6 Hostless Playback",
  15062. 0, 0, 0, 0),
  15063. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  15064. "Secondary TDM6 Hostless Capture",
  15065. 0, 0, 0, 0),
  15066. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  15067. "Secondary TDM7 Hostless Playback",
  15068. 0, 0, 0, 0),
  15069. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  15070. "Secondary TDM7 Hostless Capture",
  15071. 0, 0, 0, 0),
  15072. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  15073. "Tertiary TDM0 Hostless Playback",
  15074. 0, 0, 0, 0),
  15075. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  15076. "Tertiary TDM0 Hostless Capture",
  15077. 0, 0, 0, 0),
  15078. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  15079. "Tertiary TDM1 Hostless Playback",
  15080. 0, 0, 0, 0),
  15081. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  15082. "Tertiary TDM1 Hostless Capture",
  15083. 0, 0, 0, 0),
  15084. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  15085. "Tertiary TDM2 Hostless Playback",
  15086. 0, 0, 0, 0),
  15087. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  15088. "Tertiary TDM2 Hostless Capture",
  15089. 0, 0, 0, 0),
  15090. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  15091. "Tertiary TDM3 Hostless Playback",
  15092. 0, 0, 0, 0),
  15093. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  15094. "Tertiary TDM3 Hostless Capture",
  15095. 0, 0, 0, 0),
  15096. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  15097. "Tertiary TDM4 Hostless Playback",
  15098. 0, 0, 0, 0),
  15099. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  15100. "Tertiary TDM4 Hostless Capture",
  15101. 0, 0, 0, 0),
  15102. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  15103. "Tertiary TDM5 Hostless Playback",
  15104. 0, 0, 0, 0),
  15105. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  15106. "Tertiary TDM5 Hostless Capture",
  15107. 0, 0, 0, 0),
  15108. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  15109. "Tertiary TDM6 Hostless Playback",
  15110. 0, 0, 0, 0),
  15111. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  15112. "Tertiary TDM6 Hostless Capture",
  15113. 0, 0, 0, 0),
  15114. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  15115. "Tertiary TDM7 Hostless Playback",
  15116. 0, 0, 0, 0),
  15117. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  15118. "Tertiary TDM7 Hostless Capture",
  15119. 0, 0, 0, 0),
  15120. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  15121. "Quaternary TDM0 Hostless Playback",
  15122. 0, 0, 0, 0),
  15123. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  15124. "Quaternary TDM0 Hostless Capture",
  15125. 0, 0, 0, 0),
  15126. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  15127. "Quaternary TDM1 Hostless Playback",
  15128. 0, 0, 0, 0),
  15129. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  15130. "Quaternary TDM1 Hostless Capture",
  15131. 0, 0, 0, 0),
  15132. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  15133. "Quaternary TDM2 Hostless Playback",
  15134. 0, 0, 0, 0),
  15135. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  15136. "Quaternary TDM2 Hostless Capture",
  15137. 0, 0, 0, 0),
  15138. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  15139. "Quaternary TDM3 Hostless Playback",
  15140. 0, 0, 0, 0),
  15141. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  15142. "Quaternary TDM3 Hostless Capture",
  15143. 0, 0, 0, 0),
  15144. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  15145. "Quaternary TDM4 Hostless Playback",
  15146. 0, 0, 0, 0),
  15147. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  15148. "Quaternary TDM4 Hostless Capture",
  15149. 0, 0, 0, 0),
  15150. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  15151. "Quaternary TDM5 Hostless Playback",
  15152. 0, 0, 0, 0),
  15153. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  15154. "Quaternary TDM5 Hostless Capture",
  15155. 0, 0, 0, 0),
  15156. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  15157. "Quaternary TDM6 Hostless Playback",
  15158. 0, 0, 0, 0),
  15159. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  15160. "Quaternary TDM6 Hostless Capture",
  15161. 0, 0, 0, 0),
  15162. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  15163. "Quaternary TDM7 Hostless Playback",
  15164. 0, 0, 0, 0),
  15165. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  15166. "Quaternary TDM7 Hostless Capture",
  15167. 0, 0, 0, 0),
  15168. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  15169. "Quinary TDM0 Hostless Playback",
  15170. 0, 0, 0, 0),
  15171. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  15172. "Quinary TDM0 Hostless Capture",
  15173. 0, 0, 0, 0),
  15174. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  15175. "Quinary TDM1 Hostless Playback",
  15176. 0, 0, 0, 0),
  15177. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  15178. "Quinary TDM1 Hostless Capture",
  15179. 0, 0, 0, 0),
  15180. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  15181. "Quinary TDM2 Hostless Playback",
  15182. 0, 0, 0, 0),
  15183. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  15184. "Quinary TDM2 Hostless Capture",
  15185. 0, 0, 0, 0),
  15186. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  15187. "Quinary TDM3 Hostless Playback",
  15188. 0, 0, 0, 0),
  15189. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  15190. "Quinary TDM3 Hostless Capture",
  15191. 0, 0, 0, 0),
  15192. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  15193. "Quinary TDM4 Hostless Playback",
  15194. 0, 0, 0, 0),
  15195. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  15196. "Quinary TDM4 Hostless Capture",
  15197. 0, 0, 0, 0),
  15198. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  15199. "Quinary TDM5 Hostless Playback",
  15200. 0, 0, 0, 0),
  15201. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  15202. "Quinary TDM5 Hostless Capture",
  15203. 0, 0, 0, 0),
  15204. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  15205. "Quinary TDM6 Hostless Playback",
  15206. 0, 0, 0, 0),
  15207. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  15208. "Quinary TDM6 Hostless Capture",
  15209. 0, 0, 0, 0),
  15210. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  15211. "Quinary TDM7 Hostless Playback",
  15212. 0, 0, 0, 0),
  15213. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  15214. "Quinary TDM7 Hostless Capture",
  15215. 0, 0, 0, 0),
  15216. /* LSM */
  15217. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  15218. 0, 0, 0, 0),
  15219. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  15220. 0, 0, 0, 0),
  15221. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  15222. 0, 0, 0, 0),
  15223. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  15224. 0, 0, 0, 0),
  15225. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  15226. 0, 0, 0, 0),
  15227. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  15228. 0, 0, 0, 0),
  15229. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  15230. 0, 0, 0, 0),
  15231. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  15232. 0, 0, 0, 0),
  15233. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  15234. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  15235. /* Backend AIF */
  15236. /* Stream name equals to backend dai link stream name */
  15237. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  15238. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  15239. 0, 0, 0, 0),
  15240. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  15241. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  15242. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  15243. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  15244. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  15245. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  15246. 0, 0, 0, 0),
  15247. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  15248. 0, 0, 0, 0),
  15249. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  15250. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  15251. 0, 0, 0, 0),
  15252. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  15253. 0, 0, 0, 0),
  15254. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  15255. 0, 0, 0, 0),
  15256. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  15257. "Secondary MI2S Playback SD1",
  15258. 0, 0, 0, 0),
  15259. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  15260. 0, 0, 0, 0),
  15261. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  15262. 0, 0, 0, 0),
  15263. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  15264. 0, 0, 0, 0),
  15265. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  15266. 0, 0, 0, 0),
  15267. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  15268. 0, 0, 0, 0),
  15269. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  15270. 0, 0, 0, 0),
  15271. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  15272. 0, 0, 0, 0),
  15273. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  15274. 0, 0, 0, 0),
  15275. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  15276. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  15277. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  15278. 0, 0, 0, 0),
  15279. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  15280. 0, 0, 0, 0),
  15281. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  15282. 0, 0, 0, 0),
  15283. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  15284. 0, 0, 0, 0),
  15285. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  15286. 0, 0, 0, 0),
  15287. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  15288. 0, 0, 0, 0),
  15289. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  15290. 0, 0, 0, 0),
  15291. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  15292. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  15293. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  15294. 0, 0, 0, 0),
  15295. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  15296. 0, 0, 0, 0),
  15297. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  15298. 0, 0, 0, 0),
  15299. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  15300. 0, 0, 0, 0),
  15301. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  15302. 0, 0, 0, 0),
  15303. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  15304. 0, 0, 0, 0),
  15305. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  15306. 0, 0, 0, 0),
  15307. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  15308. 0, 0, 0, 0),
  15309. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  15310. 0, 0, 0, 0),
  15311. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  15312. 0, 0, 0, 0),
  15313. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  15314. 0, 0, 0, 0),
  15315. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  15316. 0, 0, 0, 0),
  15317. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  15318. 0, 0, 0, 0),
  15319. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  15320. 0, 0, 0, 0),
  15321. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  15322. 0, 0, 0, 0),
  15323. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  15324. 0, 0, 0, 0),
  15325. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  15326. 0, 0, 0, 0),
  15327. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  15328. 0, 0, 0, 0),
  15329. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  15330. 0, 0, 0, 0),
  15331. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  15332. 0, 0, 0, 0),
  15333. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  15334. 0, 0, 0, 0),
  15335. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  15336. 0, 0, 0, 0),
  15337. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  15338. 0, 0, 0, 0),
  15339. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  15340. 0, 0, 0, 0),
  15341. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  15342. 0, 0, 0, 0),
  15343. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  15344. 0, 0, 0, 0),
  15345. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  15346. 0, 0, 0, 0),
  15347. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  15348. 0, 0, 0, 0),
  15349. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  15350. 0, 0, 0, 0),
  15351. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  15352. 0, 0, 0, 0),
  15353. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  15354. 0, 0, 0, 0),
  15355. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  15356. 0, 0, 0, 0),
  15357. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  15358. 0, 0, 0, 0),
  15359. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  15360. 0, 0, 0, 0),
  15361. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  15362. 0, 0, 0, 0),
  15363. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  15364. 0, 0, 0, 0),
  15365. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  15366. 0, 0, 0, 0),
  15367. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  15368. 0, 0, 0, 0),
  15369. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  15370. 0, 0, 0, 0),
  15371. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  15372. 0, 0, 0, 0),
  15373. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  15374. 0, 0, 0, 0),
  15375. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  15376. 0, 0, 0, 0),
  15377. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  15378. 0, 0, 0, 0),
  15379. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  15380. 0, 0, 0, 0),
  15381. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  15382. 0, 0, 0, 0),
  15383. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  15384. 0, 0, 0, 0),
  15385. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  15386. 0, 0, 0, 0),
  15387. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  15388. 0, 0, 0, 0),
  15389. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  15390. 0, 0, 0, 0),
  15391. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  15392. 0, 0, 0, 0),
  15393. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  15394. 0, 0, 0, 0),
  15395. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  15396. 0, 0, 0, 0),
  15397. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  15398. 0, 0, 0, 0),
  15399. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  15400. 0, 0, 0, 0),
  15401. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  15402. 0, 0, 0, 0),
  15403. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  15404. 0, 0, 0, 0),
  15405. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  15406. 0, 0, 0, 0),
  15407. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  15408. 0, 0, 0, 0),
  15409. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  15410. 0, 0, 0, 0),
  15411. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  15412. 0, 0, 0, 0),
  15413. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  15414. 0, 0, 0, 0),
  15415. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  15416. 0, 0, 0, 0),
  15417. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  15418. 0, 0, 0, 0),
  15419. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  15420. 0, 0, 0, 0),
  15421. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  15422. 0, 0, 0, 0),
  15423. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  15424. 0, 0, 0, 0),
  15425. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  15426. 0, 0, 0, 0),
  15427. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  15428. 0, 0, 0, 0),
  15429. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  15430. 0, 0, 0, 0),
  15431. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  15432. 0, 0, 0, 0),
  15433. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  15434. 0, 0, 0, 0),
  15435. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  15436. 0, 0, 0, 0),
  15437. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  15438. 0, 0, 0, 0),
  15439. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  15440. 0, 0, 0, 0),
  15441. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  15442. 0, 0, 0, 0),
  15443. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  15444. 0, 0, 0, 0),
  15445. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  15446. 0, 0, 0, 0),
  15447. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  15448. 0, 0, 0, 0),
  15449. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  15450. 0, 0, 0, 0),
  15451. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  15452. 0, 0, 0, 0),
  15453. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  15454. 0, 0, 0, 0),
  15455. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  15456. 0, 0, 0, 0),
  15457. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  15458. 0, 0, 0, 0),
  15459. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  15460. 0, 0, 0, 0),
  15461. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  15462. 0, 0, 0, 0),
  15463. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  15464. 0, 0, 0, 0),
  15465. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  15466. 0, 0, 0, 0),
  15467. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  15468. 0, 0, 0, 0),
  15469. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  15470. 0, 0, 0, 0),
  15471. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  15472. 0, 0, 0, 0),
  15473. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  15474. 0, 0, 0, 0),
  15475. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  15476. 0, 0, 0, 0),
  15477. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  15478. 0, 0, 0, 0),
  15479. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  15480. 0, 0, 0, 0),
  15481. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  15482. 0, 0, 0, 0),
  15483. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  15484. 0, 0, 0, 0),
  15485. /* incall */
  15486. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  15487. 0, 0, 0, 0),
  15488. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  15489. 0, 0, 0, 0),
  15490. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  15491. 0, 0, 0, 0),
  15492. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  15493. 0, 0, 0, 0),
  15494. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  15495. 0, 0, 0, 0),
  15496. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  15497. 0, 0, 0, 0),
  15498. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  15499. 0, 0, 0, 0),
  15500. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  15501. 0, 0, 0, 0),
  15502. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  15503. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  15504. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  15505. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  15506. 0, 0, 0, 0),
  15507. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  15508. 0, 0, 0, 0),
  15509. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  15510. 0, 0, 0, 0),
  15511. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  15512. 0, 0, 0, 0),
  15513. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  15514. 0, 0, 0, 0),
  15515. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  15516. 0, 0, 0, 0),
  15517. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  15518. 0, 0, 0, 0),
  15519. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  15520. 0, 0, 0, 0),
  15521. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  15522. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  15523. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  15524. 0, 0, 0, 0),
  15525. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  15526. 0, 0, 0, 0),
  15527. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  15528. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  15529. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  15530. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  15531. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  15532. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  15533. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  15534. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  15535. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  15536. /* In- call recording */
  15537. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  15538. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  15539. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  15540. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  15541. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  15542. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  15543. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  15544. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  15545. /* Switch Definitions */
  15546. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  15547. &slim_fm_switch_mixer_controls),
  15548. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  15549. &slim1_fm_switch_mixer_controls),
  15550. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  15551. &slim3_fm_switch_mixer_controls),
  15552. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  15553. &slim4_fm_switch_mixer_controls),
  15554. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  15555. &slim6_fm_switch_mixer_controls),
  15556. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15557. &pcm_rx_switch_mixer_controls),
  15558. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15559. &int0_mi2s_rx_switch_mixer_controls),
  15560. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15561. &int4_mi2s_rx_switch_mixer_controls),
  15562. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15563. &pri_mi2s_rx_switch_mixer_controls),
  15564. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15565. &sec_mi2s_rx_switch_mixer_controls),
  15566. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15567. &tert_mi2s_rx_switch_mixer_controls),
  15568. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15569. &quat_mi2s_rx_switch_mixer_controls),
  15570. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15571. &quin_mi2s_rx_switch_mixer_controls),
  15572. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15573. &hfp_pri_aux_switch_mixer_controls),
  15574. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15575. &hfp_aux_switch_mixer_controls),
  15576. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  15577. &hfp_int_switch_mixer_controls),
  15578. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15579. &hfp_slim7_switch_mixer_controls),
  15580. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  15581. &usb_switch_mixer_controls),
  15582. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15583. &a2dp_slim7_switch_mixer_controls),
  15584. /* Mixer definitions */
  15585. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15586. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  15587. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15588. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  15589. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15590. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  15591. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15592. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  15593. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15594. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  15595. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15596. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  15597. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  15598. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  15599. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  15600. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  15601. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  15602. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  15603. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15604. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  15605. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15606. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  15607. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15608. quaternary_mi2s_rx_mixer_controls,
  15609. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  15610. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15611. tertiary_mi2s_rx_mixer_controls,
  15612. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  15613. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15614. secondary_mi2s_rx_mixer_controls,
  15615. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  15616. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15617. secondary_mi2s_rx2_mixer_controls,
  15618. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  15619. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15620. primary_mi2s_rx_mixer_controls,
  15621. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  15622. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15623. int0_mi2s_rx_mixer_controls,
  15624. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  15625. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15626. int4_mi2s_rx_mixer_controls,
  15627. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  15628. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15629. quinary_mi2s_rx_mixer_controls,
  15630. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  15631. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15632. pri_tdm_rx_0_mixer_controls,
  15633. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  15634. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15635. pri_tdm_rx_1_mixer_controls,
  15636. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  15637. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15638. pri_tdm_rx_2_mixer_controls,
  15639. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  15640. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15641. pri_tdm_rx_3_mixer_controls,
  15642. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  15643. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15644. pri_tdm_tx_0_mixer_controls,
  15645. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  15646. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15647. sec_tdm_rx_0_mixer_controls,
  15648. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  15649. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15650. sec_tdm_rx_1_mixer_controls,
  15651. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  15652. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15653. sec_tdm_rx_2_mixer_controls,
  15654. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  15655. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15656. sec_tdm_rx_3_mixer_controls,
  15657. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  15658. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15659. sec_tdm_tx_0_mixer_controls,
  15660. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  15661. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15662. tert_tdm_rx_0_mixer_controls,
  15663. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  15664. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15665. tert_tdm_tx_0_mixer_controls,
  15666. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  15667. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15668. tert_tdm_rx_1_mixer_controls,
  15669. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  15670. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15671. tert_tdm_rx_2_mixer_controls,
  15672. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  15673. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15674. tert_tdm_rx_3_mixer_controls,
  15675. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  15676. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15677. tert_tdm_rx_4_mixer_controls,
  15678. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  15679. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15680. quat_tdm_rx_0_mixer_controls,
  15681. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  15682. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15683. quat_tdm_tx_0_mixer_controls,
  15684. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  15685. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15686. quat_tdm_rx_1_mixer_controls,
  15687. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  15688. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15689. quat_tdm_rx_2_mixer_controls,
  15690. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  15691. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15692. quat_tdm_rx_3_mixer_controls,
  15693. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  15694. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15695. quin_tdm_rx_0_mixer_controls,
  15696. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  15697. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15698. quin_tdm_tx_0_mixer_controls,
  15699. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  15700. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15701. quin_tdm_rx_1_mixer_controls,
  15702. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  15703. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15704. quin_tdm_rx_2_mixer_controls,
  15705. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  15706. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15707. quin_tdm_rx_3_mixer_controls,
  15708. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  15709. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15710. wsa_cdc_dma_rx_0_mixer_controls,
  15711. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  15712. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15713. wsa_cdc_dma_rx_1_mixer_controls,
  15714. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  15715. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  15716. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  15717. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  15718. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  15719. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  15720. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  15721. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  15722. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  15723. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  15724. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  15725. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  15726. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  15727. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  15728. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  15729. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  15730. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  15731. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  15732. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  15733. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  15734. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  15735. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  15736. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  15737. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  15738. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  15739. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  15740. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  15741. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  15742. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  15743. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  15744. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  15745. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  15746. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  15747. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15748. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  15749. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15750. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  15751. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15752. tert_auxpcm_rx_mixer_controls,
  15753. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  15754. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15755. quat_auxpcm_rx_mixer_controls,
  15756. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  15757. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15758. quin_auxpcm_rx_mixer_controls,
  15759. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  15760. /* incall */
  15761. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  15762. incall_music_delivery_mixer_controls,
  15763. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  15764. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15765. incall_music2_delivery_mixer_controls,
  15766. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  15767. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15768. slimbus_4_rx_mixer_controls,
  15769. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  15770. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15771. slimbus_6_rx_mixer_controls,
  15772. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  15773. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15774. usb_audio_rx_mixer_controls,
  15775. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  15776. /* Voice Mixer */
  15777. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  15778. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  15779. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  15780. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  15781. SND_SOC_NOPM, 0, 0,
  15782. sec_i2s_rx_voice_mixer_controls,
  15783. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  15784. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  15785. SND_SOC_NOPM, 0, 0,
  15786. sec_mi2s_rx_voice_mixer_controls,
  15787. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  15788. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  15789. SND_SOC_NOPM, 0, 0,
  15790. slimbus_rx_voice_mixer_controls,
  15791. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  15792. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  15793. SND_SOC_NOPM, 0, 0,
  15794. bt_sco_rx_voice_mixer_controls,
  15795. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  15796. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  15797. SND_SOC_NOPM, 0, 0,
  15798. afe_pcm_rx_voice_mixer_controls,
  15799. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  15800. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  15801. SND_SOC_NOPM, 0, 0,
  15802. aux_pcm_rx_voice_mixer_controls,
  15803. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  15804. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  15805. SND_SOC_NOPM, 0, 0,
  15806. sec_aux_pcm_rx_voice_mixer_controls,
  15807. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  15808. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  15809. SND_SOC_NOPM, 0, 0,
  15810. tert_aux_pcm_rx_voice_mixer_controls,
  15811. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  15812. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  15813. SND_SOC_NOPM, 0, 0,
  15814. quat_aux_pcm_rx_voice_mixer_controls,
  15815. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  15816. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  15817. SND_SOC_NOPM, 0, 0,
  15818. quin_aux_pcm_rx_voice_mixer_controls,
  15819. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  15820. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  15821. SND_SOC_NOPM, 0, 0,
  15822. hdmi_rx_voice_mixer_controls,
  15823. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  15824. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  15825. SND_SOC_NOPM, 0, 0,
  15826. mi2s_rx_voice_mixer_controls,
  15827. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  15828. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  15829. SND_SOC_NOPM, 0, 0,
  15830. pri_mi2s_rx_voice_mixer_controls,
  15831. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  15832. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  15833. SND_SOC_NOPM, 0, 0,
  15834. int0_mi2s_rx_voice_mixer_controls,
  15835. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  15836. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  15837. SND_SOC_NOPM, 0, 0,
  15838. int4_mi2s_rx_voice_mixer_controls,
  15839. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  15840. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  15841. SND_SOC_NOPM, 0, 0,
  15842. tert_mi2s_rx_voice_mixer_controls,
  15843. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  15844. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  15845. SND_SOC_NOPM, 0, 0,
  15846. quat_mi2s_rx_voice_mixer_controls,
  15847. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  15848. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  15849. SND_SOC_NOPM, 0, 0,
  15850. quin_mi2s_rx_voice_mixer_controls,
  15851. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  15852. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  15853. SND_SOC_NOPM, 0, 0,
  15854. quat_tdm_rx_2_voice_mixer_controls,
  15855. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  15856. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  15857. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  15858. ARRAY_SIZE(tx_voip_mixer_controls)),
  15859. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  15860. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  15861. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  15862. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  15863. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  15864. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  15865. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15866. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  15867. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15868. int_bt_a2dp_rx_mixer_controls,
  15869. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  15870. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15871. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  15872. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15873. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  15874. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15875. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  15876. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15877. tx_voice2_stub_mixer_controls,
  15878. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  15879. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15880. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  15881. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  15882. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  15883. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  15884. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  15885. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15886. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  15887. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  15888. SND_SOC_NOPM, 0, 0,
  15889. slimbus_6_rx_voice_mixer_controls,
  15890. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  15891. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15892. slimbus_7_rx_voice_mixer_controls,
  15893. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  15894. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15895. slimbus_8_rx_voice_mixer_controls,
  15896. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  15897. /* port mixer */
  15898. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  15899. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  15900. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  15901. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  15902. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  15903. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  15904. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  15905. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  15906. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  15907. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  15908. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  15909. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  15910. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  15911. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  15912. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  15913. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  15914. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  15915. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  15916. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15917. sbus_1_rx_port_mixer_controls,
  15918. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  15919. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15920. bt_sco_rx_port_mixer_controls,
  15921. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  15922. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  15923. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  15924. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  15925. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  15926. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  15927. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  15928. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  15929. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  15930. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  15931. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  15932. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  15933. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  15934. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  15935. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  15936. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  15937. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  15938. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  15939. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  15940. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  15941. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  15942. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  15943. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15944. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  15945. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15946. primary_mi2s_rx_port_mixer_controls,
  15947. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  15948. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15949. sec_mi2s_rx_port_mixer_controls,
  15950. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  15951. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15952. tert_mi2s_rx_port_mixer_controls,
  15953. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  15954. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15955. quat_mi2s_rx_port_mixer_controls,
  15956. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  15957. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15958. quin_mi2s_rx_port_mixer_controls,
  15959. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  15960. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  15961. pri_tdm_rx_0_port_mixer_controls,
  15962. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  15963. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  15964. pri_tdm_rx_1_port_mixer_controls,
  15965. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  15966. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  15967. pri_tdm_rx_2_port_mixer_controls,
  15968. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  15969. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  15970. pri_tdm_rx_3_port_mixer_controls,
  15971. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  15972. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  15973. sec_tdm_rx_0_port_mixer_controls,
  15974. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  15975. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  15976. sec_tdm_rx_1_port_mixer_controls,
  15977. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  15978. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  15979. sec_tdm_rx_2_port_mixer_controls,
  15980. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  15981. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  15982. sec_tdm_rx_3_port_mixer_controls,
  15983. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  15984. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  15985. tert_tdm_rx_0_port_mixer_controls,
  15986. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  15987. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  15988. tert_tdm_rx_1_port_mixer_controls,
  15989. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  15990. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  15991. tert_tdm_rx_2_port_mixer_controls,
  15992. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  15993. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  15994. tert_tdm_rx_3_port_mixer_controls,
  15995. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  15996. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  15997. quat_tdm_rx_0_port_mixer_controls,
  15998. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  15999. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16000. quat_tdm_rx_1_port_mixer_controls,
  16001. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  16002. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16003. quat_tdm_rx_2_port_mixer_controls,
  16004. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  16005. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16006. quat_tdm_rx_3_port_mixer_controls,
  16007. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  16008. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16009. quin_tdm_rx_0_port_mixer_controls,
  16010. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  16011. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16012. quin_tdm_rx_1_port_mixer_controls,
  16013. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  16014. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16015. quin_tdm_rx_2_port_mixer_controls,
  16016. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  16017. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16018. quin_tdm_rx_3_port_mixer_controls,
  16019. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  16020. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16021. int0_mi2s_rx_port_mixer_controls,
  16022. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  16023. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16024. int4_mi2s_rx_port_mixer_controls,
  16025. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  16026. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  16027. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  16028. ARRAY_SIZE(tx_qchat_mixer_controls)),
  16029. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  16030. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  16031. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  16032. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  16033. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  16034. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  16035. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  16036. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  16037. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  16038. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  16039. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  16040. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  16041. /* lsm mixer definitions */
  16042. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  16043. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  16044. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  16045. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  16046. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  16047. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  16048. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  16049. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  16050. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  16051. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  16052. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  16053. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  16054. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  16055. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  16056. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  16057. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  16058. /* Virtual Pins to force backends ON atm */
  16059. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  16060. SND_SOC_DAPM_INPUT("BE_IN"),
  16061. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16062. &slim0_rx_vi_fb_lch_mux),
  16063. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16064. &slim0_rx_vi_fb_rch_mux),
  16065. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16066. &wsa_rx_0_vi_fb_lch_mux),
  16067. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16068. &wsa_rx_0_vi_fb_rch_mux),
  16069. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  16070. &mi2s_rx_vi_fb_mux),
  16071. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16072. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  16073. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16074. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  16075. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  16076. &voc_ext_ec_mux),
  16077. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  16078. &ext_ec_ref_mux_ul1),
  16079. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  16080. &ext_ec_ref_mux_ul2),
  16081. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  16082. &ext_ec_ref_mux_ul3),
  16083. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  16084. &ext_ec_ref_mux_ul4),
  16085. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  16086. &ext_ec_ref_mux_ul5),
  16087. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  16088. &ext_ec_ref_mux_ul6),
  16089. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  16090. &ext_ec_ref_mux_ul8),
  16091. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  16092. &ext_ec_ref_mux_ul9),
  16093. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  16094. &ext_ec_ref_mux_ul10),
  16095. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  16096. &ext_ec_ref_mux_ul16),
  16097. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  16098. &ext_ec_ref_mux_ul17),
  16099. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  16100. &ext_ec_ref_mux_ul18),
  16101. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  16102. &ext_ec_ref_mux_ul19),
  16103. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  16104. &ext_ec_ref_mux_ul28),
  16105. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  16106. &ext_ec_ref_mux_ul29),
  16107. };
  16108. static const struct snd_soc_dapm_route intercon[] = {
  16109. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16110. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16111. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16112. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16113. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16114. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16115. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16116. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16117. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16118. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16119. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16120. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16121. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16122. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16123. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16124. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16125. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  16126. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16127. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16128. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16129. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16130. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16131. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16132. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16133. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16134. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16135. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16136. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16137. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16138. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16139. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16140. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16141. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16142. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  16143. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16144. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16145. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16146. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16147. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16148. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16149. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16150. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16151. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16152. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16153. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16154. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16155. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16156. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16157. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16158. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16159. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  16160. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16161. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16162. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16163. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16164. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16165. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16166. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16167. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16168. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16169. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16170. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16171. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16172. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16173. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16174. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16175. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16176. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  16177. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16178. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16179. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16180. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16181. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16182. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16183. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16184. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16185. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16186. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16187. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16188. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16189. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16190. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16191. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16192. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16193. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  16194. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16195. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16196. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16197. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16198. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16199. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16200. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16201. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16202. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16203. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16204. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16205. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16206. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16207. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16208. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16209. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16210. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  16211. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16212. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16213. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16214. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16215. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16216. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16217. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16218. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16219. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16220. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16221. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16222. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16223. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16224. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16225. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16226. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16227. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  16228. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  16229. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  16230. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  16231. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  16232. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  16233. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  16234. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  16235. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  16236. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  16237. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  16238. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  16239. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  16240. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  16241. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  16242. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  16243. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  16244. {"HDMI", NULL, "HDMI Mixer"},
  16245. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  16246. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  16247. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  16248. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  16249. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  16250. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  16251. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  16252. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  16253. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  16254. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  16255. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  16256. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  16257. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  16258. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  16259. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  16260. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  16261. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  16262. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  16263. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  16264. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  16265. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  16266. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  16267. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  16268. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  16269. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  16270. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  16271. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  16272. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  16273. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  16274. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  16275. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  16276. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  16277. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  16278. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  16279. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16280. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16281. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16282. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16283. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16284. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16285. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16286. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16287. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16288. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16289. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16290. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16291. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16292. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16293. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16294. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16295. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  16296. /* incall */
  16297. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  16298. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  16299. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  16300. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  16301. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  16302. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16303. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16304. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16305. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16306. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  16307. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16308. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16309. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16310. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16311. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  16312. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16313. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16314. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16315. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16316. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16317. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16318. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16319. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16320. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16321. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16322. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16323. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16324. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16325. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16326. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16327. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16328. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  16329. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16330. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16331. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16332. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16333. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16334. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16335. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16336. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16337. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16338. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16339. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16340. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16341. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16342. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16343. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16344. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16345. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  16346. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16347. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16348. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16349. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16350. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16351. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16352. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16353. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16354. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16355. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16356. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16357. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16358. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16359. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16360. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16361. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16362. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  16363. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16364. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16365. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16366. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16367. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16368. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16369. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  16370. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16371. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16372. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16373. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16374. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16375. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16376. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16377. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16378. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16379. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16380. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16381. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16382. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16383. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16384. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16385. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16386. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16387. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16388. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16389. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16390. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16391. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16392. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16393. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16394. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16395. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16396. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16397. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16398. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16399. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16400. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16401. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16402. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16403. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16404. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16405. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16406. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16407. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16408. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16409. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16410. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16411. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16412. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16413. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16414. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16415. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16416. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16417. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16418. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16419. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16420. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16421. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16422. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16423. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16424. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  16425. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16426. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16427. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16428. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16429. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16430. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16431. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16432. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16433. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16434. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16435. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16436. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16437. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16438. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16439. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16440. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  16441. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16442. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16443. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16444. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16445. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16446. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16447. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16448. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16449. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16450. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16451. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16452. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16453. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16454. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16455. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  16456. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16457. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16458. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16459. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16460. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16461. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16462. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16463. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16464. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16465. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16466. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16467. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16468. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16469. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16470. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  16471. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16472. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  16473. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16474. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16475. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16476. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16477. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16478. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16479. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16480. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16481. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16482. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16483. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16484. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16485. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16486. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16487. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16488. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16489. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16490. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  16491. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16492. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16493. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16494. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16495. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16496. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16497. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16498. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16499. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16500. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16501. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16502. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16503. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16504. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16505. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16506. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  16507. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16508. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16509. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16510. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16511. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16512. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16513. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16514. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16515. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16516. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16517. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16518. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16519. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16520. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16521. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16522. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  16523. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16524. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16525. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16526. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16527. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16528. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16529. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16530. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16531. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16532. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16533. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16534. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16535. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16536. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16537. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16538. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16539. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16540. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  16541. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16542. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16543. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16544. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16545. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16546. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16547. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16548. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16549. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16550. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16551. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16552. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16553. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16554. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16555. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16556. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16557. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  16558. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16559. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16560. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16561. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16562. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16563. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16564. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16565. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16566. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16567. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16568. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16569. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16570. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16571. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16572. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16573. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16574. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  16575. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16576. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16577. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16578. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16579. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16580. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16581. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16582. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16583. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16584. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16585. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16586. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16587. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16588. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16589. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16590. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16591. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  16592. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16593. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16594. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16595. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16596. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16597. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16598. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16599. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16600. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16601. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16602. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16603. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16604. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16605. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16606. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16607. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16608. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  16609. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16610. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16611. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16612. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16613. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16614. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16615. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16616. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16617. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16618. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16619. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16620. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16621. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16622. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16623. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16624. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16625. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  16626. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16627. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16628. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16629. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16630. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16631. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16632. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16633. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16634. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16635. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16636. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16637. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16638. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16639. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16640. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16641. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16642. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  16643. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16644. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16645. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16646. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16647. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16648. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16649. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16650. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16651. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16652. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16653. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16654. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16655. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16656. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16657. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16658. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16659. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  16660. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16661. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16662. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16663. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16664. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16665. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16666. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16667. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16668. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16669. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16670. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16671. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16672. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16673. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16674. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16675. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16676. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  16677. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16678. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16679. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16680. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16681. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16682. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16683. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16684. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16685. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16686. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16687. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16688. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16689. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16690. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16691. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16692. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16693. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  16694. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16695. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16696. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16697. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16698. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16699. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16700. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16701. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16702. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16703. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16704. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16705. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16706. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16707. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16708. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16709. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16710. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  16711. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16712. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16713. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16714. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16715. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16716. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16717. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16718. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16719. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16720. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16721. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16722. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16723. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16724. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16725. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16726. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16727. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  16728. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16729. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16730. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16731. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16732. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16733. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16734. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16735. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16736. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16737. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16738. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16739. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16740. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16741. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16742. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16743. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16744. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  16745. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16746. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16747. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16748. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16749. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16750. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16751. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16752. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16753. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16754. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16755. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16756. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16757. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16758. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16759. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16760. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16761. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  16762. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16763. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16764. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16765. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16766. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16767. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16768. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16769. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16770. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16771. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16772. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16773. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16774. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16775. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16776. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16777. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16778. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  16779. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16780. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16781. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16782. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16783. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16784. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16785. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16786. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16787. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16788. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16789. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16790. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16791. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16792. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16793. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16794. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16795. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  16796. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16797. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16798. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16799. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16800. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16801. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16802. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16803. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16804. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16805. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16806. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16807. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16808. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16809. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16810. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16811. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16812. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  16813. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16814. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16815. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16816. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16817. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16818. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16819. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16820. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16821. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16822. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16823. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16824. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16825. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16826. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16827. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16828. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16829. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16830. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  16831. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16832. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16833. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16834. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16835. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16836. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16837. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16838. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16839. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16840. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16841. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16842. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16843. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16844. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16845. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16846. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16847. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  16848. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16849. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16850. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16851. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16852. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16853. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16854. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16855. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16856. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16857. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16858. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16859. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16860. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16861. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16862. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16863. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16864. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16865. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  16866. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16867. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16868. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16869. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16870. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16871. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16872. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16873. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16874. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16875. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16876. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16877. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16878. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16879. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16880. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16881. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16882. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16883. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  16884. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16885. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16886. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16887. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16888. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16889. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16890. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16891. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16892. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16893. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16894. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16895. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16896. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16897. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16898. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16899. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16900. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16901. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  16902. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16903. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16904. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16905. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16906. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16907. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16908. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16909. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16910. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16911. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16912. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16913. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16914. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16915. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16916. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16917. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16918. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16919. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  16920. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16921. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16922. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16923. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16924. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16925. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16926. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16927. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16928. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16929. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16930. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16931. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16932. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16933. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16934. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16935. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16936. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  16937. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16938. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16939. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16940. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16941. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16942. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16943. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16944. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16945. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16946. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16947. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16948. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16949. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16950. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16951. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16952. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16953. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16954. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  16955. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16956. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16957. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16958. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16959. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16960. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16961. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16962. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16963. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16964. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16965. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16966. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16967. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16968. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16969. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16970. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16971. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16972. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  16973. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16974. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16975. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16976. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16977. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16978. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16979. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16980. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16981. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16982. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16983. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16984. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16985. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16986. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16987. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16988. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16989. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16990. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  16991. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  16992. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  16993. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  16994. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  16995. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  16996. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  16997. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  16998. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16999. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17000. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17001. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17002. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17003. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17004. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17005. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17006. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17007. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17008. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17009. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17010. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17011. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17012. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17013. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17014. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17015. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17016. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17017. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17018. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17019. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17020. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  17021. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17022. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17023. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17024. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  17025. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17026. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17027. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17028. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17029. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  17030. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17031. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17032. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17033. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  17034. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17035. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17036. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17037. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17038. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17039. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17040. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17041. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17042. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17043. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17044. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17045. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17046. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17047. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17048. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17049. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17050. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17051. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17052. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17053. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17054. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17055. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17056. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17057. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17058. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17059. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17060. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17061. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17062. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17063. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17064. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17065. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17066. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17067. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17068. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17069. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17070. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17071. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17072. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17073. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17074. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17075. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17076. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17077. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17078. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17079. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17080. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17081. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17082. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17083. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17084. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17085. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17086. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17087. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17088. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17089. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17090. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17091. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17092. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17093. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17094. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17095. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17096. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17097. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17098. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17099. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17100. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17101. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17102. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17103. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17104. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17105. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17106. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17107. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17108. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17109. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17110. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17111. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17112. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17113. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17114. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17115. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17116. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17117. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17118. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17119. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17120. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17121. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17122. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17123. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17124. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17125. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17126. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17127. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17128. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17129. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17130. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17131. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17132. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17133. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17134. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17135. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17136. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17137. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17138. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17139. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17140. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17141. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17142. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17143. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17144. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17145. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17146. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17147. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17148. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17149. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17150. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17151. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17152. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17153. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17154. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17155. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17156. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17157. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17158. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17159. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17160. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17161. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17162. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17163. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17164. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17165. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17166. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17167. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17168. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17169. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17170. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17171. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17172. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17173. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17174. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17175. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17176. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17177. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17178. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17179. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17180. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17181. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17182. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17183. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17184. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17185. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17186. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17187. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17188. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17189. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17190. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17191. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17192. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17193. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17194. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17195. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17196. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17197. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17198. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17199. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17200. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17201. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17202. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17203. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17204. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17205. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17206. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17207. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17208. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17209. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17210. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17211. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17212. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17213. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17214. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17215. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17216. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17217. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17218. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17219. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17220. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17221. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17222. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17223. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17224. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17225. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17226. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17227. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17228. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17229. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17230. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17231. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17232. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17233. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17234. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17235. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17236. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17237. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17238. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17239. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17240. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17241. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17242. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17243. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17244. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17245. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17246. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17247. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17248. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17249. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17250. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17251. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17252. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17253. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17254. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17255. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17256. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17257. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17258. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17259. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17260. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17261. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17262. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17263. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17264. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17265. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17266. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17267. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17268. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17269. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17270. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17271. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17272. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17273. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17274. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17275. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17276. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17277. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17278. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17279. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17280. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17281. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17282. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17283. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17284. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17285. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17286. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17287. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17288. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17289. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17290. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17291. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17292. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17293. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17294. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17295. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17296. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17297. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17298. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17299. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17300. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17301. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17302. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17303. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17304. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17305. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17306. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17307. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17308. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17309. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17310. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17311. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17312. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17313. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17314. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17315. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17316. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17317. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17318. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17319. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17320. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17321. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17322. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17323. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17324. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17325. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17326. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17327. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17328. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17329. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17330. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17331. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17332. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17333. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17334. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17335. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17336. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17337. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17338. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17339. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17340. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17341. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17342. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17343. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17344. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  17345. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17346. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17347. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17348. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17349. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17350. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17351. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17352. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17353. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17354. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17355. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17356. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17357. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17358. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17359. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17360. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17361. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17362. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  17363. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17364. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17365. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17366. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17367. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17368. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17369. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17370. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17371. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17372. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17373. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17374. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17375. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17376. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17377. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17378. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17379. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  17380. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17381. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17382. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17383. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17384. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17385. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17386. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17387. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17388. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17389. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17390. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17391. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17392. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17393. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17394. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17395. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17396. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  17397. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17398. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17399. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17400. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17401. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17402. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17403. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17404. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17405. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17406. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17407. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17408. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17409. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17410. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17411. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17412. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17413. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17414. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17415. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17416. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17417. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17418. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17419. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17420. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17421. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17422. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17423. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17424. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17425. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17426. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17427. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17428. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17429. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17430. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17431. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17432. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  17433. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17434. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  17435. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  17436. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  17437. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  17438. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  17439. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  17440. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  17441. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  17442. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  17443. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  17444. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  17445. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  17446. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  17447. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  17448. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  17449. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17450. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17451. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17452. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17453. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17454. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17455. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17456. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17457. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17458. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17459. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17460. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17461. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17462. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17463. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17464. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17465. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  17466. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17467. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17468. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17469. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17470. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17471. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17472. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17473. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17474. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17475. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17476. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17477. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17478. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17479. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17480. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17481. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17482. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  17483. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17484. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17485. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17486. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17487. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17488. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17489. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17490. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17491. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17492. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17493. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17494. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17495. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17496. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17497. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17498. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17499. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  17500. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17501. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17502. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17503. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17504. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17505. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17506. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17507. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17508. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17509. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17510. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17511. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17512. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17513. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17514. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17515. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17516. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  17517. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17518. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17519. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17520. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17521. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17522. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17523. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17524. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17525. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17526. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17527. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17528. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17529. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17530. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17531. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17532. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17533. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  17534. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17535. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17536. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17537. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17538. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17539. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  17540. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17541. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17542. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17543. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  17544. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17545. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17546. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17547. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17548. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17549. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  17550. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17551. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17552. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17553. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17554. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17555. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  17556. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17557. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17558. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17559. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17560. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17561. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  17562. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17563. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17564. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17565. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17566. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17567. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  17568. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17569. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17570. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17571. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17572. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17573. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  17574. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  17575. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17576. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17577. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17578. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17579. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  17580. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17581. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17582. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17583. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17584. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17585. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  17586. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17587. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17588. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17589. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17590. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17591. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  17592. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17593. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17594. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17595. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17596. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17597. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  17598. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17599. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17600. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17601. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17602. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17603. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  17604. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17605. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17606. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17607. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17608. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17609. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  17610. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17611. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17612. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17613. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17614. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17615. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  17616. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17617. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17618. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17619. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17620. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17621. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  17622. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17623. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17624. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17625. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17626. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17627. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  17628. {"HDMI", NULL, "HDMI_DL_HL"},
  17629. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17630. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17631. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17632. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17633. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17634. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  17635. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17636. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17637. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17638. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17639. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17640. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  17641. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17642. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17643. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17644. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17645. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17646. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  17647. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17648. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17649. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17650. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17651. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17652. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  17653. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17654. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17655. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17656. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17657. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17658. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  17659. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17660. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17661. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17662. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17663. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  17664. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17665. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17666. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17667. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17668. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  17669. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17670. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  17671. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17672. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17673. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17674. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17675. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17676. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17677. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  17678. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  17679. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  17680. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17681. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17682. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17683. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17684. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17685. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17686. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17687. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17688. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17689. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17690. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17691. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17692. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17693. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17694. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17695. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17696. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17697. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17698. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17699. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17700. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17701. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17702. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17703. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17704. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17705. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17706. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17707. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17708. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17709. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17710. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17711. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17712. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17713. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17714. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17715. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17716. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17717. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17718. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17719. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17720. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17721. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17722. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17723. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17724. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17725. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17726. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17727. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17728. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17729. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17730. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17731. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17732. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17733. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17734. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17735. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17736. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17737. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17738. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17739. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17740. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17741. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17742. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17743. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17744. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17745. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17746. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17747. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17748. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17749. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17750. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17751. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17752. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17753. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17754. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17755. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17756. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17757. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17758. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17759. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17760. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17761. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  17762. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  17763. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  17764. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  17765. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  17766. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  17767. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  17768. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  17769. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  17770. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  17771. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  17772. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  17773. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  17774. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  17775. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  17776. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  17777. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  17778. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  17779. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  17780. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  17781. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  17782. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  17783. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  17784. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  17785. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  17786. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  17787. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  17788. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  17789. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  17790. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  17791. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  17792. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  17793. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  17794. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  17795. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  17796. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  17797. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  17798. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  17799. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  17800. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  17801. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  17802. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  17803. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  17804. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  17805. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  17806. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  17807. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  17808. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  17809. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  17810. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  17811. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  17812. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  17813. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  17814. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  17815. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  17816. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  17817. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  17818. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  17819. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  17820. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  17821. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  17822. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  17823. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  17824. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  17825. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  17826. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  17827. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  17828. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  17829. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  17830. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  17831. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  17832. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  17833. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  17834. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  17835. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  17836. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  17837. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  17838. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  17839. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  17840. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  17841. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  17842. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17843. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17844. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17845. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17846. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17847. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17848. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17849. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17850. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17851. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17852. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  17853. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17854. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17855. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17856. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17857. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17858. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17859. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17860. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17861. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17862. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17863. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  17864. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17865. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17866. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17867. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17868. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17869. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17870. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17871. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17872. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17873. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17874. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  17875. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17876. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17877. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17878. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17879. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17880. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17881. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17882. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17883. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17884. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17885. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  17886. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17887. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17888. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17889. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17890. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17891. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17892. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17893. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17894. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17895. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17896. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  17897. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17898. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17899. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17900. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17901. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17902. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17903. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17904. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17905. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  17906. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17907. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17908. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17909. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17910. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17911. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17912. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17913. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17914. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  17915. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17916. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17917. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17918. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17919. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17920. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17921. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17922. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17923. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  17924. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  17925. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  17926. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  17927. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  17928. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  17929. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  17930. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  17931. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  17932. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  17933. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  17934. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  17935. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  17936. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  17937. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  17938. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  17939. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  17940. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  17941. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  17942. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  17943. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  17944. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  17945. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  17946. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  17947. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  17948. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  17949. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  17950. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  17951. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  17952. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  17953. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  17954. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  17955. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  17956. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  17957. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  17958. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  17959. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  17960. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  17961. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  17962. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  17963. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  17964. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  17965. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  17966. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  17967. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  17968. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  17969. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  17970. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  17971. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  17972. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  17973. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  17974. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  17975. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  17976. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  17977. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  17978. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  17979. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  17980. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  17981. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  17982. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  17983. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  17984. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  17985. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  17986. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  17987. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  17988. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  17989. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  17990. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  17991. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  17992. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  17993. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  17994. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  17995. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  17996. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  17997. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  17998. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  17999. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  18000. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  18001. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  18002. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  18003. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  18004. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  18005. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  18006. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  18007. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  18008. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  18009. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  18010. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  18011. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  18012. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  18013. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  18014. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  18015. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  18016. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  18017. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  18018. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  18019. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  18020. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  18021. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  18022. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  18023. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  18024. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  18025. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  18026. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  18027. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  18028. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18029. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18030. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18031. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18032. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18033. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18034. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18035. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18036. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18037. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18038. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18039. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18040. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18041. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18042. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18043. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18044. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18045. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18046. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18047. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18048. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  18049. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18050. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18051. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18052. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18053. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18054. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18055. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18056. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18057. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18058. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18059. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18060. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18061. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18062. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18063. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18064. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18065. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18066. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18067. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18068. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18069. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  18070. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18071. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18072. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18073. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18074. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18075. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18076. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18077. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18078. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18079. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18080. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18081. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18082. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18083. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18084. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18085. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18086. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18087. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18088. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18089. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18090. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  18091. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18092. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18093. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18094. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18095. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18096. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18097. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18098. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18099. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18100. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18101. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18102. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18103. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18104. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18105. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18106. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18107. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18108. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18109. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18110. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18111. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  18112. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18113. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18114. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18115. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18116. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18117. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18118. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18119. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18120. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18121. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18122. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18123. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18124. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18125. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18126. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18127. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18128. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18129. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18130. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18131. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18132. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  18133. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18134. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18135. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18136. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18137. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18138. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18139. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18140. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18141. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18142. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18143. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18144. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18145. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18146. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18147. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18148. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18149. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18150. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18151. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18152. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18153. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  18154. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18155. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18156. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18157. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18158. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18159. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18160. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18161. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18162. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18163. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18164. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18165. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18166. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18167. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18168. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18169. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18170. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18171. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18172. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18173. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18174. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  18175. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18176. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18177. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18178. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18179. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18180. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18181. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18182. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18183. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18184. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18185. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18186. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18187. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18188. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18189. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18190. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18191. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18192. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18193. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18194. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18195. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  18196. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18197. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18198. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18199. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18200. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18201. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18202. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18203. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18204. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18205. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18206. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18207. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18208. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18209. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18210. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18211. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18212. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18213. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18214. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18215. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18216. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  18217. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18218. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18219. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18220. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18221. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18222. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18223. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18224. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18225. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18226. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18227. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18228. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18229. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18230. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18231. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18232. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18233. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18234. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18235. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18236. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18237. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  18238. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18239. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18240. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18241. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18242. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18243. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18244. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18245. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18246. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18247. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18248. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18249. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18250. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18251. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18252. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18253. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18254. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18255. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18256. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18257. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18258. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  18259. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18260. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18261. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18262. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18263. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18264. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18265. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18266. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18267. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18268. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18269. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18270. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18271. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18272. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18273. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18274. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18275. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18276. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18277. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18278. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18279. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  18280. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18281. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18282. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18283. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18284. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18285. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18286. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18287. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18288. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18289. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18290. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18291. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18292. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18293. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18294. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18295. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18296. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18297. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18298. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18299. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18300. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  18301. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18302. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18303. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18304. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18305. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18306. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18307. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18308. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18309. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18310. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18311. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18312. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18313. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18314. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18315. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18316. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18317. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18318. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18319. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18320. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18321. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  18322. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18323. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18324. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18325. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18326. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18327. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18328. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18329. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18330. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18331. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18332. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18333. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18334. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18335. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18336. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18337. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18338. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18339. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18340. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18341. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18342. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  18343. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18344. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18345. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18346. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18347. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18348. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18349. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18350. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18351. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18352. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18353. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18354. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18355. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18356. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18357. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18358. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18359. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18360. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18361. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18362. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18363. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  18364. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18365. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18366. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18367. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18368. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18369. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18370. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18371. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18372. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18373. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18374. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18375. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18376. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18377. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18378. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18379. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18380. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18381. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18382. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18383. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18384. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  18385. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18386. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18387. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18388. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18389. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18390. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18391. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18392. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18393. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18394. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18395. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18396. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18397. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18398. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18399. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18400. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18401. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18402. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18403. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18404. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18405. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  18406. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18407. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18408. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18409. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18410. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18411. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18412. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18413. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18414. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18415. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18416. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18417. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18418. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18419. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18420. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18421. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18422. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18423. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18424. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18425. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18426. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  18427. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18428. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18429. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18430. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18431. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18432. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18433. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18434. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18435. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18436. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18437. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18438. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18439. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18440. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18441. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18442. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18443. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18444. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18445. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18446. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18447. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  18448. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18449. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18450. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18451. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18452. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18453. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18454. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18455. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18456. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18457. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18458. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  18459. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18460. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18461. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18462. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18463. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18464. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18465. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18466. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18467. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18468. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18469. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  18470. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18471. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18472. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18473. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18474. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18475. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18476. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18477. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18478. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18479. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18480. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18481. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18482. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18483. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18484. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18485. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18486. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18487. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  18488. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18489. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18490. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  18491. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  18492. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  18493. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  18494. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  18495. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  18496. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18497. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18498. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18499. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18500. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18501. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18502. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  18503. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18504. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18505. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18506. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18507. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  18508. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18509. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18510. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18511. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  18512. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18513. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18514. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18515. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  18516. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18517. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18518. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18519. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  18520. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18521. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18522. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18523. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18524. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18525. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18526. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18527. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18528. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18529. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  18530. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18531. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18532. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18533. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18534. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18535. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18536. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18537. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18538. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18539. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  18540. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18541. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18542. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18543. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18544. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18545. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18546. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18547. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18548. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18549. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18550. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18551. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  18552. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18553. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18554. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18555. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18556. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18557. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18558. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18559. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18560. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18561. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18562. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18563. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  18564. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18565. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18566. {"STUB_RX", NULL, "STUB_RX Mixer"},
  18567. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18568. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18569. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  18570. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18571. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18572. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  18573. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18574. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18575. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18576. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18577. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18578. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  18579. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18580. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18581. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18582. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18583. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18584. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  18585. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18586. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18587. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18588. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  18589. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18590. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18591. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  18592. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  18593. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18594. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  18595. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  18596. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  18597. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  18598. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18599. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18600. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18601. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18602. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18603. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18604. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18605. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18606. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18607. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18608. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18609. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18610. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  18611. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18612. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  18613. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18614. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  18615. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  18616. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  18617. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18618. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  18619. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18620. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18621. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  18622. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18623. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18624. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18625. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18626. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18627. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18628. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18629. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18630. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18631. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18632. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  18633. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18634. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18635. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18636. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18637. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18638. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18639. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18640. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18641. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18642. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  18643. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18644. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18645. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18646. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18647. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18648. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18649. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18650. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  18651. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18652. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18653. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18654. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18655. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18656. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18657. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18658. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18659. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18660. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  18661. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18662. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18663. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18664. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18665. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18666. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18667. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18668. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  18669. /* Backend Enablement */
  18670. {"BE_OUT", NULL, "PRI_I2S_RX"},
  18671. {"BE_OUT", NULL, "SEC_I2S_RX"},
  18672. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  18673. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  18674. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  18675. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18676. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  18677. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  18678. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  18679. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  18680. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  18681. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  18682. {"BE_OUT", NULL, "HDMI"},
  18683. {"BE_OUT", NULL, "DISPLAY_PORT"},
  18684. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  18685. {"BE_OUT", NULL, "SPDIF_RX"},
  18686. {"BE_OUT", NULL, "MI2S_RX"},
  18687. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  18688. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  18689. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  18690. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  18691. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  18692. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  18693. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  18694. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  18695. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  18696. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  18697. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  18698. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18699. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  18700. {"BE_OUT", NULL, "INT_FM_RX"},
  18701. {"BE_OUT", NULL, "PCM_RX"},
  18702. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18703. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18704. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  18705. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  18706. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  18707. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  18708. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18709. {"BE_OUT", NULL, "INT_FM_RX"},
  18710. {"BE_OUT", NULL, "PCM_RX"},
  18711. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18712. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  18713. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  18714. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  18715. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  18716. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  18717. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  18718. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  18719. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  18720. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  18721. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  18722. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  18723. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  18724. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  18725. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  18726. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  18727. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  18728. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  18729. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  18730. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  18731. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  18732. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  18733. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  18734. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  18735. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  18736. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  18737. {"PRI_I2S_TX", NULL, "BE_IN"},
  18738. {"MI2S_TX", NULL, "BE_IN"},
  18739. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  18740. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  18741. {"PRI_MI2S_TX", NULL, "BE_IN"},
  18742. {"TERT_MI2S_TX", NULL, "BE_IN"},
  18743. {"INT0_MI2S_TX", NULL, "BE_IN"},
  18744. {"INT2_MI2S_TX", NULL, "BE_IN"},
  18745. {"INT3_MI2S_TX", NULL, "BE_IN"},
  18746. {"INT4_MI2S_TX", NULL, "BE_IN"},
  18747. {"INT5_MI2S_TX", NULL, "BE_IN"},
  18748. {"SEC_MI2S_TX", NULL, "BE_IN"},
  18749. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  18750. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  18751. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  18752. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  18753. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  18754. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  18755. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  18756. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  18757. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  18758. {"USB_AUDIO_TX", NULL, "BE_IN" },
  18759. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  18760. {"INT_FM_TX", NULL, "BE_IN"},
  18761. {"PCM_TX", NULL, "BE_IN"},
  18762. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18763. {"BE_OUT", NULL, "STUB_RX"},
  18764. {"STUB_TX", NULL, "BE_IN"},
  18765. {"STUB_1_TX", NULL, "BE_IN"},
  18766. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18767. {"AUX_PCM_TX", NULL, "BE_IN"},
  18768. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  18769. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  18770. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  18771. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  18772. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  18773. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  18774. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18775. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18776. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18777. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18778. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  18779. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18780. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18781. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  18782. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  18783. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  18784. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  18785. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  18786. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  18787. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  18788. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  18789. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  18790. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  18791. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  18792. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  18793. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  18794. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  18795. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  18796. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  18797. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  18798. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  18799. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  18800. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  18801. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  18802. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  18803. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  18804. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  18805. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  18806. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  18807. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  18808. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18809. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18810. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  18811. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18812. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18813. };
  18814. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  18815. struct snd_pcm_hw_params *params)
  18816. {
  18817. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18818. unsigned int be_id = rtd->dai_link->id;
  18819. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18820. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18821. return -EINVAL;
  18822. }
  18823. mutex_lock(&routing_lock);
  18824. msm_bedais[be_id].sample_rate = params_rate(params);
  18825. msm_bedais[be_id].channel = params_channels(params);
  18826. msm_bedais[be_id].format = params_format(params);
  18827. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  18828. __func__, msm_bedais[be_id].sample_rate,
  18829. msm_bedais[be_id].format, be_id);
  18830. mutex_unlock(&routing_lock);
  18831. return 0;
  18832. }
  18833. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  18834. {
  18835. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18836. unsigned int be_id = rtd->dai_link->id;
  18837. int i, session_type, path_type, topology;
  18838. struct msm_pcm_routing_bdai_data *bedai;
  18839. struct msm_pcm_routing_fdai_data *fdai;
  18840. pr_debug("%s: substream->pcm->id:%s\n",
  18841. __func__, substream->pcm->id);
  18842. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18843. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18844. return -EINVAL;
  18845. }
  18846. bedai = &msm_bedais[be_id];
  18847. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  18848. 0 : 1);
  18849. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  18850. path_type = ADM_PATH_PLAYBACK;
  18851. else
  18852. path_type = ADM_PATH_LIVE_REC;
  18853. mutex_lock(&routing_lock);
  18854. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  18855. if (!is_mm_lsm_fe_id(i))
  18856. continue;
  18857. fdai = &fe_dai_map[i][session_type];
  18858. if (fdai->strm_id != INVALID_SESSION) {
  18859. int idx;
  18860. int port_id;
  18861. unsigned long copp =
  18862. session_copp_map[i][session_type][be_id];
  18863. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  18864. if (test_bit(idx, &copp))
  18865. break;
  18866. fdai->be_srate = bedai->sample_rate;
  18867. port_id = bedai->port_id;
  18868. topology = adm_get_topology_for_port_copp_idx(port_id,
  18869. idx);
  18870. adm_close(bedai->port_id, fdai->perf_mode, idx);
  18871. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  18872. __func__, copp, i, session_type, be_id,
  18873. topology);
  18874. clear_bit(idx,
  18875. &session_copp_map[i][session_type][be_id]);
  18876. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  18877. (bedai->passthr_mode[i] == LEGACY_PCM))
  18878. msm_pcm_routing_deinit_pp(bedai->port_id,
  18879. topology);
  18880. }
  18881. }
  18882. bedai->active = 0;
  18883. bedai->sample_rate = 0;
  18884. bedai->channel = 0;
  18885. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  18886. if (bedai->passthr_mode[i] != LISTEN)
  18887. bedai->passthr_mode[i] = LEGACY_PCM;
  18888. }
  18889. mutex_unlock(&routing_lock);
  18890. return 0;
  18891. }
  18892. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  18893. {
  18894. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18895. unsigned int be_id = rtd->dai_link->id;
  18896. int i, path_type, topology;
  18897. int session_type = INVALID_SESSION;
  18898. struct msm_pcm_routing_bdai_data *bedai;
  18899. u32 channels, sample_rate;
  18900. uint16_t bits_per_sample = 16, voc_path_type;
  18901. struct msm_pcm_routing_fdai_data *fdai;
  18902. u32 session_id;
  18903. struct media_format_info voc_be_media_format;
  18904. bool is_lsm;
  18905. pr_debug("%s: substream->pcm->id:%s\n",
  18906. __func__, substream->pcm->id);
  18907. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18908. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18909. return -EINVAL;
  18910. }
  18911. bedai = &msm_bedais[be_id];
  18912. mutex_lock(&routing_lock);
  18913. if (bedai->active == 1)
  18914. goto done; /* Ignore prepare if back-end already active */
  18915. /* AFE port is not active at this point. However, still
  18916. * go ahead setting active flag under the notion that
  18917. * QDSP6 is able to handle ADM starting before AFE port
  18918. * is started.
  18919. */
  18920. bedai->active = 1;
  18921. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  18922. if (!(is_mm_lsm_fe_id(i) &&
  18923. route_check_fe_id_adm_support(i)))
  18924. continue;
  18925. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  18926. if (bedai->passthr_mode[i] != LEGACY_PCM)
  18927. path_type = ADM_PATH_COMPRESSED_RX;
  18928. else
  18929. path_type = ADM_PATH_PLAYBACK;
  18930. session_type = SESSION_TYPE_RX;
  18931. } else {
  18932. path_type = ADM_PATH_LIVE_REC;
  18933. session_type = SESSION_TYPE_TX;
  18934. }
  18935. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  18936. (i <= MSM_FRONTEND_DAI_LSM8);
  18937. fdai = &fe_dai_map[i][session_type];
  18938. if (fdai->strm_id != INVALID_SESSION) {
  18939. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  18940. if (session_type == SESSION_TYPE_TX &&
  18941. fdai->be_srate &&
  18942. (fdai->be_srate != bedai->sample_rate)) {
  18943. pr_debug("%s: flush strm %d diff BE rates\n",
  18944. __func__,
  18945. fdai->strm_id);
  18946. if (fdai->event_info.event_func)
  18947. fdai->event_info.event_func(
  18948. MSM_PCM_RT_EVT_BUF_RECFG,
  18949. fdai->event_info.priv_data);
  18950. fdai->be_srate = 0; /* might not need it */
  18951. }
  18952. bits_per_sample = msm_routing_get_bit_width(
  18953. bedai->format);
  18954. app_type =
  18955. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  18956. if (app_type && is_lsm) {
  18957. app_type_idx =
  18958. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  18959. sample_rate =
  18960. fe_dai_app_type_cfg[i][session_type][be_id]
  18961. .sample_rate;
  18962. bits_per_sample =
  18963. lsm_app_type_cfg[app_type_idx].bit_width;
  18964. } else if (app_type) {
  18965. app_type_idx =
  18966. msm_pcm_routing_get_app_type_idx(app_type);
  18967. sample_rate =
  18968. fe_dai_app_type_cfg[i][session_type]
  18969. [be_id].sample_rate;
  18970. bits_per_sample =
  18971. app_type_cfg[app_type_idx].bit_width;
  18972. } else
  18973. sample_rate = bedai->sample_rate;
  18974. /*
  18975. * check if ADM needs to be configured with different
  18976. * channel mapping than backend
  18977. */
  18978. if (!bedai->adm_override_ch)
  18979. channels = bedai->channel;
  18980. else
  18981. channels = bedai->adm_override_ch;
  18982. acdb_dev_id =
  18983. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  18984. topology = msm_routing_get_adm_topology(i, session_type,
  18985. be_id);
  18986. copp_idx = adm_open(bedai->port_id, path_type,
  18987. sample_rate, channels, topology,
  18988. fdai->perf_mode, bits_per_sample,
  18989. app_type, acdb_dev_id);
  18990. if ((copp_idx < 0) ||
  18991. (copp_idx >= MAX_COPPS_PER_PORT)) {
  18992. pr_err("%s: adm open failed\n", __func__);
  18993. mutex_unlock(&routing_lock);
  18994. return -EINVAL;
  18995. }
  18996. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  18997. __func__, i, session_type, be_id);
  18998. set_bit(copp_idx,
  18999. &session_copp_map[i][session_type][be_id]);
  19000. if (msm_is_resample_needed(
  19001. sample_rate,
  19002. bedai->sample_rate))
  19003. adm_copp_mfc_cfg(
  19004. bedai->port_id, copp_idx,
  19005. bedai->sample_rate);
  19006. msm_pcm_routing_build_matrix(i, session_type, path_type,
  19007. fdai->perf_mode,
  19008. bedai->passthr_mode[i]);
  19009. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  19010. (bedai->passthr_mode[i] == LEGACY_PCM))
  19011. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  19012. topology, channels);
  19013. }
  19014. }
  19015. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19016. session_id = msm_pcm_routing_get_voc_sessionid(i);
  19017. if (session_id) {
  19018. pr_debug("%s voice session_id: 0x%x\n", __func__,
  19019. session_id);
  19020. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  19021. voc_path_type = RX_PATH;
  19022. else
  19023. voc_path_type = TX_PATH;
  19024. voc_set_route_flag(session_id, voc_path_type, 1);
  19025. memset(&voc_be_media_format, 0,
  19026. sizeof(struct media_format_info));
  19027. voc_be_media_format.port_id = bedai->port_id;
  19028. voc_be_media_format.num_channels = bedai->channel;
  19029. voc_be_media_format.sample_rate = bedai->sample_rate;
  19030. voc_be_media_format.bits_per_sample = bedai->format;
  19031. /* Defaulting this to 1 for voice call usecases */
  19032. voc_be_media_format.channel_mapping[0] = 1;
  19033. voc_set_device_config(session_id, voc_path_type,
  19034. &voc_be_media_format);
  19035. if (voc_get_route_flag(session_id, RX_PATH) &&
  19036. voc_get_route_flag(session_id, TX_PATH))
  19037. voc_enable_device(session_id);
  19038. }
  19039. }
  19040. /* Check if backend is an external ec ref port and set as needed */
  19041. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  19042. memset(&voc_be_media_format, 0,
  19043. sizeof(struct media_format_info));
  19044. /* Get format info for ec ref port from msm_bedais[] */
  19045. voc_be_media_format.port_id = bedai->port_id;
  19046. voc_be_media_format.num_channels = bedai->channel;
  19047. voc_be_media_format.bits_per_sample = bedai->format;
  19048. voc_be_media_format.sample_rate = bedai->sample_rate;
  19049. /* Defaulting this to 1 for voice call usecases */
  19050. voc_be_media_format.channel_mapping[0] = 1;
  19051. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  19052. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  19053. __func__, voc_be_media_format.port_id,
  19054. voc_be_media_format.num_channels,
  19055. voc_be_media_format.bits_per_sample,
  19056. voc_be_media_format.sample_rate);
  19057. }
  19058. done:
  19059. mutex_unlock(&routing_lock);
  19060. return 0;
  19061. }
  19062. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  19063. int fe_id)
  19064. {
  19065. int index, topo_id, be_idx;
  19066. unsigned long pp_config = 0;
  19067. bool mute_on;
  19068. int latency;
  19069. bool compr_passthr_mode = true;
  19070. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  19071. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  19072. pr_err("%s: Device pp params on invalid port %d\n",
  19073. __func__, port_id);
  19074. return -EINVAL;
  19075. }
  19076. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19077. if (port_id == msm_bedais[be_idx].port_id)
  19078. break;
  19079. }
  19080. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19081. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19082. return -EINVAL;
  19083. }
  19084. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19085. if (msm_bedais_pp_params[index].port_id == port_id)
  19086. break;
  19087. }
  19088. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19089. pr_err("%s: Invalid backend pp params index %d\n",
  19090. __func__, index);
  19091. return -EINVAL;
  19092. }
  19093. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  19094. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  19095. pr_err("%s: Invalid passthrough topology 0x%x\n",
  19096. __func__, topo_id);
  19097. return -EINVAL;
  19098. }
  19099. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  19100. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  19101. compr_passthr_mode = false;
  19102. pp_config = msm_bedais_pp_params[index].pp_params_config;
  19103. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  19104. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19105. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  19106. mute_on = msm_bedais_pp_params[index].mute_on;
  19107. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19108. adm_send_compressed_device_mute(port_id,
  19109. copp_idx,
  19110. mute_on);
  19111. }
  19112. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  19113. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19114. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  19115. &pp_config);
  19116. latency = msm_bedais_pp_params[index].latency;
  19117. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19118. adm_send_compressed_device_latency(port_id,
  19119. copp_idx,
  19120. latency);
  19121. }
  19122. return 0;
  19123. }
  19124. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19125. struct snd_ctl_elem_value *ucontrol)
  19126. {
  19127. int pp_id = ucontrol->value.integer.value[0];
  19128. int port_id = 0;
  19129. int index, be_idx, i, topo_id, idx;
  19130. bool mute;
  19131. int latency;
  19132. bool compr_passthr_mode = true;
  19133. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  19134. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19135. port_id = msm_bedais[be_idx].port_id;
  19136. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  19137. break;
  19138. }
  19139. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19140. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19141. return -EINVAL;
  19142. }
  19143. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19144. if (msm_bedais_pp_params[index].port_id == port_id)
  19145. break;
  19146. }
  19147. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19148. pr_err("%s: Invalid pp params backend index %d\n",
  19149. __func__, index);
  19150. return -EINVAL;
  19151. }
  19152. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  19153. MSM_FRONTEND_DAI_MM_SIZE) {
  19154. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  19155. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  19156. compr_passthr_mode = false;
  19157. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19158. unsigned long copp =
  19159. session_copp_map[i]
  19160. [SESSION_TYPE_RX][be_idx];
  19161. if (!test_bit(idx, &copp))
  19162. continue;
  19163. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  19164. idx);
  19165. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  19166. continue;
  19167. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  19168. __func__, port_id, copp, msm_bedais[be_idx].active,
  19169. msm_bedais[be_idx].passthr_mode[i]);
  19170. switch (pp_id) {
  19171. case ADM_PP_PARAM_MUTE_ID:
  19172. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19173. mute = ucontrol->value.integer.value[1] ? true : false;
  19174. msm_bedais_pp_params[index].mute_on = mute;
  19175. set_bit(ADM_PP_PARAM_MUTE_BIT,
  19176. &msm_bedais_pp_params[index].pp_params_config);
  19177. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19178. adm_send_compressed_device_mute(port_id,
  19179. idx, mute);
  19180. break;
  19181. case ADM_PP_PARAM_LATENCY_ID:
  19182. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19183. msm_bedais_pp_params[index].latency =
  19184. ucontrol->value.integer.value[1];
  19185. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  19186. &msm_bedais_pp_params[index].pp_params_config);
  19187. latency = msm_bedais_pp_params[index].latency =
  19188. ucontrol->value.integer.value[1];
  19189. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19190. adm_send_compressed_device_latency(port_id,
  19191. idx, latency);
  19192. break;
  19193. default:
  19194. pr_info("%s, device pp param %d not supported\n",
  19195. __func__, pp_id);
  19196. break;
  19197. }
  19198. }
  19199. }
  19200. return 0;
  19201. }
  19202. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19203. struct snd_ctl_elem_value *ucontrol)
  19204. {
  19205. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  19206. return 0;
  19207. }
  19208. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  19209. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  19210. 0, 3, msm_routing_get_device_pp_params_mixer,
  19211. msm_routing_put_device_pp_params_mixer),
  19212. };
  19213. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  19214. struct snd_ctl_elem_value *ucontrol)
  19215. {
  19216. ucontrol->value.integer.value[0] =
  19217. core_get_license_status(ASM_MEDIA_FMT_APTX);
  19218. pr_debug("%s: status %ld\n", __func__,
  19219. ucontrol->value.integer.value[0]);
  19220. return 0;
  19221. }
  19222. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  19223. struct snd_ctl_elem_value *ucontrol)
  19224. {
  19225. int32_t status = 0;
  19226. status = core_set_license(ucontrol->value.integer.value[0],
  19227. APTX_CLASSIC_DEC_LICENSE_ID);
  19228. pr_debug("%s: status %d\n", __func__, status);
  19229. return status;
  19230. }
  19231. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  19232. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  19233. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  19234. msm_aptx_dec_license_control_put),
  19235. };
  19236. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  19237. struct snd_ctl_elem_info *uinfo)
  19238. {
  19239. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19240. uinfo->count = sizeof(be_dai_name_table);
  19241. return 0;
  19242. }
  19243. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  19244. unsigned int __user *bytes,
  19245. unsigned int size)
  19246. {
  19247. int i;
  19248. int ret;
  19249. if (size < sizeof(be_dai_name_table)) {
  19250. pr_err("%s: invalid size %d requested, returning\n",
  19251. __func__, size);
  19252. ret = -EINVAL;
  19253. goto done;
  19254. }
  19255. /*
  19256. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  19257. * needed when adding new backends
  19258. */
  19259. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19260. be_dai_name_table[i].be_id = i;
  19261. strlcpy(be_dai_name_table[i].be_name,
  19262. msm_bedais[i].name,
  19263. LPASS_BE_NAME_MAX_LENGTH);
  19264. }
  19265. ret = copy_to_user(bytes, &be_dai_name_table,
  19266. sizeof(be_dai_name_table));
  19267. if (ret) {
  19268. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  19269. ret = -EFAULT;
  19270. }
  19271. done:
  19272. return ret;
  19273. }
  19274. static const struct snd_kcontrol_new
  19275. msm_routing_be_dai_name_table_mixer_controls[] = {
  19276. {
  19277. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  19278. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  19279. .info = msm_routing_be_dai_name_table_info,
  19280. .name = "Backend DAI Name Table",
  19281. .tlv.c = snd_soc_bytes_tlv_callback,
  19282. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  19283. .max = sizeof(be_dai_name_table),
  19284. .get = msm_routing_be_dai_name_table_tlv_get,
  19285. }
  19286. },
  19287. };
  19288. static int msm_routing_stereo_channel_reverse_control_get(
  19289. struct snd_kcontrol *kcontrol,
  19290. struct snd_ctl_elem_value *ucontrol)
  19291. {
  19292. ucontrol->value.integer.value[0] = swap_ch;
  19293. pr_debug("%s: Swap channel value: %ld\n", __func__,
  19294. ucontrol->value.integer.value[0]);
  19295. return 0;
  19296. }
  19297. static int msm_routing_stereo_channel_reverse_control_put(
  19298. struct snd_kcontrol *kcontrol,
  19299. struct snd_ctl_elem_value *ucontrol)
  19300. {
  19301. int i, idx, be_index, port_id;
  19302. int ret = 0;
  19303. unsigned long copp;
  19304. pr_debug("%s Swap channel value:%ld\n", __func__,
  19305. ucontrol->value.integer.value[0]);
  19306. swap_ch = ucontrol->value.integer.value[0];
  19307. mutex_lock(&routing_lock);
  19308. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  19309. port_id = msm_bedais[be_index].port_id;
  19310. if (!msm_bedais[be_index].active)
  19311. continue;
  19312. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  19313. MSM_FRONTEND_DAI_MM_SIZE) {
  19314. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  19315. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19316. if (!test_bit(idx, &copp))
  19317. continue;
  19318. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  19319. __func__, port_id, idx);
  19320. ret = adm_swap_speaker_channels(
  19321. port_id, idx,
  19322. msm_bedais[be_index].sample_rate,
  19323. swap_ch);
  19324. if (ret) {
  19325. pr_err("%s:Swap_channel failed, err=%d\n",
  19326. __func__, ret);
  19327. goto done;
  19328. }
  19329. }
  19330. }
  19331. }
  19332. done:
  19333. mutex_unlock(&routing_lock);
  19334. return ret;
  19335. }
  19336. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  19337. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  19338. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  19339. msm_routing_stereo_channel_reverse_control_put),
  19340. };
  19341. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  19342. struct snd_ctl_elem_info *uinfo)
  19343. {
  19344. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  19345. uinfo->count = 1;
  19346. return 0;
  19347. }
  19348. static int msm_routing_instance_id_support_put(
  19349. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19350. {
  19351. bool supported = ucontrol->value.integer.value[0] ? true : false;
  19352. q6common_update_instance_id_support(supported);
  19353. return 0;
  19354. }
  19355. static int msm_routing_instance_id_support_get(
  19356. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19357. {
  19358. bool supported = false;
  19359. supported = q6common_is_instance_id_supported();
  19360. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  19361. return 0;
  19362. }
  19363. static const struct snd_kcontrol_new
  19364. msm_routing_feature_support_mixer_controls[] = {
  19365. {
  19366. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  19367. SNDRV_CTL_ELEM_ACCESS_WRITE,
  19368. .info = msm_routing_instance_id_support_info,
  19369. .name = "Instance ID Support",
  19370. .put = msm_routing_instance_id_support_put,
  19371. .get = msm_routing_instance_id_support_get,
  19372. },
  19373. };
  19374. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  19375. .hw_params = msm_pcm_routing_hw_params,
  19376. .close = msm_pcm_routing_close,
  19377. .prepare = msm_pcm_routing_prepare,
  19378. };
  19379. /* Not used but frame seems to require it */
  19380. static int msm_routing_probe(struct snd_soc_platform *platform)
  19381. {
  19382. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  19383. ARRAY_SIZE(msm_qdsp6_widgets));
  19384. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  19385. ARRAY_SIZE(intercon));
  19386. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  19387. snd_soc_add_platform_controls(platform, lsm_controls,
  19388. ARRAY_SIZE(lsm_controls));
  19389. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  19390. ARRAY_SIZE(aanc_slim_0_rx_mux));
  19391. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  19392. ARRAY_SIZE(msm_voc_session_controls));
  19393. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  19394. ARRAY_SIZE(app_type_cfg_controls));
  19395. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  19396. ARRAY_SIZE(lsm_app_type_cfg_controls));
  19397. snd_soc_add_platform_controls(platform, module_cfg_controls,
  19398. ARRAY_SIZE(module_cfg_controls));
  19399. snd_soc_add_platform_controls(platform,
  19400. stereo_to_custom_stereo_controls,
  19401. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  19402. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  19403. ARRAY_SIZE(ec_ref_param_controls));
  19404. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  19405. ARRAY_SIZE(channel_mixer_controls));
  19406. msm_qti_pp_add_controls(platform);
  19407. msm_dts_srs_tm_add_controls(platform);
  19408. msm_dolby_dap_add_controls(platform);
  19409. snd_soc_add_platform_controls(platform,
  19410. use_ds1_or_ds2_controls,
  19411. ARRAY_SIZE(use_ds1_or_ds2_controls));
  19412. snd_soc_add_platform_controls(platform,
  19413. device_pp_params_mixer_controls,
  19414. ARRAY_SIZE(device_pp_params_mixer_controls));
  19415. snd_soc_add_platform_controls(platform,
  19416. msm_routing_be_dai_name_table_mixer_controls,
  19417. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  19418. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  19419. ARRAY_SIZE(msm_source_tracking_controls));
  19420. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  19421. ARRAY_SIZE(adm_channel_config_controls));
  19422. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  19423. ARRAY_SIZE(aptx_dec_license_controls));
  19424. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  19425. ARRAY_SIZE(stereo_channel_reverse_control));
  19426. snd_soc_add_platform_controls(
  19427. platform, msm_routing_feature_support_mixer_controls,
  19428. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  19429. return 0;
  19430. }
  19431. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  19432. {
  19433. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  19434. }
  19435. void msm_routing_pcm_free(struct snd_pcm *pcm)
  19436. {
  19437. msm_pcm_routing_hwdep_free(pcm);
  19438. }
  19439. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  19440. .ops = &msm_routing_pcm_ops,
  19441. .probe = msm_routing_probe,
  19442. .pcm_new = msm_routing_pcm_new,
  19443. .pcm_free = msm_routing_pcm_free,
  19444. };
  19445. static int msm_routing_pcm_probe(struct platform_device *pdev)
  19446. {
  19447. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  19448. return snd_soc_register_platform(&pdev->dev,
  19449. &msm_soc_routing_platform);
  19450. }
  19451. static int msm_routing_pcm_remove(struct platform_device *pdev)
  19452. {
  19453. snd_soc_unregister_platform(&pdev->dev);
  19454. return 0;
  19455. }
  19456. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  19457. {.compatible = "qcom,msm-pcm-routing"},
  19458. {}
  19459. };
  19460. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  19461. static struct platform_driver msm_routing_pcm_driver = {
  19462. .driver = {
  19463. .name = "msm-pcm-routing",
  19464. .owner = THIS_MODULE,
  19465. .of_match_table = msm_pcm_routing_dt_match,
  19466. },
  19467. .probe = msm_routing_pcm_probe,
  19468. .remove = msm_routing_pcm_remove,
  19469. };
  19470. int msm_routing_check_backend_enabled(int fedai_id)
  19471. {
  19472. int i;
  19473. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  19474. /* bad ID assigned in machine driver */
  19475. pr_err("%s: bad MM ID\n", __func__);
  19476. return 0;
  19477. }
  19478. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19479. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  19480. return msm_bedais[i].active;
  19481. }
  19482. return 0;
  19483. }
  19484. static int get_cal_type_index(int32_t cal_type)
  19485. {
  19486. int ret = -EINVAL;
  19487. switch (cal_type) {
  19488. case ADM_TOPOLOGY_CAL_TYPE:
  19489. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  19490. break;
  19491. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  19492. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  19493. break;
  19494. default:
  19495. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  19496. }
  19497. return ret;
  19498. }
  19499. static int msm_routing_set_cal(int32_t cal_type,
  19500. size_t data_size, void *data)
  19501. {
  19502. int ret = 0;
  19503. int cal_index;
  19504. pr_debug("%s\n", __func__);
  19505. cal_index = get_cal_type_index(cal_type);
  19506. if (cal_index < 0) {
  19507. pr_err("%s: Could not get cal index %d\n",
  19508. __func__, cal_index);
  19509. ret = -EINVAL;
  19510. goto done;
  19511. }
  19512. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  19513. if (ret < 0) {
  19514. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  19515. __func__, ret, cal_type);
  19516. ret = -EINVAL;
  19517. goto done;
  19518. }
  19519. done:
  19520. return ret;
  19521. }
  19522. static void msm_routing_delete_cal_data(void)
  19523. {
  19524. pr_debug("%s\n", __func__);
  19525. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  19526. }
  19527. static int msm_routing_init_cal_data(void)
  19528. {
  19529. int ret = 0;
  19530. struct cal_type_info cal_type_info[] = {
  19531. {{ADM_TOPOLOGY_CAL_TYPE,
  19532. {NULL, NULL, NULL,
  19533. msm_routing_set_cal, NULL, NULL} },
  19534. {NULL, NULL, cal_utils_match_buf_num} },
  19535. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  19536. {NULL, NULL, NULL,
  19537. msm_routing_set_cal, NULL, NULL} },
  19538. {NULL, NULL, cal_utils_match_buf_num} },
  19539. };
  19540. pr_debug("%s\n", __func__);
  19541. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  19542. &cal_type_info[0]);
  19543. if (ret < 0) {
  19544. pr_err("%s: could not create cal type!\n",
  19545. __func__);
  19546. ret = -EINVAL;
  19547. goto err;
  19548. }
  19549. return ret;
  19550. err:
  19551. msm_routing_delete_cal_data();
  19552. return ret;
  19553. }
  19554. int __init msm_soc_routing_platform_init(void)
  19555. {
  19556. mutex_init(&routing_lock);
  19557. if (msm_routing_init_cal_data())
  19558. pr_err("%s: could not init cal data!\n", __func__);
  19559. afe_set_routing_callback(
  19560. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  19561. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19562. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  19563. return platform_driver_register(&msm_routing_pcm_driver);
  19564. }
  19565. void msm_soc_routing_platform_exit(void)
  19566. {
  19567. msm_routing_delete_cal_data();
  19568. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19569. mutex_destroy(&routing_lock);
  19570. platform_driver_unregister(&msm_routing_pcm_driver);
  19571. }
  19572. MODULE_DESCRIPTION("MSM routing platform driver");
  19573. MODULE_LICENSE("GPL v2");