msm-pcm-routing-v2.c 944 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. static int aanc_level;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* input BE for each FE */
  84. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  85. enum {
  86. MADNONE,
  87. MADAUDIO,
  88. MADBEACON,
  89. MADULTRASOUND,
  90. MADSWAUDIO,
  91. };
  92. #define ADM_LSM_PORT_INDEX 9
  93. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  94. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  95. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  96. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  97. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  98. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  99. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  100. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  101. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  102. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  103. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  104. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  105. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  106. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  107. #define LSM_FUNCTION_TEXT "LSM Function"
  108. static const char * const lsm_port_text[] = {
  109. "None",
  110. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  111. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  112. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  113. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  114. TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  115. };
  116. struct msm_pcm_route_bdai_pp_params {
  117. u16 port_id; /* AFE port ID */
  118. unsigned long pp_params_config;
  119. bool mute_on;
  120. int latency;
  121. };
  122. static struct msm_pcm_route_bdai_pp_params
  123. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  124. {HDMI_RX, 0, 0, 0},
  125. {DISPLAY_PORT_RX, 0, 0, 0},
  126. };
  127. /*
  128. * The be_dai_name_table is passed to HAL so that it can specify the
  129. * BE ID for the BE it wants to enable based on the name. Thus there
  130. * is a matching table and structure in HAL that need to be updated
  131. * if any changes to these are made.
  132. */
  133. struct msm_pcm_route_bdai_name {
  134. unsigned int be_id;
  135. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  136. };
  137. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  138. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  139. int fe_id);
  140. static void msm_routing_load_topology(size_t data_size, void *data);
  141. static void msm_routing_unload_topology(uint32_t topology_id);
  142. static int msm_routing_get_bit_width(unsigned int format)
  143. {
  144. int bit_width;
  145. switch (format) {
  146. case SNDRV_PCM_FORMAT_S32_LE:
  147. bit_width = 32;
  148. break;
  149. case SNDRV_PCM_FORMAT_S24_LE:
  150. case SNDRV_PCM_FORMAT_S24_3LE:
  151. bit_width = 24;
  152. break;
  153. case SNDRV_PCM_FORMAT_S16_LE:
  154. default:
  155. bit_width = 16;
  156. }
  157. return bit_width;
  158. }
  159. static bool msm_is_resample_needed(int input_sr, int output_sr)
  160. {
  161. bool rc = false;
  162. if (input_sr != output_sr)
  163. rc = true;
  164. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  165. (rc ? "oh yes" : "not really"),
  166. input_sr, output_sr);
  167. return rc;
  168. }
  169. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  170. int channels)
  171. {
  172. int rc = 0;
  173. switch (topology) {
  174. case SRS_TRUMEDIA_TOPOLOGY_ID:
  175. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  176. msm_dts_srs_tm_init(port_id, copp_idx);
  177. break;
  178. case DS2_ADM_COPP_TOPOLOGY_ID:
  179. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  180. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  181. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  182. is_custom_stereo_on);
  183. if (rc < 0)
  184. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  185. __func__, topology, port_id,
  186. is_custom_stereo_on, rc);
  187. break;
  188. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  189. if (is_ds2_on) {
  190. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  191. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  192. is_custom_stereo_on);
  193. if (rc < 0)
  194. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  195. __func__, topology, port_id, rc);
  196. } else {
  197. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  198. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  199. is_custom_stereo_on);
  200. if (rc < 0)
  201. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  202. __func__, topology, port_id, rc);
  203. }
  204. break;
  205. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  206. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  207. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  208. if (rc < 0)
  209. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  210. __func__, topology, port_id, copp_idx, rc);
  211. break;
  212. default:
  213. /* custom topology specific feature param handlers */
  214. break;
  215. }
  216. }
  217. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  218. {
  219. switch (topology) {
  220. case SRS_TRUMEDIA_TOPOLOGY_ID:
  221. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  222. msm_dts_srs_tm_deinit(port_id);
  223. break;
  224. case DS2_ADM_COPP_TOPOLOGY_ID:
  225. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  226. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  227. msm_ds2_dap_deinit(port_id);
  228. break;
  229. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  230. if (is_ds2_on) {
  231. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  232. msm_ds2_dap_deinit(port_id);
  233. } else {
  234. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  235. msm_dolby_dap_deinit(port_id);
  236. }
  237. break;
  238. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  239. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  240. msm_qti_pp_asphere_deinit(port_id);
  241. break;
  242. default:
  243. /* custom topology specific feature deinit handlers */
  244. break;
  245. }
  246. }
  247. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  248. int path_type, int perf_mode)
  249. {
  250. int itr = 0, rc = 0;
  251. if ((path_type == ADM_PATH_PLAYBACK) &&
  252. (perf_mode == LEGACY_PCM_MODE) &&
  253. is_custom_stereo_on) {
  254. for (itr = 0; itr < payload.num_copps; itr++) {
  255. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  256. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  257. continue;
  258. }
  259. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  260. payload.port_id[itr],
  261. payload.copp_idx[itr],
  262. payload.session_id,
  263. Q14_GAIN_ZERO_POINT_FIVE,
  264. Q14_GAIN_ZERO_POINT_FIVE,
  265. Q14_GAIN_ZERO_POINT_FIVE,
  266. Q14_GAIN_ZERO_POINT_FIVE);
  267. if (rc < 0)
  268. pr_err("%s: err setting custom stereo\n",
  269. __func__);
  270. }
  271. }
  272. }
  273. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  274. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  275. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  276. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  277. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  278. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  279. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  280. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  281. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  282. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  283. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  284. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  285. LPASS_BE_AFE_PCM_RX},
  286. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  287. LPASS_BE_AFE_PCM_TX},
  288. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  289. LPASS_BE_AUXPCM_RX},
  290. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  291. LPASS_BE_AUXPCM_TX},
  292. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_VOICE_PLAYBACK_TX},
  294. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  295. LPASS_BE_VOICE2_PLAYBACK_TX},
  296. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  297. LPASS_BE_INCALL_RECORD_RX},
  298. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  299. LPASS_BE_INCALL_RECORD_TX},
  300. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  301. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  302. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  303. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  304. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  305. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  306. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  307. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  308. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  309. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  310. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  311. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  312. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  313. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  314. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  315. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  316. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  317. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  318. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  319. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  320. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  321. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  322. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  323. LPASS_BE_QUAT_MI2S_RX},
  324. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  325. LPASS_BE_QUAT_MI2S_TX},
  326. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  327. LPASS_BE_SEC_MI2S_RX},
  328. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  329. LPASS_BE_SEC_MI2S_TX},
  330. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_PRI_MI2S_RX},
  332. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_PRI_MI2S_TX},
  334. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_TERT_MI2S_RX},
  336. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_TERT_MI2S_TX},
  338. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_AUDIO_I2S_RX},
  340. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_SEC_AUXPCM_RX},
  342. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_SEC_AUXPCM_TX},
  344. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_PRI_SPDIF_RX},
  346. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_SEC_MI2S_RX_SD1},
  348. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_QUIN_MI2S_RX},
  350. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_QUIN_MI2S_TX},
  352. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_SENARY_MI2S_TX},
  354. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_PRI_TDM_RX_0},
  356. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_PRI_TDM_TX_0},
  358. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_PRI_TDM_RX_1},
  360. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_PRI_TDM_TX_1},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_2},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_2},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_3},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_3},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_4},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_4},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_5},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_5},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_RX_6},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_PRI_TDM_TX_6},
  382. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_PRI_TDM_RX_7},
  384. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_PRI_TDM_TX_7},
  386. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_SEC_TDM_RX_0},
  388. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_SEC_TDM_TX_0},
  390. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_SEC_TDM_RX_1},
  392. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_SEC_TDM_TX_1},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_2},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_2},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_3},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_3},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_4},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_4},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_5},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_5},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_RX_6},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_SEC_TDM_TX_6},
  414. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_SEC_TDM_RX_7},
  416. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_SEC_TDM_TX_7},
  418. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_TERT_TDM_RX_0},
  420. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_TERT_TDM_TX_0},
  422. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_TERT_TDM_RX_1},
  424. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_TERT_TDM_TX_1},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_2},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_2},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_3},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_3},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_4},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_4},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_5},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_5},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_RX_6},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_TERT_TDM_TX_6},
  446. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_TERT_TDM_RX_7},
  448. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_TERT_TDM_TX_7},
  450. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_QUAT_TDM_RX_0},
  452. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_QUAT_TDM_TX_0},
  454. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_QUAT_TDM_RX_1},
  456. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_QUAT_TDM_TX_1},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_2},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_2},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_3},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_3},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_4},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_4},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_5},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_5},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_RX_6},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUAT_TDM_TX_6},
  478. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUAT_TDM_RX_7},
  480. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUAT_TDM_TX_7},
  482. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUIN_TDM_RX_0},
  484. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUIN_TDM_TX_0},
  486. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUIN_TDM_RX_1},
  488. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUIN_TDM_TX_1},
  490. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_2},
  492. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_2},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_3},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_3},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_4},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_4},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_5},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_5},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_RX_6},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_QUIN_TDM_TX_6},
  510. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_QUIN_TDM_RX_7},
  512. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_QUIN_TDM_TX_7},
  514. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_INT_BT_A2DP_RX},
  516. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_USB_AUDIO_RX},
  518. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_USB_AUDIO_TX},
  520. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_DISPLAY_PORT},
  522. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_DISPLAY_PORT1},
  524. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_TERT_AUXPCM_RX},
  526. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_TERT_AUXPCM_TX},
  528. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_QUAT_AUXPCM_RX},
  530. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_QUAT_AUXPCM_TX},
  532. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_QUIN_AUXPCM_RX},
  534. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_QUIN_AUXPCM_TX},
  536. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_INT0_MI2S_RX},
  538. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_INT0_MI2S_TX},
  540. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_INT1_MI2S_RX},
  542. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_INT1_MI2S_TX},
  544. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_INT2_MI2S_RX},
  546. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_INT2_MI2S_TX},
  548. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_INT3_MI2S_RX},
  550. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_INT3_MI2S_TX},
  552. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_INT4_MI2S_RX},
  554. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_INT4_MI2S_TX},
  556. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_INT5_MI2S_RX},
  558. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_INT5_MI2S_TX},
  560. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_INT6_MI2S_RX},
  562. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_INT6_MI2S_TX},
  564. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_SEN_AUXPCM_RX},
  566. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_SEN_AUXPCM_TX},
  568. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_SENARY_MI2S_RX},
  570. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_WSA_CDC_DMA_RX_0},
  572. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_WSA_CDC_DMA_TX_0},
  574. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_WSA_CDC_DMA_RX_1},
  576. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_WSA_CDC_DMA_TX_1},
  578. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_WSA_CDC_DMA_TX_2},
  580. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_VA_CDC_DMA_TX_0},
  582. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_VA_CDC_DMA_TX_1},
  584. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_RX_CDC_DMA_RX_0},
  586. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_TX_CDC_DMA_TX_0},
  588. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_RX_CDC_DMA_RX_1},
  590. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_TX_CDC_DMA_TX_1},
  592. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_RX_CDC_DMA_RX_2},
  594. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_TX_CDC_DMA_TX_2},
  596. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_RX_CDC_DMA_RX_3},
  598. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_TX_CDC_DMA_TX_3},
  600. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_RX_CDC_DMA_RX_4},
  602. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_TX_CDC_DMA_TX_4},
  604. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_RX_CDC_DMA_RX_5},
  606. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_TX_CDC_DMA_TX_5},
  608. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_RX_CDC_DMA_RX_6},
  610. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_RX_CDC_DMA_RX_7},
  612. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_PRI_SPDIF_TX},
  614. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_SEC_SPDIF_RX},
  616. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_SEC_SPDIF_TX},
  618. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  619. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  620. };
  621. /* Track ASM playback & capture sessions of DAI
  622. * Track LSM listen sessions
  623. */
  624. static struct msm_pcm_routing_fdai_data
  625. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  626. /* MULTIMEDIA1 */
  627. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  628. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  629. /* MULTIMEDIA2 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  632. /* MULTIMEDIA3 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  635. /* MULTIMEDIA4 */
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  638. /* MULTIMEDIA5 */
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  641. /* MULTIMEDIA6 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  644. /* MULTIMEDIA7*/
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  647. /* MULTIMEDIA8 */
  648. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  649. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  650. /* MULTIMEDIA9 */
  651. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  652. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  653. /* MULTIMEDIA10 */
  654. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  655. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  656. /* MULTIMEDIA11 */
  657. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  658. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  659. /* MULTIMEDIA12 */
  660. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  661. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  662. /* MULTIMEDIA13 */
  663. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  664. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  665. /* MULTIMEDIA14 */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  668. /* MULTIMEDIA15 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  671. /* MULTIMEDIA16 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  674. /* MULTIMEDIA17 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  677. /* MULTIMEDIA18 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  680. /* MULTIMEDIA19 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  683. /* MULTIMEDIA20 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  686. /* MULTIMEDIA21 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  689. /* MULTIMEDIA26 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  692. /* MULTIMEDIA27 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  695. /* MULTIMEDIA28 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  698. /* MULTIMEDIA29 */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  701. /* VOIP */
  702. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  703. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  704. /* AFE_RX */
  705. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  706. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  707. /* AFE_TX */
  708. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  709. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  710. /* VOICE_STUB */
  711. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  712. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  713. /* DTMF_RX */
  714. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  715. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  716. /* QCHAT */
  717. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  718. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  719. /* VOLTE_STUB */
  720. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  721. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  722. /* LSM1 */
  723. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  724. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  725. /* LSM2 */
  726. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  727. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  728. /* LSM3 */
  729. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  730. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  731. /* LSM4 */
  732. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  733. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  734. /* LSM5 */
  735. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  736. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  737. /* LSM6 */
  738. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  739. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  740. /* LSM7 */
  741. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  742. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  743. /* LSM8 */
  744. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  745. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  746. /* VOICE2_STUB */
  747. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  748. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  749. /* VOICEMMODE1 */
  750. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  751. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  752. /* VOICEMMODE2 */
  753. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  754. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  755. };
  756. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  757. [MSM_BACKEND_DAI_MAX];
  758. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  759. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  760. static struct msm_pcm_stream_app_type_cfg
  761. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  762. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  763. /* The caller of this should acquire routing lock */
  764. void msm_pcm_routing_get_bedai_info(int be_idx,
  765. struct msm_pcm_routing_bdai_data *be_dai)
  766. {
  767. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  768. memcpy(be_dai, &msm_bedais[be_idx],
  769. sizeof(struct msm_pcm_routing_bdai_data));
  770. }
  771. /* The caller of this should acquire routing lock */
  772. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  773. struct msm_pcm_routing_fdai_data *fe_dai)
  774. {
  775. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  776. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  777. sizeof(struct msm_pcm_routing_fdai_data));
  778. }
  779. void msm_pcm_routing_acquire_lock(void)
  780. {
  781. mutex_lock(&routing_lock);
  782. }
  783. void msm_pcm_routing_release_lock(void)
  784. {
  785. mutex_unlock(&routing_lock);
  786. }
  787. static int msm_pcm_routing_get_app_type_idx(int app_type)
  788. {
  789. int idx;
  790. pr_debug("%s: app_type: %d\n", __func__, app_type);
  791. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  792. if (app_type_cfg[idx].app_type == app_type)
  793. return idx;
  794. }
  795. pr_info("%s: App type not available, fallback to default\n", __func__);
  796. return 0;
  797. }
  798. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  799. {
  800. int idx;
  801. pr_debug("%s: app_type: %d\n", __func__, app_type);
  802. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  803. if (lsm_app_type_cfg[idx].app_type == app_type)
  804. return idx;
  805. }
  806. pr_debug("%s: App type not available, fallback to default\n", __func__);
  807. return 0;
  808. }
  809. static bool is_mm_lsm_fe_id(int fe_id)
  810. {
  811. bool rc = true;
  812. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  813. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  814. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  815. rc = false;
  816. }
  817. return rc;
  818. }
  819. /*
  820. * msm_pcm_routing_send_chmix_cfg:
  821. * send the channel mixer command to mix the input channels
  822. * into output channels.
  823. *
  824. * @fe_id: front end id
  825. * @ip_channel_cnt: input channel count
  826. * @op_channel_cnt: output channel count
  827. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  828. * @session_type: indicates session is of type TX or RX
  829. * @stream_type: indicates either Audio or Listen stream type
  830. */
  831. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  832. int op_channel_cnt, int *ch_wght_coeff,
  833. int session_type, int stream_type)
  834. {
  835. int rc = 0, idx = 0;
  836. int be_index = 0, port_id;
  837. unsigned int session_id = 0;
  838. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  839. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  840. stream_type);
  841. if (!is_mm_lsm_fe_id(fe_id)) {
  842. /* bad ID assigned in machine driver */
  843. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  844. return -EINVAL;
  845. }
  846. if (ch_wght_coeff == NULL) {
  847. pr_err("%s: Null channel weightage coefficients passed\n",
  848. __func__);
  849. return -EINVAL;
  850. }
  851. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  852. port_id = msm_bedais[be_index].port_id;
  853. if (!msm_bedais[be_index].active ||
  854. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  855. continue;
  856. session_id = fe_dai_map[fe_id][session_type].strm_id;
  857. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  858. unsigned long copp =
  859. session_copp_map[fe_id][session_type][be_index];
  860. if (!test_bit(idx, &copp))
  861. continue;
  862. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  863. session_id, ip_channel_cnt,
  864. op_channel_cnt, ch_wght_coeff,
  865. session_type, stream_type);
  866. if (rc < 0)
  867. pr_err("%s: err setting channel mix config\n",
  868. __func__);
  869. }
  870. }
  871. return 0;
  872. }
  873. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  874. int msm_pcm_routing_reg_stream_app_type_cfg(
  875. int fedai_id, int session_type, int be_id,
  876. struct msm_pcm_stream_app_type_cfg *cfg_data)
  877. {
  878. int ret = 0;
  879. if (cfg_data == NULL) {
  880. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  881. ret = -EINVAL;
  882. goto done;
  883. }
  884. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  885. __func__, fedai_id, session_type, be_id,
  886. cfg_data->app_type, cfg_data->acdb_dev_id,
  887. cfg_data->sample_rate);
  888. if (!is_mm_lsm_fe_id(fedai_id)) {
  889. pr_err("%s: Invalid machine driver ID %d\n",
  890. __func__, fedai_id);
  891. ret = -EINVAL;
  892. goto done;
  893. }
  894. if (session_type != SESSION_TYPE_RX &&
  895. session_type != SESSION_TYPE_TX) {
  896. pr_err("%s: Invalid session type %d\n",
  897. __func__, session_type);
  898. ret = -EINVAL;
  899. goto done;
  900. }
  901. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  902. pr_err("%s: Received out of bounds be_id %d\n",
  903. __func__, be_id);
  904. ret = -EINVAL;
  905. goto done;
  906. }
  907. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  908. /*
  909. * Store the BE ID of the configuration information set as the latest so
  910. * the get mixer control knows what to return.
  911. */
  912. last_be_id_configured[fedai_id][session_type] = be_id;
  913. done:
  914. return ret;
  915. }
  916. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  917. /**
  918. * msm_pcm_routing_get_stream_app_type_cfg
  919. *
  920. * Receives fedai_id, session_type, be_id, and populates app_type,
  921. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  922. * -EINVAL and does not alter passed values.
  923. *
  924. * fedai_id - Passed value, front end ID for which app type config is wanted
  925. * session_type - Passed value, session type for which app type config
  926. * is wanted
  927. * be_id - Returned value, back end device id the app type config data is for
  928. * cfg_data - Returned value, configuration data used by app type config
  929. */
  930. int msm_pcm_routing_get_stream_app_type_cfg(
  931. int fedai_id, int session_type, int *bedai_id,
  932. struct msm_pcm_stream_app_type_cfg *cfg_data)
  933. {
  934. int be_id;
  935. int ret = 0;
  936. if (bedai_id == NULL) {
  937. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  938. ret = -EINVAL;
  939. goto done;
  940. } else if (cfg_data == NULL) {
  941. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  942. ret = -EINVAL;
  943. goto done;
  944. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  945. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  946. ret = -EINVAL;
  947. goto done;
  948. } else if (session_type != SESSION_TYPE_RX &&
  949. session_type != SESSION_TYPE_TX) {
  950. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  951. ret = -EINVAL;
  952. goto done;
  953. }
  954. be_id = last_be_id_configured[fedai_id][session_type];
  955. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  956. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  957. ret = -EINVAL;
  958. goto done;
  959. }
  960. *bedai_id = be_id;
  961. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  962. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  963. __func__, fedai_id, session_type, *bedai_id,
  964. cfg_data->app_type, cfg_data->acdb_dev_id,
  965. cfg_data->sample_rate);
  966. done:
  967. return ret;
  968. }
  969. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  970. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  971. int cal_index)
  972. {
  973. struct list_head *ptr, *next;
  974. struct cal_block_data *cal_block = NULL;
  975. pr_debug("%s\n", __func__);
  976. list_for_each_safe(ptr, next,
  977. &cal_data[cal_index]->cal_blocks) {
  978. cal_block = list_entry(ptr,
  979. struct cal_block_data, list);
  980. if (cal_utils_is_cal_stale(cal_block))
  981. continue;
  982. if (((struct audio_cal_info_adm_top *)cal_block
  983. ->cal_info)->path == path) {
  984. return cal_block;
  985. }
  986. }
  987. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  988. return NULL;
  989. }
  990. static struct cal_block_data *msm_routing_find_topology(int path,
  991. int app_type,
  992. int acdb_id,
  993. int cal_index)
  994. {
  995. struct list_head *ptr, *next;
  996. struct cal_block_data *cal_block = NULL;
  997. struct audio_cal_info_adm_top *cal_info;
  998. pr_debug("%s\n", __func__);
  999. list_for_each_safe(ptr, next,
  1000. &cal_data[cal_index]->cal_blocks) {
  1001. cal_block = list_entry(ptr,
  1002. struct cal_block_data, list);
  1003. if (cal_utils_is_cal_stale(cal_block))
  1004. continue;
  1005. cal_info = (struct audio_cal_info_adm_top *)
  1006. cal_block->cal_info;
  1007. if ((cal_info->path == path) &&
  1008. (cal_info->app_type == app_type) &&
  1009. (cal_info->acdb_id == acdb_id)) {
  1010. return cal_block;
  1011. }
  1012. }
  1013. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  1014. __func__, path, app_type, acdb_id);
  1015. return msm_routing_find_topology_by_path(path, cal_index);
  1016. }
  1017. /*
  1018. * Retrieving cal_block will mark cal_block as stale.
  1019. * Hence it cannot be reused or resent unless the flag
  1020. * is reset.
  1021. */
  1022. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1023. int be_id)
  1024. {
  1025. int topology = NULL_COPP_TOPOLOGY;
  1026. struct cal_block_data *cal_block = NULL;
  1027. int app_type = 0, acdb_dev_id = 0;
  1028. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1029. __func__, fedai_id, session_type, be_id);
  1030. if (cal_data == NULL)
  1031. goto done;
  1032. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1033. acdb_dev_id =
  1034. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1035. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1036. cal_block = msm_routing_find_topology(session_type, app_type,
  1037. acdb_dev_id,
  1038. ADM_TOPOLOGY_CAL_TYPE_IDX);
  1039. if (cal_block != NULL) {
  1040. topology = ((struct audio_cal_info_adm_top *)
  1041. cal_block->cal_info)->topology;
  1042. cal_utils_mark_cal_used(cal_block);
  1043. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1044. } else {
  1045. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1046. pr_debug("%s: Check for LSM topology\n", __func__);
  1047. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1048. cal_block = msm_routing_find_topology(session_type, app_type,
  1049. acdb_dev_id,
  1050. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1051. if (cal_block != NULL) {
  1052. topology = ((struct audio_cal_info_adm_top *)
  1053. cal_block->cal_info)->topology;
  1054. cal_utils_mark_cal_used(cal_block);
  1055. }
  1056. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1057. }
  1058. done:
  1059. pr_debug("%s: Using topology %d\n", __func__, topology);
  1060. return topology;
  1061. }
  1062. static uint8_t is_be_dai_extproc(int be_dai)
  1063. {
  1064. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1065. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1066. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1067. return 1;
  1068. else
  1069. return 0;
  1070. }
  1071. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1072. int path_type, int perf_mode,
  1073. uint32_t passthr_mode)
  1074. {
  1075. int i, port_type, j, num_copps = 0;
  1076. struct route_payload payload;
  1077. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1078. path_type == ADM_PATH_COMPRESSED_RX) ?
  1079. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1080. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1081. if (!is_be_dai_extproc(i) &&
  1082. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1083. (msm_bedais[i].active) &&
  1084. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1085. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1086. unsigned long copp =
  1087. session_copp_map[fedai_id][sess_type][i];
  1088. if (test_bit(j, &copp)) {
  1089. payload.port_id[num_copps] =
  1090. msm_bedais[i].port_id;
  1091. payload.copp_idx[num_copps] = j;
  1092. payload.app_type[num_copps] =
  1093. fe_dai_app_type_cfg
  1094. [fedai_id][sess_type][i]
  1095. .app_type;
  1096. payload.acdb_dev_id[num_copps] =
  1097. fe_dai_app_type_cfg
  1098. [fedai_id][sess_type][i]
  1099. .acdb_dev_id;
  1100. payload.sample_rate[num_copps] =
  1101. fe_dai_app_type_cfg
  1102. [fedai_id][sess_type][i]
  1103. .sample_rate;
  1104. num_copps++;
  1105. }
  1106. }
  1107. }
  1108. }
  1109. if (num_copps) {
  1110. payload.num_copps = num_copps;
  1111. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1112. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1113. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1114. }
  1115. }
  1116. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1117. int stream_type)
  1118. {
  1119. int i, session_type, path_type, port_type;
  1120. u32 mode = 0;
  1121. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1122. /* bad ID assigned in machine driver */
  1123. pr_err("%s: bad MM ID\n", __func__);
  1124. return;
  1125. }
  1126. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1127. session_type = SESSION_TYPE_RX;
  1128. path_type = ADM_PATH_PLAYBACK;
  1129. port_type = MSM_AFE_PORT_TYPE_RX;
  1130. } else {
  1131. session_type = SESSION_TYPE_TX;
  1132. path_type = ADM_PATH_LIVE_REC;
  1133. port_type = MSM_AFE_PORT_TYPE_TX;
  1134. }
  1135. mutex_lock(&routing_lock);
  1136. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1137. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1138. if (!is_be_dai_extproc(i) &&
  1139. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1140. (msm_bedais[i].active) &&
  1141. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1142. mode = afe_get_port_type(msm_bedais[i].port_id);
  1143. adm_connect_afe_port(mode, dspst_id,
  1144. msm_bedais[i].port_id);
  1145. break;
  1146. }
  1147. }
  1148. mutex_unlock(&routing_lock);
  1149. }
  1150. static bool route_check_fe_id_adm_support(int fe_id)
  1151. {
  1152. bool rc = true;
  1153. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1154. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1155. /* fe id is listen while port is set to afe */
  1156. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1157. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1158. __func__, fe_id, lsm_port_index);
  1159. rc = false;
  1160. }
  1161. }
  1162. return rc;
  1163. }
  1164. /*
  1165. * msm_pcm_routing_get_pp_ch_cnt:
  1166. * Read the processed channel count
  1167. *
  1168. * @fe_id: Front end ID
  1169. * @session_type: Inidicates RX or TX session type
  1170. */
  1171. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1172. {
  1173. struct msm_pcm_stream_app_type_cfg cfg_data;
  1174. int be_id = 0, app_type_idx = 0, app_type = 0;
  1175. int ret = -EINVAL;
  1176. memset(&cfg_data, 0, sizeof(cfg_data));
  1177. if (!is_mm_lsm_fe_id(fe_id)) {
  1178. pr_err("%s: bad MM ID\n", __func__);
  1179. return -EINVAL;
  1180. }
  1181. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1182. &be_id, &cfg_data);
  1183. if (ret) {
  1184. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1185. return ret;
  1186. }
  1187. app_type = cfg_data.app_type;
  1188. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1189. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1190. }
  1191. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1192. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1193. int dspst_id, int stream_type,
  1194. uint32_t passthr_mode)
  1195. {
  1196. int i, j, session_type, path_type, port_type, topology;
  1197. int num_copps = 0;
  1198. struct route_payload payload;
  1199. u32 channels, sample_rate;
  1200. u16 bit_width = 16;
  1201. bool is_lsm;
  1202. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1203. __func__, fe_id, perf_mode, dspst_id,
  1204. stream_type, passthr_mode);
  1205. if (!is_mm_lsm_fe_id(fe_id)) {
  1206. /* bad ID assigned in machine driver */
  1207. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1208. return -EINVAL;
  1209. }
  1210. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1211. session_type = SESSION_TYPE_RX;
  1212. if (passthr_mode != LEGACY_PCM)
  1213. path_type = ADM_PATH_COMPRESSED_RX;
  1214. else
  1215. path_type = ADM_PATH_PLAYBACK;
  1216. port_type = MSM_AFE_PORT_TYPE_RX;
  1217. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1218. session_type = SESSION_TYPE_TX;
  1219. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1220. path_type = ADM_PATH_COMPRESSED_TX;
  1221. else
  1222. path_type = ADM_PATH_LIVE_REC;
  1223. port_type = MSM_AFE_PORT_TYPE_TX;
  1224. } else {
  1225. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1226. return -EINVAL;
  1227. }
  1228. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1229. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1230. mutex_lock(&routing_lock);
  1231. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1232. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1233. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1234. if (!route_check_fe_id_adm_support(fe_id)) {
  1235. /* ignore adm open if not supported for fe_id */
  1236. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1237. mutex_unlock(&routing_lock);
  1238. return 0;
  1239. }
  1240. payload.num_copps = 0; /* only RX needs to use payload */
  1241. /* re-enable EQ if active */
  1242. msm_qti_pp_send_eq_values(fe_id);
  1243. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1244. if (!is_be_dai_extproc(i) &&
  1245. (afe_get_port_type(msm_bedais[i].port_id) ==
  1246. port_type) &&
  1247. (msm_bedais[i].active) &&
  1248. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1249. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1250. /*
  1251. * check if ADM needs to be configured with different
  1252. * channel mapping than backend
  1253. */
  1254. if (!msm_bedais[i].adm_override_ch)
  1255. channels = msm_bedais[i].channel;
  1256. else
  1257. channels = msm_bedais[i].adm_override_ch;
  1258. bit_width = msm_routing_get_bit_width(
  1259. msm_bedais[i].format);
  1260. app_type =
  1261. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1262. if (app_type && is_lsm) {
  1263. app_type_idx =
  1264. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1265. sample_rate =
  1266. fe_dai_app_type_cfg[fe_id][session_type][i]
  1267. .sample_rate;
  1268. bit_width =
  1269. lsm_app_type_cfg[app_type_idx].bit_width;
  1270. } else if (app_type) {
  1271. app_type_idx =
  1272. msm_pcm_routing_get_app_type_idx(
  1273. app_type);
  1274. sample_rate =
  1275. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1276. bit_width =
  1277. app_type_cfg[app_type_idx].bit_width;
  1278. } else {
  1279. sample_rate = msm_bedais[i].sample_rate;
  1280. }
  1281. acdb_dev_id =
  1282. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1283. topology = msm_routing_get_adm_topology(fe_id,
  1284. session_type,
  1285. i);
  1286. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1287. || (passthr_mode ==
  1288. COMPRESSED_PASSTHROUGH_GEN)
  1289. || (passthr_mode ==
  1290. COMPRESSED_PASSTHROUGH_IEC61937))
  1291. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1292. pr_debug("%s: Before adm open topology %d\n", __func__,
  1293. topology);
  1294. copp_idx =
  1295. adm_open(msm_bedais[i].port_id,
  1296. path_type, sample_rate, channels,
  1297. topology, perf_mode, bit_width,
  1298. app_type, acdb_dev_id);
  1299. if ((copp_idx < 0) ||
  1300. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1301. pr_err("%s:adm open failed coppid:%d\n",
  1302. __func__, copp_idx);
  1303. mutex_unlock(&routing_lock);
  1304. return -EINVAL;
  1305. }
  1306. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1307. __func__, fe_id, session_type, i);
  1308. set_bit(copp_idx,
  1309. &session_copp_map[fe_id][session_type][i]);
  1310. if (msm_is_resample_needed(
  1311. sample_rate,
  1312. msm_bedais[i].sample_rate))
  1313. adm_copp_mfc_cfg(
  1314. msm_bedais[i].port_id, copp_idx,
  1315. msm_bedais[i].sample_rate);
  1316. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1317. unsigned long copp =
  1318. session_copp_map[fe_id][session_type][i];
  1319. if (test_bit(j, &copp)) {
  1320. payload.port_id[num_copps] =
  1321. msm_bedais[i].port_id;
  1322. payload.copp_idx[num_copps] = j;
  1323. payload.app_type[num_copps] =
  1324. fe_dai_app_type_cfg
  1325. [fe_id][session_type][i]
  1326. .app_type;
  1327. payload.acdb_dev_id[num_copps] =
  1328. fe_dai_app_type_cfg
  1329. [fe_id][session_type][i]
  1330. .acdb_dev_id;
  1331. payload.sample_rate[num_copps] =
  1332. fe_dai_app_type_cfg
  1333. [fe_id][session_type][i]
  1334. .sample_rate;
  1335. num_copps++;
  1336. }
  1337. }
  1338. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1339. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1340. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1341. msm_routing_send_device_pp_params(
  1342. msm_bedais[i].port_id,
  1343. copp_idx, fe_id);
  1344. }
  1345. }
  1346. if (num_copps) {
  1347. payload.num_copps = num_copps;
  1348. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1349. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1350. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1351. }
  1352. mutex_unlock(&routing_lock);
  1353. return 0;
  1354. }
  1355. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1356. {
  1357. u32 session_id;
  1358. switch (val) {
  1359. case MSM_FRONTEND_DAI_QCHAT:
  1360. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1361. break;
  1362. case MSM_FRONTEND_DAI_VOIP:
  1363. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1364. break;
  1365. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1366. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1367. break;
  1368. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1369. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1370. break;
  1371. default:
  1372. session_id = 0;
  1373. }
  1374. pr_debug("%s session_id 0x%x", __func__, session_id);
  1375. return session_id;
  1376. }
  1377. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1378. int dspst_id, int stream_type)
  1379. {
  1380. int copp_idx = 0;
  1381. int sess_type = 0;
  1382. int i = 0, j = 0, be_id;
  1383. int ret = 0;
  1384. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1385. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1386. return 0;
  1387. }
  1388. if (!(channel_mixer[fe_id].enable)) {
  1389. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1390. __func__, fe_id);
  1391. return 0;
  1392. }
  1393. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1394. sess_type = SESSION_TYPE_RX;
  1395. else
  1396. sess_type = SESSION_TYPE_TX;
  1397. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1398. ++i) {
  1399. be_id = channel_input[fe_id][i] - 1;
  1400. channel_mixer[fe_id].input_channels[i] =
  1401. msm_bedais[be_id].channel;
  1402. if ((msm_bedais[be_id].active) &&
  1403. test_bit(fe_id,
  1404. &msm_bedais[be_id].fe_sessions[0])) {
  1405. unsigned long copp =
  1406. session_copp_map[fe_id][sess_type][be_id];
  1407. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1408. if (test_bit(j, &copp)) {
  1409. copp_idx = j;
  1410. break;
  1411. }
  1412. }
  1413. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1414. __func__,
  1415. fe_id, be_id, msm_bedais[be_id].channel,
  1416. copp_idx);
  1417. ret = adm_programable_channel_mixer(
  1418. msm_bedais[be_id].port_id,
  1419. copp_idx, dspst_id, sess_type,
  1420. channel_mixer + fe_id, i);
  1421. }
  1422. }
  1423. return ret;
  1424. }
  1425. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1426. int dspst_id, int stream_type)
  1427. {
  1428. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1429. struct route_payload payload;
  1430. u32 channels, sample_rate;
  1431. uint16_t bits_per_sample = 16;
  1432. uint32_t passthr_mode = LEGACY_PCM;
  1433. int ret = 0;
  1434. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1435. /* bad ID assigned in machine driver */
  1436. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1437. return -EINVAL;
  1438. }
  1439. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1440. session_type = SESSION_TYPE_RX;
  1441. path_type = ADM_PATH_PLAYBACK;
  1442. port_type = MSM_AFE_PORT_TYPE_RX;
  1443. } else {
  1444. session_type = SESSION_TYPE_TX;
  1445. path_type = ADM_PATH_LIVE_REC;
  1446. port_type = MSM_AFE_PORT_TYPE_TX;
  1447. }
  1448. mutex_lock(&routing_lock);
  1449. payload.num_copps = 0; /* only RX needs to use payload */
  1450. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1451. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1452. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1453. /* re-enable EQ if active */
  1454. msm_qti_pp_send_eq_values(fedai_id);
  1455. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1456. if (!is_be_dai_extproc(i) &&
  1457. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1458. (msm_bedais[i].active) &&
  1459. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1460. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1461. /*
  1462. * check if ADM needs to be configured with different
  1463. * channel mapping than backend
  1464. */
  1465. if (!msm_bedais[i].adm_override_ch)
  1466. channels = msm_bedais[i].channel;
  1467. else
  1468. channels = msm_bedais[i].adm_override_ch;
  1469. bits_per_sample = msm_routing_get_bit_width(
  1470. msm_bedais[i].format);
  1471. app_type =
  1472. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1473. if (app_type) {
  1474. app_type_idx =
  1475. msm_pcm_routing_get_app_type_idx(app_type);
  1476. sample_rate =
  1477. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1478. .sample_rate;
  1479. bits_per_sample =
  1480. app_type_cfg[app_type_idx].bit_width;
  1481. } else
  1482. sample_rate = msm_bedais[i].sample_rate;
  1483. acdb_dev_id =
  1484. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1485. .acdb_dev_id;
  1486. topology = msm_routing_get_adm_topology(fedai_id,
  1487. session_type,
  1488. i);
  1489. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1490. sample_rate, channels, topology,
  1491. perf_mode, bits_per_sample,
  1492. app_type, acdb_dev_id);
  1493. if ((copp_idx < 0) ||
  1494. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1495. pr_err("%s: adm open failed copp_idx:%d\n",
  1496. __func__, copp_idx);
  1497. mutex_unlock(&routing_lock);
  1498. return -EINVAL;
  1499. }
  1500. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1501. __func__, fedai_id, session_type, i);
  1502. set_bit(copp_idx,
  1503. &session_copp_map[fedai_id][session_type][i]);
  1504. if (msm_is_resample_needed(
  1505. sample_rate,
  1506. msm_bedais[i].sample_rate))
  1507. adm_copp_mfc_cfg(
  1508. msm_bedais[i].port_id, copp_idx,
  1509. msm_bedais[i].sample_rate);
  1510. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1511. unsigned long copp =
  1512. session_copp_map[fedai_id][session_type][i];
  1513. if (test_bit(j, &copp)) {
  1514. payload.port_id[num_copps] =
  1515. msm_bedais[i].port_id;
  1516. payload.copp_idx[num_copps] = j;
  1517. payload.app_type[num_copps] =
  1518. fe_dai_app_type_cfg
  1519. [fedai_id][session_type]
  1520. [i].app_type;
  1521. payload.acdb_dev_id[num_copps] =
  1522. fe_dai_app_type_cfg
  1523. [fedai_id][session_type]
  1524. [i].acdb_dev_id;
  1525. payload.sample_rate[num_copps] =
  1526. fe_dai_app_type_cfg
  1527. [fedai_id][session_type]
  1528. [i].sample_rate;
  1529. num_copps++;
  1530. }
  1531. }
  1532. if (perf_mode == LEGACY_PCM_MODE)
  1533. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1534. copp_idx, topology, channels);
  1535. }
  1536. }
  1537. if (num_copps) {
  1538. payload.num_copps = num_copps;
  1539. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1540. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1541. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1542. }
  1543. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1544. dspst_id, stream_type);
  1545. mutex_unlock(&routing_lock);
  1546. return ret;
  1547. }
  1548. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1549. int dspst_id, int stream_type,
  1550. struct msm_pcm_routing_evt event_info)
  1551. {
  1552. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1553. stream_type)) {
  1554. pr_err("%s: failed to reg phy stream\n", __func__);
  1555. return -EINVAL;
  1556. }
  1557. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1558. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1559. else
  1560. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1561. return 0;
  1562. }
  1563. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1564. {
  1565. int i, port_type, session_type, path_type, topology;
  1566. struct msm_pcm_routing_fdai_data *fdai;
  1567. if (!is_mm_lsm_fe_id(fedai_id)) {
  1568. /* bad ID assigned in machine driver */
  1569. pr_err("%s: bad MM ID\n", __func__);
  1570. return;
  1571. }
  1572. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1573. port_type = MSM_AFE_PORT_TYPE_RX;
  1574. session_type = SESSION_TYPE_RX;
  1575. path_type = ADM_PATH_PLAYBACK;
  1576. } else {
  1577. port_type = MSM_AFE_PORT_TYPE_TX;
  1578. session_type = SESSION_TYPE_TX;
  1579. path_type = ADM_PATH_LIVE_REC;
  1580. }
  1581. mutex_lock(&routing_lock);
  1582. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1583. if (!is_be_dai_extproc(i) &&
  1584. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1585. (msm_bedais[i].active) &&
  1586. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1587. int idx;
  1588. unsigned long copp =
  1589. session_copp_map[fedai_id][session_type][i];
  1590. fdai = &fe_dai_map[fedai_id][session_type];
  1591. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1592. if (test_bit(idx, &copp))
  1593. break;
  1594. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1595. pr_debug("%s: copp idx is invalid, exiting\n",
  1596. __func__);
  1597. continue;
  1598. }
  1599. topology = adm_get_topology_for_port_copp_idx(
  1600. msm_bedais[i].port_id, idx);
  1601. msm_routing_unload_topology(topology);
  1602. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1603. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1604. __func__, copp, fedai_id, session_type, i);
  1605. clear_bit(idx,
  1606. &session_copp_map[fedai_id][session_type][i]);
  1607. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1608. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1609. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1610. (fdai->passthr_mode == LEGACY_PCM))
  1611. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1612. topology);
  1613. }
  1614. }
  1615. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1616. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1617. mutex_unlock(&routing_lock);
  1618. }
  1619. /* Check if FE/BE route is set */
  1620. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1621. {
  1622. bool rc = false;
  1623. if (!is_mm_lsm_fe_id(fe_id)) {
  1624. /* recheck FE ID in the mixer control defined in this file */
  1625. pr_err("%s: bad MM ID\n", __func__);
  1626. return rc;
  1627. }
  1628. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1629. rc = true;
  1630. return rc;
  1631. }
  1632. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1633. {
  1634. int session_type, path_type, topology;
  1635. u32 channels, sample_rate;
  1636. uint16_t bits_per_sample = 16;
  1637. struct msm_pcm_routing_fdai_data *fdai;
  1638. uint32_t passthr_mode;
  1639. bool is_lsm;
  1640. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1641. if (!is_mm_lsm_fe_id(val)) {
  1642. /* recheck FE ID in the mixer control defined in this file */
  1643. pr_err("%s: bad MM ID\n", __func__);
  1644. return;
  1645. }
  1646. if (!route_check_fe_id_adm_support(val)) {
  1647. /* ignore adm open if not supported for fe_id */
  1648. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1649. return;
  1650. }
  1651. session_type =
  1652. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1653. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1654. fdai = &fe_dai_map[val][session_type];
  1655. passthr_mode = fdai->passthr_mode;
  1656. if (session_type == SESSION_TYPE_RX) {
  1657. if (passthr_mode != LEGACY_PCM)
  1658. path_type = ADM_PATH_COMPRESSED_RX;
  1659. else
  1660. path_type = ADM_PATH_PLAYBACK;
  1661. } else {
  1662. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1663. path_type = ADM_PATH_COMPRESSED_TX;
  1664. else
  1665. path_type = ADM_PATH_LIVE_REC;
  1666. }
  1667. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1668. (val <= MSM_FRONTEND_DAI_LSM8);
  1669. mutex_lock(&routing_lock);
  1670. if (set) {
  1671. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1672. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1673. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1674. voc_start_playback(set, msm_bedais[reg].port_id);
  1675. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1676. if (msm_bedais[reg].active && fdai->strm_id !=
  1677. INVALID_SESSION) {
  1678. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1679. /*
  1680. * check if ADM needs to be configured with different
  1681. * channel mapping than backend
  1682. */
  1683. if (!msm_bedais[reg].adm_override_ch)
  1684. channels = msm_bedais[reg].channel;
  1685. else
  1686. channels = msm_bedais[reg].adm_override_ch;
  1687. if (session_type == SESSION_TYPE_TX &&
  1688. fdai->be_srate &&
  1689. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1690. pr_debug("%s: flush strm %d diff BE rates\n",
  1691. __func__, fdai->strm_id);
  1692. if (fdai->event_info.event_func)
  1693. fdai->event_info.event_func(
  1694. MSM_PCM_RT_EVT_BUF_RECFG,
  1695. fdai->event_info.priv_data);
  1696. fdai->be_srate = 0; /* might not need it */
  1697. }
  1698. bits_per_sample = msm_routing_get_bit_width(
  1699. msm_bedais[reg].format);
  1700. app_type =
  1701. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1702. if (app_type && is_lsm) {
  1703. app_type_idx =
  1704. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1705. sample_rate =
  1706. fe_dai_app_type_cfg[val][session_type][reg]
  1707. .sample_rate;
  1708. bits_per_sample =
  1709. lsm_app_type_cfg[app_type_idx].bit_width;
  1710. } else if (app_type) {
  1711. app_type_idx =
  1712. msm_pcm_routing_get_app_type_idx(app_type);
  1713. sample_rate =
  1714. fe_dai_app_type_cfg[val][session_type][reg]
  1715. .sample_rate;
  1716. bits_per_sample =
  1717. app_type_cfg[app_type_idx].bit_width;
  1718. } else
  1719. sample_rate = msm_bedais[reg].sample_rate;
  1720. topology = msm_routing_get_adm_topology(val,
  1721. session_type,
  1722. reg);
  1723. acdb_dev_id =
  1724. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1725. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1726. sample_rate, channels, topology,
  1727. fdai->perf_mode, bits_per_sample,
  1728. app_type, acdb_dev_id);
  1729. if ((copp_idx < 0) ||
  1730. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1731. pr_err("%s: adm open failed\n", __func__);
  1732. mutex_unlock(&routing_lock);
  1733. return;
  1734. }
  1735. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1736. __func__, val, session_type, reg);
  1737. set_bit(copp_idx,
  1738. &session_copp_map[val][session_type][reg]);
  1739. if (msm_is_resample_needed(
  1740. sample_rate,
  1741. msm_bedais[reg].sample_rate))
  1742. adm_copp_mfc_cfg(
  1743. msm_bedais[reg].port_id, copp_idx,
  1744. msm_bedais[reg].sample_rate);
  1745. if (session_type == SESSION_TYPE_RX &&
  1746. fdai->event_info.event_func)
  1747. fdai->event_info.event_func(
  1748. MSM_PCM_RT_EVT_DEVSWITCH,
  1749. fdai->event_info.priv_data);
  1750. msm_pcm_routing_build_matrix(val, session_type,
  1751. path_type,
  1752. fdai->perf_mode,
  1753. passthr_mode);
  1754. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1755. (passthr_mode == LEGACY_PCM))
  1756. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1757. copp_idx, topology,
  1758. channels);
  1759. }
  1760. } else {
  1761. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1762. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1763. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1764. voc_start_playback(set, msm_bedais[reg].port_id);
  1765. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1766. if (msm_bedais[reg].active && fdai->strm_id !=
  1767. INVALID_SESSION) {
  1768. int idx;
  1769. int port_id;
  1770. unsigned long copp =
  1771. session_copp_map[val][session_type][reg];
  1772. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1773. if (test_bit(idx, &copp))
  1774. break;
  1775. if (idx >= MAX_COPPS_PER_PORT) {
  1776. pr_debug("%s: copp idx is invalid, exiting\n",
  1777. __func__);
  1778. mutex_unlock(&routing_lock);
  1779. return;
  1780. }
  1781. port_id = msm_bedais[reg].port_id;
  1782. topology = adm_get_topology_for_port_copp_idx(port_id,
  1783. idx);
  1784. msm_routing_unload_topology(topology);
  1785. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1786. idx);
  1787. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1788. __func__, copp, val, session_type, reg,
  1789. topology);
  1790. clear_bit(idx,
  1791. &session_copp_map[val][session_type][reg]);
  1792. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1793. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1794. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1795. (passthr_mode == LEGACY_PCM))
  1796. msm_pcm_routing_deinit_pp(
  1797. msm_bedais[reg].port_id,
  1798. topology);
  1799. msm_pcm_routing_build_matrix(val, session_type,
  1800. path_type,
  1801. fdai->perf_mode,
  1802. passthr_mode);
  1803. }
  1804. }
  1805. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1806. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1807. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1808. mutex_unlock(&routing_lock);
  1809. }
  1810. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1811. struct snd_ctl_elem_value *ucontrol)
  1812. {
  1813. struct soc_mixer_control *mc =
  1814. (struct soc_mixer_control *)kcontrol->private_value;
  1815. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1816. ucontrol->value.integer.value[0] = 1;
  1817. else
  1818. ucontrol->value.integer.value[0] = 0;
  1819. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1820. ucontrol->value.integer.value[0]);
  1821. return 0;
  1822. }
  1823. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1824. struct snd_ctl_elem_value *ucontrol)
  1825. {
  1826. struct snd_soc_dapm_widget *widget =
  1827. snd_soc_dapm_kcontrol_widget(kcontrol);
  1828. struct soc_mixer_control *mc =
  1829. (struct soc_mixer_control *)kcontrol->private_value;
  1830. struct snd_soc_dapm_update *update = NULL;
  1831. if (ucontrol->value.integer.value[0] &&
  1832. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1833. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1834. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1835. update);
  1836. } else if (!ucontrol->value.integer.value[0] &&
  1837. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1838. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1839. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1840. update);
  1841. }
  1842. return 1;
  1843. }
  1844. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1845. struct snd_ctl_elem_value *ucontrol)
  1846. {
  1847. struct soc_mixer_control *mc =
  1848. (struct soc_mixer_control *)kcontrol->private_value;
  1849. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1850. ucontrol->value.integer.value[0] = 1;
  1851. else
  1852. ucontrol->value.integer.value[0] = 0;
  1853. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1854. ucontrol->value.integer.value[0]);
  1855. return 0;
  1856. }
  1857. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1858. struct snd_ctl_elem_value *ucontrol)
  1859. {
  1860. struct snd_soc_dapm_widget *widget =
  1861. snd_soc_dapm_kcontrol_widget(kcontrol);
  1862. struct soc_mixer_control *mc =
  1863. (struct soc_mixer_control *)kcontrol->private_value;
  1864. struct snd_soc_dapm_update *update = NULL;
  1865. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1866. ucontrol->value.integer.value[0]);
  1867. if (ucontrol->value.integer.value[0]) {
  1868. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1869. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1870. snd_soc_dapm_mixer_update_power(widget->dapm,
  1871. kcontrol, 1, update);
  1872. } else if (!ucontrol->value.integer.value[0]) {
  1873. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1874. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1875. snd_soc_dapm_mixer_update_power(widget->dapm,
  1876. kcontrol, 0, update);
  1877. }
  1878. return 1;
  1879. }
  1880. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1881. {
  1882. u32 session_id = 0;
  1883. u16 path_type;
  1884. struct media_format_info voc_be_media_format;
  1885. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1886. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1887. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1888. __func__, val, session_id);
  1889. mutex_lock(&routing_lock);
  1890. if (set)
  1891. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1892. else
  1893. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1894. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1895. afe_get_port_type(msm_bedais[reg].port_id) ==
  1896. MSM_AFE_PORT_TYPE_RX) {
  1897. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1898. __func__, set, msm_bedais[reg].port_id);
  1899. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1900. }
  1901. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1902. MSM_AFE_PORT_TYPE_RX)
  1903. path_type = RX_PATH;
  1904. else
  1905. path_type = TX_PATH;
  1906. if (set) {
  1907. if (msm_bedais[reg].active) {
  1908. voc_set_route_flag(session_id, path_type, 1);
  1909. memset(&voc_be_media_format, 0,
  1910. sizeof(struct media_format_info));
  1911. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1912. voc_be_media_format.num_channels =
  1913. msm_bedais[reg].channel;
  1914. voc_be_media_format.sample_rate =
  1915. msm_bedais[reg].sample_rate;
  1916. voc_be_media_format.bits_per_sample =
  1917. msm_bedais[reg].format;
  1918. /* Defaulting this to 1 for voice call usecases */
  1919. voc_be_media_format.channel_mapping[0] = 1;
  1920. voc_set_device_config(session_id, path_type,
  1921. &voc_be_media_format);
  1922. if (voc_get_route_flag(session_id, TX_PATH) &&
  1923. voc_get_route_flag(session_id, RX_PATH))
  1924. voc_enable_device(session_id);
  1925. } else {
  1926. pr_debug("%s BE is not active\n", __func__);
  1927. }
  1928. } else {
  1929. voc_set_route_flag(session_id, path_type, 0);
  1930. voc_disable_device(session_id);
  1931. }
  1932. mutex_unlock(&routing_lock);
  1933. }
  1934. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1935. struct snd_ctl_elem_value *ucontrol)
  1936. {
  1937. struct soc_mixer_control *mc =
  1938. (struct soc_mixer_control *)kcontrol->private_value;
  1939. mutex_lock(&routing_lock);
  1940. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1941. ucontrol->value.integer.value[0] = 1;
  1942. else
  1943. ucontrol->value.integer.value[0] = 0;
  1944. mutex_unlock(&routing_lock);
  1945. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1946. ucontrol->value.integer.value[0]);
  1947. return 0;
  1948. }
  1949. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1950. struct snd_ctl_elem_value *ucontrol)
  1951. {
  1952. struct snd_soc_dapm_widget *widget =
  1953. snd_soc_dapm_kcontrol_widget(kcontrol);
  1954. struct soc_mixer_control *mc =
  1955. (struct soc_mixer_control *)kcontrol->private_value;
  1956. struct snd_soc_dapm_update *update = NULL;
  1957. if (ucontrol->value.integer.value[0]) {
  1958. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1959. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1960. update);
  1961. } else {
  1962. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1963. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1964. update);
  1965. }
  1966. return 1;
  1967. }
  1968. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1969. struct snd_ctl_elem_value *ucontrol)
  1970. {
  1971. struct soc_mixer_control *mc =
  1972. (struct soc_mixer_control *)kcontrol->private_value;
  1973. mutex_lock(&routing_lock);
  1974. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1975. ucontrol->value.integer.value[0] = 1;
  1976. else
  1977. ucontrol->value.integer.value[0] = 0;
  1978. mutex_unlock(&routing_lock);
  1979. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1980. ucontrol->value.integer.value[0]);
  1981. return 0;
  1982. }
  1983. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1984. struct snd_ctl_elem_value *ucontrol)
  1985. {
  1986. struct snd_soc_dapm_widget *widget =
  1987. snd_soc_dapm_kcontrol_widget(kcontrol);
  1988. struct soc_mixer_control *mc =
  1989. (struct soc_mixer_control *)kcontrol->private_value;
  1990. struct snd_soc_dapm_update *update = NULL;
  1991. if (ucontrol->value.integer.value[0]) {
  1992. mutex_lock(&routing_lock);
  1993. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1994. mutex_unlock(&routing_lock);
  1995. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1996. update);
  1997. } else {
  1998. mutex_lock(&routing_lock);
  1999. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2000. mutex_unlock(&routing_lock);
  2001. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2002. update);
  2003. }
  2004. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2005. ucontrol->value.integer.value[0]);
  2006. return 1;
  2007. }
  2008. /*
  2009. * Return the mapping between port ID and backend ID to enable the AFE callback
  2010. * to determine the acdb_dev_id from the port id
  2011. */
  2012. int msm_pcm_get_be_id_from_port_id(int port_id)
  2013. {
  2014. int i;
  2015. int be_id = -EINVAL;
  2016. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2017. if (msm_bedais[i].port_id == port_id) {
  2018. be_id = i;
  2019. break;
  2020. }
  2021. }
  2022. return be_id;
  2023. }
  2024. /*
  2025. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2026. * correct AFE calibration information by comparing the header information.
  2027. */
  2028. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2029. {
  2030. int acdb_id = -EINVAL;
  2031. int i = 0;
  2032. int session;
  2033. int port_type = afe_get_port_type(port_id);
  2034. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2035. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2036. __func__, port_id, be_id, port_type);
  2037. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2038. session = SESSION_TYPE_TX;
  2039. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2040. session = SESSION_TYPE_RX;
  2041. } else {
  2042. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2043. acdb_id = -EINVAL;
  2044. goto exit;
  2045. }
  2046. if (be_id < 0) {
  2047. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2048. goto exit;
  2049. }
  2050. mutex_lock(&routing_lock);
  2051. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2052. MSM_FRONTEND_DAI_MAX);
  2053. if (i < MSM_FRONTEND_DAI_MAX)
  2054. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2055. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2056. __func__, i, session, be_id, acdb_id);
  2057. mutex_unlock(&routing_lock);
  2058. exit:
  2059. return acdb_id;
  2060. }
  2061. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2062. struct snd_ctl_elem_value *ucontrol)
  2063. {
  2064. ucontrol->value.integer.value[0] = fm_switch_enable;
  2065. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2066. ucontrol->value.integer.value[0]);
  2067. return 0;
  2068. }
  2069. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2070. struct snd_ctl_elem_value *ucontrol)
  2071. {
  2072. struct snd_soc_dapm_widget *widget =
  2073. snd_soc_dapm_kcontrol_widget(kcontrol);
  2074. struct snd_soc_dapm_update *update = NULL;
  2075. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2076. ucontrol->value.integer.value[0]);
  2077. if (ucontrol->value.integer.value[0])
  2078. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2079. update);
  2080. else
  2081. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2082. update);
  2083. fm_switch_enable = ucontrol->value.integer.value[0];
  2084. return 1;
  2085. }
  2086. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2087. struct snd_ctl_elem_value *ucontrol)
  2088. {
  2089. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2090. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2091. ucontrol->value.integer.value[0]);
  2092. return 0;
  2093. }
  2094. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2095. struct snd_ctl_elem_value *ucontrol)
  2096. {
  2097. struct snd_soc_dapm_widget *widget =
  2098. snd_soc_dapm_kcontrol_widget(kcontrol);
  2099. struct snd_soc_dapm_update *update = NULL;
  2100. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2101. ucontrol->value.integer.value[0]);
  2102. if (ucontrol->value.integer.value[0])
  2103. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2104. 1, update);
  2105. else
  2106. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2107. 0, update);
  2108. hfp_switch_enable = ucontrol->value.integer.value[0];
  2109. return 1;
  2110. }
  2111. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2112. struct snd_ctl_elem_value *ucontrol)
  2113. {
  2114. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2115. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2116. ucontrol->value.integer.value[0]);
  2117. return 0;
  2118. }
  2119. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2120. struct snd_ctl_elem_value *ucontrol)
  2121. {
  2122. struct snd_soc_dapm_widget *widget =
  2123. snd_soc_dapm_kcontrol_widget(kcontrol);
  2124. struct snd_soc_dapm_update *update = NULL;
  2125. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2126. ucontrol->value.integer.value[0]);
  2127. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2128. if (a2dp_switch_enable)
  2129. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2130. 1, update);
  2131. else
  2132. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2133. 0, update);
  2134. return 1;
  2135. }
  2136. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2137. struct snd_ctl_elem_value *ucontrol)
  2138. {
  2139. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2140. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2141. ucontrol->value.integer.value[0]);
  2142. return 0;
  2143. }
  2144. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2145. struct snd_ctl_elem_value *ucontrol)
  2146. {
  2147. struct snd_soc_dapm_widget *widget =
  2148. snd_soc_dapm_kcontrol_widget(kcontrol);
  2149. struct snd_soc_dapm_update *update = NULL;
  2150. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2151. ucontrol->value.integer.value[0]);
  2152. if (ucontrol->value.integer.value[0])
  2153. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2154. update);
  2155. else
  2156. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2157. update);
  2158. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2159. return 1;
  2160. }
  2161. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2162. struct snd_ctl_elem_value *ucontrol)
  2163. {
  2164. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2165. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2166. ucontrol->value.integer.value[0]);
  2167. return 0;
  2168. }
  2169. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2170. struct snd_ctl_elem_value *ucontrol)
  2171. {
  2172. struct snd_soc_dapm_widget *widget =
  2173. snd_soc_dapm_kcontrol_widget(kcontrol);
  2174. struct snd_soc_dapm_update *update = NULL;
  2175. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2176. ucontrol->value.integer.value[0]);
  2177. if (ucontrol->value.integer.value[0])
  2178. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2179. update);
  2180. else
  2181. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2182. update);
  2183. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2184. return 1;
  2185. }
  2186. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2187. struct snd_ctl_elem_value *ucontrol)
  2188. {
  2189. ucontrol->value.integer.value[0] = usb_switch_enable;
  2190. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2191. ucontrol->value.integer.value[0]);
  2192. return 0;
  2193. }
  2194. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2195. struct snd_ctl_elem_value *ucontrol)
  2196. {
  2197. struct snd_soc_dapm_widget *widget =
  2198. snd_soc_dapm_kcontrol_widget(kcontrol);
  2199. struct snd_soc_dapm_update *update = NULL;
  2200. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2201. ucontrol->value.integer.value[0]);
  2202. if (ucontrol->value.integer.value[0])
  2203. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2204. 1, update);
  2205. else
  2206. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2207. 0, update);
  2208. usb_switch_enable = ucontrol->value.integer.value[0];
  2209. return 1;
  2210. }
  2211. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2212. struct snd_ctl_elem_value *ucontrol)
  2213. {
  2214. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2215. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2216. ucontrol->value.integer.value[0]);
  2217. return 0;
  2218. }
  2219. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2220. struct snd_ctl_elem_value *ucontrol)
  2221. {
  2222. struct snd_soc_dapm_widget *widget =
  2223. snd_soc_dapm_kcontrol_widget(kcontrol);
  2224. struct snd_soc_dapm_update *update = NULL;
  2225. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2226. ucontrol->value.integer.value[0]);
  2227. if (ucontrol->value.integer.value[0])
  2228. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2229. update);
  2230. else
  2231. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2232. update);
  2233. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2234. return 1;
  2235. }
  2236. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2237. struct snd_ctl_elem_value *ucontrol)
  2238. {
  2239. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2240. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2241. ucontrol->value.integer.value[0]);
  2242. return 0;
  2243. }
  2244. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2245. struct snd_ctl_elem_value *ucontrol)
  2246. {
  2247. struct snd_soc_dapm_widget *widget =
  2248. snd_soc_dapm_kcontrol_widget(kcontrol);
  2249. struct snd_soc_dapm_update *update = NULL;
  2250. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2251. ucontrol->value.integer.value[0]);
  2252. if (ucontrol->value.integer.value[0])
  2253. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2254. update);
  2255. else
  2256. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2257. update);
  2258. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2259. return 1;
  2260. }
  2261. static int msm_routing_get_tert_mi2s_switch_mixer(
  2262. struct snd_kcontrol *kcontrol,
  2263. struct snd_ctl_elem_value *ucontrol)
  2264. {
  2265. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2266. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2267. ucontrol->value.integer.value[0]);
  2268. return 0;
  2269. }
  2270. static int msm_routing_put_tert_mi2s_switch_mixer(
  2271. struct snd_kcontrol *kcontrol,
  2272. struct snd_ctl_elem_value *ucontrol)
  2273. {
  2274. struct snd_soc_dapm_widget *widget =
  2275. snd_soc_dapm_kcontrol_widget(kcontrol);
  2276. struct snd_soc_dapm_update *update = NULL;
  2277. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2278. ucontrol->value.integer.value[0]);
  2279. if (ucontrol->value.integer.value[0])
  2280. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2281. update);
  2282. else
  2283. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2284. update);
  2285. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2286. return 1;
  2287. }
  2288. static int msm_routing_get_quat_mi2s_switch_mixer(
  2289. struct snd_kcontrol *kcontrol,
  2290. struct snd_ctl_elem_value *ucontrol)
  2291. {
  2292. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2293. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2294. ucontrol->value.integer.value[0]);
  2295. return 0;
  2296. }
  2297. static int msm_routing_put_quat_mi2s_switch_mixer(
  2298. struct snd_kcontrol *kcontrol,
  2299. struct snd_ctl_elem_value *ucontrol)
  2300. {
  2301. struct snd_soc_dapm_widget *widget =
  2302. snd_soc_dapm_kcontrol_widget(kcontrol);
  2303. struct snd_soc_dapm_update *update = NULL;
  2304. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2305. ucontrol->value.integer.value[0]);
  2306. if (ucontrol->value.integer.value[0])
  2307. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2308. update);
  2309. else
  2310. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2311. update);
  2312. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2313. return 1;
  2314. }
  2315. static int msm_routing_get_quin_mi2s_switch_mixer(
  2316. struct snd_kcontrol *kcontrol,
  2317. struct snd_ctl_elem_value *ucontrol)
  2318. {
  2319. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2320. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2321. ucontrol->value.integer.value[0]);
  2322. return 0;
  2323. }
  2324. static int msm_routing_put_quin_mi2s_switch_mixer(
  2325. struct snd_kcontrol *kcontrol,
  2326. struct snd_ctl_elem_value *ucontrol)
  2327. {
  2328. struct snd_soc_dapm_widget *widget =
  2329. snd_soc_dapm_kcontrol_widget(kcontrol);
  2330. struct snd_soc_dapm_update *update = NULL;
  2331. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2332. ucontrol->value.integer.value[0]);
  2333. if (ucontrol->value.integer.value[0])
  2334. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2335. update);
  2336. else
  2337. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2338. update);
  2339. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2340. return 1;
  2341. }
  2342. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2343. struct snd_ctl_elem_value *ucontrol)
  2344. {
  2345. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2346. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2347. ucontrol->value.integer.value[0]);
  2348. return 0;
  2349. }
  2350. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2351. struct snd_ctl_elem_value *ucontrol)
  2352. {
  2353. struct snd_soc_dapm_widget *widget =
  2354. snd_soc_dapm_kcontrol_widget(kcontrol);
  2355. struct snd_soc_dapm_update *update = NULL;
  2356. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2357. ucontrol->value.integer.value[0]);
  2358. if (ucontrol->value.integer.value[0])
  2359. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2360. update);
  2361. else
  2362. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2363. update);
  2364. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2365. return 1;
  2366. }
  2367. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2368. struct snd_ctl_elem_value *ucontrol)
  2369. {
  2370. ucontrol->value.integer.value[0] = lsm_port_index;
  2371. return 0;
  2372. }
  2373. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2374. struct snd_ctl_elem_value *ucontrol)
  2375. {
  2376. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2377. int mux = ucontrol->value.enumerated.item[0];
  2378. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2379. if (mux >= e->items) {
  2380. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2381. return -EINVAL;
  2382. }
  2383. pr_debug("%s: LSM enable %ld\n", __func__,
  2384. ucontrol->value.integer.value[0]);
  2385. switch (ucontrol->value.integer.value[0]) {
  2386. case 1:
  2387. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2388. break;
  2389. case 2:
  2390. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2391. break;
  2392. case 3:
  2393. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2394. break;
  2395. case 4:
  2396. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2397. break;
  2398. case 5:
  2399. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2400. break;
  2401. case 6:
  2402. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2403. break;
  2404. case 7:
  2405. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2406. break;
  2407. case 8:
  2408. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2409. break;
  2410. case 9:
  2411. lsm_port = ADM_LSM_PORT_ID;
  2412. break;
  2413. case 10:
  2414. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2415. break;
  2416. case 11:
  2417. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2418. break;
  2419. case 12:
  2420. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2421. break;
  2422. case 13:
  2423. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2424. break;
  2425. case 14:
  2426. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2427. break;
  2428. default:
  2429. pr_err("Default lsm port");
  2430. break;
  2431. }
  2432. set_lsm_port(lsm_port);
  2433. lsm_port_index = ucontrol->value.integer.value[0];
  2434. return 0;
  2435. }
  2436. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2437. struct snd_ctl_elem_value *ucontrol)
  2438. {
  2439. int i;
  2440. u16 port_id;
  2441. enum afe_mad_type mad_type;
  2442. pr_debug("%s: enter\n", __func__);
  2443. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2444. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2445. strlen(lsm_port_text[i])))
  2446. break;
  2447. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2448. pr_warn("%s: Invalid id name %s\n", __func__,
  2449. kcontrol->id.name);
  2450. return -EINVAL;
  2451. }
  2452. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2453. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2454. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2455. strlen(lsm_port_text[7])))
  2456. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2457. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2458. strlen(lsm_port_text[8])))
  2459. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2460. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2461. strlen(lsm_port_text[10])))
  2462. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2463. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2464. strlen(lsm_port_text[13])))
  2465. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2466. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2467. strlen(lsm_port_text[14])))
  2468. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2469. mad_type = afe_port_get_mad_type(port_id);
  2470. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2471. mad_type);
  2472. switch (mad_type) {
  2473. case MAD_HW_NONE:
  2474. ucontrol->value.integer.value[0] = MADNONE;
  2475. break;
  2476. case MAD_HW_AUDIO:
  2477. ucontrol->value.integer.value[0] = MADAUDIO;
  2478. break;
  2479. case MAD_HW_BEACON:
  2480. ucontrol->value.integer.value[0] = MADBEACON;
  2481. break;
  2482. case MAD_HW_ULTRASOUND:
  2483. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2484. break;
  2485. case MAD_SW_AUDIO:
  2486. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2487. break;
  2488. default:
  2489. pr_warn("%s: Unknown\n", __func__);
  2490. return -EINVAL;
  2491. }
  2492. return 0;
  2493. }
  2494. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2495. struct snd_ctl_elem_value *ucontrol)
  2496. {
  2497. int i;
  2498. u16 port_id;
  2499. enum afe_mad_type mad_type;
  2500. pr_debug("%s: enter\n", __func__);
  2501. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2502. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2503. strlen(lsm_port_text[i])))
  2504. break;
  2505. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2506. pr_warn("%s: Invalid id name %s\n", __func__,
  2507. kcontrol->id.name);
  2508. return -EINVAL;
  2509. }
  2510. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2511. switch (ucontrol->value.integer.value[0]) {
  2512. case MADNONE:
  2513. mad_type = MAD_HW_NONE;
  2514. break;
  2515. case MADAUDIO:
  2516. mad_type = MAD_HW_AUDIO;
  2517. break;
  2518. case MADBEACON:
  2519. mad_type = MAD_HW_BEACON;
  2520. break;
  2521. case MADULTRASOUND:
  2522. mad_type = MAD_HW_ULTRASOUND;
  2523. break;
  2524. case MADSWAUDIO:
  2525. mad_type = MAD_SW_AUDIO;
  2526. break;
  2527. default:
  2528. pr_warn("%s: Unknown\n", __func__);
  2529. return -EINVAL;
  2530. }
  2531. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2532. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2533. strlen(lsm_port_text[7])))
  2534. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2535. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2536. strlen(lsm_port_text[8])))
  2537. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2538. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2539. strlen(lsm_port_text[10])))
  2540. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2541. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2542. strlen(lsm_port_text[13])))
  2543. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2544. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2545. strlen(lsm_port_text[14])))
  2546. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2547. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2548. mad_type);
  2549. return afe_port_set_mad_type(port_id, mad_type);
  2550. }
  2551. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2552. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2553. adm_override_chs_text);
  2554. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2555. {
  2556. int backend_id;
  2557. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2558. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2559. } else {
  2560. pr_err("%s: unsupported backend id: %s",
  2561. __func__, kcontrol->id.name);
  2562. return -EINVAL;
  2563. }
  2564. return backend_id;
  2565. }
  2566. static int msm_routing_adm_channel_config_get(
  2567. struct snd_kcontrol *kcontrol,
  2568. struct snd_ctl_elem_value *ucontrol)
  2569. {
  2570. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2571. if (backend_id >= 0) {
  2572. mutex_lock(&routing_lock);
  2573. ucontrol->value.integer.value[0] =
  2574. msm_bedais[backend_id].adm_override_ch;
  2575. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2576. ucontrol->value.integer.value[0], backend_id);
  2577. mutex_unlock(&routing_lock);
  2578. }
  2579. return 0;
  2580. }
  2581. static int msm_routing_adm_channel_config_put(
  2582. struct snd_kcontrol *kcontrol,
  2583. struct snd_ctl_elem_value *ucontrol)
  2584. {
  2585. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2586. if (backend_id >= 0) {
  2587. mutex_lock(&routing_lock);
  2588. msm_bedais[backend_id].adm_override_ch =
  2589. ucontrol->value.integer.value[0];
  2590. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2591. __func__, backend_id,
  2592. msm_bedais[backend_id].adm_override_ch);
  2593. mutex_unlock(&routing_lock);
  2594. }
  2595. return 0;
  2596. }
  2597. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2598. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2599. msm_routing_adm_channel_config_get,
  2600. msm_routing_adm_channel_config_put),
  2601. };
  2602. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2603. struct snd_ctl_elem_value *ucontrol)
  2604. {
  2605. mutex_lock(&routing_lock);
  2606. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2607. mutex_unlock(&routing_lock);
  2608. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2609. ucontrol->value.integer.value[0]);
  2610. return 0;
  2611. };
  2612. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2613. struct snd_ctl_elem_value *ucontrol)
  2614. {
  2615. struct aanc_data aanc_info;
  2616. mutex_lock(&routing_lock);
  2617. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2618. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2619. ucontrol->value.integer.value[0]);
  2620. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2621. if (ucontrol->value.integer.value[0] == 0) {
  2622. aanc_info.aanc_active = false;
  2623. aanc_info.aanc_tx_port = 0;
  2624. aanc_info.aanc_rx_port = 0;
  2625. } else {
  2626. aanc_info.aanc_active = true;
  2627. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2628. aanc_info.aanc_tx_port =
  2629. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2630. }
  2631. afe_set_aanc_info(&aanc_info);
  2632. mutex_unlock(&routing_lock);
  2633. return 0;
  2634. };
  2635. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2636. struct snd_ctl_elem_value *ucontrol)
  2637. {
  2638. int idx = 0, shift = 0;
  2639. struct soc_mixer_control *mc =
  2640. (struct soc_mixer_control *)kcontrol->private_value;
  2641. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2642. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2643. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2644. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2645. return -EINVAL;
  2646. }
  2647. if (test_bit(shift,
  2648. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2649. ucontrol->value.integer.value[0] = 1;
  2650. else
  2651. ucontrol->value.integer.value[0] = 0;
  2652. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2653. ucontrol->value.integer.value[0]);
  2654. return 0;
  2655. }
  2656. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2657. struct snd_ctl_elem_value *ucontrol)
  2658. {
  2659. int idx = 0, shift = 0;
  2660. struct soc_mixer_control *mc =
  2661. (struct soc_mixer_control *)kcontrol->private_value;
  2662. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2663. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2664. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2665. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2666. return -EINVAL;
  2667. }
  2668. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2669. __func__, mc->shift, mc->rshift,
  2670. ucontrol->value.integer.value[0], idx, shift);
  2671. if (ucontrol->value.integer.value[0]) {
  2672. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2673. msm_bedais[mc->rshift].port_id);
  2674. set_bit(shift,
  2675. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2676. } else {
  2677. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2678. msm_bedais[mc->rshift].port_id);
  2679. clear_bit(shift,
  2680. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2681. }
  2682. return 1;
  2683. }
  2684. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2685. struct snd_ctl_elem_value *ucontrol)
  2686. {
  2687. u16 fe_id = 0;
  2688. fe_id = ((struct soc_mixer_control *)
  2689. kcontrol->private_value)->shift;
  2690. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2691. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2692. return -EINVAL;
  2693. }
  2694. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2695. return 0;
  2696. }
  2697. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2698. struct snd_ctl_elem_value *ucontrol)
  2699. {
  2700. u16 fe_id = 0;
  2701. fe_id = ((struct soc_mixer_control *)
  2702. kcontrol->private_value)->shift;
  2703. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2704. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2705. return -EINVAL;
  2706. }
  2707. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2708. return 1;
  2709. }
  2710. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2711. struct snd_ctl_elem_value *ucontrol)
  2712. {
  2713. u16 fe_id = 0;
  2714. fe_id = ((struct soc_multi_mixer_control *)
  2715. kcontrol->private_value)->shift;
  2716. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2717. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2718. return -EINVAL;
  2719. }
  2720. ucontrol->value.integer.value[0] =
  2721. channel_mixer[fe_id].output_channel;
  2722. return 0;
  2723. }
  2724. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2725. struct snd_ctl_elem_value *ucontrol)
  2726. {
  2727. u16 fe_id = 0;
  2728. fe_id = ((struct soc_multi_mixer_control *)
  2729. kcontrol->private_value)->shift;
  2730. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2731. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2732. return -EINVAL;
  2733. }
  2734. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2735. fe_id,
  2736. (unsigned int)(ucontrol->value.integer.value[0]));
  2737. channel_mixer[fe_id].output_channel =
  2738. (unsigned int)(ucontrol->value.integer.value[0]);
  2739. return 1;
  2740. }
  2741. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2742. /* If new backend is added, need update this array */
  2743. static const char *const be_name[] = {
  2744. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2745. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2746. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2747. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2748. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2749. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2750. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2751. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2752. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2753. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2754. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2755. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2756. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2757. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2758. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2759. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2760. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2761. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2762. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2763. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2764. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2765. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2766. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2767. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2768. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2769. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2770. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2771. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2772. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2773. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2774. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2775. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2776. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2777. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2778. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2779. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2780. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2781. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2782. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2783. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2784. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2785. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2786. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1",
  2787. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2788. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2789. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2790. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2791. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2792. };
  2793. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2794. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2795. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2796. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2797. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2798. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2799. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2800. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2801. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2802. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2803. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2804. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2805. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2806. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2807. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2808. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2809. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2810. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2811. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2812. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2813. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2814. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2815. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2816. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2817. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2818. unsigned int channels,
  2819. unsigned int items, const char *const names[])
  2820. {
  2821. if (uinfo->value.enumerated.item >= items)
  2822. uinfo->value.enumerated.item = items - 1;
  2823. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2824. sizeof(uinfo->value.enumerated.name),
  2825. "ALSA: too long item name '%s'\n",
  2826. names[uinfo->value.enumerated.item]);
  2827. strlcpy(uinfo->value.enumerated.name,
  2828. names[uinfo->value.enumerated.item],
  2829. sizeof(uinfo->value.enumerated.name));
  2830. return 0;
  2831. }
  2832. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2833. struct snd_ctl_elem_info *uinfo)
  2834. {
  2835. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2836. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2837. uinfo->count = 1;
  2838. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2839. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2840. return 0;
  2841. }
  2842. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2843. struct snd_ctl_elem_value *ucontrol)
  2844. {
  2845. u16 fe_id = 0;
  2846. fe_id = ((struct soc_enum *)
  2847. kcontrol->private_value)->shift_l;
  2848. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2849. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2850. return -EINVAL;
  2851. }
  2852. pr_debug("%s: FE %d %s\n", __func__,
  2853. fe_id,
  2854. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2855. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2856. return 0;
  2857. }
  2858. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2859. struct snd_ctl_elem_value *ucontrol)
  2860. {
  2861. u16 fe_id = 0;
  2862. fe_id = ((struct soc_enum *)
  2863. kcontrol->private_value)->shift_l;
  2864. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2865. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2866. return -EINVAL;
  2867. }
  2868. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2869. pr_debug("%s: %s FE %d\n", __func__,
  2870. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2871. fe_id);
  2872. return 0;
  2873. }
  2874. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2875. struct snd_ctl_elem_info *uinfo)
  2876. {
  2877. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2878. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2879. uinfo->count = 1;
  2880. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2881. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2882. return 0;
  2883. }
  2884. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2885. struct snd_ctl_elem_value *ucontrol)
  2886. {
  2887. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2888. u16 fe_id = 0, in_ch = 0;
  2889. fe_id = e->shift_l;
  2890. in_ch = e->shift_r;
  2891. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2892. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2893. return -EINVAL;
  2894. }
  2895. if (in_ch >= ADM_MAX_CHANNELS) {
  2896. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2897. return -EINVAL;
  2898. }
  2899. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2900. return 1;
  2901. }
  2902. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2903. struct snd_ctl_elem_value *ucontrol)
  2904. {
  2905. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2906. u16 fe_id = 0, in_ch = 0;
  2907. fe_id = e->shift_l;
  2908. in_ch = e->shift_r;
  2909. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2910. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2911. return -EINVAL;
  2912. }
  2913. if (in_ch >= ADM_MAX_CHANNELS) {
  2914. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2915. return -EINVAL;
  2916. }
  2917. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2918. return 1;
  2919. }
  2920. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2921. struct snd_ctl_elem_info *uinfo)
  2922. {
  2923. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2924. uinfo->count = ADM_MAX_CHANNELS;
  2925. uinfo->value.integer.min = 0;
  2926. uinfo->value.integer.max = WEIGHT_0_DB;
  2927. return 0;
  2928. }
  2929. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2930. struct snd_ctl_elem_value *ucontrol)
  2931. {
  2932. u16 fe_id = 0, out_ch = 0;
  2933. int i, weight;
  2934. fe_id = ((struct soc_multi_mixer_control *)
  2935. kcontrol->private_value)->shift;
  2936. out_ch = ((struct soc_multi_mixer_control *)
  2937. kcontrol->private_value)->rshift;
  2938. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2939. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2940. return -EINVAL;
  2941. }
  2942. if (out_ch >= ADM_MAX_CHANNELS) {
  2943. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2944. return -EINVAL;
  2945. }
  2946. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2947. __func__, fe_id,
  2948. ucontrol->value.integer.value[0],
  2949. ucontrol->value.integer.value[1],
  2950. ucontrol->value.integer.value[2],
  2951. ucontrol->value.integer.value[3],
  2952. ucontrol->value.integer.value[4],
  2953. ucontrol->value.integer.value[5],
  2954. ucontrol->value.integer.value[6],
  2955. ucontrol->value.integer.value[7]);
  2956. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2957. weight = ucontrol->value.integer.value[i];
  2958. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2959. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2960. __func__, fe_id, out_ch, i,
  2961. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2962. }
  2963. return 0;
  2964. }
  2965. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2966. struct snd_ctl_elem_value *ucontrol)
  2967. {
  2968. u16 fe_id = 0, out_ch = 0;
  2969. int i;
  2970. fe_id = ((struct soc_multi_mixer_control *)
  2971. kcontrol->private_value)->shift;
  2972. out_ch = ((struct soc_multi_mixer_control *)
  2973. kcontrol->private_value)->rshift;
  2974. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2975. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2976. return -EINVAL;
  2977. }
  2978. if (out_ch >= ADM_MAX_CHANNELS) {
  2979. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2980. return -EINVAL;
  2981. }
  2982. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2983. ucontrol->value.integer.value[i] =
  2984. channel_mixer[fe_id].channel_weight[out_ch][i];
  2985. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2986. __func__, fe_id,
  2987. ucontrol->value.integer.value[0],
  2988. ucontrol->value.integer.value[1],
  2989. ucontrol->value.integer.value[2],
  2990. ucontrol->value.integer.value[3],
  2991. ucontrol->value.integer.value[4],
  2992. ucontrol->value.integer.value[5],
  2993. ucontrol->value.integer.value[6],
  2994. ucontrol->value.integer.value[7]);
  2995. return 0;
  2996. }
  2997. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2998. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2999. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3000. msm_pcm_get_channel_rule_index,
  3001. msm_pcm_put_channel_rule_index),
  3002. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3003. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3004. msm_pcm_get_channel_rule_index,
  3005. msm_pcm_put_channel_rule_index),
  3006. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3007. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3008. msm_pcm_get_channel_rule_index,
  3009. msm_pcm_put_channel_rule_index),
  3010. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3011. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3012. msm_pcm_get_channel_rule_index,
  3013. msm_pcm_put_channel_rule_index),
  3014. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3015. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3016. msm_pcm_get_channel_rule_index,
  3017. msm_pcm_put_channel_rule_index),
  3018. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3019. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3020. msm_pcm_get_channel_rule_index,
  3021. msm_pcm_put_channel_rule_index),
  3022. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3023. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3024. msm_pcm_get_out_chs,
  3025. msm_pcm_put_out_chs),
  3026. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3027. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3028. msm_pcm_get_out_chs,
  3029. msm_pcm_put_out_chs),
  3030. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3031. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3032. msm_pcm_get_out_chs,
  3033. msm_pcm_put_out_chs),
  3034. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3035. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3036. msm_pcm_get_out_chs,
  3037. msm_pcm_put_out_chs),
  3038. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3039. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3040. msm_pcm_get_out_chs,
  3041. msm_pcm_put_out_chs),
  3042. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3043. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3044. msm_pcm_get_out_chs,
  3045. msm_pcm_put_out_chs),
  3046. {
  3047. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3048. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3049. .name = "MultiMedia1 Channel Mixer",
  3050. .info = msm_pcm_channel_mixer_info,
  3051. .get = msm_pcm_channel_mixer_get,
  3052. .put = msm_pcm_channel_mixer_put,
  3053. .private_value = (unsigned long)&(mm1_channel_mux)
  3054. },
  3055. {
  3056. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3057. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3058. .name = "MultiMedia2 Channel Mixer",
  3059. .info = msm_pcm_channel_mixer_info,
  3060. .get = msm_pcm_channel_mixer_get,
  3061. .put = msm_pcm_channel_mixer_put,
  3062. .private_value = (unsigned long)&(mm2_channel_mux)
  3063. },
  3064. {
  3065. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3066. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3067. .name = "MultiMedia3 Channel Mixer",
  3068. .info = msm_pcm_channel_mixer_info,
  3069. .get = msm_pcm_channel_mixer_get,
  3070. .put = msm_pcm_channel_mixer_put,
  3071. .private_value = (unsigned long)&(mm3_channel_mux)
  3072. },
  3073. {
  3074. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3075. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3076. .name = "MultiMedia4 Channel Mixer",
  3077. .info = msm_pcm_channel_mixer_info,
  3078. .get = msm_pcm_channel_mixer_get,
  3079. .put = msm_pcm_channel_mixer_put,
  3080. .private_value = (unsigned long)&(mm4_channel_mux)
  3081. },
  3082. {
  3083. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3084. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3085. .name = "MultiMedia1 Output Channel1",
  3086. .info = msm_pcm_channel_weight_info,
  3087. .get = msm_pcm_channel_weight_get,
  3088. .put = msm_pcm_channel_weight_put,
  3089. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3090. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3091. },
  3092. {
  3093. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3094. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3095. .name = "MultiMedia1 Output Channel2",
  3096. .info = msm_pcm_channel_weight_info,
  3097. .get = msm_pcm_channel_weight_get,
  3098. .put = msm_pcm_channel_weight_put,
  3099. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3100. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3101. },
  3102. {
  3103. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3104. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3105. .name = "MultiMedia1 Output Channel3",
  3106. .info = msm_pcm_channel_weight_info,
  3107. .get = msm_pcm_channel_weight_get,
  3108. .put = msm_pcm_channel_weight_put,
  3109. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3110. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3111. },
  3112. {
  3113. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3114. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3115. .name = "MultiMedia1 Output Channel4",
  3116. .info = msm_pcm_channel_weight_info,
  3117. .get = msm_pcm_channel_weight_get,
  3118. .put = msm_pcm_channel_weight_put,
  3119. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3120. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3121. },
  3122. {
  3123. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3124. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3125. .name = "MultiMedia1 Output Channel5",
  3126. .info = msm_pcm_channel_weight_info,
  3127. .get = msm_pcm_channel_weight_get,
  3128. .put = msm_pcm_channel_weight_put,
  3129. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3130. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3131. },
  3132. {
  3133. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3134. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3135. .name = "MultiMedia1 Output Channel6",
  3136. .info = msm_pcm_channel_weight_info,
  3137. .get = msm_pcm_channel_weight_get,
  3138. .put = msm_pcm_channel_weight_put,
  3139. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3140. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3141. },
  3142. {
  3143. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3144. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3145. .name = "MultiMedia1 Output Channel7",
  3146. .info = msm_pcm_channel_weight_info,
  3147. .get = msm_pcm_channel_weight_get,
  3148. .put = msm_pcm_channel_weight_put,
  3149. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3150. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3151. },
  3152. {
  3153. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3154. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3155. .name = "MultiMedia1 Output Channel8",
  3156. .info = msm_pcm_channel_weight_info,
  3157. .get = msm_pcm_channel_weight_get,
  3158. .put = msm_pcm_channel_weight_put,
  3159. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3160. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3161. },
  3162. {
  3163. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3164. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3165. .name = "MultiMedia2 Output Channel1",
  3166. .info = msm_pcm_channel_weight_info,
  3167. .get = msm_pcm_channel_weight_get,
  3168. .put = msm_pcm_channel_weight_put,
  3169. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3170. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3171. },
  3172. {
  3173. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3174. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3175. .name = "MultiMedia2 Output Channel2",
  3176. .info = msm_pcm_channel_weight_info,
  3177. .get = msm_pcm_channel_weight_get,
  3178. .put = msm_pcm_channel_weight_put,
  3179. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3180. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3181. },
  3182. {
  3183. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3184. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3185. .name = "MultiMedia2 Output Channel3",
  3186. .info = msm_pcm_channel_weight_info,
  3187. .get = msm_pcm_channel_weight_get,
  3188. .put = msm_pcm_channel_weight_put,
  3189. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3190. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3191. },
  3192. {
  3193. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3194. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3195. .name = "MultiMedia3 Output Channel1",
  3196. .info = msm_pcm_channel_weight_info,
  3197. .get = msm_pcm_channel_weight_get,
  3198. .put = msm_pcm_channel_weight_put,
  3199. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3200. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3201. },
  3202. {
  3203. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3204. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3205. .name = "MultiMedia3 Output Channel2",
  3206. .info = msm_pcm_channel_weight_info,
  3207. .get = msm_pcm_channel_weight_get,
  3208. .put = msm_pcm_channel_weight_put,
  3209. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3210. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3211. },
  3212. {
  3213. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3214. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3215. .name = "MultiMedia1 Channel1",
  3216. .info = msm_pcm_channel_input_be_info,
  3217. .get = msm_pcm_channel_input_be_get,
  3218. .put = msm_pcm_channel_input_be_put,
  3219. .private_value = (unsigned long)&(mm1_ch1_enum)
  3220. },
  3221. {
  3222. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3223. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3224. .name = "MultiMedia1 Channel2",
  3225. .info = msm_pcm_channel_input_be_info,
  3226. .get = msm_pcm_channel_input_be_get,
  3227. .put = msm_pcm_channel_input_be_put,
  3228. .private_value = (unsigned long)&(mm1_ch2_enum)
  3229. },
  3230. {
  3231. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3232. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3233. .name = "MultiMedia1 Channel3",
  3234. .info = msm_pcm_channel_input_be_info,
  3235. .get = msm_pcm_channel_input_be_get,
  3236. .put = msm_pcm_channel_input_be_put,
  3237. .private_value = (unsigned long)&(mm1_ch3_enum)
  3238. },
  3239. {
  3240. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3241. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3242. .name = "MultiMedia1 Channel4",
  3243. .info = msm_pcm_channel_input_be_info,
  3244. .get = msm_pcm_channel_input_be_get,
  3245. .put = msm_pcm_channel_input_be_put,
  3246. .private_value = (unsigned long)&(mm1_ch4_enum)
  3247. },
  3248. {
  3249. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3250. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3251. .name = "MultiMedia1 Channel5",
  3252. .info = msm_pcm_channel_input_be_info,
  3253. .get = msm_pcm_channel_input_be_get,
  3254. .put = msm_pcm_channel_input_be_put,
  3255. .private_value = (unsigned long)&(mm1_ch5_enum)
  3256. },
  3257. {
  3258. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3259. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3260. .name = "MultiMedia1 Channel6",
  3261. .info = msm_pcm_channel_input_be_info,
  3262. .get = msm_pcm_channel_input_be_get,
  3263. .put = msm_pcm_channel_input_be_put,
  3264. .private_value = (unsigned long)&(mm1_ch6_enum)
  3265. },
  3266. {
  3267. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3268. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3269. .name = "MultiMedia1 Channel7",
  3270. .info = msm_pcm_channel_input_be_info,
  3271. .get = msm_pcm_channel_input_be_get,
  3272. .put = msm_pcm_channel_input_be_put,
  3273. .private_value = (unsigned long)&(mm1_ch7_enum)
  3274. },
  3275. {
  3276. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3277. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3278. .name = "MultiMedia1 Channel8",
  3279. .info = msm_pcm_channel_input_be_info,
  3280. .get = msm_pcm_channel_input_be_get,
  3281. .put = msm_pcm_channel_input_be_put,
  3282. .private_value = (unsigned long)&(mm1_ch8_enum)
  3283. },
  3284. };
  3285. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3286. struct snd_ctl_elem_value *ucontrol)
  3287. {
  3288. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3289. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3290. ucontrol->value.integer.value[0]);
  3291. return 0;
  3292. }
  3293. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3294. struct snd_ctl_elem_value *ucontrol)
  3295. {
  3296. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3297. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3298. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3299. return 0;
  3300. }
  3301. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3302. "Four", "Five", "Six", "Seven", "Eight"};
  3303. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3304. struct snd_ctl_elem_value *ucontrol)
  3305. {
  3306. switch (msm_ec_ref_bit_format) {
  3307. case SNDRV_PCM_FORMAT_S24_LE:
  3308. ucontrol->value.integer.value[0] = 2;
  3309. break;
  3310. case SNDRV_PCM_FORMAT_S16_LE:
  3311. ucontrol->value.integer.value[0] = 1;
  3312. break;
  3313. default:
  3314. ucontrol->value.integer.value[0] = 0;
  3315. break;
  3316. }
  3317. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3318. __func__, ucontrol->value.integer.value[0]);
  3319. return 0;
  3320. }
  3321. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3322. struct snd_ctl_elem_value *ucontrol)
  3323. {
  3324. u16 bit_width = 0;
  3325. switch (ucontrol->value.integer.value[0]) {
  3326. case 2:
  3327. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3328. break;
  3329. case 1:
  3330. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3331. break;
  3332. default:
  3333. msm_ec_ref_bit_format = 0;
  3334. break;
  3335. }
  3336. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3337. bit_width = 16;
  3338. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3339. bit_width = 24;
  3340. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3341. __func__, msm_ec_ref_bit_format);
  3342. adm_ec_ref_rx_bit_width(bit_width);
  3343. return 0;
  3344. }
  3345. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3346. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3347. struct snd_ctl_elem_value *ucontrol)
  3348. {
  3349. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3350. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3351. __func__, ucontrol->value.integer.value[0]);
  3352. return 0;
  3353. }
  3354. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3355. struct snd_ctl_elem_value *ucontrol)
  3356. {
  3357. switch (ucontrol->value.integer.value[0]) {
  3358. case 0:
  3359. msm_ec_ref_sampling_rate = 0;
  3360. break;
  3361. case 1:
  3362. msm_ec_ref_sampling_rate = 8000;
  3363. break;
  3364. case 2:
  3365. msm_ec_ref_sampling_rate = 16000;
  3366. break;
  3367. case 3:
  3368. msm_ec_ref_sampling_rate = 32000;
  3369. break;
  3370. case 4:
  3371. msm_ec_ref_sampling_rate = 44100;
  3372. break;
  3373. case 5:
  3374. msm_ec_ref_sampling_rate = 48000;
  3375. break;
  3376. case 6:
  3377. msm_ec_ref_sampling_rate = 96000;
  3378. break;
  3379. case 7:
  3380. msm_ec_ref_sampling_rate = 192000;
  3381. break;
  3382. case 8:
  3383. msm_ec_ref_sampling_rate = 384000;
  3384. break;
  3385. default:
  3386. msm_ec_ref_sampling_rate = 48000;
  3387. break;
  3388. }
  3389. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3390. __func__, msm_ec_ref_sampling_rate);
  3391. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3392. return 0;
  3393. }
  3394. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3395. "32000", "44100", "48000", "96000", "192000", "384000"};
  3396. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3397. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3398. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3399. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3400. };
  3401. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3402. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3403. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3404. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3405. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3406. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3407. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3408. };
  3409. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3410. struct snd_ctl_elem_value *ucontrol)
  3411. {
  3412. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3413. mutex_lock(&routing_lock);
  3414. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3415. mutex_unlock(&routing_lock);
  3416. return 0;
  3417. }
  3418. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3419. struct snd_ctl_elem_value *ucontrol)
  3420. {
  3421. int ec_ref_port_id;
  3422. struct snd_soc_dapm_widget *widget =
  3423. snd_soc_dapm_kcontrol_widget(kcontrol);
  3424. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3425. struct snd_soc_dapm_update *update = NULL;
  3426. mutex_lock(&routing_lock);
  3427. switch (ucontrol->value.integer.value[0]) {
  3428. case 0:
  3429. msm_route_ec_ref_rx = 0;
  3430. ec_ref_port_id = AFE_PORT_INVALID;
  3431. break;
  3432. case 1:
  3433. msm_route_ec_ref_rx = 1;
  3434. ec_ref_port_id = SLIMBUS_0_RX;
  3435. break;
  3436. case 2:
  3437. msm_route_ec_ref_rx = 2;
  3438. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3439. break;
  3440. case 3:
  3441. msm_route_ec_ref_rx = 3;
  3442. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3443. break;
  3444. case 4:
  3445. msm_route_ec_ref_rx = 4;
  3446. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3447. break;
  3448. case 5:
  3449. msm_route_ec_ref_rx = 5;
  3450. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3451. break;
  3452. case 6:
  3453. msm_route_ec_ref_rx = 6;
  3454. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3455. break;
  3456. case 7:
  3457. msm_route_ec_ref_rx = 7;
  3458. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3459. break;
  3460. case 9:
  3461. msm_route_ec_ref_rx = 9;
  3462. ec_ref_port_id = SLIMBUS_5_RX;
  3463. break;
  3464. case 10:
  3465. msm_route_ec_ref_rx = 10;
  3466. ec_ref_port_id = SLIMBUS_1_TX;
  3467. break;
  3468. case 11:
  3469. msm_route_ec_ref_rx = 11;
  3470. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3471. break;
  3472. case 12:
  3473. msm_route_ec_ref_rx = 12;
  3474. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3475. break;
  3476. case 13:
  3477. msm_route_ec_ref_rx = 13;
  3478. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3479. break;
  3480. case 14:
  3481. msm_route_ec_ref_rx = 14;
  3482. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3483. break;
  3484. case 15:
  3485. msm_route_ec_ref_rx = 15;
  3486. ec_ref_port_id = SLIMBUS_6_RX;
  3487. break;
  3488. case 16:
  3489. msm_route_ec_ref_rx = 16;
  3490. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3491. break;
  3492. case 17:
  3493. msm_route_ec_ref_rx = 17;
  3494. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3495. break;
  3496. case 18:
  3497. msm_route_ec_ref_rx = 18;
  3498. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3499. break;
  3500. case 19:
  3501. msm_route_ec_ref_rx = 19;
  3502. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3503. break;
  3504. case 20:
  3505. msm_route_ec_ref_rx = 20;
  3506. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3507. break;
  3508. case 21:
  3509. msm_route_ec_ref_rx = 21;
  3510. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3511. break;
  3512. case 22:
  3513. msm_route_ec_ref_rx = 22;
  3514. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3515. break;
  3516. case 23:
  3517. msm_route_ec_ref_rx = 23;
  3518. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3519. break;
  3520. case 24:
  3521. msm_route_ec_ref_rx = 24;
  3522. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3523. break;
  3524. case 25:
  3525. msm_route_ec_ref_rx = 25;
  3526. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3527. break;
  3528. case 26:
  3529. msm_route_ec_ref_rx = 26;
  3530. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3531. break;
  3532. case 27:
  3533. msm_route_ec_ref_rx = 27;
  3534. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3535. break;
  3536. case 28:
  3537. msm_route_ec_ref_rx = 28;
  3538. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3539. break;
  3540. case 29:
  3541. msm_route_ec_ref_rx = 29;
  3542. ec_ref_port_id = SLIMBUS_7_RX;
  3543. break;
  3544. case 30:
  3545. msm_route_ec_ref_rx = 30;
  3546. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3547. break;
  3548. case 31:
  3549. msm_route_ec_ref_rx = 31;
  3550. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3551. break;
  3552. case 32:
  3553. msm_route_ec_ref_rx = 32;
  3554. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3555. break;
  3556. case 33:
  3557. msm_route_ec_ref_rx = 33;
  3558. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3559. break;
  3560. case 34:
  3561. msm_route_ec_ref_rx = 34;
  3562. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3563. break;
  3564. default:
  3565. msm_route_ec_ref_rx = 0; /* NONE */
  3566. pr_err("%s EC ref rx %ld not valid\n",
  3567. __func__, ucontrol->value.integer.value[0]);
  3568. ec_ref_port_id = AFE_PORT_INVALID;
  3569. break;
  3570. }
  3571. adm_ec_ref_rx_id(ec_ref_port_id);
  3572. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3573. __func__, msm_route_ec_ref_rx);
  3574. mutex_unlock(&routing_lock);
  3575. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3576. msm_route_ec_ref_rx, e, update);
  3577. return 0;
  3578. }
  3579. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3580. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3581. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3582. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3583. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3584. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3585. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3586. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3587. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3588. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3589. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0",
  3590. };
  3591. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3592. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3593. };
  3594. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3595. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3596. msm_route_ec_ref_rx_enum[0],
  3597. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3598. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3599. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3600. msm_route_ec_ref_rx_enum[0],
  3601. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3602. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3603. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3604. msm_route_ec_ref_rx_enum[0],
  3605. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3606. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3607. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3608. msm_route_ec_ref_rx_enum[0],
  3609. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3610. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3611. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3612. msm_route_ec_ref_rx_enum[0],
  3613. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3614. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3615. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3616. msm_route_ec_ref_rx_enum[0],
  3617. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3618. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3619. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3620. msm_route_ec_ref_rx_enum[0],
  3621. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3622. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3623. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3624. msm_route_ec_ref_rx_enum[0],
  3625. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3626. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3627. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3628. msm_route_ec_ref_rx_enum[0],
  3629. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3630. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3631. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3632. msm_route_ec_ref_rx_enum[0],
  3633. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3634. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3635. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3636. msm_route_ec_ref_rx_enum[0],
  3637. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3638. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3639. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3640. msm_route_ec_ref_rx_enum[0],
  3641. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3642. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3643. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3644. msm_route_ec_ref_rx_enum[0],
  3645. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3646. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3647. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3648. msm_route_ec_ref_rx_enum[0],
  3649. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3650. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3651. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3652. msm_route_ec_ref_rx_enum[0],
  3653. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3654. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3655. struct snd_ctl_elem_value *ucontrol)
  3656. {
  3657. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3658. mutex_lock(&routing_lock);
  3659. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3660. mutex_unlock(&routing_lock);
  3661. return 0;
  3662. }
  3663. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3664. struct snd_ctl_elem_value *ucontrol)
  3665. {
  3666. struct snd_soc_dapm_widget *widget =
  3667. snd_soc_dapm_kcontrol_widget(kcontrol);
  3668. int mux = ucontrol->value.enumerated.item[0];
  3669. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3670. int ret = 1;
  3671. bool state = true;
  3672. uint16_t ext_ec_ref_port_id;
  3673. struct snd_soc_dapm_update *update = NULL;
  3674. if (mux >= e->items) {
  3675. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3676. return -EINVAL;
  3677. }
  3678. mutex_lock(&routing_lock);
  3679. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3680. switch (msm_route_ext_ec_ref) {
  3681. case EXT_EC_REF_PRI_MI2S_TX:
  3682. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3683. break;
  3684. case EXT_EC_REF_SEC_MI2S_TX:
  3685. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3686. break;
  3687. case EXT_EC_REF_TERT_MI2S_TX:
  3688. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3689. break;
  3690. case EXT_EC_REF_QUAT_MI2S_TX:
  3691. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3692. break;
  3693. case EXT_EC_REF_QUIN_MI2S_TX:
  3694. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3695. break;
  3696. case EXT_EC_REF_SLIM_1_TX:
  3697. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3698. break;
  3699. case EXT_EC_REF_SEC_TDM_TX:
  3700. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3701. break;
  3702. case EXT_EC_REF_NONE:
  3703. default:
  3704. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3705. state = false;
  3706. break;
  3707. }
  3708. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3709. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3710. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3711. mutex_unlock(&routing_lock);
  3712. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3713. update);
  3714. } else {
  3715. ret = -EINVAL;
  3716. mutex_unlock(&routing_lock);
  3717. }
  3718. return ret;
  3719. }
  3720. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3721. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3722. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3723. "SLIM_1_TX", "SEC_TDM_TX"};
  3724. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3725. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3726. };
  3727. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3728. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3729. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3730. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3731. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3732. MSM_BACKEND_DAI_PRI_I2S_RX,
  3733. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3734. msm_routing_put_audio_mixer),
  3735. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3736. MSM_BACKEND_DAI_PRI_I2S_RX,
  3737. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3738. msm_routing_put_audio_mixer),
  3739. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3740. MSM_BACKEND_DAI_PRI_I2S_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3744. MSM_BACKEND_DAI_PRI_I2S_RX,
  3745. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3746. msm_routing_put_audio_mixer),
  3747. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3748. MSM_BACKEND_DAI_PRI_I2S_RX,
  3749. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3750. msm_routing_put_audio_mixer),
  3751. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3752. MSM_BACKEND_DAI_PRI_I2S_RX,
  3753. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3754. msm_routing_put_audio_mixer),
  3755. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3756. MSM_BACKEND_DAI_PRI_I2S_RX,
  3757. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3758. msm_routing_put_audio_mixer),
  3759. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3760. MSM_BACKEND_DAI_PRI_I2S_RX,
  3761. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3762. msm_routing_put_audio_mixer),
  3763. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3764. MSM_BACKEND_DAI_PRI_I2S_RX,
  3765. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3766. msm_routing_put_audio_mixer),
  3767. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3768. MSM_BACKEND_DAI_PRI_I2S_RX,
  3769. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3770. msm_routing_put_audio_mixer),
  3771. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3772. MSM_BACKEND_DAI_PRI_I2S_RX,
  3773. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3774. msm_routing_put_audio_mixer),
  3775. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3776. MSM_BACKEND_DAI_PRI_I2S_RX,
  3777. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3778. msm_routing_put_audio_mixer),
  3779. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3780. MSM_BACKEND_DAI_PRI_I2S_RX,
  3781. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3782. msm_routing_put_audio_mixer),
  3783. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3784. MSM_BACKEND_DAI_PRI_I2S_RX,
  3785. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3786. msm_routing_put_audio_mixer),
  3787. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3788. MSM_BACKEND_DAI_PRI_I2S_RX,
  3789. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3790. msm_routing_put_audio_mixer),
  3791. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3792. MSM_BACKEND_DAI_PRI_I2S_RX,
  3793. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3794. msm_routing_put_audio_mixer),
  3795. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3796. MSM_BACKEND_DAI_PRI_I2S_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3800. MSM_BACKEND_DAI_PRI_I2S_RX,
  3801. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3802. msm_routing_put_audio_mixer),
  3803. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3804. MSM_BACKEND_DAI_PRI_I2S_RX,
  3805. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3806. msm_routing_put_audio_mixer),
  3807. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3808. MSM_BACKEND_DAI_PRI_I2S_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3812. MSM_BACKEND_DAI_PRI_I2S_RX,
  3813. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3814. msm_routing_put_audio_mixer),
  3815. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3816. MSM_BACKEND_DAI_PRI_I2S_RX,
  3817. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3818. msm_routing_put_audio_mixer),
  3819. };
  3820. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3821. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3822. MSM_BACKEND_DAI_SEC_I2S_RX,
  3823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3824. msm_routing_put_audio_mixer),
  3825. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3826. MSM_BACKEND_DAI_SEC_I2S_RX,
  3827. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3828. msm_routing_put_audio_mixer),
  3829. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3830. MSM_BACKEND_DAI_SEC_I2S_RX,
  3831. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3832. msm_routing_put_audio_mixer),
  3833. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3834. MSM_BACKEND_DAI_SEC_I2S_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3838. MSM_BACKEND_DAI_SEC_I2S_RX,
  3839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3840. msm_routing_put_audio_mixer),
  3841. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3842. MSM_BACKEND_DAI_SEC_I2S_RX,
  3843. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3844. msm_routing_put_audio_mixer),
  3845. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3846. MSM_BACKEND_DAI_SEC_I2S_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3850. MSM_BACKEND_DAI_SEC_I2S_RX,
  3851. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3852. msm_routing_put_audio_mixer),
  3853. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3854. MSM_BACKEND_DAI_SEC_I2S_RX,
  3855. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3856. msm_routing_put_audio_mixer),
  3857. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3858. MSM_BACKEND_DAI_SEC_I2S_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3862. MSM_BACKEND_DAI_SEC_I2S_RX,
  3863. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3864. msm_routing_put_audio_mixer),
  3865. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3866. MSM_BACKEND_DAI_SEC_I2S_RX,
  3867. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3868. msm_routing_put_audio_mixer),
  3869. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3870. MSM_BACKEND_DAI_SEC_I2S_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3874. MSM_BACKEND_DAI_SEC_I2S_RX,
  3875. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3876. msm_routing_put_audio_mixer),
  3877. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3878. MSM_BACKEND_DAI_SEC_I2S_RX,
  3879. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3880. msm_routing_put_audio_mixer),
  3881. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3882. MSM_BACKEND_DAI_SEC_I2S_RX,
  3883. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3884. msm_routing_put_audio_mixer),
  3885. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3886. MSM_BACKEND_DAI_SEC_I2S_RX,
  3887. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3888. msm_routing_put_audio_mixer),
  3889. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3890. MSM_BACKEND_DAI_SEC_I2S_RX,
  3891. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3892. msm_routing_put_audio_mixer),
  3893. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3894. MSM_BACKEND_DAI_SEC_I2S_RX,
  3895. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3896. msm_routing_put_audio_mixer),
  3897. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3898. MSM_BACKEND_DAI_SEC_I2S_RX,
  3899. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3900. msm_routing_put_audio_mixer),
  3901. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3902. MSM_BACKEND_DAI_SEC_I2S_RX,
  3903. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3904. msm_routing_put_audio_mixer),
  3905. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3906. MSM_BACKEND_DAI_SEC_I2S_RX,
  3907. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3908. msm_routing_put_audio_mixer),
  3909. };
  3910. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  3911. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3912. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3913. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3914. msm_routing_put_audio_mixer),
  3915. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3916. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3917. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3918. msm_routing_put_audio_mixer),
  3919. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3920. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3924. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3925. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3926. msm_routing_put_audio_mixer),
  3927. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3928. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3929. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3930. msm_routing_put_audio_mixer),
  3931. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3932. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3936. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3937. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3938. msm_routing_put_audio_mixer),
  3939. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3940. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3941. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3942. msm_routing_put_audio_mixer),
  3943. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3944. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3948. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3949. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3950. msm_routing_put_audio_mixer),
  3951. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3952. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3953. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3954. msm_routing_put_audio_mixer),
  3955. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3956. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3957. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3958. msm_routing_put_audio_mixer),
  3959. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3960. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3961. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3962. msm_routing_put_audio_mixer),
  3963. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3964. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3965. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3966. msm_routing_put_audio_mixer),
  3967. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3968. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3969. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3970. msm_routing_put_audio_mixer),
  3971. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3972. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3973. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3974. msm_routing_put_audio_mixer),
  3975. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3976. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3977. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3978. msm_routing_put_audio_mixer),
  3979. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3980. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3981. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3982. msm_routing_put_audio_mixer),
  3983. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3984. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3985. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3986. msm_routing_put_audio_mixer),
  3987. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3988. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3989. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3990. msm_routing_put_audio_mixer),
  3991. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3992. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3993. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3994. msm_routing_put_audio_mixer),
  3995. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3996. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3997. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3998. msm_routing_put_audio_mixer),
  3999. };
  4000. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  4001. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4002. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4003. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4004. msm_routing_put_audio_mixer),
  4005. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4006. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4007. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4008. msm_routing_put_audio_mixer),
  4009. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4010. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4011. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4012. msm_routing_put_audio_mixer),
  4013. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4014. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4015. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4016. msm_routing_put_audio_mixer),
  4017. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4018. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4019. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4020. msm_routing_put_audio_mixer),
  4021. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4022. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4023. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4024. msm_routing_put_audio_mixer),
  4025. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4026. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4027. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4028. msm_routing_put_audio_mixer),
  4029. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4030. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4031. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4032. msm_routing_put_audio_mixer),
  4033. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4034. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4035. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4036. msm_routing_put_audio_mixer),
  4037. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4038. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4039. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4040. msm_routing_put_audio_mixer),
  4041. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4042. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4043. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4044. msm_routing_put_audio_mixer),
  4045. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4046. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4047. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4048. msm_routing_put_audio_mixer),
  4049. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4050. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4051. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4052. msm_routing_put_audio_mixer),
  4053. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4054. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4055. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4056. msm_routing_put_audio_mixer),
  4057. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4058. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4059. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4060. msm_routing_put_audio_mixer),
  4061. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4062. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4063. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4064. msm_routing_put_audio_mixer),
  4065. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4066. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4067. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4068. msm_routing_put_audio_mixer),
  4069. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4070. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4071. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4072. msm_routing_put_audio_mixer),
  4073. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4074. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4075. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4076. msm_routing_put_audio_mixer),
  4077. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4078. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4082. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4083. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4084. msm_routing_put_audio_mixer),
  4085. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4086. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4087. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4088. msm_routing_put_audio_mixer),
  4089. };
  4090. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4091. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4092. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4093. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4094. msm_routing_put_audio_mixer),
  4095. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4096. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4100. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4101. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4102. msm_routing_put_audio_mixer),
  4103. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4104. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4105. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4106. msm_routing_put_audio_mixer),
  4107. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4108. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4109. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4110. msm_routing_put_audio_mixer),
  4111. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4112. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4113. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4114. msm_routing_put_audio_mixer),
  4115. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4116. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4117. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4118. msm_routing_put_audio_mixer),
  4119. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4120. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4124. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4125. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4126. msm_routing_put_audio_mixer),
  4127. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4128. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4129. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4130. msm_routing_put_audio_mixer),
  4131. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4132. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4133. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4134. msm_routing_put_audio_mixer),
  4135. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4136. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4137. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4138. msm_routing_put_audio_mixer),
  4139. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4140. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4141. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4142. msm_routing_put_audio_mixer),
  4143. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4144. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4145. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4146. msm_routing_put_audio_mixer),
  4147. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4148. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4149. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4150. msm_routing_put_audio_mixer),
  4151. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4152. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4153. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4154. msm_routing_put_audio_mixer),
  4155. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4156. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4157. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4158. msm_routing_put_audio_mixer),
  4159. };
  4160. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4161. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4162. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4163. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4164. msm_routing_put_audio_mixer),
  4165. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4166. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4167. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4168. msm_routing_put_audio_mixer),
  4169. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4170. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4174. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4175. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4176. msm_routing_put_audio_mixer),
  4177. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4178. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4182. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4183. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4184. msm_routing_put_audio_mixer),
  4185. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4186. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4187. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4188. msm_routing_put_audio_mixer),
  4189. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4190. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4191. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4192. msm_routing_put_audio_mixer),
  4193. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4194. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4195. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4196. msm_routing_put_audio_mixer),
  4197. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4198. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4199. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4200. msm_routing_put_audio_mixer),
  4201. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4202. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4206. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4207. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4208. msm_routing_put_audio_mixer),
  4209. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4210. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4211. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4212. msm_routing_put_audio_mixer),
  4213. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4214. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4215. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4216. msm_routing_put_audio_mixer),
  4217. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4218. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4219. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4220. msm_routing_put_audio_mixer),
  4221. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4222. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4223. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4224. msm_routing_put_audio_mixer),
  4225. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4226. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4227. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4228. msm_routing_put_audio_mixer),
  4229. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4230. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4231. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4232. msm_routing_put_audio_mixer),
  4233. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4234. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4235. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4236. msm_routing_put_audio_mixer),
  4237. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4238. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4239. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4240. msm_routing_put_audio_mixer),
  4241. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4242. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4243. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4244. msm_routing_put_audio_mixer),
  4245. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4246. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4247. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4248. msm_routing_put_audio_mixer),
  4249. };
  4250. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4251. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4252. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4253. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4254. msm_routing_put_audio_mixer),
  4255. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4256. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4257. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4258. msm_routing_put_audio_mixer),
  4259. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4260. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4261. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4262. msm_routing_put_audio_mixer),
  4263. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4264. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4268. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4269. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4270. msm_routing_put_audio_mixer),
  4271. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4272. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4273. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4274. msm_routing_put_audio_mixer),
  4275. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4276. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4277. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4278. msm_routing_put_audio_mixer),
  4279. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4280. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4281. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4282. msm_routing_put_audio_mixer),
  4283. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4284. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4285. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4286. msm_routing_put_audio_mixer),
  4287. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4288. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4289. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4290. msm_routing_put_audio_mixer),
  4291. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4292. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4293. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4294. msm_routing_put_audio_mixer),
  4295. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4296. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4297. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4298. msm_routing_put_audio_mixer),
  4299. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4300. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4301. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4302. msm_routing_put_audio_mixer),
  4303. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4304. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4305. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4306. msm_routing_put_audio_mixer),
  4307. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4308. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4309. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4310. msm_routing_put_audio_mixer),
  4311. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4312. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4313. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4314. msm_routing_put_audio_mixer),
  4315. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4316. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4317. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4318. msm_routing_put_audio_mixer),
  4319. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4320. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4321. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4322. msm_routing_put_audio_mixer),
  4323. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4324. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4325. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4326. msm_routing_put_audio_mixer),
  4327. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4328. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4329. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4330. msm_routing_put_audio_mixer),
  4331. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4332. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4333. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4334. msm_routing_put_audio_mixer),
  4335. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4336. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4337. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4338. msm_routing_put_audio_mixer),
  4339. };
  4340. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4341. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4342. MSM_BACKEND_DAI_MI2S_RX,
  4343. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4344. msm_routing_put_audio_mixer),
  4345. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4346. MSM_BACKEND_DAI_MI2S_RX,
  4347. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4348. msm_routing_put_audio_mixer),
  4349. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4350. MSM_BACKEND_DAI_MI2S_RX,
  4351. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4352. msm_routing_put_audio_mixer),
  4353. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4354. MSM_BACKEND_DAI_MI2S_RX,
  4355. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4356. msm_routing_put_audio_mixer),
  4357. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4358. MSM_BACKEND_DAI_MI2S_RX,
  4359. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4360. msm_routing_put_audio_mixer),
  4361. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4362. MSM_BACKEND_DAI_MI2S_RX,
  4363. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4364. msm_routing_put_audio_mixer),
  4365. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4366. MSM_BACKEND_DAI_MI2S_RX,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4370. MSM_BACKEND_DAI_MI2S_RX,
  4371. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4372. msm_routing_put_audio_mixer),
  4373. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4374. MSM_BACKEND_DAI_MI2S_RX,
  4375. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4376. msm_routing_put_audio_mixer),
  4377. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4378. MSM_BACKEND_DAI_MI2S_RX,
  4379. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4380. msm_routing_put_audio_mixer),
  4381. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4382. MSM_BACKEND_DAI_MI2S_RX,
  4383. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4384. msm_routing_put_audio_mixer),
  4385. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4386. MSM_BACKEND_DAI_MI2S_RX,
  4387. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4388. msm_routing_put_audio_mixer),
  4389. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4390. MSM_BACKEND_DAI_MI2S_RX,
  4391. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4392. msm_routing_put_audio_mixer),
  4393. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4394. MSM_BACKEND_DAI_MI2S_RX,
  4395. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4396. msm_routing_put_audio_mixer),
  4397. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4398. MSM_BACKEND_DAI_MI2S_RX,
  4399. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4400. msm_routing_put_audio_mixer),
  4401. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4402. MSM_BACKEND_DAI_MI2S_RX,
  4403. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4404. msm_routing_put_audio_mixer),
  4405. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4406. MSM_BACKEND_DAI_MI2S_RX,
  4407. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4408. msm_routing_put_audio_mixer),
  4409. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4410. MSM_BACKEND_DAI_MI2S_RX,
  4411. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4412. msm_routing_put_audio_mixer),
  4413. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4414. MSM_BACKEND_DAI_MI2S_RX,
  4415. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4416. msm_routing_put_audio_mixer),
  4417. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4418. MSM_BACKEND_DAI_MI2S_RX,
  4419. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4420. msm_routing_put_audio_mixer),
  4421. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4422. MSM_BACKEND_DAI_MI2S_RX,
  4423. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4424. msm_routing_put_audio_mixer),
  4425. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4426. MSM_BACKEND_DAI_MI2S_RX,
  4427. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4428. msm_routing_put_audio_mixer),
  4429. };
  4430. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4431. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4432. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4433. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4434. msm_routing_put_audio_mixer),
  4435. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4436. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4440. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4441. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4442. msm_routing_put_audio_mixer),
  4443. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4444. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4445. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4446. msm_routing_put_audio_mixer),
  4447. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4448. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4452. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4453. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4454. msm_routing_put_audio_mixer),
  4455. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4456. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4457. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4458. msm_routing_put_audio_mixer),
  4459. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4460. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4461. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4462. msm_routing_put_audio_mixer),
  4463. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4464. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4465. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4466. msm_routing_put_audio_mixer),
  4467. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4468. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4469. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4470. msm_routing_put_audio_mixer),
  4471. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4472. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4473. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4474. msm_routing_put_audio_mixer),
  4475. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4476. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4477. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4478. msm_routing_put_audio_mixer),
  4479. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4480. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4484. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4485. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4486. msm_routing_put_audio_mixer),
  4487. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4488. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4489. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4490. msm_routing_put_audio_mixer),
  4491. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4492. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4493. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4494. msm_routing_put_audio_mixer),
  4495. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4496. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4497. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4498. msm_routing_put_audio_mixer),
  4499. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4500. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4501. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4502. msm_routing_put_audio_mixer),
  4503. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4504. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4505. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4506. msm_routing_put_audio_mixer),
  4507. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4508. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4509. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4510. msm_routing_put_audio_mixer),
  4511. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4512. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4513. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4514. msm_routing_put_audio_mixer),
  4515. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4516. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4517. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4518. msm_routing_put_audio_mixer),
  4519. };
  4520. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4521. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4522. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4524. msm_routing_put_audio_mixer),
  4525. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4526. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4528. msm_routing_put_audio_mixer),
  4529. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4530. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4532. msm_routing_put_audio_mixer),
  4533. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4534. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4536. msm_routing_put_audio_mixer),
  4537. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4538. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4540. msm_routing_put_audio_mixer),
  4541. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4542. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4544. msm_routing_put_audio_mixer),
  4545. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4546. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4547. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4548. msm_routing_put_audio_mixer),
  4549. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4550. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4551. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4552. msm_routing_put_audio_mixer),
  4553. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4554. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4556. msm_routing_put_audio_mixer),
  4557. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4558. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4559. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4560. msm_routing_put_audio_mixer),
  4561. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4562. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4563. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4564. msm_routing_put_audio_mixer),
  4565. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4566. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4570. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4571. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4572. msm_routing_put_audio_mixer),
  4573. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4574. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4575. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4576. msm_routing_put_audio_mixer),
  4577. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4578. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4579. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4580. msm_routing_put_audio_mixer),
  4581. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4582. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4583. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4584. msm_routing_put_audio_mixer),
  4585. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4586. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4587. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4588. msm_routing_put_audio_mixer),
  4589. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4590. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4591. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4592. msm_routing_put_audio_mixer),
  4593. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4594. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4595. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4596. msm_routing_put_audio_mixer),
  4597. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4598. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4602. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4603. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4604. msm_routing_put_audio_mixer),
  4605. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4606. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4607. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4608. msm_routing_put_audio_mixer),
  4609. };
  4610. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4611. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4612. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4613. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4614. msm_routing_put_audio_mixer),
  4615. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4616. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4617. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4618. msm_routing_put_audio_mixer),
  4619. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4620. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4621. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4622. msm_routing_put_audio_mixer),
  4623. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4624. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4625. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4626. msm_routing_put_audio_mixer),
  4627. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4628. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4629. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4630. msm_routing_put_audio_mixer),
  4631. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4632. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4633. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4634. msm_routing_put_audio_mixer),
  4635. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4636. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4637. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4638. msm_routing_put_audio_mixer),
  4639. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4640. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4641. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4642. msm_routing_put_audio_mixer),
  4643. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4644. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4645. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4646. msm_routing_put_audio_mixer),
  4647. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4648. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4649. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4650. msm_routing_put_audio_mixer),
  4651. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4652. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4653. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4654. msm_routing_put_audio_mixer),
  4655. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4656. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4657. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4658. msm_routing_put_audio_mixer),
  4659. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4660. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4661. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4662. msm_routing_put_audio_mixer),
  4663. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4664. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4665. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4666. msm_routing_put_audio_mixer),
  4667. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4668. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4669. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4670. msm_routing_put_audio_mixer),
  4671. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4672. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4673. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4674. msm_routing_put_audio_mixer),
  4675. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4676. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4677. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4678. msm_routing_put_audio_mixer),
  4679. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4680. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4681. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4682. msm_routing_put_audio_mixer),
  4683. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4684. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4685. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4686. msm_routing_put_audio_mixer),
  4687. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4688. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4689. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4690. msm_routing_put_audio_mixer),
  4691. };
  4692. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4693. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4694. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4695. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4696. msm_routing_put_audio_mixer),
  4697. };
  4698. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4699. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4700. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4701. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4702. msm_routing_put_audio_mixer),
  4703. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4704. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4705. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4706. msm_routing_put_audio_mixer),
  4707. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4708. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4709. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4710. msm_routing_put_audio_mixer),
  4711. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4712. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4713. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4714. msm_routing_put_audio_mixer),
  4715. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4716. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4717. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4718. msm_routing_put_audio_mixer),
  4719. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4720. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4721. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4722. msm_routing_put_audio_mixer),
  4723. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4724. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4725. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4726. msm_routing_put_audio_mixer),
  4727. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4728. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4729. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4730. msm_routing_put_audio_mixer),
  4731. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4732. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4733. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4734. msm_routing_put_audio_mixer),
  4735. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4736. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4737. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4738. msm_routing_put_audio_mixer),
  4739. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4740. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4744. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4745. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4746. msm_routing_put_audio_mixer),
  4747. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4748. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4749. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4750. msm_routing_put_audio_mixer),
  4751. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4752. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4753. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4754. msm_routing_put_audio_mixer),
  4755. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4756. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4757. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4758. msm_routing_put_audio_mixer),
  4759. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4760. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4761. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4762. msm_routing_put_audio_mixer),
  4763. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4764. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4765. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4766. msm_routing_put_audio_mixer),
  4767. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4768. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4769. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4770. msm_routing_put_audio_mixer),
  4771. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4772. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4776. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4777. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4778. msm_routing_put_audio_mixer),
  4779. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4780. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4781. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4782. msm_routing_put_audio_mixer),
  4783. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4784. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. };
  4788. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4789. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4790. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4791. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4792. msm_routing_put_audio_mixer),
  4793. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4794. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4795. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4796. msm_routing_put_audio_mixer),
  4797. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4798. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4799. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4800. msm_routing_put_audio_mixer),
  4801. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4802. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4803. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4804. msm_routing_put_audio_mixer),
  4805. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4806. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4807. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4808. msm_routing_put_audio_mixer),
  4809. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4810. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4811. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4812. msm_routing_put_audio_mixer),
  4813. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4814. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4815. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4816. msm_routing_put_audio_mixer),
  4817. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4818. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4819. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4820. msm_routing_put_audio_mixer),
  4821. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4822. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4823. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4824. msm_routing_put_audio_mixer),
  4825. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4826. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4827. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4828. msm_routing_put_audio_mixer),
  4829. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4830. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4831. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4832. msm_routing_put_audio_mixer),
  4833. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4834. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4835. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4836. msm_routing_put_audio_mixer),
  4837. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4838. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4839. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4840. msm_routing_put_audio_mixer),
  4841. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4842. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4843. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4844. msm_routing_put_audio_mixer),
  4845. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4846. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4847. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4848. msm_routing_put_audio_mixer),
  4849. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4850. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4851. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4852. msm_routing_put_audio_mixer),
  4853. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4854. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4855. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4856. msm_routing_put_audio_mixer),
  4857. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4858. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4862. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4863. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4864. msm_routing_put_audio_mixer),
  4865. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4866. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4867. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4868. msm_routing_put_audio_mixer),
  4869. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4870. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4871. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4872. msm_routing_put_audio_mixer),
  4873. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4874. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4875. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4876. msm_routing_put_audio_mixer),
  4877. };
  4878. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4879. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4880. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4881. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4882. msm_routing_put_audio_mixer),
  4883. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4884. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4885. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4886. msm_routing_put_audio_mixer),
  4887. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4888. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4889. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4890. msm_routing_put_audio_mixer),
  4891. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4892. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4893. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4894. msm_routing_put_audio_mixer),
  4895. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4896. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4897. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4898. msm_routing_put_audio_mixer),
  4899. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4900. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4901. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4902. msm_routing_put_audio_mixer),
  4903. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4904. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4905. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4906. msm_routing_put_audio_mixer),
  4907. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4908. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4909. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4910. msm_routing_put_audio_mixer),
  4911. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4912. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4913. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4914. msm_routing_put_audio_mixer),
  4915. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4916. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4917. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4918. msm_routing_put_audio_mixer),
  4919. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4920. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4921. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4922. msm_routing_put_audio_mixer),
  4923. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4924. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4925. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4926. msm_routing_put_audio_mixer),
  4927. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4928. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4932. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4933. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4934. msm_routing_put_audio_mixer),
  4935. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4936. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4937. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4938. msm_routing_put_audio_mixer),
  4939. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4940. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. };
  4944. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4945. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4946. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4947. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4948. msm_routing_put_audio_mixer),
  4949. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4950. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4951. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4952. msm_routing_put_audio_mixer),
  4953. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4954. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4955. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4956. msm_routing_put_audio_mixer),
  4957. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4958. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4959. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4960. msm_routing_put_audio_mixer),
  4961. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4962. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4963. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4964. msm_routing_put_audio_mixer),
  4965. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4966. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4967. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4968. msm_routing_put_audio_mixer),
  4969. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4970. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4971. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4972. msm_routing_put_audio_mixer),
  4973. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4974. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4975. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4976. msm_routing_put_audio_mixer),
  4977. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4978. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4979. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4980. msm_routing_put_audio_mixer),
  4981. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4982. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4983. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4984. msm_routing_put_audio_mixer),
  4985. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4986. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4987. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4988. msm_routing_put_audio_mixer),
  4989. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4990. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4994. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4995. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4996. msm_routing_put_audio_mixer),
  4997. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4998. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4999. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5000. msm_routing_put_audio_mixer),
  5001. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5002. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5003. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5004. msm_routing_put_audio_mixer),
  5005. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5006. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5008. msm_routing_put_audio_mixer),
  5009. };
  5010. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  5011. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5012. MSM_BACKEND_DAI_HDMI_RX,
  5013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5014. msm_routing_put_audio_mixer),
  5015. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5016. MSM_BACKEND_DAI_HDMI_RX,
  5017. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5018. msm_routing_put_audio_mixer),
  5019. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5020. MSM_BACKEND_DAI_HDMI_RX,
  5021. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5022. msm_routing_put_audio_mixer),
  5023. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5024. MSM_BACKEND_DAI_HDMI_RX,
  5025. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5026. msm_routing_put_audio_mixer),
  5027. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5028. MSM_BACKEND_DAI_HDMI_RX,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5032. MSM_BACKEND_DAI_HDMI_RX,
  5033. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5034. msm_routing_put_audio_mixer),
  5035. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5036. MSM_BACKEND_DAI_HDMI_RX,
  5037. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5038. msm_routing_put_audio_mixer),
  5039. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5040. MSM_BACKEND_DAI_HDMI_RX,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5044. MSM_BACKEND_DAI_HDMI_RX,
  5045. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5046. msm_routing_put_audio_mixer),
  5047. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5048. MSM_BACKEND_DAI_HDMI_RX,
  5049. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5050. msm_routing_put_audio_mixer),
  5051. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5052. MSM_BACKEND_DAI_HDMI_RX,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5056. MSM_BACKEND_DAI_HDMI_RX,
  5057. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5058. msm_routing_put_audio_mixer),
  5059. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5060. MSM_BACKEND_DAI_HDMI_RX,
  5061. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5062. msm_routing_put_audio_mixer),
  5063. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5064. MSM_BACKEND_DAI_HDMI_RX,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5068. MSM_BACKEND_DAI_HDMI_RX,
  5069. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5070. msm_routing_put_audio_mixer),
  5071. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5072. MSM_BACKEND_DAI_HDMI_RX,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5076. MSM_BACKEND_DAI_HDMI_RX,
  5077. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5078. msm_routing_put_audio_mixer),
  5079. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5080. MSM_BACKEND_DAI_HDMI_RX,
  5081. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5082. msm_routing_put_audio_mixer),
  5083. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5084. MSM_BACKEND_DAI_HDMI_RX,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5088. MSM_BACKEND_DAI_HDMI_RX,
  5089. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5090. msm_routing_put_audio_mixer),
  5091. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5092. MSM_BACKEND_DAI_HDMI_RX,
  5093. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5094. msm_routing_put_audio_mixer),
  5095. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5096. MSM_BACKEND_DAI_HDMI_RX,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. };
  5100. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5101. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5102. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5104. msm_routing_put_audio_mixer),
  5105. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5106. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5108. msm_routing_put_audio_mixer),
  5109. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5110. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5112. msm_routing_put_audio_mixer),
  5113. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5114. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5118. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5122. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5126. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5127. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5128. msm_routing_put_audio_mixer),
  5129. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5130. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5134. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5138. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5139. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5140. msm_routing_put_audio_mixer),
  5141. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5142. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5146. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5150. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5151. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5152. msm_routing_put_audio_mixer),
  5153. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5154. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5155. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5156. msm_routing_put_audio_mixer),
  5157. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5158. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5162. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5164. msm_routing_put_audio_mixer),
  5165. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5166. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5167. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5168. msm_routing_put_audio_mixer),
  5169. };
  5170. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5172. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5176. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5178. msm_routing_put_audio_mixer),
  5179. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5180. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5184. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5188. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5190. msm_routing_put_audio_mixer),
  5191. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5192. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5200. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5204. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5208. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5212. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5216. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5220. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5224. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5228. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5232. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5234. msm_routing_put_audio_mixer),
  5235. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5236. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5237. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5238. msm_routing_put_audio_mixer),
  5239. };
  5240. /* incall music delivery mixer */
  5241. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5242. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5243. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5251. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. };
  5259. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5260. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5261. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5262. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5263. msm_routing_put_audio_mixer),
  5264. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5265. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5266. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5267. msm_routing_put_audio_mixer),
  5268. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5269. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5270. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5271. msm_routing_put_audio_mixer),
  5272. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5273. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5274. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5275. msm_routing_put_audio_mixer),
  5276. };
  5277. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5278. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_SLIMBUS_4_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_SLIMBUS_4_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. };
  5295. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5296. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5297. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5298. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5299. msm_routing_put_audio_mixer),
  5300. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5301. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5302. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5303. msm_routing_put_audio_mixer),
  5304. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5305. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5309. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5313. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5314. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5315. msm_routing_put_audio_mixer),
  5316. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5317. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. };
  5365. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5366. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. };
  5435. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5436. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5497. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5501. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. };
  5505. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5506. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5571. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. };
  5575. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5576. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5641. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. };
  5645. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5646. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. };
  5715. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5716. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. };
  5785. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  5786. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5787. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. };
  5855. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  5856. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5858. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5859. msm_routing_put_audio_mixer),
  5860. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5869. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5873. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5877. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5881. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5885. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5886. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5887. msm_routing_put_audio_mixer),
  5888. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. };
  5925. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  5926. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5927. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5935. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5936. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5937. msm_routing_put_audio_mixer),
  5938. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5939. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5940. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5941. msm_routing_put_audio_mixer),
  5942. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5943. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5947. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5948. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5949. msm_routing_put_audio_mixer),
  5950. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5951. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5952. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5953. msm_routing_put_audio_mixer),
  5954. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5955. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5959. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5963. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5964. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5965. msm_routing_put_audio_mixer),
  5966. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5971. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5975. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. };
  5995. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  5996. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5997. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6001. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6005. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6009. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6013. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6017. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6021. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6025. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6029. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6033. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6034. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6035. msm_routing_put_audio_mixer),
  6036. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6037. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6041. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6042. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6043. msm_routing_put_audio_mixer),
  6044. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6045. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6046. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6047. msm_routing_put_audio_mixer),
  6048. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6049. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6053. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6057. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6058. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6059. msm_routing_put_audio_mixer),
  6060. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6061. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. };
  6065. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6066. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6087. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6091. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6103. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6107. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6111. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6115. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6119. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6127. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6131. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6132. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6133. msm_routing_put_audio_mixer),
  6134. };
  6135. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6136. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6181. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6185. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6186. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6187. msm_routing_put_audio_mixer),
  6188. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6189. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6197. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. };
  6205. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6206. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_USB_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_USB_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_USB_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_USB_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_USB_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_USB_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_USB_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_USB_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_USB_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_USB_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_USB_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_USB_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_USB_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_USB_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_USB_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_USB_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_USB_RX,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. };
  6275. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6276. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. };
  6365. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6366. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6367. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6368. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6369. msm_routing_put_audio_mixer),
  6370. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6371. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6375. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6391. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6395. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. };
  6435. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6436. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_INT_FM_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_INT_FM_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_INT_FM_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_INT_FM_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_INT_FM_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6457. MSM_BACKEND_DAI_INT_FM_RX,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_INT_FM_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_INT_FM_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_INT_FM_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_INT_FM_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_INT_FM_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_INT_FM_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_INT_FM_RX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_INT_FM_RX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_INT_FM_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_INT_FM_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_INT_FM_RX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_INT_FM_RX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_INT_FM_RX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_INT_FM_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_INT_FM_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_INT_FM_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. };
  6525. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6526. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_AFE_PCM_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_AFE_PCM_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_AFE_PCM_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_AFE_PCM_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_AFE_PCM_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_AFE_PCM_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_AFE_PCM_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_AFE_PCM_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_AFE_PCM_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_AFE_PCM_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_AFE_PCM_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_AFE_PCM_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_AFE_PCM_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_AFE_PCM_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_AFE_PCM_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_AFE_PCM_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_AFE_PCM_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_AFE_PCM_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_AFE_PCM_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_AFE_PCM_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_AFE_PCM_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_AFE_PCM_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. };
  6615. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6616. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_AUXPCM_RX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_AUXPCM_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_AUXPCM_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_AUXPCM_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_AUXPCM_RX,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_AUXPCM_RX,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_AUXPCM_RX,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_AUXPCM_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_AUXPCM_RX,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_AUXPCM_RX,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_AUXPCM_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_AUXPCM_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6665. MSM_BACKEND_DAI_AUXPCM_RX,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6669. MSM_BACKEND_DAI_AUXPCM_RX,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_AUXPCM_RX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6677. MSM_BACKEND_DAI_AUXPCM_RX,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6681. MSM_BACKEND_DAI_AUXPCM_RX,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_AUXPCM_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_AUXPCM_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_AUXPCM_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_AUXPCM_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_AUXPCM_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_AUXPCM_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. };
  6709. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6710. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6731. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6732. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6733. msm_routing_put_audio_mixer),
  6734. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6735. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6743. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6747. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6748. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6749. msm_routing_put_audio_mixer),
  6750. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6751. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6755. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6756. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6757. msm_routing_put_audio_mixer),
  6758. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6759. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6760. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6761. msm_routing_put_audio_mixer),
  6762. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6763. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6767. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6768. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6769. msm_routing_put_audio_mixer),
  6770. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6771. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. };
  6803. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  6804. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6805. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6821. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6825. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6829. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6830. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6831. msm_routing_put_audio_mixer),
  6832. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6833. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6837. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6841. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6842. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6843. msm_routing_put_audio_mixer),
  6844. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6845. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6846. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6847. msm_routing_put_audio_mixer),
  6848. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6849. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6853. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6854. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6855. msm_routing_put_audio_mixer),
  6856. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6857. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. };
  6873. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  6874. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6895. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6896. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6897. msm_routing_put_audio_mixer),
  6898. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6899. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6900. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6901. msm_routing_put_audio_mixer),
  6902. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6903. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6907. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6911. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6915. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6916. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6917. msm_routing_put_audio_mixer),
  6918. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6919. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6920. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6921. msm_routing_put_audio_mixer),
  6922. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6923. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6927. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6928. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6929. msm_routing_put_audio_mixer),
  6930. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6931. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6935. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6939. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6940. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6941. msm_routing_put_audio_mixer),
  6942. };
  6943. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6944. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6957. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6961. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6965. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6969. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6973. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6977. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6981. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6985. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6989. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6993. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6997. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7005. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7009. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. };
  7013. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7014. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7035. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7043. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. };
  7083. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7084. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7145. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7149. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. };
  7153. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7154. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7155. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7159. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7160. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7161. msm_routing_put_audio_mixer),
  7162. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7163. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7164. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7165. msm_routing_put_audio_mixer),
  7166. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7167. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7168. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7169. msm_routing_put_audio_mixer),
  7170. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7171. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7172. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7173. msm_routing_put_audio_mixer),
  7174. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7175. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7176. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7177. msm_routing_put_audio_mixer),
  7178. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7179. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7180. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7181. msm_routing_put_audio_mixer),
  7182. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7183. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7185. msm_routing_put_audio_mixer),
  7186. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7187. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7191. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. };
  7223. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7224. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7225. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7226. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7227. msm_routing_put_audio_mixer),
  7228. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7229. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7233. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7234. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7235. msm_routing_put_audio_mixer),
  7236. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7237. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7238. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7239. msm_routing_put_audio_mixer),
  7240. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7241. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7245. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7246. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7247. msm_routing_put_audio_mixer),
  7248. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7249. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7250. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7251. msm_routing_put_audio_mixer),
  7252. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7253. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7257. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7258. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7259. msm_routing_put_audio_mixer),
  7260. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7261. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7265. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. };
  7293. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7294. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7295. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7296. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7297. msm_routing_put_audio_mixer),
  7298. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7299. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7300. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7301. msm_routing_put_audio_mixer),
  7302. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7303. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7304. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7305. msm_routing_put_audio_mixer),
  7306. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7307. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7308. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7309. msm_routing_put_audio_mixer),
  7310. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7311. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7312. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7313. msm_routing_put_audio_mixer),
  7314. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7315. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7316. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7317. msm_routing_put_audio_mixer),
  7318. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7319. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7320. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7321. msm_routing_put_audio_mixer),
  7322. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7323. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7324. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7325. msm_routing_put_audio_mixer),
  7326. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7327. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7328. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7329. msm_routing_put_audio_mixer),
  7330. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7331. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7332. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7333. msm_routing_put_audio_mixer),
  7334. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7335. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7336. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7337. msm_routing_put_audio_mixer),
  7338. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7339. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7343. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. };
  7359. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7360. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7361. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7362. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7363. msm_routing_put_audio_mixer),
  7364. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7365. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7366. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7367. msm_routing_put_audio_mixer),
  7368. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7369. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7370. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7371. msm_routing_put_audio_mixer),
  7372. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7373. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7374. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7375. msm_routing_put_audio_mixer),
  7376. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7377. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7378. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7379. msm_routing_put_audio_mixer),
  7380. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7381. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7382. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7383. msm_routing_put_audio_mixer),
  7384. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7385. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7386. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7387. msm_routing_put_audio_mixer),
  7388. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7389. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7390. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7391. msm_routing_put_audio_mixer),
  7392. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7393. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7394. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7395. msm_routing_put_audio_mixer),
  7396. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7397. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7401. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7402. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7403. msm_routing_put_audio_mixer),
  7404. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7405. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7409. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7413. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7421. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7422. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7423. msm_routing_put_audio_mixer),
  7424. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. };
  7429. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7430. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7431. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7432. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7433. msm_routing_put_audio_mixer),
  7434. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7435. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7436. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7437. msm_routing_put_audio_mixer),
  7438. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7439. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7440. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7441. msm_routing_put_audio_mixer),
  7442. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7443. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7444. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7445. msm_routing_put_audio_mixer),
  7446. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7447. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7448. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7449. msm_routing_put_audio_mixer),
  7450. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7451. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7452. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7453. msm_routing_put_audio_mixer),
  7454. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7455. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7456. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7457. msm_routing_put_audio_mixer),
  7458. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7459. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7460. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7461. msm_routing_put_audio_mixer),
  7462. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7463. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7464. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7465. msm_routing_put_audio_mixer),
  7466. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7467. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7491. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. };
  7499. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7500. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7501. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7502. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7503. msm_routing_put_audio_mixer),
  7504. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7505. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7506. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7507. msm_routing_put_audio_mixer),
  7508. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7509. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7510. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7511. msm_routing_put_audio_mixer),
  7512. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7513. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7514. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7515. msm_routing_put_audio_mixer),
  7516. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7517. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7518. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7519. msm_routing_put_audio_mixer),
  7520. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7521. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7522. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7523. msm_routing_put_audio_mixer),
  7524. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7525. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7526. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7527. msm_routing_put_audio_mixer),
  7528. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7529. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7530. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7531. msm_routing_put_audio_mixer),
  7532. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7533. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7534. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7535. msm_routing_put_audio_mixer),
  7536. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7550. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7551. msm_routing_put_audio_mixer),
  7552. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7554. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7555. msm_routing_put_audio_mixer),
  7556. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. };
  7569. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7570. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7571. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7572. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7573. msm_routing_put_audio_mixer),
  7574. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7575. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7576. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7577. msm_routing_put_audio_mixer),
  7578. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7579. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7580. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7581. msm_routing_put_audio_mixer),
  7582. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7583. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7584. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7585. msm_routing_put_audio_mixer),
  7586. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7587. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7588. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7589. msm_routing_put_audio_mixer),
  7590. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7591. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7592. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7593. msm_routing_put_audio_mixer),
  7594. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7595. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7596. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7597. msm_routing_put_audio_mixer),
  7598. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7599. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7600. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7601. msm_routing_put_audio_mixer),
  7602. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7603. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7604. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7605. msm_routing_put_audio_mixer),
  7606. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. };
  7639. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7640. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7641. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7642. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7643. msm_routing_put_audio_mixer),
  7644. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7645. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7646. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7647. msm_routing_put_audio_mixer),
  7648. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7649. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7650. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7651. msm_routing_put_audio_mixer),
  7652. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7653. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7654. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7655. msm_routing_put_audio_mixer),
  7656. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7657. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7658. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7659. msm_routing_put_audio_mixer),
  7660. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7661. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7662. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7663. msm_routing_put_audio_mixer),
  7664. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7665. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7666. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7667. msm_routing_put_audio_mixer),
  7668. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7669. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7670. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7671. msm_routing_put_audio_mixer),
  7672. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7673. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7674. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7675. msm_routing_put_audio_mixer),
  7676. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. };
  7705. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7706. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7707. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7708. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7709. msm_routing_put_audio_mixer),
  7710. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7711. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7712. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7713. msm_routing_put_audio_mixer),
  7714. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7715. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7716. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7717. msm_routing_put_audio_mixer),
  7718. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7719. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7720. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7721. msm_routing_put_audio_mixer),
  7722. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7723. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7725. msm_routing_put_audio_mixer),
  7726. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7727. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7728. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7729. msm_routing_put_audio_mixer),
  7730. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7731. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7732. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7733. msm_routing_put_audio_mixer),
  7734. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7735. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7736. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7737. msm_routing_put_audio_mixer),
  7738. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7739. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7740. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7741. msm_routing_put_audio_mixer),
  7742. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7743. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7745. msm_routing_put_audio_mixer),
  7746. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7747. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7748. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7749. msm_routing_put_audio_mixer),
  7750. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. };
  7775. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  7776. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7777. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7778. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7779. msm_routing_put_audio_mixer),
  7780. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7781. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7782. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7783. msm_routing_put_audio_mixer),
  7784. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7785. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7786. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7787. msm_routing_put_audio_mixer),
  7788. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7789. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7790. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7791. msm_routing_put_audio_mixer),
  7792. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7793. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7794. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7795. msm_routing_put_audio_mixer),
  7796. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7797. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7798. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7799. msm_routing_put_audio_mixer),
  7800. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7801. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7802. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7803. msm_routing_put_audio_mixer),
  7804. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7805. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7806. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7807. msm_routing_put_audio_mixer),
  7808. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7809. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7810. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7811. msm_routing_put_audio_mixer),
  7812. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7813. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7814. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7815. msm_routing_put_audio_mixer),
  7816. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. };
  7841. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  7842. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7843. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7844. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7845. msm_routing_put_audio_mixer),
  7846. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7847. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7848. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7849. msm_routing_put_audio_mixer),
  7850. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7851. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7852. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7853. msm_routing_put_audio_mixer),
  7854. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7855. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7856. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7857. msm_routing_put_audio_mixer),
  7858. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7859. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7861. msm_routing_put_audio_mixer),
  7862. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7863. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7864. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7865. msm_routing_put_audio_mixer),
  7866. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7867. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7868. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7869. msm_routing_put_audio_mixer),
  7870. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7871. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7872. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7873. msm_routing_put_audio_mixer),
  7874. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7875. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7876. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7877. msm_routing_put_audio_mixer),
  7878. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7879. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7880. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7881. msm_routing_put_audio_mixer),
  7882. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7883. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7884. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7885. msm_routing_put_audio_mixer),
  7886. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7887. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7888. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7889. msm_routing_put_audio_mixer),
  7890. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7891. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7892. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7893. msm_routing_put_audio_mixer),
  7894. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7895. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7896. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7897. msm_routing_put_audio_mixer),
  7898. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7899. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7900. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7901. msm_routing_put_audio_mixer),
  7902. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7903. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7904. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7905. msm_routing_put_audio_mixer),
  7906. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. };
  7911. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  7912. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7913. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7915. msm_routing_put_audio_mixer),
  7916. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7917. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7918. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7919. msm_routing_put_audio_mixer),
  7920. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7921. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7922. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7923. msm_routing_put_audio_mixer),
  7924. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7925. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7926. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7927. msm_routing_put_audio_mixer),
  7928. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7929. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7930. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7931. msm_routing_put_audio_mixer),
  7932. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7933. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7935. msm_routing_put_audio_mixer),
  7936. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7937. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7938. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7939. msm_routing_put_audio_mixer),
  7940. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7941. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7942. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7943. msm_routing_put_audio_mixer),
  7944. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7945. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7946. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7947. msm_routing_put_audio_mixer),
  7948. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7949. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7951. msm_routing_put_audio_mixer),
  7952. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7953. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7954. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7955. msm_routing_put_audio_mixer),
  7956. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7957. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7958. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7959. msm_routing_put_audio_mixer),
  7960. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7961. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7962. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7963. msm_routing_put_audio_mixer),
  7964. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7965. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7966. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7967. msm_routing_put_audio_mixer),
  7968. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. };
  7981. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7982. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7983. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7985. msm_routing_put_audio_mixer),
  7986. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7987. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7988. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7989. msm_routing_put_audio_mixer),
  7990. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7991. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7992. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7993. msm_routing_put_audio_mixer),
  7994. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7995. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7996. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7997. msm_routing_put_audio_mixer),
  7998. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7999. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8000. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8001. msm_routing_put_audio_mixer),
  8002. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8003. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8004. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8005. msm_routing_put_audio_mixer),
  8006. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8007. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8008. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8009. msm_routing_put_audio_mixer),
  8010. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8011. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8012. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8013. msm_routing_put_audio_mixer),
  8014. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8015. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8016. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8017. msm_routing_put_audio_mixer),
  8018. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. };
  8051. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8052. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8053. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8054. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8055. msm_routing_put_audio_mixer),
  8056. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8057. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8058. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8059. msm_routing_put_audio_mixer),
  8060. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8061. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8062. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8063. msm_routing_put_audio_mixer),
  8064. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8065. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8066. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8067. msm_routing_put_audio_mixer),
  8068. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8069. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8070. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8071. msm_routing_put_audio_mixer),
  8072. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8073. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8074. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8075. msm_routing_put_audio_mixer),
  8076. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8077. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8078. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8079. msm_routing_put_audio_mixer),
  8080. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8081. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8082. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8083. msm_routing_put_audio_mixer),
  8084. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8085. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8086. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8087. msm_routing_put_audio_mixer),
  8088. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8089. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8090. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8091. msm_routing_put_audio_mixer),
  8092. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8093. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8094. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8095. msm_routing_put_audio_mixer),
  8096. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8097. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8098. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8099. msm_routing_put_audio_mixer),
  8100. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8101. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8102. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8103. msm_routing_put_audio_mixer),
  8104. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8105. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8106. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8107. msm_routing_put_audio_mixer),
  8108. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. };
  8121. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8122. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8123. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8124. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8125. msm_routing_put_audio_mixer),
  8126. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8127. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8128. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8129. msm_routing_put_audio_mixer),
  8130. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8131. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8132. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8133. msm_routing_put_audio_mixer),
  8134. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8135. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8136. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8137. msm_routing_put_audio_mixer),
  8138. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8139. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8140. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8141. msm_routing_put_audio_mixer),
  8142. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8143. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8144. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8145. msm_routing_put_audio_mixer),
  8146. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8147. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8148. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8149. msm_routing_put_audio_mixer),
  8150. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8151. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8152. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8153. msm_routing_put_audio_mixer),
  8154. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8155. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8156. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8157. msm_routing_put_audio_mixer),
  8158. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8159. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8160. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8161. msm_routing_put_audio_mixer),
  8162. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8163. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8164. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8165. msm_routing_put_audio_mixer),
  8166. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8175. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8176. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8177. msm_routing_put_audio_mixer),
  8178. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8179. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8180. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8181. msm_routing_put_audio_mixer),
  8182. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8187. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8188. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8189. msm_routing_put_audio_mixer),
  8190. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8191. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8192. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8193. msm_routing_put_audio_mixer),
  8194. };
  8195. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8196. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8197. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8198. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8199. msm_routing_put_audio_mixer),
  8200. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8201. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8202. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8203. msm_routing_put_audio_mixer),
  8204. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8205. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8206. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8207. msm_routing_put_audio_mixer),
  8208. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8209. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8210. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8211. msm_routing_put_audio_mixer),
  8212. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8213. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8214. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8215. msm_routing_put_audio_mixer),
  8216. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8217. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8218. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8219. msm_routing_put_audio_mixer),
  8220. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8221. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8222. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8223. msm_routing_put_audio_mixer),
  8224. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8225. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8226. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8227. msm_routing_put_audio_mixer),
  8228. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8229. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8230. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8231. msm_routing_put_audio_mixer),
  8232. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8233. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8234. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8235. msm_routing_put_audio_mixer),
  8236. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. };
  8261. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8262. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8263. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8264. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8265. msm_routing_put_audio_mixer),
  8266. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8267. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8268. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8269. msm_routing_put_audio_mixer),
  8270. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8271. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8272. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8273. msm_routing_put_audio_mixer),
  8274. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8275. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8276. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8277. msm_routing_put_audio_mixer),
  8278. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8279. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8280. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8281. msm_routing_put_audio_mixer),
  8282. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8283. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8284. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8285. msm_routing_put_audio_mixer),
  8286. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8287. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8288. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8289. msm_routing_put_audio_mixer),
  8290. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8291. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8292. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8293. msm_routing_put_audio_mixer),
  8294. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8295. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8296. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8297. msm_routing_put_audio_mixer),
  8298. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8299. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8300. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8301. msm_routing_put_audio_mixer),
  8302. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8303. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8304. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8305. msm_routing_put_audio_mixer),
  8306. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8307. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8308. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8309. msm_routing_put_audio_mixer),
  8310. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8311. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8312. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8313. msm_routing_put_audio_mixer),
  8314. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8315. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8316. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8317. msm_routing_put_audio_mixer),
  8318. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. };
  8335. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8336. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8337. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8338. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8339. msm_routing_put_audio_mixer),
  8340. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8341. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8342. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8343. msm_routing_put_audio_mixer),
  8344. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8345. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8346. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8347. msm_routing_put_audio_mixer),
  8348. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8349. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8350. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8351. msm_routing_put_audio_mixer),
  8352. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8353. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8354. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8355. msm_routing_put_audio_mixer),
  8356. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8357. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8358. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8359. msm_routing_put_audio_mixer),
  8360. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8361. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8362. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8363. msm_routing_put_audio_mixer),
  8364. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8365. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8366. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8367. msm_routing_put_audio_mixer),
  8368. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8369. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8370. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8371. msm_routing_put_audio_mixer),
  8372. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8373. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8374. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8375. msm_routing_put_audio_mixer),
  8376. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8377. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8378. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8379. msm_routing_put_audio_mixer),
  8380. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8381. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8382. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8383. msm_routing_put_audio_mixer),
  8384. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8385. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8386. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8387. msm_routing_put_audio_mixer),
  8388. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8389. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8390. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8391. msm_routing_put_audio_mixer),
  8392. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8393. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8394. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8395. msm_routing_put_audio_mixer),
  8396. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8397. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8398. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8399. msm_routing_put_audio_mixer),
  8400. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. };
  8409. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8410. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8411. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8412. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8413. msm_routing_put_audio_mixer),
  8414. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8415. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8416. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8417. msm_routing_put_audio_mixer),
  8418. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8419. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8420. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8421. msm_routing_put_audio_mixer),
  8422. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8423. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8424. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8425. msm_routing_put_audio_mixer),
  8426. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8427. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8428. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8429. msm_routing_put_audio_mixer),
  8430. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8431. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8432. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8433. msm_routing_put_audio_mixer),
  8434. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8435. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8436. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8437. msm_routing_put_audio_mixer),
  8438. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8439. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8440. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8441. msm_routing_put_audio_mixer),
  8442. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8443. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8444. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8445. msm_routing_put_audio_mixer),
  8446. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8447. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8448. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8449. msm_routing_put_audio_mixer),
  8450. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8451. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8452. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8453. msm_routing_put_audio_mixer),
  8454. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8455. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8456. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8457. msm_routing_put_audio_mixer),
  8458. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8459. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8460. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8461. msm_routing_put_audio_mixer),
  8462. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8463. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8464. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8465. msm_routing_put_audio_mixer),
  8466. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8467. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8468. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8469. msm_routing_put_audio_mixer),
  8470. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. };
  8483. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8484. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8485. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8486. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8487. msm_routing_put_audio_mixer),
  8488. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8489. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8490. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8491. msm_routing_put_audio_mixer),
  8492. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8493. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8494. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8495. msm_routing_put_audio_mixer),
  8496. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8497. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8498. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8499. msm_routing_put_audio_mixer),
  8500. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8501. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8502. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8503. msm_routing_put_audio_mixer),
  8504. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8505. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8506. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8507. msm_routing_put_audio_mixer),
  8508. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8509. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8510. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8511. msm_routing_put_audio_mixer),
  8512. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8513. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8514. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8515. msm_routing_put_audio_mixer),
  8516. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8517. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8518. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8519. msm_routing_put_audio_mixer),
  8520. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8521. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8522. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8523. msm_routing_put_audio_mixer),
  8524. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8525. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8526. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8527. msm_routing_put_audio_mixer),
  8528. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8529. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8530. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8531. msm_routing_put_audio_mixer),
  8532. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8533. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8534. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8535. msm_routing_put_audio_mixer),
  8536. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8537. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8538. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8539. msm_routing_put_audio_mixer),
  8540. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8541. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8542. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8543. msm_routing_put_audio_mixer),
  8544. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8549. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8550. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8551. msm_routing_put_audio_mixer),
  8552. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8553. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8554. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8555. msm_routing_put_audio_mixer),
  8556. };
  8557. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8558. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8559. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8560. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8561. msm_routing_put_audio_mixer),
  8562. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8563. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8564. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8565. msm_routing_put_audio_mixer),
  8566. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8567. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8568. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8569. msm_routing_put_audio_mixer),
  8570. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8571. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8572. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8573. msm_routing_put_audio_mixer),
  8574. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8575. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8576. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8577. msm_routing_put_audio_mixer),
  8578. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8579. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8580. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8581. msm_routing_put_audio_mixer),
  8582. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8583. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8584. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8585. msm_routing_put_audio_mixer),
  8586. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8587. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8588. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8589. msm_routing_put_audio_mixer),
  8590. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8591. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8592. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8593. msm_routing_put_audio_mixer),
  8594. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8595. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8596. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8597. msm_routing_put_audio_mixer),
  8598. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8599. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8600. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8601. msm_routing_put_audio_mixer),
  8602. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8603. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8604. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8605. msm_routing_put_audio_mixer),
  8606. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8607. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8608. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8609. msm_routing_put_audio_mixer),
  8610. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8611. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8612. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8613. msm_routing_put_audio_mixer),
  8614. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8615. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8616. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8617. msm_routing_put_audio_mixer),
  8618. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8619. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8620. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8621. msm_routing_put_audio_mixer),
  8622. };
  8623. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8624. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8625. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8626. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8627. msm_routing_put_audio_mixer),
  8628. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8657. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8658. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8659. msm_routing_put_audio_mixer),
  8660. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8661. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8662. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8663. msm_routing_put_audio_mixer),
  8664. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8665. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8666. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8667. msm_routing_put_audio_mixer),
  8668. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8669. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8670. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8671. msm_routing_put_audio_mixer),
  8672. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8673. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8674. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8675. msm_routing_put_audio_mixer),
  8676. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8677. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8678. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8679. msm_routing_put_audio_mixer),
  8680. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8681. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8682. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8683. msm_routing_put_audio_mixer),
  8684. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8685. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8686. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8687. msm_routing_put_audio_mixer),
  8688. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8689. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8690. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8691. msm_routing_put_audio_mixer),
  8692. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8693. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8694. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8695. msm_routing_put_audio_mixer),
  8696. };
  8697. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8698. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8699. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8700. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8701. msm_routing_put_audio_mixer),
  8702. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. };
  8771. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  8772. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8773. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8774. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8775. msm_routing_put_audio_mixer),
  8776. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8777. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8778. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8779. msm_routing_put_audio_mixer),
  8780. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8781. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8782. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8783. msm_routing_put_audio_mixer),
  8784. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8785. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8786. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8787. msm_routing_put_audio_mixer),
  8788. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8789. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8790. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8791. msm_routing_put_audio_mixer),
  8792. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8793. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8794. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8795. msm_routing_put_audio_mixer),
  8796. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8797. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8798. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8799. msm_routing_put_audio_mixer),
  8800. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8801. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8802. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8803. msm_routing_put_audio_mixer),
  8804. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8805. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8806. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8807. msm_routing_put_audio_mixer),
  8808. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8809. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8810. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8811. msm_routing_put_audio_mixer),
  8812. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. };
  8845. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  8846. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  8847. MSM_BACKEND_DAI_PRI_I2S_TX,
  8848. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8849. msm_routing_put_audio_mixer),
  8850. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8851. MSM_BACKEND_DAI_MI2S_TX,
  8852. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8853. msm_routing_put_audio_mixer),
  8854. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8855. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8856. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8857. msm_routing_put_audio_mixer),
  8858. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8859. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8860. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8861. msm_routing_put_audio_mixer),
  8862. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8863. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8864. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8865. msm_routing_put_audio_mixer),
  8866. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8867. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8868. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8869. msm_routing_put_audio_mixer),
  8870. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8871. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8872. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8873. msm_routing_put_audio_mixer),
  8874. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8875. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8877. msm_routing_put_audio_mixer),
  8878. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8879. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8881. msm_routing_put_audio_mixer),
  8882. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_AUXPCM_TX,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_INT_FM_TX,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_AFE_PCM_TX,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8915. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8916. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8917. msm_routing_put_audio_mixer),
  8918. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8919. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8920. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8921. msm_routing_put_audio_mixer),
  8922. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  8923. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  8924. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8925. msm_routing_put_audio_mixer),
  8926. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8927. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8929. msm_routing_put_audio_mixer),
  8930. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8931. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8933. msm_routing_put_audio_mixer),
  8934. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8935. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8936. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8937. msm_routing_put_audio_mixer),
  8938. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8939. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8940. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8941. msm_routing_put_audio_mixer),
  8942. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8943. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8944. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8945. msm_routing_put_audio_mixer),
  8946. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8947. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8948. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8949. msm_routing_put_audio_mixer),
  8950. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8951. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8952. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8953. msm_routing_put_audio_mixer),
  8954. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8955. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8956. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8957. msm_routing_put_audio_mixer),
  8958. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8959. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8961. msm_routing_put_audio_mixer),
  8962. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8963. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8964. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8965. msm_routing_put_audio_mixer),
  8966. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8967. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8968. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8969. msm_routing_put_audio_mixer),
  8970. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8971. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8972. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8973. msm_routing_put_audio_mixer),
  8974. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8975. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8976. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8977. msm_routing_put_audio_mixer),
  8978. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8979. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8981. msm_routing_put_audio_mixer),
  8982. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8983. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8985. msm_routing_put_audio_mixer),
  8986. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8987. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8988. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8989. msm_routing_put_audio_mixer),
  8990. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8991. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8993. msm_routing_put_audio_mixer),
  8994. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8995. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8997. msm_routing_put_audio_mixer),
  8998. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8999. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9001. msm_routing_put_audio_mixer),
  9002. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9003. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9004. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9005. msm_routing_put_audio_mixer),
  9006. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9007. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9009. msm_routing_put_audio_mixer),
  9010. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9011. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9012. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9013. msm_routing_put_audio_mixer),
  9014. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9015. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9017. msm_routing_put_audio_mixer),
  9018. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9019. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9021. msm_routing_put_audio_mixer),
  9022. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_USB_TX,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9064. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9065. msm_routing_put_audio_mixer),
  9066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9068. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9069. msm_routing_put_audio_mixer),
  9070. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9075. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9077. msm_routing_put_audio_mixer),
  9078. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9079. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9080. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9081. msm_routing_put_audio_mixer),
  9082. };
  9083. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  9084. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9085. MSM_BACKEND_DAI_INT_FM_TX,
  9086. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9087. msm_routing_put_audio_mixer),
  9088. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9089. MSM_BACKEND_DAI_MI2S_TX,
  9090. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9091. msm_routing_put_audio_mixer),
  9092. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9093. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9095. msm_routing_put_audio_mixer),
  9096. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9097. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9098. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9099. msm_routing_put_audio_mixer),
  9100. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9101. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9102. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9103. msm_routing_put_audio_mixer),
  9104. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9105. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9106. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9107. msm_routing_put_audio_mixer),
  9108. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9109. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9110. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9111. msm_routing_put_audio_mixer),
  9112. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9113. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9114. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9115. msm_routing_put_audio_mixer),
  9116. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9117. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9118. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9119. msm_routing_put_audio_mixer),
  9120. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9121. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9122. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9123. msm_routing_put_audio_mixer),
  9124. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9125. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9126. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9127. msm_routing_put_audio_mixer),
  9128. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9129. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9130. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9131. msm_routing_put_audio_mixer),
  9132. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9133. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9134. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9135. msm_routing_put_audio_mixer),
  9136. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9137. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9138. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9139. msm_routing_put_audio_mixer),
  9140. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9141. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9142. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9143. msm_routing_put_audio_mixer),
  9144. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9145. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9146. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9147. msm_routing_put_audio_mixer),
  9148. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9149. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9150. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9151. msm_routing_put_audio_mixer),
  9152. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9153. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9154. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9155. msm_routing_put_audio_mixer),
  9156. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9157. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9158. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9159. msm_routing_put_audio_mixer),
  9160. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9161. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9162. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9163. msm_routing_put_audio_mixer),
  9164. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9165. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9166. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9167. msm_routing_put_audio_mixer),
  9168. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9169. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9170. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9171. msm_routing_put_audio_mixer),
  9172. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9173. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9174. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9175. msm_routing_put_audio_mixer),
  9176. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9177. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9178. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9179. msm_routing_put_audio_mixer),
  9180. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9181. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9182. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9183. msm_routing_put_audio_mixer),
  9184. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9185. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9186. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9187. msm_routing_put_audio_mixer),
  9188. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9189. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9190. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9191. msm_routing_put_audio_mixer),
  9192. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9193. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9195. msm_routing_put_audio_mixer),
  9196. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9197. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9198. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9199. msm_routing_put_audio_mixer),
  9200. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9201. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9202. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9203. msm_routing_put_audio_mixer),
  9204. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9205. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9206. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9207. msm_routing_put_audio_mixer),
  9208. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9209. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9210. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9211. msm_routing_put_audio_mixer),
  9212. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9213. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9214. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9215. msm_routing_put_audio_mixer),
  9216. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9217. MSM_BACKEND_DAI_USB_TX,
  9218. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9219. msm_routing_put_audio_mixer),
  9220. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9221. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9222. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9223. msm_routing_put_audio_mixer),
  9224. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9225. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9227. msm_routing_put_audio_mixer),
  9228. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9229. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9231. msm_routing_put_audio_mixer),
  9232. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9233. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9235. msm_routing_put_audio_mixer),
  9236. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9237. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9238. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9239. msm_routing_put_audio_mixer),
  9240. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9241. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9243. msm_routing_put_audio_mixer),
  9244. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9245. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9246. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9249. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9250. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9251. msm_routing_put_audio_mixer),
  9252. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9253. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9254. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9255. msm_routing_put_audio_mixer),
  9256. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9257. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9258. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9259. msm_routing_put_audio_mixer),
  9260. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9261. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9262. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9263. msm_routing_put_audio_mixer),
  9264. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9265. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9266. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9267. msm_routing_put_audio_mixer),
  9268. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9269. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9270. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9271. msm_routing_put_audio_mixer),
  9272. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9273. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9274. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9275. msm_routing_put_audio_mixer),
  9276. };
  9277. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  9278. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9279. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9280. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9281. msm_routing_put_audio_mixer),
  9282. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9283. MSM_BACKEND_DAI_INT_FM_TX,
  9284. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9285. msm_routing_put_audio_mixer),
  9286. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9287. MSM_BACKEND_DAI_MI2S_TX,
  9288. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9289. msm_routing_put_audio_mixer),
  9290. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9291. MSM_BACKEND_DAI_AFE_PCM_TX,
  9292. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9293. msm_routing_put_audio_mixer),
  9294. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9295. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9296. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9297. msm_routing_put_audio_mixer),
  9298. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9299. MSM_BACKEND_DAI_AUXPCM_TX,
  9300. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9301. msm_routing_put_audio_mixer),
  9302. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9303. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9304. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9305. msm_routing_put_audio_mixer),
  9306. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9307. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9308. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9309. msm_routing_put_audio_mixer),
  9310. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9311. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9312. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9313. msm_routing_put_audio_mixer),
  9314. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9319. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9320. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9321. msm_routing_put_audio_mixer),
  9322. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9323. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9324. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9325. msm_routing_put_audio_mixer),
  9326. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9327. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9328. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9329. msm_routing_put_audio_mixer),
  9330. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9331. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9332. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9333. msm_routing_put_audio_mixer),
  9334. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9335. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9336. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9337. msm_routing_put_audio_mixer),
  9338. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9339. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9340. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9341. msm_routing_put_audio_mixer),
  9342. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9375. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9376. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9377. msm_routing_put_audio_mixer),
  9378. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9379. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9381. msm_routing_put_audio_mixer),
  9382. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9383. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9385. msm_routing_put_audio_mixer),
  9386. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9387. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9388. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9389. msm_routing_put_audio_mixer),
  9390. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9391. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9392. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9393. msm_routing_put_audio_mixer),
  9394. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9395. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9396. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9397. msm_routing_put_audio_mixer),
  9398. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9399. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9400. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9401. msm_routing_put_audio_mixer),
  9402. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9403. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9404. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9405. msm_routing_put_audio_mixer),
  9406. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9407. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9408. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9409. msm_routing_put_audio_mixer),
  9410. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9411. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9412. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9413. msm_routing_put_audio_mixer),
  9414. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9415. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9416. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9417. msm_routing_put_audio_mixer),
  9418. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9419. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9420. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9421. msm_routing_put_audio_mixer),
  9422. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9423. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9424. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9425. msm_routing_put_audio_mixer),
  9426. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9427. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9428. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9429. msm_routing_put_audio_mixer),
  9430. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9431. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9433. msm_routing_put_audio_mixer),
  9434. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9435. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9436. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9437. msm_routing_put_audio_mixer),
  9438. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9439. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9440. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9441. msm_routing_put_audio_mixer),
  9442. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9443. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9444. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9445. msm_routing_put_audio_mixer),
  9446. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9447. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9448. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9449. msm_routing_put_audio_mixer),
  9450. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9452. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9453. msm_routing_put_audio_mixer),
  9454. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9455. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9456. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9457. msm_routing_put_audio_mixer),
  9458. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9459. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9460. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9461. msm_routing_put_audio_mixer),
  9462. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9463. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9465. msm_routing_put_audio_mixer),
  9466. };
  9467. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9468. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9469. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9470. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9471. msm_routing_put_audio_mixer),
  9472. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9473. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9474. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9475. msm_routing_put_audio_mixer),
  9476. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9477. MSM_BACKEND_DAI_INT_FM_TX,
  9478. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9479. msm_routing_put_audio_mixer),
  9480. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9481. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9482. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9483. msm_routing_put_audio_mixer),
  9484. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9485. MSM_BACKEND_DAI_AFE_PCM_TX,
  9486. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9487. msm_routing_put_audio_mixer),
  9488. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9489. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9490. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9491. msm_routing_put_audio_mixer),
  9492. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9493. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9494. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9495. msm_routing_put_audio_mixer),
  9496. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9497. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9498. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9499. msm_routing_put_audio_mixer),
  9500. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9501. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9502. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9503. msm_routing_put_audio_mixer),
  9504. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9505. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9506. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9507. msm_routing_put_audio_mixer),
  9508. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9509. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9510. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9511. msm_routing_put_audio_mixer),
  9512. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9513. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9514. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9515. msm_routing_put_audio_mixer),
  9516. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9517. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9518. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9519. msm_routing_put_audio_mixer),
  9520. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9521. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9522. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9523. msm_routing_put_audio_mixer),
  9524. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9525. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9526. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9527. msm_routing_put_audio_mixer),
  9528. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9529. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9530. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9531. msm_routing_put_audio_mixer),
  9532. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9533. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9534. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9535. msm_routing_put_audio_mixer),
  9536. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9537. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9539. msm_routing_put_audio_mixer),
  9540. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9541. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9542. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9543. msm_routing_put_audio_mixer),
  9544. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9545. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9546. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9547. msm_routing_put_audio_mixer),
  9548. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9549. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9550. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9551. msm_routing_put_audio_mixer),
  9552. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9553. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9554. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9555. msm_routing_put_audio_mixer),
  9556. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9557. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9558. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9559. msm_routing_put_audio_mixer),
  9560. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9561. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9562. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9563. msm_routing_put_audio_mixer),
  9564. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9565. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9566. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9567. msm_routing_put_audio_mixer),
  9568. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9569. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9570. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9571. msm_routing_put_audio_mixer),
  9572. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9573. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9574. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9575. msm_routing_put_audio_mixer),
  9576. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9577. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9578. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9579. msm_routing_put_audio_mixer),
  9580. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9581. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9582. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9583. msm_routing_put_audio_mixer),
  9584. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9585. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9586. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9587. msm_routing_put_audio_mixer),
  9588. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9589. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9590. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9591. msm_routing_put_audio_mixer),
  9592. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9593. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9594. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9595. msm_routing_put_audio_mixer),
  9596. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9597. MSM_BACKEND_DAI_USB_TX,
  9598. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9599. msm_routing_put_audio_mixer),
  9600. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9601. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9602. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9603. msm_routing_put_audio_mixer),
  9604. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9605. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9606. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9607. msm_routing_put_audio_mixer),
  9608. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9609. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9610. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9611. msm_routing_put_audio_mixer),
  9612. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9613. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9614. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9615. msm_routing_put_audio_mixer),
  9616. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9617. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9618. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9619. msm_routing_put_audio_mixer),
  9620. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9621. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9622. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9623. msm_routing_put_audio_mixer),
  9624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9626. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9627. msm_routing_put_audio_mixer),
  9628. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9629. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9630. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9631. msm_routing_put_audio_mixer),
  9632. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9633. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9634. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9635. msm_routing_put_audio_mixer),
  9636. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9637. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9638. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9639. msm_routing_put_audio_mixer),
  9640. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9641. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9643. msm_routing_put_audio_mixer),
  9644. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9645. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9646. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9647. msm_routing_put_audio_mixer),
  9648. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9649. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9650. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9651. msm_routing_put_audio_mixer),
  9652. };
  9653. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9654. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9655. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9656. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9657. msm_routing_put_audio_mixer),
  9658. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9659. MSM_BACKEND_DAI_INT_FM_TX,
  9660. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9661. msm_routing_put_audio_mixer),
  9662. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9663. MSM_BACKEND_DAI_MI2S_TX,
  9664. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9665. msm_routing_put_audio_mixer),
  9666. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9667. MSM_BACKEND_DAI_AFE_PCM_TX,
  9668. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9669. msm_routing_put_audio_mixer),
  9670. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9671. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9672. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9673. msm_routing_put_audio_mixer),
  9674. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9675. MSM_BACKEND_DAI_AUXPCM_TX,
  9676. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9677. msm_routing_put_audio_mixer),
  9678. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9679. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9680. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9681. msm_routing_put_audio_mixer),
  9682. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9683. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9684. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9685. msm_routing_put_audio_mixer),
  9686. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9687. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9688. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9689. msm_routing_put_audio_mixer),
  9690. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9691. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9692. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9693. msm_routing_put_audio_mixer),
  9694. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9695. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9696. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9697. msm_routing_put_audio_mixer),
  9698. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9699. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9700. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9701. msm_routing_put_audio_mixer),
  9702. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9703. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9704. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9705. msm_routing_put_audio_mixer),
  9706. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9707. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9708. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9709. msm_routing_put_audio_mixer),
  9710. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9711. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9712. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9713. msm_routing_put_audio_mixer),
  9714. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9715. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9717. msm_routing_put_audio_mixer),
  9718. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9719. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9720. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9721. msm_routing_put_audio_mixer),
  9722. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9723. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9725. msm_routing_put_audio_mixer),
  9726. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9727. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9729. msm_routing_put_audio_mixer),
  9730. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9731. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9732. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9733. msm_routing_put_audio_mixer),
  9734. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9735. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9736. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9737. msm_routing_put_audio_mixer),
  9738. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9739. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9740. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9741. msm_routing_put_audio_mixer),
  9742. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9743. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9744. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9745. msm_routing_put_audio_mixer),
  9746. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9747. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9748. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9749. msm_routing_put_audio_mixer),
  9750. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9751. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9753. msm_routing_put_audio_mixer),
  9754. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9755. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9756. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9757. msm_routing_put_audio_mixer),
  9758. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9759. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9760. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9761. msm_routing_put_audio_mixer),
  9762. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9763. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9764. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9765. msm_routing_put_audio_mixer),
  9766. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9767. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9768. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9769. msm_routing_put_audio_mixer),
  9770. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9771. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9772. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9773. msm_routing_put_audio_mixer),
  9774. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9775. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9777. msm_routing_put_audio_mixer),
  9778. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9779. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9780. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9781. msm_routing_put_audio_mixer),
  9782. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9783. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9784. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9785. msm_routing_put_audio_mixer),
  9786. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9787. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9788. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9789. msm_routing_put_audio_mixer),
  9790. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9791. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9793. msm_routing_put_audio_mixer),
  9794. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9795. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9797. msm_routing_put_audio_mixer),
  9798. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9799. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9800. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9801. msm_routing_put_audio_mixer),
  9802. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9803. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9804. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9805. msm_routing_put_audio_mixer),
  9806. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9807. MSM_BACKEND_DAI_USB_TX,
  9808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9809. msm_routing_put_audio_mixer),
  9810. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9811. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9812. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9813. msm_routing_put_audio_mixer),
  9814. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9815. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9816. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9817. msm_routing_put_audio_mixer),
  9818. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9819. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9820. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9821. msm_routing_put_audio_mixer),
  9822. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9823. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9824. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9825. msm_routing_put_audio_mixer),
  9826. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9827. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9828. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9829. msm_routing_put_audio_mixer),
  9830. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9831. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9833. msm_routing_put_audio_mixer),
  9834. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9835. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9836. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9837. msm_routing_put_audio_mixer),
  9838. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9840. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9841. msm_routing_put_audio_mixer),
  9842. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9843. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9844. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9845. msm_routing_put_audio_mixer),
  9846. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9847. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9848. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9849. msm_routing_put_audio_mixer),
  9850. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. };
  9867. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  9868. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9869. MSM_BACKEND_DAI_INT_FM_TX,
  9870. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9871. msm_routing_put_audio_mixer),
  9872. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9873. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9874. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9875. msm_routing_put_audio_mixer),
  9876. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9877. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9878. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9879. msm_routing_put_audio_mixer),
  9880. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9881. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9882. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9883. msm_routing_put_audio_mixer),
  9884. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9885. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9886. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9887. msm_routing_put_audio_mixer),
  9888. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9889. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9890. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9891. msm_routing_put_audio_mixer),
  9892. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9893. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9894. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9895. msm_routing_put_audio_mixer),
  9896. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9897. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9898. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9899. msm_routing_put_audio_mixer),
  9900. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9901. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9902. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9903. msm_routing_put_audio_mixer),
  9904. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9905. MSM_BACKEND_DAI_AUXPCM_TX,
  9906. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9907. msm_routing_put_audio_mixer),
  9908. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9909. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9910. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9911. msm_routing_put_audio_mixer),
  9912. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9913. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9914. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9915. msm_routing_put_audio_mixer),
  9916. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9917. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9919. msm_routing_put_audio_mixer),
  9920. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9921. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9922. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9923. msm_routing_put_audio_mixer),
  9924. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9925. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9926. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9927. msm_routing_put_audio_mixer),
  9928. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9929. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9930. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9931. msm_routing_put_audio_mixer),
  9932. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9935. msm_routing_put_audio_mixer),
  9936. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9938. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9939. msm_routing_put_audio_mixer),
  9940. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9943. msm_routing_put_audio_mixer),
  9944. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9947. msm_routing_put_audio_mixer),
  9948. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9950. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9951. msm_routing_put_audio_mixer),
  9952. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9953. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9954. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9955. msm_routing_put_audio_mixer),
  9956. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9957. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9958. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9959. msm_routing_put_audio_mixer),
  9960. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9961. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9962. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9963. msm_routing_put_audio_mixer),
  9964. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9965. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9967. msm_routing_put_audio_mixer),
  9968. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9969. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9971. msm_routing_put_audio_mixer),
  9972. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9973. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9975. msm_routing_put_audio_mixer),
  9976. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9977. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9978. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9979. msm_routing_put_audio_mixer),
  9980. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9981. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9982. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9983. msm_routing_put_audio_mixer),
  9984. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9985. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9986. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9987. msm_routing_put_audio_mixer),
  9988. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9989. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9990. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9991. msm_routing_put_audio_mixer),
  9992. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9993. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9994. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9995. msm_routing_put_audio_mixer),
  9996. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9997. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9998. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9999. msm_routing_put_audio_mixer),
  10000. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10001. MSM_BACKEND_DAI_USB_TX,
  10002. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10003. msm_routing_put_audio_mixer),
  10004. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10005. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10006. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10007. msm_routing_put_audio_mixer),
  10008. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10009. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10010. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10011. msm_routing_put_audio_mixer),
  10012. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10013. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10014. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10015. msm_routing_put_audio_mixer),
  10016. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10017. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10018. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10019. msm_routing_put_audio_mixer),
  10020. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10021. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10022. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10023. msm_routing_put_audio_mixer),
  10024. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10025. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10026. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10027. msm_routing_put_audio_mixer),
  10028. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10029. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10030. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10031. msm_routing_put_audio_mixer),
  10032. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10033. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10034. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10035. msm_routing_put_audio_mixer),
  10036. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10037. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10038. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10039. msm_routing_put_audio_mixer),
  10040. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10041. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10042. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10043. msm_routing_put_audio_mixer),
  10044. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10045. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10046. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10047. msm_routing_put_audio_mixer),
  10048. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10049. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10050. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10051. msm_routing_put_audio_mixer),
  10052. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10053. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10054. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10055. msm_routing_put_audio_mixer),
  10056. };
  10057. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  10058. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10059. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10060. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10061. msm_routing_put_audio_mixer),
  10062. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10063. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10065. msm_routing_put_audio_mixer),
  10066. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10067. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10068. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10069. msm_routing_put_audio_mixer),
  10070. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10071. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10072. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10073. msm_routing_put_audio_mixer),
  10074. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10075. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10076. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10077. msm_routing_put_audio_mixer),
  10078. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10079. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10080. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10081. msm_routing_put_audio_mixer),
  10082. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10083. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10084. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10085. msm_routing_put_audio_mixer),
  10086. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10087. MSM_BACKEND_DAI_INT_FM_TX,
  10088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10089. msm_routing_put_audio_mixer),
  10090. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10091. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10092. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10093. msm_routing_put_audio_mixer),
  10094. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10095. MSM_BACKEND_DAI_AFE_PCM_TX,
  10096. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10097. msm_routing_put_audio_mixer),
  10098. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10099. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10100. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10101. msm_routing_put_audio_mixer),
  10102. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10103. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10104. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10105. msm_routing_put_audio_mixer),
  10106. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10107. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10108. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10109. msm_routing_put_audio_mixer),
  10110. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10111. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10112. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10113. msm_routing_put_audio_mixer),
  10114. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10115. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10116. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10117. msm_routing_put_audio_mixer),
  10118. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10119. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10120. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10121. msm_routing_put_audio_mixer),
  10122. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10123. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10124. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10125. msm_routing_put_audio_mixer),
  10126. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10127. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10128. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10129. msm_routing_put_audio_mixer),
  10130. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10131. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10132. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10133. msm_routing_put_audio_mixer),
  10134. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10135. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10136. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10137. msm_routing_put_audio_mixer),
  10138. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10139. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10140. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10141. msm_routing_put_audio_mixer),
  10142. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10143. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10144. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10145. msm_routing_put_audio_mixer),
  10146. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10148. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10149. msm_routing_put_audio_mixer),
  10150. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10151. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10152. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10153. msm_routing_put_audio_mixer),
  10154. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10155. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10156. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10157. msm_routing_put_audio_mixer),
  10158. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10159. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10160. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10161. msm_routing_put_audio_mixer),
  10162. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10163. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10164. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10165. msm_routing_put_audio_mixer),
  10166. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10168. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10169. msm_routing_put_audio_mixer),
  10170. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10171. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10172. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10173. msm_routing_put_audio_mixer),
  10174. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10176. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10177. msm_routing_put_audio_mixer),
  10178. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10180. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10181. msm_routing_put_audio_mixer),
  10182. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10185. msm_routing_put_audio_mixer),
  10186. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10188. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10189. msm_routing_put_audio_mixer),
  10190. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10192. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10193. msm_routing_put_audio_mixer),
  10194. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10195. MSM_BACKEND_DAI_USB_TX,
  10196. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10197. msm_routing_put_audio_mixer),
  10198. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10199. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10201. msm_routing_put_audio_mixer),
  10202. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10203. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10204. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10205. msm_routing_put_audio_mixer),
  10206. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10207. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10208. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10209. msm_routing_put_audio_mixer),
  10210. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10211. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10213. msm_routing_put_audio_mixer),
  10214. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10215. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10216. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10217. msm_routing_put_audio_mixer),
  10218. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10220. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10221. msm_routing_put_audio_mixer),
  10222. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10223. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10224. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10225. msm_routing_put_audio_mixer),
  10226. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10227. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10228. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10229. msm_routing_put_audio_mixer),
  10230. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10231. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10232. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10233. msm_routing_put_audio_mixer),
  10234. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10235. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10236. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10237. msm_routing_put_audio_mixer),
  10238. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10239. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10240. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10241. msm_routing_put_audio_mixer),
  10242. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10243. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10244. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10245. msm_routing_put_audio_mixer),
  10246. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10247. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10248. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10249. msm_routing_put_audio_mixer),
  10250. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10251. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10252. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10253. msm_routing_put_audio_mixer),
  10254. };
  10255. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  10256. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10257. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10258. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10259. msm_routing_put_audio_mixer),
  10260. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10261. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10262. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10263. msm_routing_put_audio_mixer),
  10264. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10265. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10266. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10267. msm_routing_put_audio_mixer),
  10268. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10269. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10270. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10271. msm_routing_put_audio_mixer),
  10272. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10273. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10274. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10275. msm_routing_put_audio_mixer),
  10276. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10277. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10278. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10279. msm_routing_put_audio_mixer),
  10280. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10281. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10282. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10283. msm_routing_put_audio_mixer),
  10284. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10285. MSM_BACKEND_DAI_INT_FM_TX,
  10286. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10287. msm_routing_put_audio_mixer),
  10288. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10291. msm_routing_put_audio_mixer),
  10292. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_AFE_PCM_TX,
  10294. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10295. msm_routing_put_audio_mixer),
  10296. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10298. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10299. msm_routing_put_audio_mixer),
  10300. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10302. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10303. msm_routing_put_audio_mixer),
  10304. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10305. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10306. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10307. msm_routing_put_audio_mixer),
  10308. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10309. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10310. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10311. msm_routing_put_audio_mixer),
  10312. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10313. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10314. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10315. msm_routing_put_audio_mixer),
  10316. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10317. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10318. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10319. msm_routing_put_audio_mixer),
  10320. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10321. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10322. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10323. msm_routing_put_audio_mixer),
  10324. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10325. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10326. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10327. msm_routing_put_audio_mixer),
  10328. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10329. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10330. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10331. msm_routing_put_audio_mixer),
  10332. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10333. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10334. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10335. msm_routing_put_audio_mixer),
  10336. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10337. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10338. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10339. msm_routing_put_audio_mixer),
  10340. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10341. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10342. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10343. msm_routing_put_audio_mixer),
  10344. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10345. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10346. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10347. msm_routing_put_audio_mixer),
  10348. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10349. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10350. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10351. msm_routing_put_audio_mixer),
  10352. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10353. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10354. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10355. msm_routing_put_audio_mixer),
  10356. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10357. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10358. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10359. msm_routing_put_audio_mixer),
  10360. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10361. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10362. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10363. msm_routing_put_audio_mixer),
  10364. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10365. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10366. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10367. msm_routing_put_audio_mixer),
  10368. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10369. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10370. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10371. msm_routing_put_audio_mixer),
  10372. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10373. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10374. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10375. msm_routing_put_audio_mixer),
  10376. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10377. MSM_BACKEND_DAI_USB_TX,
  10378. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10379. msm_routing_put_audio_mixer),
  10380. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10381. MSM_BACKEND_DAI_MI2S_TX,
  10382. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10383. msm_routing_put_audio_mixer),
  10384. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10385. MSM_BACKEND_DAI_AUXPCM_TX,
  10386. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10387. msm_routing_put_audio_mixer),
  10388. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10389. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10390. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10391. msm_routing_put_audio_mixer),
  10392. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10393. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10394. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10395. msm_routing_put_audio_mixer),
  10396. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10397. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10398. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10399. msm_routing_put_audio_mixer),
  10400. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10402. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10403. msm_routing_put_audio_mixer),
  10404. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10406. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10407. msm_routing_put_audio_mixer),
  10408. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10409. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10410. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10411. msm_routing_put_audio_mixer),
  10412. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10413. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10414. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10415. msm_routing_put_audio_mixer),
  10416. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10417. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10418. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10419. msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10424. msm_routing_get_audio_mixer,
  10425. msm_routing_put_audio_mixer),
  10426. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10427. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10428. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10429. msm_routing_get_audio_mixer,
  10430. msm_routing_put_audio_mixer),
  10431. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10432. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10433. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10434. msm_routing_get_audio_mixer,
  10435. msm_routing_put_audio_mixer),
  10436. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10438. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10439. msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10444. msm_routing_get_audio_mixer,
  10445. msm_routing_put_audio_mixer),
  10446. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10447. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10448. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10449. msm_routing_put_audio_mixer),
  10450. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10451. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10452. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10453. msm_routing_put_audio_mixer),
  10454. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10455. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10456. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10457. msm_routing_put_audio_mixer),
  10458. };
  10459. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10460. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10461. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10462. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10463. msm_routing_put_audio_mixer),
  10464. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10465. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10466. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10467. msm_routing_put_audio_mixer),
  10468. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_INT_FM_TX,
  10470. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10471. msm_routing_put_audio_mixer),
  10472. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10473. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10474. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10475. msm_routing_put_audio_mixer),
  10476. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10477. MSM_BACKEND_DAI_AFE_PCM_TX,
  10478. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10479. msm_routing_put_audio_mixer),
  10480. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10481. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10482. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10483. msm_routing_put_audio_mixer),
  10484. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10485. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10486. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10487. msm_routing_put_audio_mixer),
  10488. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10489. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10490. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10491. msm_routing_put_audio_mixer),
  10492. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10493. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10494. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10495. msm_routing_put_audio_mixer),
  10496. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10497. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10498. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10499. msm_routing_put_audio_mixer),
  10500. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10501. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10502. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10503. msm_routing_put_audio_mixer),
  10504. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10505. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10506. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10507. msm_routing_put_audio_mixer),
  10508. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10509. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10510. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10511. msm_routing_put_audio_mixer),
  10512. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10513. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10514. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10515. msm_routing_put_audio_mixer),
  10516. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10517. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10518. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10519. msm_routing_put_audio_mixer),
  10520. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10521. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10522. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10523. msm_routing_put_audio_mixer),
  10524. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10525. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10526. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10527. msm_routing_put_audio_mixer),
  10528. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10529. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10530. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10531. msm_routing_put_audio_mixer),
  10532. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10533. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10534. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10535. msm_routing_put_audio_mixer),
  10536. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10537. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10538. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10539. msm_routing_put_audio_mixer),
  10540. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10541. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10542. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10543. msm_routing_put_audio_mixer),
  10544. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10545. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10546. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10547. msm_routing_put_audio_mixer),
  10548. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10549. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10550. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10551. msm_routing_put_audio_mixer),
  10552. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10553. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10554. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10555. msm_routing_put_audio_mixer),
  10556. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10557. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10559. msm_routing_put_audio_mixer),
  10560. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10561. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10562. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10563. msm_routing_put_audio_mixer),
  10564. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10565. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10566. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10567. msm_routing_put_audio_mixer),
  10568. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10569. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10570. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10571. msm_routing_put_audio_mixer),
  10572. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10573. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10574. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10575. msm_routing_put_audio_mixer),
  10576. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10577. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10578. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10579. msm_routing_put_audio_mixer),
  10580. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10581. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10582. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10583. msm_routing_put_audio_mixer),
  10584. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10585. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10586. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10587. msm_routing_put_audio_mixer),
  10588. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10589. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10590. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10591. msm_routing_put_audio_mixer),
  10592. };
  10593. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10594. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10595. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10596. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10597. msm_routing_put_audio_mixer),
  10598. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10599. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10600. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10601. msm_routing_put_audio_mixer),
  10602. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10603. MSM_BACKEND_DAI_INT_FM_TX,
  10604. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10605. msm_routing_put_audio_mixer),
  10606. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10607. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10608. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10609. msm_routing_put_audio_mixer),
  10610. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10611. MSM_BACKEND_DAI_AFE_PCM_TX,
  10612. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10613. msm_routing_put_audio_mixer),
  10614. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10615. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10616. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10617. msm_routing_put_audio_mixer),
  10618. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10619. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10620. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10621. msm_routing_put_audio_mixer),
  10622. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10623. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10624. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10625. msm_routing_put_audio_mixer),
  10626. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10627. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10628. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10629. msm_routing_put_audio_mixer),
  10630. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10631. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10632. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10633. msm_routing_put_audio_mixer),
  10634. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10635. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10636. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10637. msm_routing_put_audio_mixer),
  10638. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10639. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10641. msm_routing_put_audio_mixer),
  10642. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10643. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10644. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10645. msm_routing_put_audio_mixer),
  10646. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10647. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10648. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10649. msm_routing_put_audio_mixer),
  10650. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10651. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10652. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10653. msm_routing_put_audio_mixer),
  10654. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10655. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10656. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10657. msm_routing_put_audio_mixer),
  10658. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10659. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10660. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10661. msm_routing_put_audio_mixer),
  10662. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10663. MSM_BACKEND_DAI_USB_TX,
  10664. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10665. msm_routing_put_audio_mixer),
  10666. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10667. MSM_BACKEND_DAI_MI2S_TX,
  10668. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10669. msm_routing_put_audio_mixer),
  10670. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10671. MSM_BACKEND_DAI_AUXPCM_TX,
  10672. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10673. msm_routing_put_audio_mixer),
  10674. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10675. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10676. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10677. msm_routing_put_audio_mixer),
  10678. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10679. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10681. msm_routing_put_audio_mixer),
  10682. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10684. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10685. msm_routing_put_audio_mixer),
  10686. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10688. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10689. msm_routing_put_audio_mixer),
  10690. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10692. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10693. msm_routing_put_audio_mixer),
  10694. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10696. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10697. msm_routing_put_audio_mixer),
  10698. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10700. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10701. msm_routing_put_audio_mixer),
  10702. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10704. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10705. msm_routing_put_audio_mixer),
  10706. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10708. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10709. msm_routing_put_audio_mixer),
  10710. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10711. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10712. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10713. msm_routing_put_audio_mixer),
  10714. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10716. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10717. msm_routing_put_audio_mixer),
  10718. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10720. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10721. msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10726. msm_routing_get_audio_mixer,
  10727. msm_routing_put_audio_mixer),
  10728. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10729. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10730. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10731. msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10736. msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10741. msm_routing_get_audio_mixer,
  10742. msm_routing_put_audio_mixer),
  10743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10746. msm_routing_get_audio_mixer,
  10747. msm_routing_put_audio_mixer),
  10748. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10749. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10750. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10751. msm_routing_put_audio_mixer),
  10752. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10753. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10754. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10755. msm_routing_put_audio_mixer),
  10756. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10757. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10758. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10759. msm_routing_put_audio_mixer),
  10760. };
  10761. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  10762. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10763. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10764. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10765. msm_routing_put_audio_mixer),
  10766. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10767. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10768. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10769. msm_routing_put_audio_mixer),
  10770. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10771. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10772. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10773. msm_routing_put_audio_mixer),
  10774. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10775. MSM_BACKEND_DAI_INT_FM_TX,
  10776. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10777. msm_routing_put_audio_mixer),
  10778. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10779. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10780. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10781. msm_routing_put_audio_mixer),
  10782. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10783. MSM_BACKEND_DAI_AFE_PCM_TX,
  10784. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10785. msm_routing_put_audio_mixer),
  10786. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10787. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10788. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10789. msm_routing_put_audio_mixer),
  10790. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10791. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10792. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10793. msm_routing_put_audio_mixer),
  10794. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10795. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10796. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10797. msm_routing_put_audio_mixer),
  10798. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10799. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10800. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10801. msm_routing_put_audio_mixer),
  10802. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10803. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10804. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10805. msm_routing_put_audio_mixer),
  10806. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10807. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10808. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10809. msm_routing_put_audio_mixer),
  10810. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10811. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10812. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10813. msm_routing_put_audio_mixer),
  10814. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10815. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10816. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10817. msm_routing_put_audio_mixer),
  10818. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10819. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10820. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10821. msm_routing_put_audio_mixer),
  10822. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10823. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10824. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10825. msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10830. msm_routing_get_audio_mixer,
  10831. msm_routing_put_audio_mixer),
  10832. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10833. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10834. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10835. msm_routing_get_audio_mixer,
  10836. msm_routing_put_audio_mixer),
  10837. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10840. msm_routing_get_audio_mixer,
  10841. msm_routing_put_audio_mixer),
  10842. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10843. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10844. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10845. msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10850. msm_routing_get_audio_mixer,
  10851. msm_routing_put_audio_mixer),
  10852. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10853. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10854. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10855. msm_routing_put_audio_mixer),
  10856. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10857. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10858. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10859. msm_routing_put_audio_mixer),
  10860. };
  10861. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  10862. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10863. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10864. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10865. msm_routing_put_audio_mixer),
  10866. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10868. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10869. msm_routing_put_audio_mixer),
  10870. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10871. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10872. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10873. msm_routing_put_audio_mixer),
  10874. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10875. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10876. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10877. msm_routing_put_audio_mixer),
  10878. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10880. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10881. msm_routing_put_audio_mixer),
  10882. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10883. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10884. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_INT_FM_TX,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10889. msm_routing_put_audio_mixer),
  10890. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10892. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10893. msm_routing_put_audio_mixer),
  10894. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10895. MSM_BACKEND_DAI_AFE_PCM_TX,
  10896. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10897. msm_routing_put_audio_mixer),
  10898. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10900. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10901. msm_routing_put_audio_mixer),
  10902. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10904. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10905. msm_routing_put_audio_mixer),
  10906. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10907. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10908. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10909. msm_routing_put_audio_mixer),
  10910. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10923. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10924. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10925. msm_routing_put_audio_mixer),
  10926. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10927. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10928. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10929. msm_routing_get_audio_mixer,
  10930. msm_routing_put_audio_mixer),
  10931. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10932. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10933. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10934. msm_routing_get_audio_mixer,
  10935. msm_routing_put_audio_mixer),
  10936. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10937. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10938. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10939. msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10944. msm_routing_get_audio_mixer,
  10945. msm_routing_put_audio_mixer),
  10946. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10947. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10948. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10949. msm_routing_get_audio_mixer,
  10950. msm_routing_put_audio_mixer),
  10951. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10953. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10954. msm_routing_get_audio_mixer,
  10955. msm_routing_put_audio_mixer),
  10956. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10958. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10963. msm_routing_put_audio_mixer),
  10964. };
  10965. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  10966. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10967. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10968. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10969. msm_routing_put_audio_mixer),
  10970. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10971. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10972. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10973. msm_routing_put_audio_mixer),
  10974. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10975. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10976. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10977. msm_routing_put_audio_mixer),
  10978. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10979. MSM_BACKEND_DAI_INT_FM_TX,
  10980. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10981. msm_routing_put_audio_mixer),
  10982. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10983. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10984. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10985. msm_routing_put_audio_mixer),
  10986. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10987. MSM_BACKEND_DAI_AFE_PCM_TX,
  10988. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10989. msm_routing_put_audio_mixer),
  10990. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10991. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10992. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10993. msm_routing_put_audio_mixer),
  10994. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10995. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10996. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10997. msm_routing_put_audio_mixer),
  10998. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10999. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11000. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11001. msm_routing_put_audio_mixer),
  11002. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11003. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11004. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11005. msm_routing_put_audio_mixer),
  11006. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11007. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11008. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11009. msm_routing_put_audio_mixer),
  11010. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11011. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11012. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11013. msm_routing_put_audio_mixer),
  11014. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11015. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11016. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11017. msm_routing_put_audio_mixer),
  11018. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11019. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11020. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11021. msm_routing_put_audio_mixer),
  11022. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11023. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11024. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11025. msm_routing_put_audio_mixer),
  11026. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11027. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11028. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11029. msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11034. msm_routing_get_audio_mixer,
  11035. msm_routing_put_audio_mixer),
  11036. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11037. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11038. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11039. msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11044. msm_routing_get_audio_mixer,
  11045. msm_routing_put_audio_mixer),
  11046. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11047. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11048. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11049. msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11054. msm_routing_get_audio_mixer,
  11055. msm_routing_put_audio_mixer),
  11056. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11057. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11058. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11059. msm_routing_put_audio_mixer),
  11060. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11061. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11062. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11063. msm_routing_put_audio_mixer),
  11064. };
  11065. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  11066. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11067. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11068. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11069. msm_routing_put_audio_mixer),
  11070. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11071. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11072. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11073. msm_routing_put_audio_mixer),
  11074. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11075. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11076. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11077. msm_routing_put_audio_mixer),
  11078. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11079. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11080. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11081. msm_routing_put_audio_mixer),
  11082. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11083. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11084. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11085. msm_routing_put_audio_mixer),
  11086. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11087. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11088. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11089. msm_routing_put_audio_mixer),
  11090. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11091. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11092. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11093. msm_routing_put_audio_mixer),
  11094. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11095. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11096. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11097. msm_routing_put_audio_mixer),
  11098. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11099. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11100. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11101. msm_routing_put_audio_mixer),
  11102. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11103. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11104. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11105. msm_routing_put_audio_mixer),
  11106. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11107. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11108. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11109. msm_routing_put_audio_mixer),
  11110. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11111. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11112. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11113. msm_routing_put_audio_mixer),
  11114. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11115. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11116. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11117. msm_routing_put_audio_mixer),
  11118. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11119. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11120. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11121. msm_routing_put_audio_mixer),
  11122. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11123. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11124. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11125. msm_routing_put_audio_mixer),
  11126. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11127. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11128. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11129. msm_routing_put_audio_mixer),
  11130. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11131. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11132. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11133. msm_routing_put_audio_mixer),
  11134. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11135. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11136. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11137. msm_routing_put_audio_mixer),
  11138. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11139. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11140. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11141. msm_routing_put_audio_mixer),
  11142. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11143. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11144. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11145. msm_routing_put_audio_mixer),
  11146. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11147. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11148. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11149. msm_routing_put_audio_mixer),
  11150. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11151. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11152. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11153. msm_routing_put_audio_mixer),
  11154. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11155. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11156. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11157. msm_routing_put_audio_mixer),
  11158. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11159. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11160. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11161. msm_routing_put_audio_mixer),
  11162. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11163. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11164. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11165. msm_routing_put_audio_mixer),
  11166. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11167. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11168. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11169. msm_routing_put_audio_mixer),
  11170. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11171. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11172. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11173. msm_routing_put_audio_mixer),
  11174. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11175. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11176. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11177. msm_routing_put_audio_mixer),
  11178. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11179. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11180. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11181. msm_routing_put_audio_mixer),
  11182. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11183. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11184. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11185. msm_routing_put_audio_mixer),
  11186. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11187. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11188. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11189. msm_routing_put_audio_mixer),
  11190. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11191. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11192. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11193. msm_routing_put_audio_mixer),
  11194. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11195. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11196. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11201. msm_routing_put_audio_mixer),
  11202. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11204. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11205. msm_routing_put_audio_mixer),
  11206. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11208. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11209. msm_routing_put_audio_mixer),
  11210. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11212. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11213. msm_routing_put_audio_mixer),
  11214. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. };
  11219. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  11220. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11221. MSM_BACKEND_DAI_AUXPCM_TX,
  11222. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11223. msm_routing_put_audio_mixer),
  11224. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11225. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11226. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11227. msm_routing_put_audio_mixer),
  11228. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11229. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11230. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11231. msm_routing_put_audio_mixer),
  11232. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11233. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11234. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11235. msm_routing_put_audio_mixer),
  11236. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11237. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11238. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11239. msm_routing_put_audio_mixer),
  11240. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11241. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11242. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11243. msm_routing_put_audio_mixer),
  11244. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11245. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11246. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11247. msm_routing_put_audio_mixer),
  11248. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11249. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11250. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11251. msm_routing_put_audio_mixer),
  11252. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11253. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11254. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11255. msm_routing_put_audio_mixer),
  11256. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11257. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11258. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11259. msm_routing_put_audio_mixer),
  11260. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11261. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11262. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11263. msm_routing_put_audio_mixer),
  11264. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11265. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11266. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11267. msm_routing_put_audio_mixer),
  11268. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11269. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11270. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11271. msm_routing_put_audio_mixer),
  11272. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11273. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11274. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11275. msm_routing_put_audio_mixer),
  11276. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11277. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11278. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11279. msm_routing_put_audio_mixer),
  11280. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11281. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11282. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11283. msm_routing_put_audio_mixer),
  11284. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11285. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11286. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11287. msm_routing_put_audio_mixer),
  11288. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11289. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11290. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11291. msm_routing_put_audio_mixer),
  11292. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11293. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11294. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11295. msm_routing_put_audio_mixer),
  11296. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11297. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11298. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11299. msm_routing_put_audio_mixer),
  11300. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11301. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11302. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11303. msm_routing_put_audio_mixer),
  11304. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11306. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11307. msm_routing_put_audio_mixer),
  11308. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11309. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11310. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11311. msm_routing_put_audio_mixer),
  11312. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11313. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11314. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11315. msm_routing_put_audio_mixer),
  11316. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11318. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11319. msm_routing_put_audio_mixer),
  11320. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11321. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11322. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11323. msm_routing_put_audio_mixer),
  11324. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11325. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11326. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11327. msm_routing_put_audio_mixer),
  11328. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11329. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11330. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11331. msm_routing_put_audio_mixer),
  11332. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11333. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11334. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11335. msm_routing_put_audio_mixer),
  11336. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11337. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11338. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11339. msm_routing_put_audio_mixer),
  11340. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11341. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11342. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11343. msm_routing_put_audio_mixer),
  11344. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11345. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11346. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11347. msm_routing_put_audio_mixer),
  11348. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11349. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11350. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11351. msm_routing_put_audio_mixer),
  11352. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11353. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11354. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11355. msm_routing_put_audio_mixer),
  11356. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11357. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11358. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11359. msm_routing_put_audio_mixer),
  11360. };
  11361. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  11362. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11363. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11364. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11365. msm_routing_put_audio_mixer),
  11366. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11367. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11368. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11369. msm_routing_put_audio_mixer),
  11370. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11371. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11372. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11373. msm_routing_put_audio_mixer),
  11374. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11375. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11376. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11377. msm_routing_put_audio_mixer),
  11378. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11379. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11380. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11381. msm_routing_put_audio_mixer),
  11382. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11383. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11384. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11385. msm_routing_put_audio_mixer),
  11386. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11387. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11388. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11389. msm_routing_put_audio_mixer),
  11390. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11391. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11392. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11393. msm_routing_put_audio_mixer),
  11394. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11395. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11396. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11397. msm_routing_put_audio_mixer),
  11398. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11399. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11400. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11401. msm_routing_put_audio_mixer),
  11402. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11403. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11404. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11405. msm_routing_put_audio_mixer),
  11406. };
  11407. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  11408. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11410. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11411. msm_routing_put_audio_mixer),
  11412. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11414. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11415. msm_routing_put_audio_mixer),
  11416. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11417. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11418. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11419. msm_routing_put_audio_mixer),
  11420. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11421. MSM_BACKEND_DAI_INT_FM_TX,
  11422. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11423. msm_routing_put_audio_mixer),
  11424. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11425. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11426. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11427. msm_routing_put_audio_mixer),
  11428. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11429. MSM_BACKEND_DAI_AFE_PCM_TX,
  11430. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11431. msm_routing_put_audio_mixer),
  11432. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11433. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11434. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11435. msm_routing_put_audio_mixer),
  11436. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11437. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11438. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11439. msm_routing_put_audio_mixer),
  11440. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11442. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11443. msm_routing_put_audio_mixer),
  11444. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11445. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11446. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11447. msm_routing_put_audio_mixer),
  11448. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11450. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11451. msm_routing_put_audio_mixer),
  11452. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11454. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11455. msm_routing_put_audio_mixer),
  11456. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11457. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11458. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11459. msm_routing_put_audio_mixer),
  11460. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11461. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11462. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11463. msm_routing_put_audio_mixer),
  11464. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11465. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11466. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11467. msm_routing_put_audio_mixer),
  11468. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11469. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11470. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11471. msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11476. msm_routing_get_audio_mixer,
  11477. msm_routing_put_audio_mixer),
  11478. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11479. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11480. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11481. msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11486. msm_routing_get_audio_mixer,
  11487. msm_routing_put_audio_mixer),
  11488. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11490. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11491. msm_routing_get_audio_mixer,
  11492. msm_routing_put_audio_mixer),
  11493. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11495. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11496. msm_routing_get_audio_mixer,
  11497. msm_routing_put_audio_mixer),
  11498. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11499. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11500. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11501. msm_routing_put_audio_mixer),
  11502. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11503. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11504. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11505. msm_routing_put_audio_mixer),
  11506. };
  11507. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  11508. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11509. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11510. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11511. msm_routing_put_audio_mixer),
  11512. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11513. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11514. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11515. msm_routing_put_audio_mixer),
  11516. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11517. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11518. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11519. msm_routing_put_audio_mixer),
  11520. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11521. MSM_BACKEND_DAI_INT_FM_TX,
  11522. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11523. msm_routing_put_audio_mixer),
  11524. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11525. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11526. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11527. msm_routing_put_audio_mixer),
  11528. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11529. MSM_BACKEND_DAI_AFE_PCM_TX,
  11530. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11531. msm_routing_put_audio_mixer),
  11532. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11533. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11534. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11535. msm_routing_put_audio_mixer),
  11536. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11537. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11538. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11539. msm_routing_put_audio_mixer),
  11540. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11541. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11542. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11543. msm_routing_put_audio_mixer),
  11544. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11545. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11546. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11547. msm_routing_put_audio_mixer),
  11548. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11549. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11550. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11551. msm_routing_put_audio_mixer),
  11552. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11553. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11554. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11555. msm_routing_put_audio_mixer),
  11556. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11557. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11558. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11559. msm_routing_put_audio_mixer),
  11560. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11561. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11562. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11563. msm_routing_put_audio_mixer),
  11564. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11565. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11566. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11567. msm_routing_put_audio_mixer),
  11568. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11569. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11570. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11571. msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11576. msm_routing_get_audio_mixer,
  11577. msm_routing_put_audio_mixer),
  11578. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11579. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11580. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11581. msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11586. msm_routing_get_audio_mixer,
  11587. msm_routing_put_audio_mixer),
  11588. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11589. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11590. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11591. msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11596. msm_routing_get_audio_mixer,
  11597. msm_routing_put_audio_mixer),
  11598. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11599. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11600. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11601. msm_routing_put_audio_mixer),
  11602. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11603. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11604. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11605. msm_routing_put_audio_mixer),
  11606. };
  11607. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  11608. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11609. MSM_BACKEND_DAI_PRI_I2S_RX,
  11610. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11611. msm_routing_put_voice_mixer),
  11612. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_PRI_I2S_RX,
  11614. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11615. msm_routing_put_voice_mixer),
  11616. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_PRI_I2S_RX,
  11618. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11619. msm_routing_put_voice_mixer),
  11620. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_PRI_I2S_RX,
  11622. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11623. msm_routing_put_voice_mixer),
  11624. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11625. MSM_BACKEND_DAI_PRI_I2S_RX,
  11626. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11627. msm_routing_put_voice_mixer),
  11628. };
  11629. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  11630. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11631. MSM_BACKEND_DAI_SEC_I2S_RX,
  11632. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11633. msm_routing_put_voice_mixer),
  11634. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11635. MSM_BACKEND_DAI_SEC_I2S_RX,
  11636. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11637. msm_routing_put_voice_mixer),
  11638. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11639. MSM_BACKEND_DAI_SEC_I2S_RX,
  11640. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11641. msm_routing_put_voice_mixer),
  11642. };
  11643. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  11644. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11645. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11646. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11647. msm_routing_put_voice_mixer),
  11648. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11649. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11650. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11651. msm_routing_put_voice_mixer),
  11652. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11653. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11654. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11655. msm_routing_put_voice_mixer),
  11656. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11657. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11658. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11659. msm_routing_put_voice_mixer),
  11660. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11661. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11662. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11663. msm_routing_put_voice_mixer),
  11664. };
  11665. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  11666. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11667. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11668. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11669. msm_routing_put_voice_mixer),
  11670. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11671. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11672. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11673. msm_routing_put_voice_mixer),
  11674. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11676. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11677. msm_routing_put_voice_mixer),
  11678. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11680. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11681. msm_routing_put_voice_mixer),
  11682. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11683. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11684. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11685. msm_routing_put_voice_mixer),
  11686. };
  11687. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  11688. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11689. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11690. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11691. msm_routing_put_voice_mixer),
  11692. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11693. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11694. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11695. msm_routing_put_voice_mixer),
  11696. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11697. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11698. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11699. msm_routing_put_voice_mixer),
  11700. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11701. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11702. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11703. msm_routing_put_voice_mixer),
  11704. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11705. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11706. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11707. msm_routing_put_voice_mixer),
  11708. };
  11709. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  11710. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11711. MSM_BACKEND_DAI_USB_RX,
  11712. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11713. msm_routing_put_voice_mixer),
  11714. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11715. MSM_BACKEND_DAI_USB_RX,
  11716. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11717. msm_routing_put_voice_mixer),
  11718. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11719. MSM_BACKEND_DAI_USB_RX,
  11720. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11721. msm_routing_put_voice_mixer),
  11722. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11723. MSM_BACKEND_DAI_USB_RX,
  11724. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11725. msm_routing_put_voice_mixer),
  11726. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11727. MSM_BACKEND_DAI_USB_RX,
  11728. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11729. msm_routing_put_voice_mixer),
  11730. };
  11731. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  11732. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11733. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11734. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11735. msm_routing_put_voice_mixer),
  11736. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11737. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11738. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11739. msm_routing_put_voice_mixer),
  11740. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11741. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11742. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11743. msm_routing_put_voice_mixer),
  11744. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11745. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11746. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11747. msm_routing_put_voice_mixer),
  11748. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11749. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11750. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11751. msm_routing_put_voice_mixer),
  11752. };
  11753. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  11754. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11755. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11756. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11757. msm_routing_put_voice_mixer),
  11758. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11759. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11760. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11761. msm_routing_put_voice_mixer),
  11762. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11763. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11764. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11765. msm_routing_put_voice_mixer),
  11766. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11767. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11768. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11769. msm_routing_put_voice_mixer),
  11770. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11771. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11772. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11773. msm_routing_put_voice_mixer),
  11774. };
  11775. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  11776. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11777. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11778. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11779. msm_routing_put_voice_mixer),
  11780. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11781. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11782. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11783. msm_routing_put_voice_mixer),
  11784. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11785. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11786. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11787. msm_routing_put_voice_mixer),
  11788. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11789. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11790. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11791. msm_routing_put_voice_mixer),
  11792. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11793. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11794. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11795. msm_routing_put_voice_mixer),
  11796. };
  11797. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  11798. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11799. MSM_BACKEND_DAI_MI2S_RX,
  11800. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11801. msm_routing_put_voice_mixer),
  11802. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11803. MSM_BACKEND_DAI_MI2S_RX,
  11804. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11805. msm_routing_put_voice_mixer),
  11806. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11807. MSM_BACKEND_DAI_MI2S_RX,
  11808. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11809. msm_routing_put_voice_mixer),
  11810. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11811. MSM_BACKEND_DAI_MI2S_RX,
  11812. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11813. msm_routing_put_voice_mixer),
  11814. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11815. MSM_BACKEND_DAI_MI2S_RX,
  11816. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11817. msm_routing_put_voice_mixer),
  11818. };
  11819. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  11820. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11821. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11822. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11823. msm_routing_put_voice_mixer),
  11824. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11825. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11826. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11827. msm_routing_put_voice_mixer),
  11828. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11829. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11830. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11831. msm_routing_put_voice_mixer),
  11832. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11833. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11834. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11835. msm_routing_put_voice_mixer),
  11836. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11837. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11838. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11839. msm_routing_put_voice_mixer),
  11840. };
  11841. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  11842. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11843. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11844. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11845. msm_routing_put_voice_mixer),
  11846. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11847. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11848. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11849. msm_routing_put_voice_mixer),
  11850. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11851. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11852. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11853. msm_routing_put_voice_mixer),
  11854. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11855. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11856. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11857. msm_routing_put_voice_mixer),
  11858. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11859. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11860. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11861. msm_routing_put_voice_mixer),
  11862. };
  11863. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  11864. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11865. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11866. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11867. msm_routing_put_voice_mixer),
  11868. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11869. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11870. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11871. msm_routing_put_voice_mixer),
  11872. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11874. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11875. msm_routing_put_voice_mixer),
  11876. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11877. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11878. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11879. msm_routing_put_voice_mixer),
  11880. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11881. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11882. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11883. msm_routing_put_voice_mixer),
  11884. };
  11885. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  11886. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11887. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11888. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11889. msm_routing_put_voice_mixer),
  11890. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11891. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11892. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11893. msm_routing_put_voice_mixer),
  11894. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11895. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11896. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11897. msm_routing_put_voice_mixer),
  11898. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11899. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11900. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11901. msm_routing_put_voice_mixer),
  11902. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11903. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11904. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11905. msm_routing_put_voice_mixer),
  11906. };
  11907. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  11908. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11909. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11910. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11911. msm_routing_put_voice_mixer),
  11912. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11914. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11915. msm_routing_put_voice_mixer),
  11916. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11918. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11919. msm_routing_put_voice_mixer),
  11920. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11921. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11922. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11923. msm_routing_put_voice_mixer),
  11924. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11925. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11926. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11927. msm_routing_put_voice_mixer),
  11928. };
  11929. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  11930. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11931. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11932. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11933. msm_routing_put_voice_mixer),
  11934. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11935. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11936. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11937. msm_routing_put_voice_mixer),
  11938. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11939. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11940. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11941. msm_routing_put_voice_mixer),
  11942. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11943. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11944. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11945. msm_routing_put_voice_mixer),
  11946. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11947. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11948. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11949. msm_routing_put_voice_mixer),
  11950. };
  11951. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  11952. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_AFE_PCM_RX,
  11954. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11955. msm_routing_put_voice_mixer),
  11956. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11957. MSM_BACKEND_DAI_AFE_PCM_RX,
  11958. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11959. msm_routing_put_voice_mixer),
  11960. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11961. MSM_BACKEND_DAI_AFE_PCM_RX,
  11962. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11963. msm_routing_put_voice_mixer),
  11964. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11965. MSM_BACKEND_DAI_AFE_PCM_RX,
  11966. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11967. msm_routing_put_voice_mixer),
  11968. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11969. MSM_BACKEND_DAI_AFE_PCM_RX,
  11970. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11971. msm_routing_put_voice_mixer),
  11972. };
  11973. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  11974. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_AUXPCM_RX,
  11976. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11977. msm_routing_put_voice_mixer),
  11978. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_AUXPCM_RX,
  11980. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11981. msm_routing_put_voice_mixer),
  11982. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11983. MSM_BACKEND_DAI_AUXPCM_RX,
  11984. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11985. msm_routing_put_voice_mixer),
  11986. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11987. MSM_BACKEND_DAI_AUXPCM_RX,
  11988. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11989. msm_routing_put_voice_mixer),
  11990. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11991. MSM_BACKEND_DAI_AUXPCM_RX,
  11992. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11993. msm_routing_put_voice_mixer),
  11994. };
  11995. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  11996. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11997. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11998. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11999. msm_routing_put_voice_mixer),
  12000. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12001. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12002. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12003. msm_routing_put_voice_mixer),
  12004. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12005. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12006. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12007. msm_routing_put_voice_mixer),
  12008. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12009. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12010. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12011. msm_routing_put_voice_mixer),
  12012. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12013. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12014. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12015. msm_routing_put_voice_mixer),
  12016. };
  12017. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  12018. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12020. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12021. msm_routing_put_voice_mixer),
  12022. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12024. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12025. msm_routing_put_voice_mixer),
  12026. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12027. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12028. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12029. msm_routing_put_voice_mixer),
  12030. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12031. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12032. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12033. msm_routing_put_voice_mixer),
  12034. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12035. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12036. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12037. msm_routing_put_voice_mixer),
  12038. };
  12039. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  12040. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12041. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12042. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12043. msm_routing_put_voice_mixer),
  12044. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12045. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12046. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12047. msm_routing_put_voice_mixer),
  12048. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12049. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12050. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12051. msm_routing_put_voice_mixer),
  12052. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12053. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12054. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12055. msm_routing_put_voice_mixer),
  12056. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12057. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12058. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12059. msm_routing_put_voice_mixer),
  12060. };
  12061. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  12062. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12063. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12064. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12065. msm_routing_put_voice_mixer),
  12066. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12068. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12069. msm_routing_put_voice_mixer),
  12070. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12071. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12072. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12073. msm_routing_put_voice_mixer),
  12074. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12075. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12076. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12077. msm_routing_put_voice_mixer),
  12078. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12079. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12080. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12081. msm_routing_put_voice_mixer),
  12082. };
  12083. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  12084. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12085. MSM_BACKEND_DAI_HDMI_RX,
  12086. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12087. msm_routing_put_voice_mixer),
  12088. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12089. MSM_BACKEND_DAI_HDMI_RX,
  12090. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12091. msm_routing_put_voice_mixer),
  12092. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12093. MSM_BACKEND_DAI_HDMI_RX,
  12094. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12095. msm_routing_put_voice_mixer),
  12096. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12097. MSM_BACKEND_DAI_HDMI_RX,
  12098. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12099. msm_routing_put_voice_mixer),
  12100. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12101. MSM_BACKEND_DAI_HDMI_RX,
  12102. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12103. msm_routing_put_voice_mixer),
  12104. };
  12105. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  12106. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12108. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12109. msm_routing_put_voice_mixer),
  12110. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12111. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12112. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12113. msm_routing_put_voice_mixer),
  12114. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12115. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12116. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12117. msm_routing_put_voice_mixer),
  12118. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12119. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12120. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12121. msm_routing_put_voice_mixer),
  12122. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12123. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12124. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12125. msm_routing_put_voice_mixer),
  12126. };
  12127. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  12128. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12129. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12130. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12131. msm_routing_put_voice_mixer),
  12132. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12133. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12134. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12135. msm_routing_put_voice_mixer),
  12136. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12137. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12138. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12139. msm_routing_put_voice_mixer),
  12140. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12141. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12142. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12143. msm_routing_put_voice_mixer),
  12144. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12145. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12146. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12147. msm_routing_put_voice_mixer),
  12148. };
  12149. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  12150. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12152. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12153. msm_routing_put_voice_mixer),
  12154. };
  12155. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  12156. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12157. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12158. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12159. msm_routing_put_voice_mixer),
  12160. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12161. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12162. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12163. msm_routing_put_voice_mixer),
  12164. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12165. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12166. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12167. msm_routing_put_voice_mixer),
  12168. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12169. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12170. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12171. msm_routing_put_voice_mixer),
  12172. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12173. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12174. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12175. msm_routing_put_voice_mixer),
  12176. };
  12177. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  12178. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12180. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12181. msm_routing_put_voice_mixer),
  12182. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12184. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12185. msm_routing_put_voice_mixer),
  12186. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12188. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12189. msm_routing_put_voice_mixer),
  12190. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12191. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12192. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12193. msm_routing_put_voice_mixer),
  12194. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12195. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12196. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12197. msm_routing_put_voice_mixer),
  12198. };
  12199. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  12200. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12201. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12202. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12203. msm_routing_put_voice_mixer),
  12204. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12205. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12206. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12207. msm_routing_put_voice_mixer),
  12208. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12209. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12210. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12211. msm_routing_put_voice_mixer),
  12212. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12214. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12215. msm_routing_put_voice_mixer),
  12216. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12217. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12218. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12219. msm_routing_put_voice_mixer),
  12220. };
  12221. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  12222. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12223. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12224. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12225. msm_routing_put_voice_mixer),
  12226. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12227. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12228. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12229. msm_routing_put_voice_mixer),
  12230. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12231. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12232. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12233. msm_routing_put_voice_mixer),
  12234. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12235. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12236. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12237. msm_routing_put_voice_mixer),
  12238. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12239. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12240. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12241. msm_routing_put_voice_mixer),
  12242. };
  12243. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  12244. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12246. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12247. msm_routing_put_voice_mixer),
  12248. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12250. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12251. msm_routing_put_voice_mixer),
  12252. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12253. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12254. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12255. msm_routing_put_voice_mixer),
  12256. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12257. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12258. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12259. msm_routing_put_voice_mixer),
  12260. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12262. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12263. msm_routing_put_voice_mixer),
  12264. };
  12265. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  12266. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12267. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12268. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12269. msm_routing_put_voice_mixer),
  12270. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12271. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12272. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12273. msm_routing_put_voice_mixer),
  12274. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12275. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12276. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12277. msm_routing_put_voice_mixer),
  12278. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12279. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12280. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12281. msm_routing_put_voice_mixer),
  12282. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12283. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12284. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12285. msm_routing_put_voice_mixer),
  12286. };
  12287. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  12288. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12289. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12290. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12291. msm_routing_put_voice_mixer),
  12292. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12293. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12294. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12295. msm_routing_put_voice_mixer),
  12296. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12297. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12298. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12299. msm_routing_put_voice_mixer),
  12300. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12301. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12302. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12303. msm_routing_put_voice_mixer),
  12304. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12305. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12306. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12307. msm_routing_put_voice_mixer),
  12308. };
  12309. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  12310. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12311. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12312. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12313. msm_routing_put_voice_mixer),
  12314. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12315. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12316. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12317. msm_routing_put_voice_mixer),
  12318. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12319. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12320. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12321. msm_routing_put_voice_mixer),
  12322. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12323. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12324. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12325. msm_routing_put_voice_mixer),
  12326. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12327. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12328. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12329. msm_routing_put_voice_mixer),
  12330. };
  12331. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  12332. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12334. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12335. msm_routing_put_voice_mixer),
  12336. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12338. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12339. msm_routing_put_voice_mixer),
  12340. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12342. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12343. msm_routing_put_voice_mixer),
  12344. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12346. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12347. msm_routing_put_voice_mixer),
  12348. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12349. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12350. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12351. msm_routing_put_voice_mixer),
  12352. };
  12353. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  12354. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12355. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12356. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12357. msm_routing_put_voice_mixer),
  12358. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12359. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12360. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12361. msm_routing_put_voice_mixer),
  12362. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12363. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12364. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12365. msm_routing_put_voice_mixer),
  12366. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12367. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12368. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12369. msm_routing_put_voice_mixer),
  12370. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12371. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12372. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12373. msm_routing_put_voice_mixer),
  12374. };
  12375. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  12376. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_EXTPROC_RX,
  12378. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12379. msm_routing_put_voice_mixer),
  12380. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12381. MSM_BACKEND_DAI_EXTPROC_RX,
  12382. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12383. msm_routing_put_voice_mixer),
  12384. };
  12385. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  12386. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12387. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12388. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12389. msm_routing_put_voice_mixer),
  12390. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12391. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12392. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12393. msm_routing_put_voice_mixer),
  12394. };
  12395. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  12396. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12397. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12398. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12399. msm_routing_put_voice_mixer),
  12400. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12401. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12402. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12403. msm_routing_put_voice_mixer),
  12404. };
  12405. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  12406. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  12407. MSM_BACKEND_DAI_PRI_I2S_TX,
  12408. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12409. msm_routing_put_voice_mixer),
  12410. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  12411. MSM_BACKEND_DAI_MI2S_TX,
  12412. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12413. msm_routing_put_voice_mixer),
  12414. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  12415. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12416. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12417. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12419. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12420. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  12421. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12422. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12423. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12425. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12426. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12427. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12428. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12429. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12431. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12432. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12433. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12434. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12435. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12437. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12438. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  12439. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12440. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12441. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12443. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12444. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  12445. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12446. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12447. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12449. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12450. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  12451. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12452. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12453. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_USB_TX,
  12455. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12456. msm_routing_put_voice_mixer),
  12457. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12459. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12460. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12461. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12462. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12463. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12465. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12466. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12467. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12468. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12469. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12471. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12472. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  12473. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  12474. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  12477. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12478. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  12479. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  12480. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12481. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  12483. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12484. };
  12485. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  12486. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  12487. MSM_BACKEND_DAI_PRI_I2S_TX,
  12488. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12489. msm_routing_put_voice_mixer),
  12490. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  12491. MSM_BACKEND_DAI_MI2S_TX,
  12492. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12493. msm_routing_put_voice_mixer),
  12494. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  12495. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12496. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12497. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12499. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12500. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  12501. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12502. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12503. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12505. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12506. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12507. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12508. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12509. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12511. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12512. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12513. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12514. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12515. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12516. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12517. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12518. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  12519. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12520. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12521. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12523. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12524. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  12525. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12526. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12527. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12529. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12530. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  12531. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12532. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12533. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12535. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12536. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12537. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12538. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12541. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12542. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12543. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12544. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12545. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12547. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12548. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  12549. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  12550. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  12553. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  12556. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  12559. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12560. };
  12561. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  12562. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_PRI_I2S_TX,
  12564. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12565. msm_routing_put_voice_mixer),
  12566. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_MI2S_TX,
  12568. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12569. msm_routing_put_voice_mixer),
  12570. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12572. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12573. msm_routing_put_voice_mixer),
  12574. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  12575. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12576. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12577. msm_routing_put_voice_mixer),
  12578. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  12579. MSM_BACKEND_DAI_AFE_PCM_TX,
  12580. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12581. msm_routing_put_voice_mixer),
  12582. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_AUXPCM_TX,
  12584. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12585. msm_routing_put_voice_mixer),
  12586. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12588. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12589. msm_routing_put_voice_mixer),
  12590. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12592. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12593. msm_routing_put_voice_mixer),
  12594. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12596. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12597. msm_routing_put_voice_mixer),
  12598. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12599. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12600. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12601. msm_routing_put_voice_mixer),
  12602. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12604. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12605. msm_routing_put_voice_mixer),
  12606. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12608. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12609. msm_routing_put_voice_mixer),
  12610. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12612. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12613. msm_routing_put_voice_mixer),
  12614. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  12615. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12616. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12617. msm_routing_put_voice_mixer),
  12618. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12620. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12621. msm_routing_put_voice_mixer),
  12622. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  12623. MSM_BACKEND_DAI_USB_TX,
  12624. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12625. msm_routing_put_voice_mixer),
  12626. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12628. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12629. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12630. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12631. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12632. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12633. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12634. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12635. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12637. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12638. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  12640. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12641. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  12643. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12644. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  12645. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  12646. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12647. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  12649. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12650. };
  12651. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  12652. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12653. MSM_BACKEND_DAI_EXTPROC_TX,
  12654. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12655. msm_routing_put_voice_stub_mixer),
  12656. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12657. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12658. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12659. msm_routing_put_voice_stub_mixer),
  12660. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12661. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12662. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12663. msm_routing_put_voice_stub_mixer),
  12664. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12665. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12666. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12667. msm_routing_put_voice_stub_mixer),
  12668. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12669. MSM_BACKEND_DAI_MI2S_TX,
  12670. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12671. msm_routing_put_voice_stub_mixer),
  12672. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12673. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12674. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12675. msm_routing_put_voice_stub_mixer),
  12676. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12677. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12678. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12679. msm_routing_put_voice_stub_mixer),
  12680. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12681. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12682. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12683. msm_routing_put_voice_stub_mixer),
  12684. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12685. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12686. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12687. msm_routing_put_voice_stub_mixer),
  12688. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12689. MSM_BACKEND_DAI_AUXPCM_TX,
  12690. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12691. msm_routing_put_voice_stub_mixer),
  12692. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12693. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12694. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12695. msm_routing_put_voice_stub_mixer),
  12696. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12697. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12698. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12699. msm_routing_put_voice_stub_mixer),
  12700. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12701. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12702. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12703. msm_routing_put_voice_stub_mixer),
  12704. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12705. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12706. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12707. msm_routing_put_voice_stub_mixer),
  12708. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12710. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12711. msm_routing_put_voice_stub_mixer),
  12712. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12713. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12714. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12715. msm_routing_put_voice_stub_mixer),
  12716. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12717. MSM_BACKEND_DAI_AFE_PCM_TX,
  12718. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12719. msm_routing_put_voice_stub_mixer),
  12720. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12721. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12722. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12723. msm_routing_put_voice_stub_mixer),
  12724. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12725. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12726. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12727. msm_routing_put_voice_stub_mixer),
  12728. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12730. 1, 0, msm_routing_get_voice_stub_mixer,
  12731. msm_routing_put_voice_stub_mixer),
  12732. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12734. 1, 0, msm_routing_get_voice_stub_mixer,
  12735. msm_routing_put_voice_stub_mixer),
  12736. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12737. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12738. 1, 0, msm_routing_get_voice_stub_mixer,
  12739. msm_routing_put_voice_stub_mixer),
  12740. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12742. 1, 0, msm_routing_get_voice_stub_mixer,
  12743. msm_routing_put_voice_stub_mixer),
  12744. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  12746. 1, 0, msm_routing_get_voice_stub_mixer,
  12747. msm_routing_put_voice_stub_mixer),
  12748. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  12750. 1, 0, msm_routing_get_voice_stub_mixer,
  12751. msm_routing_put_voice_stub_mixer),
  12752. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  12754. 1, 0, msm_routing_get_voice_stub_mixer,
  12755. msm_routing_put_voice_stub_mixer),
  12756. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12757. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  12758. 1, 0, msm_routing_get_voice_stub_mixer,
  12759. msm_routing_put_voice_stub_mixer),
  12760. };
  12761. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  12762. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12763. MSM_BACKEND_DAI_EXTPROC_TX,
  12764. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12765. msm_routing_put_voice_stub_mixer),
  12766. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12767. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12768. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12769. msm_routing_put_voice_stub_mixer),
  12770. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12771. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12772. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12773. msm_routing_put_voice_stub_mixer),
  12774. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12775. MSM_BACKEND_DAI_AUXPCM_TX,
  12776. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12777. msm_routing_put_voice_stub_mixer),
  12778. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12779. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12780. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12781. msm_routing_put_voice_stub_mixer),
  12782. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12783. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12784. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12785. msm_routing_put_voice_stub_mixer),
  12786. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12787. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12788. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12789. msm_routing_put_voice_stub_mixer),
  12790. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12791. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12792. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12793. msm_routing_put_voice_stub_mixer),
  12794. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12795. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12796. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12797. msm_routing_put_voice_stub_mixer),
  12798. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12799. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12800. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12801. msm_routing_put_voice_stub_mixer),
  12802. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12803. MSM_BACKEND_DAI_AFE_PCM_TX,
  12804. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12805. msm_routing_put_voice_stub_mixer),
  12806. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12807. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12808. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12809. msm_routing_put_voice_stub_mixer),
  12810. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12811. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12812. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12813. msm_routing_put_voice_stub_mixer),
  12814. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12815. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12816. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12817. msm_routing_put_voice_stub_mixer),
  12818. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12819. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12820. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12821. msm_routing_put_voice_stub_mixer),
  12822. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12823. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12824. 1, 0, msm_routing_get_voice_stub_mixer,
  12825. msm_routing_put_voice_stub_mixer),
  12826. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12827. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12828. 1, 0, msm_routing_get_voice_stub_mixer,
  12829. msm_routing_put_voice_stub_mixer),
  12830. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12831. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12832. 1, 0, msm_routing_get_voice_stub_mixer,
  12833. msm_routing_put_voice_stub_mixer),
  12834. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12835. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12836. 1, 0, msm_routing_get_voice_stub_mixer,
  12837. msm_routing_put_voice_stub_mixer),
  12838. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12839. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  12840. 1, 0, msm_routing_get_voice_stub_mixer,
  12841. msm_routing_put_voice_stub_mixer),
  12842. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12843. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  12844. 1, 0, msm_routing_get_voice_stub_mixer,
  12845. msm_routing_put_voice_stub_mixer),
  12846. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12847. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  12848. 1, 0, msm_routing_get_voice_stub_mixer,
  12849. msm_routing_put_voice_stub_mixer),
  12850. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12851. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  12852. 1, 0, msm_routing_get_voice_stub_mixer,
  12853. msm_routing_put_voice_stub_mixer),
  12854. };
  12855. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  12856. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12857. MSM_BACKEND_DAI_EXTPROC_TX,
  12858. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12859. msm_routing_put_voice_stub_mixer),
  12860. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12861. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12862. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12863. msm_routing_put_voice_stub_mixer),
  12864. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12865. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12866. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12867. msm_routing_put_voice_stub_mixer),
  12868. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12869. MSM_BACKEND_DAI_AUXPCM_TX,
  12870. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12871. msm_routing_put_voice_stub_mixer),
  12872. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12873. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12874. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12875. msm_routing_put_voice_stub_mixer),
  12876. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12877. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12878. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12879. msm_routing_put_voice_stub_mixer),
  12880. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12881. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12882. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12883. msm_routing_put_voice_stub_mixer),
  12884. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12885. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12886. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12887. msm_routing_put_voice_stub_mixer),
  12888. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12889. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12890. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12891. msm_routing_put_voice_stub_mixer),
  12892. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12894. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12895. msm_routing_put_voice_stub_mixer),
  12896. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12897. MSM_BACKEND_DAI_AFE_PCM_TX,
  12898. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12899. msm_routing_put_voice_stub_mixer),
  12900. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12901. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12902. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12903. msm_routing_put_voice_stub_mixer),
  12904. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12905. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12906. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12907. msm_routing_put_voice_stub_mixer),
  12908. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12909. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12910. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12911. msm_routing_put_voice_stub_mixer),
  12912. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12913. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12914. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12915. msm_routing_put_voice_stub_mixer),
  12916. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12918. 1, 0, msm_routing_get_voice_stub_mixer,
  12919. msm_routing_put_voice_stub_mixer),
  12920. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12921. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12922. 1, 0, msm_routing_get_voice_stub_mixer,
  12923. msm_routing_put_voice_stub_mixer),
  12924. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12925. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12926. 1, 0, msm_routing_get_voice_stub_mixer,
  12927. msm_routing_put_voice_stub_mixer),
  12928. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12929. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12930. 1, 0, msm_routing_get_voice_stub_mixer,
  12931. msm_routing_put_voice_stub_mixer),
  12932. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12933. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  12934. 1, 0, msm_routing_get_voice_stub_mixer,
  12935. msm_routing_put_voice_stub_mixer),
  12936. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  12938. 1, 0, msm_routing_get_voice_stub_mixer,
  12939. msm_routing_put_voice_stub_mixer),
  12940. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12941. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  12942. 1, 0, msm_routing_get_voice_stub_mixer,
  12943. msm_routing_put_voice_stub_mixer),
  12944. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12945. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  12946. 1, 0, msm_routing_get_voice_stub_mixer,
  12947. msm_routing_put_voice_stub_mixer),
  12948. };
  12949. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  12950. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  12951. MSM_BACKEND_DAI_PRI_I2S_TX,
  12952. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12953. msm_routing_put_voice_mixer),
  12954. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  12955. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12956. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12957. msm_routing_put_voice_mixer),
  12958. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  12959. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12960. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  12961. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12962. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  12963. MSM_BACKEND_DAI_AFE_PCM_TX,
  12964. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12965. msm_routing_put_voice_mixer),
  12966. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12967. MSM_BACKEND_DAI_AUXPCM_TX,
  12968. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12969. msm_routing_put_voice_mixer),
  12970. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12971. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12972. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12973. msm_routing_put_voice_mixer),
  12974. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12975. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12976. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12977. msm_routing_put_voice_mixer),
  12978. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12980. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12981. msm_routing_put_voice_mixer),
  12982. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12983. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12984. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12985. msm_routing_put_voice_mixer),
  12986. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  12987. MSM_BACKEND_DAI_MI2S_TX,
  12988. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12989. msm_routing_put_voice_mixer),
  12990. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12991. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12992. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12993. msm_routing_put_voice_mixer),
  12994. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12995. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12996. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12997. msm_routing_put_voice_mixer),
  12998. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12999. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13000. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13001. msm_routing_put_voice_mixer),
  13002. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  13003. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13004. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13005. msm_routing_put_voice_mixer),
  13006. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  13007. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13008. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13009. msm_routing_put_voice_mixer),
  13010. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  13011. MSM_BACKEND_DAI_USB_TX,
  13012. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13013. msm_routing_put_voice_mixer),
  13014. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13015. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13016. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13017. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13019. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13020. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13021. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13022. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13023. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13025. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13026. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  13028. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13029. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  13031. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13032. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  13033. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  13034. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13035. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  13037. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13038. };
  13039. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  13040. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13041. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13042. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13043. msm_routing_put_port_mixer),
  13044. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13045. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13046. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13047. msm_routing_put_port_mixer),
  13048. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13049. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13050. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13051. msm_routing_put_port_mixer),
  13052. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13053. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13054. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13055. msm_routing_put_port_mixer),
  13056. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13057. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13058. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13059. msm_routing_put_port_mixer),
  13060. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13061. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13062. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13063. msm_routing_put_port_mixer),
  13064. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13065. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13066. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13067. msm_routing_put_port_mixer),
  13068. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13069. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13070. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13071. msm_routing_put_port_mixer),
  13072. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13073. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13074. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13075. msm_routing_put_port_mixer),
  13076. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13077. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13078. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13079. msm_routing_put_port_mixer),
  13080. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13081. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13082. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13083. msm_routing_put_port_mixer),
  13084. };
  13085. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  13086. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13088. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13089. msm_routing_put_port_mixer),
  13090. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13092. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13093. msm_routing_put_port_mixer),
  13094. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13095. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13096. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13097. msm_routing_put_port_mixer),
  13098. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13099. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13100. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13101. msm_routing_put_port_mixer),
  13102. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13103. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13104. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13105. msm_routing_put_port_mixer),
  13106. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13107. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13108. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13109. msm_routing_put_port_mixer),
  13110. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13111. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13112. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13113. msm_routing_put_port_mixer),
  13114. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13115. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13116. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13117. msm_routing_put_port_mixer),
  13118. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13119. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13120. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13121. msm_routing_put_port_mixer),
  13122. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13123. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13124. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13125. msm_routing_put_port_mixer),
  13126. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13127. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13128. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13129. msm_routing_put_port_mixer),
  13130. };
  13131. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  13132. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13133. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13134. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  13135. msm_routing_put_port_mixer),
  13136. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13139. msm_routing_put_port_mixer),
  13140. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13142. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13143. msm_routing_put_port_mixer),
  13144. };
  13145. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  13146. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13147. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13148. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13149. msm_routing_put_port_mixer),
  13150. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13151. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13152. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13153. msm_routing_put_port_mixer),
  13154. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13155. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13156. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13157. msm_routing_put_port_mixer),
  13158. };
  13159. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  13160. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13162. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13163. msm_routing_put_port_mixer),
  13164. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13165. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13166. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13167. msm_routing_put_port_mixer),
  13168. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13170. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13171. msm_routing_put_port_mixer),
  13172. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13173. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13174. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13175. msm_routing_put_port_mixer),
  13176. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13177. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13178. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13179. msm_routing_put_port_mixer),
  13180. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13181. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13182. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13183. msm_routing_put_port_mixer),
  13184. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13185. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13186. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13187. msm_routing_put_port_mixer),
  13188. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13190. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13191. msm_routing_put_port_mixer),
  13192. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13194. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13195. msm_routing_put_port_mixer),
  13196. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13197. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13198. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13199. msm_routing_put_port_mixer),
  13200. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13201. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13202. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13203. msm_routing_put_port_mixer),
  13204. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13205. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13206. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13207. msm_routing_put_port_mixer),
  13208. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13210. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13211. msm_routing_put_port_mixer),
  13212. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13214. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13215. msm_routing_put_port_mixer),
  13216. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13217. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13218. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13219. msm_routing_put_port_mixer),
  13220. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13221. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13222. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13223. msm_routing_put_port_mixer),
  13224. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13225. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13226. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13227. msm_routing_put_port_mixer),
  13228. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13230. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13231. msm_routing_put_port_mixer),
  13232. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  13233. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13234. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13235. msm_routing_put_port_mixer),
  13236. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  13237. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13238. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13239. msm_routing_put_port_mixer),
  13240. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13242. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13243. msm_routing_put_port_mixer),
  13244. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13246. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13247. msm_routing_put_port_mixer),
  13248. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13250. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13251. msm_routing_put_port_mixer),
  13252. };
  13253. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  13254. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13255. MSM_BACKEND_DAI_AUXPCM_RX,
  13256. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13257. msm_routing_put_port_mixer),
  13258. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13259. MSM_BACKEND_DAI_AUXPCM_RX,
  13260. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13261. msm_routing_put_port_mixer),
  13262. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13263. MSM_BACKEND_DAI_AUXPCM_RX,
  13264. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13265. msm_routing_put_port_mixer),
  13266. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13267. MSM_BACKEND_DAI_AUXPCM_RX,
  13268. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13269. msm_routing_put_port_mixer),
  13270. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13271. MSM_BACKEND_DAI_AUXPCM_RX,
  13272. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  13273. msm_routing_put_port_mixer),
  13274. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13275. MSM_BACKEND_DAI_AUXPCM_RX,
  13276. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13277. msm_routing_put_port_mixer),
  13278. };
  13279. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  13280. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13282. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13283. msm_routing_put_port_mixer),
  13284. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13286. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13287. msm_routing_put_port_mixer),
  13288. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13290. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13291. msm_routing_put_port_mixer),
  13292. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13293. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13294. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13295. msm_routing_put_port_mixer),
  13296. };
  13297. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  13298. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13299. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13300. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13301. msm_routing_put_port_mixer),
  13302. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13303. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13304. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13305. msm_routing_put_port_mixer),
  13306. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13307. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13308. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13309. msm_routing_put_port_mixer),
  13310. };
  13311. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  13312. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13314. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13315. msm_routing_put_port_mixer),
  13316. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13318. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, 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_QUAT_AUXPCM_RX,
  13322. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13323. msm_routing_put_port_mixer),
  13324. };
  13325. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  13326. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13327. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13328. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13329. msm_routing_put_port_mixer),
  13330. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13331. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13332. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13333. msm_routing_put_port_mixer),
  13334. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13336. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13337. msm_routing_put_port_mixer),
  13338. };
  13339. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  13340. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13341. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13342. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13343. msm_routing_put_port_mixer),
  13344. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13345. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13346. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  13347. msm_routing_put_port_mixer),
  13348. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13349. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13350. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13351. msm_routing_put_port_mixer),
  13352. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13353. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13354. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13355. msm_routing_put_port_mixer),
  13356. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13358. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13359. msm_routing_put_port_mixer),
  13360. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13362. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13363. msm_routing_put_port_mixer),
  13364. };
  13365. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  13366. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  13367. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13368. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  13369. msm_routing_put_port_mixer),
  13370. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13371. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13372. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13373. msm_routing_put_port_mixer),
  13374. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  13375. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13376. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  13377. msm_routing_put_port_mixer),
  13378. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  13379. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13380. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  13381. msm_routing_put_port_mixer),
  13382. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  13383. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13384. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  13385. msm_routing_put_port_mixer),
  13386. };
  13387. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  13388. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13389. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13390. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13391. msm_routing_put_port_mixer),
  13392. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13394. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13395. msm_routing_put_port_mixer),
  13396. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13398. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13399. msm_routing_put_port_mixer),
  13400. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13401. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13402. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13403. msm_routing_put_port_mixer),
  13404. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13405. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13406. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13407. msm_routing_put_port_mixer),
  13408. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13409. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13410. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13411. msm_routing_put_port_mixer),
  13412. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13413. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13414. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13415. msm_routing_put_port_mixer),
  13416. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13418. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13419. msm_routing_put_port_mixer),
  13420. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13421. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13422. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13423. msm_routing_put_port_mixer),
  13424. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13425. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13426. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13427. msm_routing_put_port_mixer),
  13428. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13429. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13430. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13431. msm_routing_put_port_mixer),
  13432. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13433. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13434. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13435. msm_routing_put_port_mixer),
  13436. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13437. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13438. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13439. msm_routing_put_port_mixer),
  13440. };
  13441. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  13442. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13444. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13445. msm_routing_put_port_mixer),
  13446. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13448. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13449. msm_routing_put_port_mixer),
  13450. };
  13451. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  13452. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13453. MSM_BACKEND_DAI_AFE_PCM_RX,
  13454. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13455. msm_routing_put_port_mixer),
  13456. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13457. MSM_BACKEND_DAI_AFE_PCM_RX,
  13458. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13459. msm_routing_put_port_mixer),
  13460. };
  13461. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  13462. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13463. MSM_BACKEND_DAI_HDMI_RX,
  13464. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13465. msm_routing_put_port_mixer),
  13466. };
  13467. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  13468. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13469. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13470. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13471. msm_routing_put_port_mixer),
  13472. };
  13473. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  13474. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13475. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13476. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13477. msm_routing_put_port_mixer),
  13478. };
  13479. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  13480. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13481. MSM_BACKEND_DAI_SEC_I2S_RX,
  13482. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13483. msm_routing_put_port_mixer),
  13484. };
  13485. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  13486. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13487. MSM_BACKEND_DAI_MI2S_RX,
  13488. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13489. msm_routing_put_port_mixer),
  13490. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13491. MSM_BACKEND_DAI_MI2S_RX,
  13492. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13493. msm_routing_put_port_mixer),
  13494. };
  13495. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  13496. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13497. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13498. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13499. msm_routing_put_port_mixer),
  13500. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13501. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13502. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13503. msm_routing_put_port_mixer),
  13504. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13505. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13506. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13507. msm_routing_put_port_mixer),
  13508. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13509. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13510. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13511. msm_routing_put_port_mixer),
  13512. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13513. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13514. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13515. msm_routing_put_port_mixer),
  13516. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13517. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13518. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13519. msm_routing_put_port_mixer),
  13520. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13521. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13522. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13523. msm_routing_put_port_mixer),
  13524. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13525. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13526. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13527. msm_routing_put_port_mixer),
  13528. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13529. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13530. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13531. msm_routing_put_port_mixer),
  13532. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13533. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13534. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13535. msm_routing_put_port_mixer),
  13536. };
  13537. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  13538. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_USB_RX,
  13540. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  13541. msm_routing_put_port_mixer),
  13542. };
  13543. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  13544. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13545. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13546. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13547. msm_routing_put_port_mixer),
  13548. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13549. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13550. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13551. msm_routing_put_port_mixer),
  13552. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13553. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13554. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13555. msm_routing_put_port_mixer),
  13556. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13557. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13558. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13559. msm_routing_put_port_mixer),
  13560. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13561. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13562. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13563. msm_routing_put_port_mixer),
  13564. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13565. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13566. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13567. msm_routing_put_port_mixer),
  13568. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13569. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13570. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13571. msm_routing_put_port_mixer),
  13572. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13573. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13574. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13575. msm_routing_put_port_mixer),
  13576. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13577. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13578. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13579. msm_routing_put_port_mixer),
  13580. };
  13581. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  13582. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13583. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13584. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13585. msm_routing_put_port_mixer),
  13586. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13587. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13588. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13589. msm_routing_put_port_mixer),
  13590. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13591. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13592. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13593. msm_routing_put_port_mixer),
  13594. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13595. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13596. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13597. msm_routing_put_port_mixer),
  13598. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13600. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13601. msm_routing_put_port_mixer),
  13602. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13603. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13604. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13605. msm_routing_put_port_mixer),
  13606. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13607. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13608. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13609. msm_routing_put_port_mixer),
  13610. };
  13611. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  13612. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13613. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13614. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13615. msm_routing_get_port_mixer,
  13616. msm_routing_put_port_mixer),
  13617. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13618. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13619. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13620. msm_routing_get_port_mixer,
  13621. msm_routing_put_port_mixer),
  13622. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13623. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13624. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13625. msm_routing_get_port_mixer,
  13626. msm_routing_put_port_mixer),
  13627. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13628. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13629. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13630. msm_routing_get_port_mixer,
  13631. msm_routing_put_port_mixer),
  13632. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13634. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13635. msm_routing_get_port_mixer,
  13636. msm_routing_put_port_mixer),
  13637. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13638. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13639. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13640. msm_routing_get_port_mixer,
  13641. msm_routing_put_port_mixer),
  13642. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13643. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13644. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13645. msm_routing_get_port_mixer,
  13646. msm_routing_put_port_mixer),
  13647. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13648. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13649. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13650. msm_routing_get_port_mixer,
  13651. msm_routing_put_port_mixer),
  13652. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13653. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13654. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13655. msm_routing_get_port_mixer,
  13656. msm_routing_put_port_mixer),
  13657. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13659. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13660. msm_routing_get_port_mixer,
  13661. msm_routing_put_port_mixer),
  13662. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13663. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13664. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13665. msm_routing_get_port_mixer,
  13666. msm_routing_put_port_mixer),
  13667. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13669. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13670. msm_routing_get_port_mixer,
  13671. msm_routing_put_port_mixer),
  13672. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13673. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13674. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13675. msm_routing_get_port_mixer,
  13676. msm_routing_put_port_mixer),
  13677. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13679. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13680. msm_routing_get_port_mixer,
  13681. msm_routing_put_port_mixer),
  13682. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13683. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13684. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13685. msm_routing_get_port_mixer,
  13686. msm_routing_put_port_mixer),
  13687. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13689. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13690. msm_routing_get_port_mixer,
  13691. msm_routing_put_port_mixer),
  13692. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13693. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13694. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13695. msm_routing_get_port_mixer,
  13696. msm_routing_put_port_mixer),
  13697. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13699. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13700. msm_routing_get_port_mixer,
  13701. msm_routing_put_port_mixer),
  13702. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13703. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13704. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13705. msm_routing_get_port_mixer,
  13706. msm_routing_put_port_mixer),
  13707. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13709. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13710. msm_routing_get_port_mixer,
  13711. msm_routing_put_port_mixer),
  13712. };
  13713. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  13714. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13715. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13716. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13717. msm_routing_get_port_mixer,
  13718. msm_routing_put_port_mixer),
  13719. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13721. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13722. msm_routing_get_port_mixer,
  13723. msm_routing_put_port_mixer),
  13724. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13725. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13726. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13727. msm_routing_get_port_mixer,
  13728. msm_routing_put_port_mixer),
  13729. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13730. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13731. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13732. msm_routing_get_port_mixer,
  13733. msm_routing_put_port_mixer),
  13734. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13735. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13736. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13737. msm_routing_get_port_mixer,
  13738. msm_routing_put_port_mixer),
  13739. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13740. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13741. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13742. msm_routing_get_port_mixer,
  13743. msm_routing_put_port_mixer),
  13744. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13745. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13746. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13747. msm_routing_get_port_mixer,
  13748. msm_routing_put_port_mixer),
  13749. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13751. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13752. msm_routing_get_port_mixer,
  13753. msm_routing_put_port_mixer),
  13754. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13755. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13756. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13757. msm_routing_get_port_mixer,
  13758. msm_routing_put_port_mixer),
  13759. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13761. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13762. msm_routing_get_port_mixer,
  13763. msm_routing_put_port_mixer),
  13764. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13765. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13766. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13767. msm_routing_get_port_mixer,
  13768. msm_routing_put_port_mixer),
  13769. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13771. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13772. msm_routing_get_port_mixer,
  13773. msm_routing_put_port_mixer),
  13774. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13775. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13776. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13777. msm_routing_get_port_mixer,
  13778. msm_routing_put_port_mixer),
  13779. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13781. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13782. msm_routing_get_port_mixer,
  13783. msm_routing_put_port_mixer),
  13784. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13785. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13786. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13787. msm_routing_get_port_mixer,
  13788. msm_routing_put_port_mixer),
  13789. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13791. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13792. msm_routing_get_port_mixer,
  13793. msm_routing_put_port_mixer),
  13794. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13795. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13796. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13797. msm_routing_get_port_mixer,
  13798. msm_routing_put_port_mixer),
  13799. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13801. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13802. msm_routing_get_port_mixer,
  13803. msm_routing_put_port_mixer),
  13804. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13806. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13807. msm_routing_get_port_mixer,
  13808. msm_routing_put_port_mixer),
  13809. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13811. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13812. msm_routing_get_port_mixer,
  13813. msm_routing_put_port_mixer),
  13814. };
  13815. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  13816. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13818. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13819. msm_routing_get_port_mixer,
  13820. msm_routing_put_port_mixer),
  13821. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13822. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13823. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13824. msm_routing_get_port_mixer,
  13825. msm_routing_put_port_mixer),
  13826. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13827. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13828. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13829. msm_routing_get_port_mixer,
  13830. msm_routing_put_port_mixer),
  13831. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13833. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13834. msm_routing_get_port_mixer,
  13835. msm_routing_put_port_mixer),
  13836. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13837. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13838. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13839. msm_routing_get_port_mixer,
  13840. msm_routing_put_port_mixer),
  13841. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13842. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13843. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13844. msm_routing_get_port_mixer,
  13845. msm_routing_put_port_mixer),
  13846. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13847. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13848. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13849. msm_routing_get_port_mixer,
  13850. msm_routing_put_port_mixer),
  13851. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13853. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13854. msm_routing_get_port_mixer,
  13855. msm_routing_put_port_mixer),
  13856. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13857. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13858. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13859. msm_routing_get_port_mixer,
  13860. msm_routing_put_port_mixer),
  13861. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13862. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13863. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13864. msm_routing_get_port_mixer,
  13865. msm_routing_put_port_mixer),
  13866. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13867. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13868. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13869. msm_routing_get_port_mixer,
  13870. msm_routing_put_port_mixer),
  13871. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13873. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13874. msm_routing_get_port_mixer,
  13875. msm_routing_put_port_mixer),
  13876. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13877. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13878. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13879. msm_routing_get_port_mixer,
  13880. msm_routing_put_port_mixer),
  13881. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13882. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13883. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13884. msm_routing_get_port_mixer,
  13885. msm_routing_put_port_mixer),
  13886. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13887. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13888. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13889. msm_routing_get_port_mixer,
  13890. msm_routing_put_port_mixer),
  13891. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13893. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13894. msm_routing_get_port_mixer,
  13895. msm_routing_put_port_mixer),
  13896. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13897. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13898. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13899. msm_routing_get_port_mixer,
  13900. msm_routing_put_port_mixer),
  13901. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13903. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13904. msm_routing_get_port_mixer,
  13905. msm_routing_put_port_mixer),
  13906. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13907. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13908. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13909. msm_routing_get_port_mixer,
  13910. msm_routing_put_port_mixer),
  13911. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13913. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13914. msm_routing_get_port_mixer,
  13915. msm_routing_put_port_mixer),
  13916. };
  13917. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  13918. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13919. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13920. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13921. msm_routing_get_port_mixer,
  13922. msm_routing_put_port_mixer),
  13923. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13925. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13926. msm_routing_get_port_mixer,
  13927. msm_routing_put_port_mixer),
  13928. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13929. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13930. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13931. msm_routing_get_port_mixer,
  13932. msm_routing_put_port_mixer),
  13933. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13934. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13935. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13936. msm_routing_get_port_mixer,
  13937. msm_routing_put_port_mixer),
  13938. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13939. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13940. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13941. msm_routing_get_port_mixer,
  13942. msm_routing_put_port_mixer),
  13943. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13944. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13945. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13946. msm_routing_get_port_mixer,
  13947. msm_routing_put_port_mixer),
  13948. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13949. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13950. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13951. msm_routing_get_port_mixer,
  13952. msm_routing_put_port_mixer),
  13953. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13954. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13955. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13956. msm_routing_get_port_mixer,
  13957. msm_routing_put_port_mixer),
  13958. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13959. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13960. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13961. msm_routing_get_port_mixer,
  13962. msm_routing_put_port_mixer),
  13963. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13964. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13965. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13966. msm_routing_get_port_mixer,
  13967. msm_routing_put_port_mixer),
  13968. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13969. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13970. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13971. msm_routing_get_port_mixer,
  13972. msm_routing_put_port_mixer),
  13973. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13974. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13975. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13976. msm_routing_get_port_mixer,
  13977. msm_routing_put_port_mixer),
  13978. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13979. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13980. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13981. msm_routing_get_port_mixer,
  13982. msm_routing_put_port_mixer),
  13983. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13985. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13986. msm_routing_get_port_mixer,
  13987. msm_routing_put_port_mixer),
  13988. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13989. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13990. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13991. msm_routing_get_port_mixer,
  13992. msm_routing_put_port_mixer),
  13993. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13995. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13996. msm_routing_get_port_mixer,
  13997. msm_routing_put_port_mixer),
  13998. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14000. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14001. msm_routing_get_port_mixer,
  14002. msm_routing_put_port_mixer),
  14003. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14004. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14005. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14006. msm_routing_get_port_mixer,
  14007. msm_routing_put_port_mixer),
  14008. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14009. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14010. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14011. msm_routing_get_port_mixer,
  14012. msm_routing_put_port_mixer),
  14013. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14015. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14016. msm_routing_get_port_mixer,
  14017. msm_routing_put_port_mixer),
  14018. };
  14019. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  14020. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14021. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14022. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14023. msm_routing_get_port_mixer,
  14024. msm_routing_put_port_mixer),
  14025. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14027. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14028. msm_routing_get_port_mixer,
  14029. msm_routing_put_port_mixer),
  14030. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14031. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14032. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14033. msm_routing_get_port_mixer,
  14034. msm_routing_put_port_mixer),
  14035. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14036. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14037. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14038. msm_routing_get_port_mixer,
  14039. msm_routing_put_port_mixer),
  14040. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14041. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14042. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14043. msm_routing_get_port_mixer,
  14044. msm_routing_put_port_mixer),
  14045. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14047. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14048. msm_routing_get_port_mixer,
  14049. msm_routing_put_port_mixer),
  14050. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14051. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14052. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14053. msm_routing_get_port_mixer,
  14054. msm_routing_put_port_mixer),
  14055. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14056. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14057. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14058. msm_routing_get_port_mixer,
  14059. msm_routing_put_port_mixer),
  14060. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14061. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14062. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14063. msm_routing_get_port_mixer,
  14064. msm_routing_put_port_mixer),
  14065. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14066. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14067. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14068. msm_routing_get_port_mixer,
  14069. msm_routing_put_port_mixer),
  14070. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14071. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14072. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14073. msm_routing_get_port_mixer,
  14074. msm_routing_put_port_mixer),
  14075. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14076. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14077. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14078. msm_routing_get_port_mixer,
  14079. msm_routing_put_port_mixer),
  14080. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14081. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14082. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14083. msm_routing_get_port_mixer,
  14084. msm_routing_put_port_mixer),
  14085. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14086. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14087. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14088. msm_routing_get_port_mixer,
  14089. msm_routing_put_port_mixer),
  14090. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14091. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14092. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14093. msm_routing_get_port_mixer,
  14094. msm_routing_put_port_mixer),
  14095. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14097. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14098. msm_routing_get_port_mixer,
  14099. msm_routing_put_port_mixer),
  14100. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14101. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14102. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14103. msm_routing_get_port_mixer,
  14104. msm_routing_put_port_mixer),
  14105. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14107. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14108. msm_routing_get_port_mixer,
  14109. msm_routing_put_port_mixer),
  14110. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14111. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14112. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14113. msm_routing_get_port_mixer,
  14114. msm_routing_put_port_mixer),
  14115. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14116. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14117. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14118. msm_routing_get_port_mixer,
  14119. msm_routing_put_port_mixer),
  14120. };
  14121. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  14122. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14123. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14124. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14125. msm_routing_get_port_mixer,
  14126. msm_routing_put_port_mixer),
  14127. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14128. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14129. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14130. msm_routing_get_port_mixer,
  14131. msm_routing_put_port_mixer),
  14132. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14133. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14134. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14135. msm_routing_get_port_mixer,
  14136. msm_routing_put_port_mixer),
  14137. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14139. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14140. msm_routing_get_port_mixer,
  14141. msm_routing_put_port_mixer),
  14142. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14143. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14144. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14145. msm_routing_get_port_mixer,
  14146. msm_routing_put_port_mixer),
  14147. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14148. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14149. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14150. msm_routing_get_port_mixer,
  14151. msm_routing_put_port_mixer),
  14152. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14153. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14154. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14155. msm_routing_get_port_mixer,
  14156. msm_routing_put_port_mixer),
  14157. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14159. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14160. msm_routing_get_port_mixer,
  14161. msm_routing_put_port_mixer),
  14162. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14163. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14164. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14165. msm_routing_get_port_mixer,
  14166. msm_routing_put_port_mixer),
  14167. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14169. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14170. msm_routing_get_port_mixer,
  14171. msm_routing_put_port_mixer),
  14172. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14173. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14174. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14175. msm_routing_get_port_mixer,
  14176. msm_routing_put_port_mixer),
  14177. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14178. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14179. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14180. msm_routing_get_port_mixer,
  14181. msm_routing_put_port_mixer),
  14182. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14183. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14184. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14185. msm_routing_get_port_mixer,
  14186. msm_routing_put_port_mixer),
  14187. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14189. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14190. msm_routing_get_port_mixer,
  14191. msm_routing_put_port_mixer),
  14192. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14193. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14194. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14195. msm_routing_get_port_mixer,
  14196. msm_routing_put_port_mixer),
  14197. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14199. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14200. msm_routing_get_port_mixer,
  14201. msm_routing_put_port_mixer),
  14202. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14203. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14204. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14205. msm_routing_get_port_mixer,
  14206. msm_routing_put_port_mixer),
  14207. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14208. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14209. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14210. msm_routing_get_port_mixer,
  14211. msm_routing_put_port_mixer),
  14212. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14213. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14214. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14215. msm_routing_get_port_mixer,
  14216. msm_routing_put_port_mixer),
  14217. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14219. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14220. msm_routing_get_port_mixer,
  14221. msm_routing_put_port_mixer),
  14222. };
  14223. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  14224. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14225. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14226. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14227. msm_routing_get_port_mixer,
  14228. msm_routing_put_port_mixer),
  14229. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14231. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14232. msm_routing_get_port_mixer,
  14233. msm_routing_put_port_mixer),
  14234. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14235. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14236. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14237. msm_routing_get_port_mixer,
  14238. msm_routing_put_port_mixer),
  14239. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14240. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14241. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14242. msm_routing_get_port_mixer,
  14243. msm_routing_put_port_mixer),
  14244. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14245. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14246. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14247. msm_routing_get_port_mixer,
  14248. msm_routing_put_port_mixer),
  14249. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14251. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14252. msm_routing_get_port_mixer,
  14253. msm_routing_put_port_mixer),
  14254. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14255. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14256. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14257. msm_routing_get_port_mixer,
  14258. msm_routing_put_port_mixer),
  14259. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14260. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14261. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14262. msm_routing_get_port_mixer,
  14263. msm_routing_put_port_mixer),
  14264. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14265. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14266. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14267. msm_routing_get_port_mixer,
  14268. msm_routing_put_port_mixer),
  14269. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14271. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14272. msm_routing_get_port_mixer,
  14273. msm_routing_put_port_mixer),
  14274. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14275. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14276. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14277. msm_routing_get_port_mixer,
  14278. msm_routing_put_port_mixer),
  14279. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14280. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14281. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14282. msm_routing_get_port_mixer,
  14283. msm_routing_put_port_mixer),
  14284. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14285. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14286. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14287. msm_routing_get_port_mixer,
  14288. msm_routing_put_port_mixer),
  14289. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14290. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14291. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14292. msm_routing_get_port_mixer,
  14293. msm_routing_put_port_mixer),
  14294. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14295. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14296. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14297. msm_routing_get_port_mixer,
  14298. msm_routing_put_port_mixer),
  14299. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14300. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14301. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14302. msm_routing_get_port_mixer,
  14303. msm_routing_put_port_mixer),
  14304. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14305. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14306. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14307. msm_routing_get_port_mixer,
  14308. msm_routing_put_port_mixer),
  14309. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14311. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14312. msm_routing_get_port_mixer,
  14313. msm_routing_put_port_mixer),
  14314. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14315. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14316. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14317. msm_routing_get_port_mixer,
  14318. msm_routing_put_port_mixer),
  14319. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14320. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14321. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14322. msm_routing_get_port_mixer,
  14323. msm_routing_put_port_mixer),
  14324. };
  14325. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  14326. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14327. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14328. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14329. msm_routing_get_port_mixer,
  14330. msm_routing_put_port_mixer),
  14331. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14333. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14334. msm_routing_get_port_mixer,
  14335. msm_routing_put_port_mixer),
  14336. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14337. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14338. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14339. msm_routing_get_port_mixer,
  14340. msm_routing_put_port_mixer),
  14341. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14342. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14343. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14344. msm_routing_get_port_mixer,
  14345. msm_routing_put_port_mixer),
  14346. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14347. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14348. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14349. msm_routing_get_port_mixer,
  14350. msm_routing_put_port_mixer),
  14351. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14352. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14353. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14354. msm_routing_get_port_mixer,
  14355. msm_routing_put_port_mixer),
  14356. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14357. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14358. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14359. msm_routing_get_port_mixer,
  14360. msm_routing_put_port_mixer),
  14361. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14363. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14364. msm_routing_get_port_mixer,
  14365. msm_routing_put_port_mixer),
  14366. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14367. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14368. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14369. msm_routing_get_port_mixer,
  14370. msm_routing_put_port_mixer),
  14371. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14373. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14374. msm_routing_get_port_mixer,
  14375. msm_routing_put_port_mixer),
  14376. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14377. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14378. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14379. msm_routing_get_port_mixer,
  14380. msm_routing_put_port_mixer),
  14381. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14382. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14383. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14384. msm_routing_get_port_mixer,
  14385. msm_routing_put_port_mixer),
  14386. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14387. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14388. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14389. msm_routing_get_port_mixer,
  14390. msm_routing_put_port_mixer),
  14391. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14392. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14393. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14394. msm_routing_get_port_mixer,
  14395. msm_routing_put_port_mixer),
  14396. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14397. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14398. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14399. msm_routing_get_port_mixer,
  14400. msm_routing_put_port_mixer),
  14401. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14403. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14404. msm_routing_get_port_mixer,
  14405. msm_routing_put_port_mixer),
  14406. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14407. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14408. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14409. msm_routing_get_port_mixer,
  14410. msm_routing_put_port_mixer),
  14411. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14413. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14414. msm_routing_get_port_mixer,
  14415. msm_routing_put_port_mixer),
  14416. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14417. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14418. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14419. msm_routing_get_port_mixer,
  14420. msm_routing_put_port_mixer),
  14421. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14422. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14423. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14424. msm_routing_get_port_mixer,
  14425. msm_routing_put_port_mixer),
  14426. };
  14427. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  14428. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  14429. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  14430. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  14431. msm_routing_get_port_mixer,
  14432. msm_routing_put_port_mixer),
  14433. };
  14434. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  14435. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14437. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14438. msm_routing_get_port_mixer,
  14439. msm_routing_put_port_mixer),
  14440. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14441. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14442. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14443. msm_routing_get_port_mixer,
  14444. msm_routing_put_port_mixer),
  14445. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14447. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14448. msm_routing_get_port_mixer,
  14449. msm_routing_put_port_mixer),
  14450. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14451. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14452. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14453. msm_routing_get_port_mixer,
  14454. msm_routing_put_port_mixer),
  14455. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14456. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14457. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14458. msm_routing_get_port_mixer,
  14459. msm_routing_put_port_mixer),
  14460. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14461. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14462. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14463. msm_routing_get_port_mixer,
  14464. msm_routing_put_port_mixer),
  14465. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14467. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14468. msm_routing_get_port_mixer,
  14469. msm_routing_put_port_mixer),
  14470. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14471. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14472. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14473. msm_routing_get_port_mixer,
  14474. msm_routing_put_port_mixer),
  14475. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14476. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14477. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14478. msm_routing_get_port_mixer,
  14479. msm_routing_put_port_mixer),
  14480. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14481. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14482. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14483. msm_routing_get_port_mixer,
  14484. msm_routing_put_port_mixer),
  14485. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14487. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14488. msm_routing_get_port_mixer,
  14489. msm_routing_put_port_mixer),
  14490. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14491. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14492. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14493. msm_routing_get_port_mixer,
  14494. msm_routing_put_port_mixer),
  14495. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14496. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14497. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14498. msm_routing_get_port_mixer,
  14499. msm_routing_put_port_mixer),
  14500. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14501. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14502. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14503. msm_routing_get_port_mixer,
  14504. msm_routing_put_port_mixer),
  14505. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14507. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14508. msm_routing_get_port_mixer,
  14509. msm_routing_put_port_mixer),
  14510. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14511. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14512. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14513. msm_routing_get_port_mixer,
  14514. msm_routing_put_port_mixer),
  14515. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14516. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14517. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14518. msm_routing_get_port_mixer,
  14519. msm_routing_put_port_mixer),
  14520. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14521. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14522. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14523. msm_routing_get_port_mixer,
  14524. msm_routing_put_port_mixer),
  14525. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14526. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14527. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14528. msm_routing_get_port_mixer,
  14529. msm_routing_put_port_mixer),
  14530. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14531. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14532. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14533. msm_routing_get_port_mixer,
  14534. msm_routing_put_port_mixer),
  14535. };
  14536. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  14537. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14538. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14539. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14540. msm_routing_get_port_mixer,
  14541. msm_routing_put_port_mixer),
  14542. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14543. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14544. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14545. msm_routing_get_port_mixer,
  14546. msm_routing_put_port_mixer),
  14547. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14549. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14550. msm_routing_get_port_mixer,
  14551. msm_routing_put_port_mixer),
  14552. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14553. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14554. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14555. msm_routing_get_port_mixer,
  14556. msm_routing_put_port_mixer),
  14557. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14558. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14559. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14560. msm_routing_get_port_mixer,
  14561. msm_routing_put_port_mixer),
  14562. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14563. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14564. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14565. msm_routing_get_port_mixer,
  14566. msm_routing_put_port_mixer),
  14567. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14568. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14569. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14570. msm_routing_get_port_mixer,
  14571. msm_routing_put_port_mixer),
  14572. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14573. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14574. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14575. msm_routing_get_port_mixer,
  14576. msm_routing_put_port_mixer),
  14577. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14578. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14579. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14580. msm_routing_get_port_mixer,
  14581. msm_routing_put_port_mixer),
  14582. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14583. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14584. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14585. msm_routing_get_port_mixer,
  14586. msm_routing_put_port_mixer),
  14587. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14588. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14589. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14590. msm_routing_get_port_mixer,
  14591. msm_routing_put_port_mixer),
  14592. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14593. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14594. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14595. msm_routing_get_port_mixer,
  14596. msm_routing_put_port_mixer),
  14597. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14598. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14599. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14600. msm_routing_get_port_mixer,
  14601. msm_routing_put_port_mixer),
  14602. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14603. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14604. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14605. msm_routing_get_port_mixer,
  14606. msm_routing_put_port_mixer),
  14607. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14609. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14610. msm_routing_get_port_mixer,
  14611. msm_routing_put_port_mixer),
  14612. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14613. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14614. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14615. msm_routing_get_port_mixer,
  14616. msm_routing_put_port_mixer),
  14617. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14619. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14620. msm_routing_get_port_mixer,
  14621. msm_routing_put_port_mixer),
  14622. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14623. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14624. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14625. msm_routing_get_port_mixer,
  14626. msm_routing_put_port_mixer),
  14627. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14628. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14629. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14630. msm_routing_get_port_mixer,
  14631. msm_routing_put_port_mixer),
  14632. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14633. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14634. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14635. msm_routing_get_port_mixer,
  14636. msm_routing_put_port_mixer),
  14637. };
  14638. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  14639. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14641. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14642. msm_routing_get_port_mixer,
  14643. msm_routing_put_port_mixer),
  14644. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14645. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14646. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14647. msm_routing_get_port_mixer,
  14648. msm_routing_put_port_mixer),
  14649. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14650. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14651. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14652. msm_routing_get_port_mixer,
  14653. msm_routing_put_port_mixer),
  14654. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14655. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14656. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14657. msm_routing_get_port_mixer,
  14658. msm_routing_put_port_mixer),
  14659. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14660. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14661. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14662. msm_routing_get_port_mixer,
  14663. msm_routing_put_port_mixer),
  14664. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14665. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14666. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14667. msm_routing_get_port_mixer,
  14668. msm_routing_put_port_mixer),
  14669. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14671. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14672. msm_routing_get_port_mixer,
  14673. msm_routing_put_port_mixer),
  14674. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14675. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14676. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14677. msm_routing_get_port_mixer,
  14678. msm_routing_put_port_mixer),
  14679. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14680. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14681. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14682. msm_routing_get_port_mixer,
  14683. msm_routing_put_port_mixer),
  14684. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14685. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14686. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14687. msm_routing_get_port_mixer,
  14688. msm_routing_put_port_mixer),
  14689. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14690. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14691. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14692. msm_routing_get_port_mixer,
  14693. msm_routing_put_port_mixer),
  14694. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14695. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14696. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14697. msm_routing_get_port_mixer,
  14698. msm_routing_put_port_mixer),
  14699. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14700. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14701. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14702. msm_routing_get_port_mixer,
  14703. msm_routing_put_port_mixer),
  14704. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14705. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14706. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14707. msm_routing_get_port_mixer,
  14708. msm_routing_put_port_mixer),
  14709. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14710. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14711. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14712. msm_routing_get_port_mixer,
  14713. msm_routing_put_port_mixer),
  14714. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14715. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14716. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14717. msm_routing_get_port_mixer,
  14718. msm_routing_put_port_mixer),
  14719. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14720. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14721. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14722. msm_routing_get_port_mixer,
  14723. msm_routing_put_port_mixer),
  14724. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14725. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14726. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14727. msm_routing_get_port_mixer,
  14728. msm_routing_put_port_mixer),
  14729. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14731. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14732. msm_routing_get_port_mixer,
  14733. msm_routing_put_port_mixer),
  14734. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14735. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14736. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14737. msm_routing_get_port_mixer,
  14738. msm_routing_put_port_mixer),
  14739. };
  14740. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  14741. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14742. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14743. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14744. msm_routing_get_port_mixer,
  14745. msm_routing_put_port_mixer),
  14746. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14747. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14748. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14749. msm_routing_get_port_mixer,
  14750. msm_routing_put_port_mixer),
  14751. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14752. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14753. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14754. msm_routing_get_port_mixer,
  14755. msm_routing_put_port_mixer),
  14756. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14757. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14758. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14759. msm_routing_get_port_mixer,
  14760. msm_routing_put_port_mixer),
  14761. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14763. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14764. msm_routing_get_port_mixer,
  14765. msm_routing_put_port_mixer),
  14766. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14767. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14768. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14769. msm_routing_get_port_mixer,
  14770. msm_routing_put_port_mixer),
  14771. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14773. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14774. msm_routing_get_port_mixer,
  14775. msm_routing_put_port_mixer),
  14776. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14777. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14778. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14779. msm_routing_get_port_mixer,
  14780. msm_routing_put_port_mixer),
  14781. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14782. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14783. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14784. msm_routing_get_port_mixer,
  14785. msm_routing_put_port_mixer),
  14786. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14787. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14788. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14789. msm_routing_get_port_mixer,
  14790. msm_routing_put_port_mixer),
  14791. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14793. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14794. msm_routing_get_port_mixer,
  14795. msm_routing_put_port_mixer),
  14796. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14797. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14798. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14799. msm_routing_get_port_mixer,
  14800. msm_routing_put_port_mixer),
  14801. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14803. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14804. msm_routing_get_port_mixer,
  14805. msm_routing_put_port_mixer),
  14806. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14807. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14808. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14809. msm_routing_get_port_mixer,
  14810. msm_routing_put_port_mixer),
  14811. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14812. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14813. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14814. msm_routing_get_port_mixer,
  14815. msm_routing_put_port_mixer),
  14816. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14817. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14818. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14819. msm_routing_get_port_mixer,
  14820. msm_routing_put_port_mixer),
  14821. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14822. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14823. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14824. msm_routing_get_port_mixer,
  14825. msm_routing_put_port_mixer),
  14826. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14827. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14828. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14829. msm_routing_get_port_mixer,
  14830. msm_routing_put_port_mixer),
  14831. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14833. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14834. msm_routing_get_port_mixer,
  14835. msm_routing_put_port_mixer),
  14836. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14837. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14838. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14839. msm_routing_get_port_mixer,
  14840. msm_routing_put_port_mixer),
  14841. };
  14842. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  14843. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14844. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14845. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14846. msm_routing_get_port_mixer,
  14847. msm_routing_put_port_mixer),
  14848. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14849. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14850. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14851. msm_routing_get_port_mixer,
  14852. msm_routing_put_port_mixer),
  14853. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14855. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14856. msm_routing_get_port_mixer,
  14857. msm_routing_put_port_mixer),
  14858. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14859. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14860. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14861. msm_routing_get_port_mixer,
  14862. msm_routing_put_port_mixer),
  14863. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14864. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14865. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14866. msm_routing_get_port_mixer,
  14867. msm_routing_put_port_mixer),
  14868. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14869. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14870. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14871. msm_routing_get_port_mixer,
  14872. msm_routing_put_port_mixer),
  14873. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14875. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14876. msm_routing_get_port_mixer,
  14877. msm_routing_put_port_mixer),
  14878. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14879. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14880. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14881. msm_routing_get_port_mixer,
  14882. msm_routing_put_port_mixer),
  14883. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14884. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14885. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14886. msm_routing_get_port_mixer,
  14887. msm_routing_put_port_mixer),
  14888. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14889. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14890. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14891. msm_routing_get_port_mixer,
  14892. msm_routing_put_port_mixer),
  14893. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14895. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14896. msm_routing_get_port_mixer,
  14897. msm_routing_put_port_mixer),
  14898. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14899. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14900. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14901. msm_routing_get_port_mixer,
  14902. msm_routing_put_port_mixer),
  14903. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14904. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14905. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14906. msm_routing_get_port_mixer,
  14907. msm_routing_put_port_mixer),
  14908. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14909. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14910. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14911. msm_routing_get_port_mixer,
  14912. msm_routing_put_port_mixer),
  14913. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14914. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14915. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14916. msm_routing_get_port_mixer,
  14917. msm_routing_put_port_mixer),
  14918. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14919. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14920. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14921. msm_routing_get_port_mixer,
  14922. msm_routing_put_port_mixer),
  14923. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14924. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14925. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14926. msm_routing_get_port_mixer,
  14927. msm_routing_put_port_mixer),
  14928. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14929. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14930. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14931. msm_routing_get_port_mixer,
  14932. msm_routing_put_port_mixer),
  14933. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14934. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14935. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14936. msm_routing_get_port_mixer,
  14937. msm_routing_put_port_mixer),
  14938. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14939. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14940. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14941. msm_routing_get_port_mixer,
  14942. msm_routing_put_port_mixer),
  14943. };
  14944. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  14945. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14946. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14947. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14948. msm_routing_get_port_mixer,
  14949. msm_routing_put_port_mixer),
  14950. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14951. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14952. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14953. msm_routing_get_port_mixer,
  14954. msm_routing_put_port_mixer),
  14955. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14957. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14958. msm_routing_get_port_mixer,
  14959. msm_routing_put_port_mixer),
  14960. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14961. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14962. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14963. msm_routing_get_port_mixer,
  14964. msm_routing_put_port_mixer),
  14965. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14966. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14967. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14968. msm_routing_get_port_mixer,
  14969. msm_routing_put_port_mixer),
  14970. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14971. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14972. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14973. msm_routing_get_port_mixer,
  14974. msm_routing_put_port_mixer),
  14975. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14976. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14977. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14978. msm_routing_get_port_mixer,
  14979. msm_routing_put_port_mixer),
  14980. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14981. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14982. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14983. msm_routing_get_port_mixer,
  14984. msm_routing_put_port_mixer),
  14985. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14986. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14987. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14988. msm_routing_get_port_mixer,
  14989. msm_routing_put_port_mixer),
  14990. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14991. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14992. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14993. msm_routing_get_port_mixer,
  14994. msm_routing_put_port_mixer),
  14995. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14997. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14998. msm_routing_get_port_mixer,
  14999. msm_routing_put_port_mixer),
  15000. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15001. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15002. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15003. msm_routing_get_port_mixer,
  15004. msm_routing_put_port_mixer),
  15005. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15006. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15007. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15008. msm_routing_get_port_mixer,
  15009. msm_routing_put_port_mixer),
  15010. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15011. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15012. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15013. msm_routing_get_port_mixer,
  15014. msm_routing_put_port_mixer),
  15015. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15016. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15017. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15018. msm_routing_get_port_mixer,
  15019. msm_routing_put_port_mixer),
  15020. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15021. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15022. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15023. msm_routing_get_port_mixer,
  15024. msm_routing_put_port_mixer),
  15025. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15027. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15028. msm_routing_get_port_mixer,
  15029. msm_routing_put_port_mixer),
  15030. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15031. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15032. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15033. msm_routing_get_port_mixer,
  15034. msm_routing_put_port_mixer),
  15035. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15037. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15038. msm_routing_get_port_mixer,
  15039. msm_routing_put_port_mixer),
  15040. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15041. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15042. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15043. msm_routing_get_port_mixer,
  15044. msm_routing_put_port_mixer),
  15045. };
  15046. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  15047. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15049. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15050. msm_routing_get_port_mixer,
  15051. msm_routing_put_port_mixer),
  15052. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15053. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15054. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15055. msm_routing_get_port_mixer,
  15056. msm_routing_put_port_mixer),
  15057. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15058. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15059. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15060. msm_routing_get_port_mixer,
  15061. msm_routing_put_port_mixer),
  15062. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15063. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15064. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15065. msm_routing_get_port_mixer,
  15066. msm_routing_put_port_mixer),
  15067. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15068. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15069. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15070. msm_routing_get_port_mixer,
  15071. msm_routing_put_port_mixer),
  15072. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15073. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15074. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15075. msm_routing_get_port_mixer,
  15076. msm_routing_put_port_mixer),
  15077. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15078. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15079. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15080. msm_routing_get_port_mixer,
  15081. msm_routing_put_port_mixer),
  15082. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15083. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15084. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15085. msm_routing_get_port_mixer,
  15086. msm_routing_put_port_mixer),
  15087. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15089. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15090. msm_routing_get_port_mixer,
  15091. msm_routing_put_port_mixer),
  15092. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15093. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15094. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15095. msm_routing_get_port_mixer,
  15096. msm_routing_put_port_mixer),
  15097. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15098. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15099. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15100. msm_routing_get_port_mixer,
  15101. msm_routing_put_port_mixer),
  15102. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15103. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15104. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15105. msm_routing_get_port_mixer,
  15106. msm_routing_put_port_mixer),
  15107. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15108. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15109. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15110. msm_routing_get_port_mixer,
  15111. msm_routing_put_port_mixer),
  15112. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15113. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15114. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15115. msm_routing_get_port_mixer,
  15116. msm_routing_put_port_mixer),
  15117. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15118. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15119. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15120. msm_routing_get_port_mixer,
  15121. msm_routing_put_port_mixer),
  15122. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15123. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15124. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15125. msm_routing_get_port_mixer,
  15126. msm_routing_put_port_mixer),
  15127. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15129. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15130. msm_routing_get_port_mixer,
  15131. msm_routing_put_port_mixer),
  15132. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15133. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15134. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15135. msm_routing_get_port_mixer,
  15136. msm_routing_put_port_mixer),
  15137. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15138. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15139. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15140. msm_routing_get_port_mixer,
  15141. msm_routing_put_port_mixer),
  15142. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15143. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15144. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15145. msm_routing_get_port_mixer,
  15146. msm_routing_put_port_mixer),
  15147. };
  15148. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  15149. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15150. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15151. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15152. msm_routing_get_port_mixer,
  15153. msm_routing_put_port_mixer),
  15154. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15155. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15156. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15157. msm_routing_get_port_mixer,
  15158. msm_routing_put_port_mixer),
  15159. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15161. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15162. msm_routing_get_port_mixer,
  15163. msm_routing_put_port_mixer),
  15164. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15165. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15166. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15167. msm_routing_get_port_mixer,
  15168. msm_routing_put_port_mixer),
  15169. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15170. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15171. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15172. msm_routing_get_port_mixer,
  15173. msm_routing_put_port_mixer),
  15174. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15175. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15176. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15177. msm_routing_get_port_mixer,
  15178. msm_routing_put_port_mixer),
  15179. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15180. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15181. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15182. msm_routing_get_port_mixer,
  15183. msm_routing_put_port_mixer),
  15184. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15185. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15186. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15187. msm_routing_get_port_mixer,
  15188. msm_routing_put_port_mixer),
  15189. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15190. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15191. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15192. msm_routing_get_port_mixer,
  15193. msm_routing_put_port_mixer),
  15194. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15195. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15196. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15197. msm_routing_get_port_mixer,
  15198. msm_routing_put_port_mixer),
  15199. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15200. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15201. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15202. msm_routing_get_port_mixer,
  15203. msm_routing_put_port_mixer),
  15204. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15205. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15206. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15207. msm_routing_get_port_mixer,
  15208. msm_routing_put_port_mixer),
  15209. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15210. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15211. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15212. msm_routing_get_port_mixer,
  15213. msm_routing_put_port_mixer),
  15214. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15215. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15216. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15217. msm_routing_get_port_mixer,
  15218. msm_routing_put_port_mixer),
  15219. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15220. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15221. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15222. msm_routing_get_port_mixer,
  15223. msm_routing_put_port_mixer),
  15224. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15225. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15226. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15227. msm_routing_get_port_mixer,
  15228. msm_routing_put_port_mixer),
  15229. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15230. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15231. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15232. msm_routing_get_port_mixer,
  15233. msm_routing_put_port_mixer),
  15234. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15235. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15236. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15237. msm_routing_get_port_mixer,
  15238. msm_routing_put_port_mixer),
  15239. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15240. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15241. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15242. msm_routing_get_port_mixer,
  15243. msm_routing_put_port_mixer),
  15244. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15246. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15247. msm_routing_get_port_mixer,
  15248. msm_routing_put_port_mixer),
  15249. };
  15250. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  15251. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15252. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15253. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15254. msm_routing_get_port_mixer,
  15255. msm_routing_put_port_mixer),
  15256. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15258. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15259. msm_routing_get_port_mixer,
  15260. msm_routing_put_port_mixer),
  15261. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15262. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15263. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15264. msm_routing_get_port_mixer,
  15265. msm_routing_put_port_mixer),
  15266. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15267. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15268. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15269. msm_routing_get_port_mixer,
  15270. msm_routing_put_port_mixer),
  15271. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15272. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15273. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15274. msm_routing_get_port_mixer,
  15275. msm_routing_put_port_mixer),
  15276. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15277. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15278. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15279. msm_routing_get_port_mixer,
  15280. msm_routing_put_port_mixer),
  15281. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15282. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15283. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15284. msm_routing_get_port_mixer,
  15285. msm_routing_put_port_mixer),
  15286. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15287. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15288. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15289. msm_routing_get_port_mixer,
  15290. msm_routing_put_port_mixer),
  15291. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15292. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15293. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15294. msm_routing_get_port_mixer,
  15295. msm_routing_put_port_mixer),
  15296. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15297. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15298. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15299. msm_routing_get_port_mixer,
  15300. msm_routing_put_port_mixer),
  15301. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15302. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15303. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15304. msm_routing_get_port_mixer,
  15305. msm_routing_put_port_mixer),
  15306. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15307. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15308. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15309. msm_routing_get_port_mixer,
  15310. msm_routing_put_port_mixer),
  15311. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15313. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15314. msm_routing_get_port_mixer,
  15315. msm_routing_put_port_mixer),
  15316. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15317. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15318. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15319. msm_routing_get_port_mixer,
  15320. msm_routing_put_port_mixer),
  15321. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15322. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15323. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15324. msm_routing_get_port_mixer,
  15325. msm_routing_put_port_mixer),
  15326. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15327. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15328. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15329. msm_routing_get_port_mixer,
  15330. msm_routing_put_port_mixer),
  15331. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15332. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15333. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15334. msm_routing_get_port_mixer,
  15335. msm_routing_put_port_mixer),
  15336. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15337. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15338. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15339. msm_routing_get_port_mixer,
  15340. msm_routing_put_port_mixer),
  15341. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15342. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15343. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15344. msm_routing_get_port_mixer,
  15345. msm_routing_put_port_mixer),
  15346. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15347. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15348. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15349. msm_routing_get_port_mixer,
  15350. msm_routing_put_port_mixer),
  15351. };
  15352. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  15353. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15354. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15355. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15356. msm_routing_get_port_mixer,
  15357. msm_routing_put_port_mixer),
  15358. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15360. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15361. msm_routing_get_port_mixer,
  15362. msm_routing_put_port_mixer),
  15363. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15365. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15366. msm_routing_get_port_mixer,
  15367. msm_routing_put_port_mixer),
  15368. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15369. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15370. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15371. msm_routing_get_port_mixer,
  15372. msm_routing_put_port_mixer),
  15373. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15374. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15375. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15376. msm_routing_get_port_mixer,
  15377. msm_routing_put_port_mixer),
  15378. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15379. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15380. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15381. msm_routing_get_port_mixer,
  15382. msm_routing_put_port_mixer),
  15383. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15384. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15385. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15386. msm_routing_get_port_mixer,
  15387. msm_routing_put_port_mixer),
  15388. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15389. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15390. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15391. msm_routing_get_port_mixer,
  15392. msm_routing_put_port_mixer),
  15393. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15394. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15395. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15396. msm_routing_get_port_mixer,
  15397. msm_routing_put_port_mixer),
  15398. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15400. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15401. msm_routing_get_port_mixer,
  15402. msm_routing_put_port_mixer),
  15403. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15404. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15405. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15406. msm_routing_get_port_mixer,
  15407. msm_routing_put_port_mixer),
  15408. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15409. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15410. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15411. msm_routing_get_port_mixer,
  15412. msm_routing_put_port_mixer),
  15413. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15414. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15415. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15416. msm_routing_get_port_mixer,
  15417. msm_routing_put_port_mixer),
  15418. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15419. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15420. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15421. msm_routing_get_port_mixer,
  15422. msm_routing_put_port_mixer),
  15423. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15424. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15425. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15426. msm_routing_get_port_mixer,
  15427. msm_routing_put_port_mixer),
  15428. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15430. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15431. msm_routing_get_port_mixer,
  15432. msm_routing_put_port_mixer),
  15433. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15434. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15435. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15436. msm_routing_get_port_mixer,
  15437. msm_routing_put_port_mixer),
  15438. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15439. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15440. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15441. msm_routing_get_port_mixer,
  15442. msm_routing_put_port_mixer),
  15443. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15444. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15445. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15446. msm_routing_get_port_mixer,
  15447. msm_routing_put_port_mixer),
  15448. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15450. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15451. msm_routing_get_port_mixer,
  15452. msm_routing_put_port_mixer),
  15453. };
  15454. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  15455. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15456. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15457. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15458. msm_routing_get_port_mixer,
  15459. msm_routing_put_port_mixer),
  15460. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15462. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15463. msm_routing_get_port_mixer,
  15464. msm_routing_put_port_mixer),
  15465. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15466. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15467. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15468. msm_routing_get_port_mixer,
  15469. msm_routing_put_port_mixer),
  15470. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15471. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15472. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15473. msm_routing_get_port_mixer,
  15474. msm_routing_put_port_mixer),
  15475. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15476. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15477. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15478. msm_routing_get_port_mixer,
  15479. msm_routing_put_port_mixer),
  15480. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15482. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15483. msm_routing_get_port_mixer,
  15484. msm_routing_put_port_mixer),
  15485. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15486. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15487. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15488. msm_routing_get_port_mixer,
  15489. msm_routing_put_port_mixer),
  15490. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15491. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15492. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15493. msm_routing_get_port_mixer,
  15494. msm_routing_put_port_mixer),
  15495. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15496. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15497. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15498. msm_routing_get_port_mixer,
  15499. msm_routing_put_port_mixer),
  15500. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15501. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15502. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15503. msm_routing_get_port_mixer,
  15504. msm_routing_put_port_mixer),
  15505. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15506. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15507. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15508. msm_routing_get_port_mixer,
  15509. msm_routing_put_port_mixer),
  15510. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15512. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15513. msm_routing_get_port_mixer,
  15514. msm_routing_put_port_mixer),
  15515. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15517. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15518. msm_routing_get_port_mixer,
  15519. msm_routing_put_port_mixer),
  15520. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15521. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15522. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15523. msm_routing_get_port_mixer,
  15524. msm_routing_put_port_mixer),
  15525. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15526. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15527. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15528. msm_routing_get_port_mixer,
  15529. msm_routing_put_port_mixer),
  15530. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15531. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15532. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15533. msm_routing_get_port_mixer,
  15534. msm_routing_put_port_mixer),
  15535. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15536. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15537. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15538. msm_routing_get_port_mixer,
  15539. msm_routing_put_port_mixer),
  15540. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15542. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15543. msm_routing_get_port_mixer,
  15544. msm_routing_put_port_mixer),
  15545. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15546. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15547. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15548. msm_routing_get_port_mixer,
  15549. msm_routing_put_port_mixer),
  15550. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15551. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15552. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15553. msm_routing_get_port_mixer,
  15554. msm_routing_put_port_mixer),
  15555. };
  15556. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  15557. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15558. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15559. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15560. msm_routing_get_port_mixer,
  15561. msm_routing_put_port_mixer),
  15562. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15564. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15565. msm_routing_get_port_mixer,
  15566. msm_routing_put_port_mixer),
  15567. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15568. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15569. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15570. msm_routing_get_port_mixer,
  15571. msm_routing_put_port_mixer),
  15572. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15573. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15574. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15575. msm_routing_get_port_mixer,
  15576. msm_routing_put_port_mixer),
  15577. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15578. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15579. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15580. msm_routing_get_port_mixer,
  15581. msm_routing_put_port_mixer),
  15582. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15583. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15584. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15585. msm_routing_get_port_mixer,
  15586. msm_routing_put_port_mixer),
  15587. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15588. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15589. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15590. msm_routing_get_port_mixer,
  15591. msm_routing_put_port_mixer),
  15592. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15594. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15595. msm_routing_get_port_mixer,
  15596. msm_routing_put_port_mixer),
  15597. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15598. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15599. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15600. msm_routing_get_port_mixer,
  15601. msm_routing_put_port_mixer),
  15602. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15603. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15604. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15605. msm_routing_get_port_mixer,
  15606. msm_routing_put_port_mixer),
  15607. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15608. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15609. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15610. msm_routing_get_port_mixer,
  15611. msm_routing_put_port_mixer),
  15612. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15613. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15614. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15615. msm_routing_get_port_mixer,
  15616. msm_routing_put_port_mixer),
  15617. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15618. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15619. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15620. msm_routing_get_port_mixer,
  15621. msm_routing_put_port_mixer),
  15622. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15623. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15624. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15625. msm_routing_get_port_mixer,
  15626. msm_routing_put_port_mixer),
  15627. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15628. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15629. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15630. msm_routing_get_port_mixer,
  15631. msm_routing_put_port_mixer),
  15632. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15634. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15635. msm_routing_get_port_mixer,
  15636. msm_routing_put_port_mixer),
  15637. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15639. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15640. msm_routing_get_port_mixer,
  15641. msm_routing_put_port_mixer),
  15642. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15643. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15644. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15645. msm_routing_get_port_mixer,
  15646. msm_routing_put_port_mixer),
  15647. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15648. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15649. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15650. msm_routing_get_port_mixer,
  15651. msm_routing_put_port_mixer),
  15652. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15653. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15654. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15655. msm_routing_get_port_mixer,
  15656. msm_routing_put_port_mixer),
  15657. };
  15658. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  15659. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15660. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15661. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15662. msm_routing_put_port_mixer),
  15663. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15664. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15665. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15666. msm_routing_put_port_mixer),
  15667. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15669. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15670. msm_routing_put_port_mixer),
  15671. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15673. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15674. msm_routing_put_port_mixer),
  15675. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15676. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15677. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15678. msm_routing_put_port_mixer),
  15679. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15681. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15682. msm_routing_put_port_mixer),
  15683. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15685. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15686. msm_routing_put_port_mixer),
  15687. };
  15688. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  15689. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15691. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15692. msm_routing_put_port_mixer),
  15693. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15694. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15695. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15696. msm_routing_put_port_mixer),
  15697. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15698. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15699. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15700. msm_routing_put_port_mixer),
  15701. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15702. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15703. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15704. msm_routing_put_port_mixer),
  15705. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15706. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15707. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15708. msm_routing_put_port_mixer),
  15709. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15710. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15711. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15712. msm_routing_put_port_mixer),
  15713. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15714. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15715. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15716. msm_routing_put_port_mixer),
  15717. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15718. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15719. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15720. msm_routing_put_port_mixer),
  15721. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15722. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15723. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15724. msm_routing_put_port_mixer),
  15725. };
  15726. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  15727. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15728. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15729. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15730. msm_routing_put_listen_mixer),
  15731. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15732. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15733. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15734. msm_routing_put_listen_mixer),
  15735. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15737. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15738. msm_routing_put_listen_mixer),
  15739. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15741. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15742. msm_routing_put_listen_mixer),
  15743. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15744. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15745. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15746. msm_routing_put_listen_mixer),
  15747. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15749. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15750. msm_routing_put_listen_mixer),
  15751. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15753. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15754. msm_routing_put_listen_mixer),
  15755. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15756. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15757. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15758. msm_routing_put_listen_mixer),
  15759. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15761. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15762. msm_routing_put_listen_mixer),
  15763. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15764. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15765. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15766. msm_routing_put_listen_mixer),
  15767. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15768. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15769. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15770. msm_routing_put_listen_mixer),
  15771. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15772. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15773. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15774. msm_routing_put_listen_mixer),
  15775. };
  15776. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  15777. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15779. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15780. msm_routing_put_listen_mixer),
  15781. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  15782. SND_SOC_NOPM,
  15783. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15784. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15785. msm_routing_put_listen_mixer),
  15786. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15787. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15788. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15789. msm_routing_put_listen_mixer),
  15790. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15791. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15792. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15793. msm_routing_put_listen_mixer),
  15794. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15795. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15796. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15797. msm_routing_put_listen_mixer),
  15798. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15799. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15800. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15801. msm_routing_put_listen_mixer),
  15802. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15803. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15804. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15805. msm_routing_put_listen_mixer),
  15806. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15807. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15808. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15809. msm_routing_put_listen_mixer),
  15810. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15811. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15812. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15813. msm_routing_put_listen_mixer),
  15814. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15815. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15816. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15817. msm_routing_put_listen_mixer),
  15818. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15819. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15820. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15821. msm_routing_put_listen_mixer),
  15822. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15823. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15824. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15825. msm_routing_put_listen_mixer),
  15826. };
  15827. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  15828. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15829. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15830. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15831. msm_routing_put_listen_mixer),
  15832. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15833. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15834. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15835. msm_routing_put_listen_mixer),
  15836. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15837. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15838. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15839. msm_routing_put_listen_mixer),
  15840. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15841. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15842. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15843. msm_routing_put_listen_mixer),
  15844. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15845. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15846. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15847. msm_routing_put_listen_mixer),
  15848. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15849. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15850. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15851. msm_routing_put_listen_mixer),
  15852. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15853. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15854. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15855. msm_routing_put_listen_mixer),
  15856. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15857. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15858. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15859. msm_routing_put_listen_mixer),
  15860. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15861. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15862. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15863. msm_routing_put_listen_mixer),
  15864. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15865. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15866. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15867. msm_routing_put_listen_mixer),
  15868. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15869. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15870. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15871. msm_routing_put_listen_mixer),
  15872. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15873. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15874. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15875. msm_routing_put_listen_mixer),
  15876. };
  15877. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  15878. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15880. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15881. msm_routing_put_listen_mixer),
  15882. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15883. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15884. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15885. msm_routing_put_listen_mixer),
  15886. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15887. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15888. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15889. msm_routing_put_listen_mixer),
  15890. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15892. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15893. msm_routing_put_listen_mixer),
  15894. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15895. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15896. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15897. msm_routing_put_listen_mixer),
  15898. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15899. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15900. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15901. msm_routing_put_listen_mixer),
  15902. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15904. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15905. msm_routing_put_listen_mixer),
  15906. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15907. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15908. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15909. msm_routing_put_listen_mixer),
  15910. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15912. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15913. msm_routing_put_listen_mixer),
  15914. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15916. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15917. msm_routing_put_listen_mixer),
  15918. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15920. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15921. msm_routing_put_listen_mixer),
  15922. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15923. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15924. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15925. msm_routing_put_listen_mixer),
  15926. };
  15927. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  15928. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15929. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15930. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15931. msm_routing_put_listen_mixer),
  15932. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15934. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15935. msm_routing_put_listen_mixer),
  15936. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15937. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15938. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15939. msm_routing_put_listen_mixer),
  15940. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15941. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15942. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15943. msm_routing_put_listen_mixer),
  15944. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15945. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15946. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15947. msm_routing_put_listen_mixer),
  15948. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15950. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15951. msm_routing_put_listen_mixer),
  15952. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15953. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15954. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15955. msm_routing_put_listen_mixer),
  15956. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15957. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15958. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15959. msm_routing_put_listen_mixer),
  15960. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15961. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15962. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15963. msm_routing_put_listen_mixer),
  15964. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15965. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15966. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15967. msm_routing_put_listen_mixer),
  15968. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15969. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15970. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15971. msm_routing_put_listen_mixer),
  15972. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15973. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15974. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15975. msm_routing_put_listen_mixer),
  15976. };
  15977. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  15978. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15980. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15981. msm_routing_put_listen_mixer),
  15982. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15983. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15984. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15985. msm_routing_put_listen_mixer),
  15986. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15987. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15988. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15989. msm_routing_put_listen_mixer),
  15990. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15991. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15992. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15993. msm_routing_put_listen_mixer),
  15994. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15995. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15996. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15997. msm_routing_put_listen_mixer),
  15998. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16000. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16001. msm_routing_put_listen_mixer),
  16002. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16004. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16005. msm_routing_put_listen_mixer),
  16006. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16008. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16009. msm_routing_put_listen_mixer),
  16010. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16012. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16013. msm_routing_put_listen_mixer),
  16014. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16016. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16017. msm_routing_put_listen_mixer),
  16018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16020. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16021. msm_routing_put_listen_mixer),
  16022. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16024. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16025. msm_routing_put_listen_mixer),
  16026. };
  16027. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  16028. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16030. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16031. msm_routing_put_listen_mixer),
  16032. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16034. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16035. msm_routing_put_listen_mixer),
  16036. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16038. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16039. msm_routing_put_listen_mixer),
  16040. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16042. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16043. msm_routing_put_listen_mixer),
  16044. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16045. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16046. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16047. msm_routing_put_listen_mixer),
  16048. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16049. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16050. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16051. msm_routing_put_listen_mixer),
  16052. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16053. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16054. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16055. msm_routing_put_listen_mixer),
  16056. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16057. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16058. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16059. msm_routing_put_listen_mixer),
  16060. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16061. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16062. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16063. msm_routing_put_listen_mixer),
  16064. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16065. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16066. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16067. msm_routing_put_listen_mixer),
  16068. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16069. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16070. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16071. msm_routing_put_listen_mixer),
  16072. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16073. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16074. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16075. msm_routing_put_listen_mixer),
  16076. };
  16077. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  16078. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16079. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16080. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16081. msm_routing_put_listen_mixer),
  16082. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16083. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16084. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16085. msm_routing_put_listen_mixer),
  16086. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16087. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16088. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16089. msm_routing_put_listen_mixer),
  16090. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16091. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16092. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16093. msm_routing_put_listen_mixer),
  16094. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16095. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16096. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16097. msm_routing_put_listen_mixer),
  16098. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16099. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16100. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16101. msm_routing_put_listen_mixer),
  16102. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16103. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16104. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16105. msm_routing_put_listen_mixer),
  16106. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16107. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16108. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16109. msm_routing_put_listen_mixer),
  16110. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16111. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16112. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16113. msm_routing_put_listen_mixer),
  16114. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16115. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16116. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16117. msm_routing_put_listen_mixer),
  16118. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16119. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16120. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16121. msm_routing_put_listen_mixer),
  16122. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16123. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16124. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16125. msm_routing_put_listen_mixer),
  16126. };
  16127. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  16128. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16129. 0, 1, 0, msm_routing_get_switch_mixer,
  16130. msm_routing_put_switch_mixer);
  16131. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  16132. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16133. 0, 1, 0, msm_routing_get_switch_mixer,
  16134. msm_routing_put_switch_mixer);
  16135. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  16136. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16137. 0, 1, 0, msm_routing_get_switch_mixer,
  16138. msm_routing_put_switch_mixer);
  16139. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  16140. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16141. 0, 1, 0, msm_routing_get_switch_mixer,
  16142. msm_routing_put_switch_mixer);
  16143. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  16144. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16145. 0, 1, 0, msm_routing_get_switch_mixer,
  16146. msm_routing_put_switch_mixer);
  16147. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  16148. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16149. 0, 1, 0, msm_routing_get_switch_mixer,
  16150. msm_routing_put_switch_mixer);
  16151. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  16152. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16153. 0, 1, 0, msm_routing_get_switch_mixer,
  16154. msm_routing_put_switch_mixer);
  16155. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  16156. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16157. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  16158. msm_routing_put_fm_pcmrx_switch_mixer);
  16159. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  16160. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16161. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  16162. msm_routing_put_int0_mi2s_switch_mixer);
  16163. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  16164. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16165. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  16166. msm_routing_put_int4_mi2s_switch_mixer);
  16167. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  16168. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16169. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  16170. msm_routing_put_pri_mi2s_switch_mixer);
  16171. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  16172. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16173. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  16174. msm_routing_put_sec_mi2s_switch_mixer);
  16175. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  16176. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16177. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  16178. msm_routing_put_tert_mi2s_switch_mixer);
  16179. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  16180. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16181. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  16182. msm_routing_put_quat_mi2s_switch_mixer);
  16183. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  16184. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16185. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  16186. msm_routing_put_quin_mi2s_switch_mixer);
  16187. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  16188. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16189. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16190. msm_routing_put_hfp_switch_mixer);
  16191. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  16192. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16193. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16194. msm_routing_put_hfp_switch_mixer);
  16195. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  16196. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16197. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16198. msm_routing_put_hfp_switch_mixer);
  16199. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  16200. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16201. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16202. msm_routing_put_hfp_switch_mixer);
  16203. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  16204. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16205. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  16206. msm_routing_put_usb_switch_mixer);
  16207. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  16208. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16209. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  16210. msm_routing_a2dp_switch_mixer_put);
  16211. static const struct soc_enum lsm_port_enum =
  16212. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  16213. static const char * const lsm_func_text[] = {
  16214. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  16215. };
  16216. static const struct soc_enum lsm_func_enum =
  16217. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  16218. static const struct snd_kcontrol_new lsm_controls[] = {
  16219. /* kcontrol of lsm_function */
  16220. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16221. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16222. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16223. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16224. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16225. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16226. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16227. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16228. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16229. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16230. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16231. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16232. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16233. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16234. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16235. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16236. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16237. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16238. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16239. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16240. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16241. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16242. /* kcontrol of lsm_port */
  16243. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  16244. msm_routing_lsm_port_get,
  16245. msm_routing_lsm_port_put),
  16246. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  16247. msm_routing_lsm_port_get,
  16248. msm_routing_lsm_port_put),
  16249. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  16250. msm_routing_lsm_port_get,
  16251. msm_routing_lsm_port_put),
  16252. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  16253. msm_routing_lsm_port_get,
  16254. msm_routing_lsm_port_put),
  16255. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  16256. msm_routing_lsm_port_get,
  16257. msm_routing_lsm_port_put),
  16258. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  16259. msm_routing_lsm_port_get,
  16260. msm_routing_lsm_port_put),
  16261. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  16262. msm_routing_lsm_port_get,
  16263. msm_routing_lsm_port_put),
  16264. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  16265. msm_routing_lsm_port_get,
  16266. msm_routing_lsm_port_put),
  16267. };
  16268. static const char * const aanc_slim_0_rx_text[] = {
  16269. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  16270. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  16271. };
  16272. static const struct soc_enum aanc_slim_0_rx_enum =
  16273. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  16274. aanc_slim_0_rx_text);
  16275. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  16276. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  16277. msm_routing_slim_0_rx_aanc_mux_get,
  16278. msm_routing_slim_0_rx_aanc_mux_put)
  16279. };
  16280. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  16281. struct snd_ctl_elem_value *ucontrol)
  16282. {
  16283. ucontrol->value.integer.value[0] = aanc_level;
  16284. return 0;
  16285. }
  16286. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  16287. struct snd_ctl_elem_value *ucontrol)
  16288. {
  16289. int ret = 0;
  16290. mutex_lock(&routing_lock);
  16291. aanc_level = ucontrol->value.integer.value[0];
  16292. pr_debug("%s: value: %ld\n",
  16293. __func__, ucontrol->value.integer.value[0]);
  16294. ret = afe_set_aanc_noise_level(aanc_level);
  16295. mutex_unlock(&routing_lock);
  16296. return ret;
  16297. }
  16298. static const struct snd_kcontrol_new aanc_noise_level[] = {
  16299. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  16300. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  16301. };
  16302. static int msm_routing_get_stereo_to_custom_stereo_control(
  16303. struct snd_kcontrol *kcontrol,
  16304. struct snd_ctl_elem_value *ucontrol)
  16305. {
  16306. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  16307. return 0;
  16308. }
  16309. static int msm_routing_put_stereo_to_custom_stereo_control(
  16310. struct snd_kcontrol *kcontrol,
  16311. struct snd_ctl_elem_value *ucontrol)
  16312. {
  16313. int flag = 0, i = 0, rc = 0, idx = 0;
  16314. int be_index = 0, port_id, topo_id;
  16315. unsigned int session_id = 0;
  16316. uint16_t op_FL_ip_FL_weight = 0;
  16317. uint16_t op_FL_ip_FR_weight = 0;
  16318. uint16_t op_FR_ip_FL_weight = 0;
  16319. uint16_t op_FR_ip_FR_weight = 0;
  16320. flag = ucontrol->value.integer.value[0];
  16321. pr_debug("%s E flag %d\n", __func__, flag);
  16322. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  16323. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  16324. __func__, is_custom_stereo_on, flag);
  16325. return 0;
  16326. }
  16327. is_custom_stereo_on = flag ? true : false;
  16328. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  16329. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  16330. port_id = msm_bedais[be_index].port_id;
  16331. if (!msm_bedais[be_index].active)
  16332. continue;
  16333. if ((port_id != SLIMBUS_0_RX) &&
  16334. (port_id != RT_PROXY_PORT_001_RX) &&
  16335. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  16336. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  16337. continue;
  16338. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  16339. MSM_FRONTEND_DAI_MM_SIZE) {
  16340. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  16341. LEGACY_PCM_MODE)
  16342. goto skip_send_custom_stereo;
  16343. session_id =
  16344. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  16345. if (is_custom_stereo_on) {
  16346. op_FL_ip_FL_weight =
  16347. Q14_GAIN_ZERO_POINT_FIVE;
  16348. op_FL_ip_FR_weight =
  16349. Q14_GAIN_ZERO_POINT_FIVE;
  16350. op_FR_ip_FL_weight =
  16351. Q14_GAIN_ZERO_POINT_FIVE;
  16352. op_FR_ip_FR_weight =
  16353. Q14_GAIN_ZERO_POINT_FIVE;
  16354. } else {
  16355. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  16356. op_FL_ip_FR_weight = 0;
  16357. op_FR_ip_FL_weight = 0;
  16358. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  16359. }
  16360. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16361. unsigned long copp =
  16362. session_copp_map[i]
  16363. [SESSION_TYPE_RX][be_index];
  16364. if (!test_bit(idx, &copp))
  16365. goto skip_send_custom_stereo;
  16366. topo_id = adm_get_topology_for_port_copp_idx(
  16367. msm_bedais[be_index].port_id, idx);
  16368. if (topo_id < 0)
  16369. pr_debug("%s:Err:custom stereo topo %d",
  16370. __func__, topo_id);
  16371. pr_debug("idx %d\n", idx);
  16372. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  16373. rc = msm_ds2_dap_set_custom_stereo_onoff
  16374. (msm_bedais[be_index].port_id,
  16375. idx, is_custom_stereo_on);
  16376. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  16377. rc = dolby_dap_set_custom_stereo_onoff(
  16378. msm_bedais[be_index].port_id,
  16379. idx, is_custom_stereo_on);
  16380. else
  16381. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  16382. (msm_bedais[be_index].port_id,
  16383. idx, session_id,
  16384. op_FL_ip_FL_weight,
  16385. op_FL_ip_FR_weight,
  16386. op_FR_ip_FL_weight,
  16387. op_FR_ip_FR_weight);
  16388. if (rc < 0)
  16389. skip_send_custom_stereo:
  16390. pr_err("%s: err setting custom stereo\n",
  16391. __func__);
  16392. }
  16393. }
  16394. }
  16395. return 0;
  16396. }
  16397. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  16398. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  16399. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  16400. msm_routing_put_stereo_to_custom_stereo_control),
  16401. };
  16402. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16403. struct snd_ctl_elem_value *ucontrol)
  16404. {
  16405. return 0;
  16406. }
  16407. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16408. struct snd_ctl_elem_value *ucontrol)
  16409. {
  16410. int i = 0, j;
  16411. int num_app_types = ucontrol->value.integer.value[i++];
  16412. pr_debug("%s\n", __func__);
  16413. memset(app_type_cfg, 0, MAX_APP_TYPES*
  16414. sizeof(struct msm_pcm_routing_app_type_data));
  16415. if (num_app_types > MAX_APP_TYPES) {
  16416. pr_err("%s: number of app types exceed the max supported\n",
  16417. __func__);
  16418. return -EINVAL;
  16419. }
  16420. for (j = 0; j < num_app_types; j++) {
  16421. app_type_cfg[j].app_type =
  16422. ucontrol->value.integer.value[i++];
  16423. app_type_cfg[j].sample_rate =
  16424. ucontrol->value.integer.value[i++];
  16425. app_type_cfg[j].bit_width =
  16426. ucontrol->value.integer.value[i++];
  16427. }
  16428. return 0;
  16429. }
  16430. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  16431. struct snd_ctl_elem_value *ucontrol)
  16432. {
  16433. int j, fe_id, be_id, port_type;
  16434. int ret = 0;
  16435. unsigned long copp;
  16436. struct msm_pcm_routing_bdai_data *bedai;
  16437. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16438. SESSION_TYPE_RX;
  16439. int app_type = ucontrol->value.integer.value[1];
  16440. int gain = (ucontrol->value.integer.value[2] +
  16441. ucontrol->value.integer.value[3])/2;
  16442. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16443. MSM_AFE_PORT_TYPE_TX;
  16444. mutex_lock(&routing_lock);
  16445. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16446. if (is_be_dai_extproc(be_id))
  16447. continue;
  16448. bedai = &msm_bedais[be_id];
  16449. if (afe_get_port_type(bedai->port_id) != port_type)
  16450. continue;
  16451. if (!bedai->active)
  16452. continue;
  16453. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16454. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16455. continue;
  16456. if (app_type !=
  16457. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16458. continue;
  16459. copp = session_copp_map[fe_id][dir][be_id];
  16460. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  16461. if (!test_bit(j, &copp))
  16462. continue;
  16463. ret |= adm_set_volume(bedai->port_id, j, gain);
  16464. }
  16465. }
  16466. }
  16467. mutex_unlock(&routing_lock);
  16468. return ret ? -EINVAL : 0;
  16469. }
  16470. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  16471. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  16472. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  16473. msm_routing_put_app_type_cfg_control),
  16474. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  16475. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  16476. };
  16477. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  16478. struct snd_ctl_elem_value *ucontrol)
  16479. {
  16480. int copp_idx, fe_id, be_id, port_type;
  16481. int ret = 0;
  16482. unsigned long copp;
  16483. struct msm_pcm_routing_bdai_data *bedai;
  16484. u8 *packed_params = NULL;
  16485. struct param_hdr_v3 param_hdr;
  16486. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  16487. sizeof(uint32_t));
  16488. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16489. SESSION_TYPE_RX;
  16490. int app_type = ucontrol->value.integer.value[1];
  16491. int module_id = ucontrol->value.integer.value[2];
  16492. int instance_id = ucontrol->value.integer.value[3];
  16493. int param_id = ucontrol->value.integer.value[4];
  16494. int param_value = ucontrol->value.integer.value[5];
  16495. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16496. MSM_AFE_PORT_TYPE_TX;
  16497. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  16498. __func__, app_type, module_id,
  16499. instance_id, param_id, param_value);
  16500. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  16501. if (!packed_params)
  16502. return -ENOMEM;
  16503. memset(&param_hdr, 0, sizeof(param_hdr));
  16504. param_hdr.module_id = module_id;
  16505. param_hdr.instance_id = instance_id;
  16506. param_hdr.param_id = param_id;
  16507. param_hdr.param_size = sizeof(uint32_t);
  16508. packed_param_size = 0;
  16509. mutex_lock(&routing_lock);
  16510. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16511. if (is_be_dai_extproc(be_id))
  16512. continue;
  16513. bedai = &msm_bedais[be_id];
  16514. if (afe_get_port_type(bedai->port_id) != port_type)
  16515. continue;
  16516. if (!bedai->active)
  16517. continue;
  16518. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16519. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16520. continue;
  16521. if (app_type !=
  16522. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16523. continue;
  16524. copp = session_copp_map[fe_id][dir][be_id];
  16525. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  16526. copp_idx++) {
  16527. if (!test_bit(copp_idx, &copp))
  16528. continue;
  16529. ret = q6common_pack_pp_params(packed_params,
  16530. &param_hdr,
  16531. (u8 *) &param_value,
  16532. &packed_param_size);
  16533. if (ret) {
  16534. pr_err("%s: Failed to pack params, error %d\n",
  16535. __func__, ret);
  16536. goto done;
  16537. }
  16538. ret = adm_set_pp_params(bedai->port_id,
  16539. copp_idx, NULL,
  16540. packed_params,
  16541. packed_param_size);
  16542. if (ret) {
  16543. pr_err("%s: Setting param failed with err=%d\n",
  16544. __func__, ret);
  16545. ret = -EINVAL;
  16546. goto done;
  16547. }
  16548. }
  16549. }
  16550. }
  16551. done:
  16552. mutex_unlock(&routing_lock);
  16553. kfree(packed_params);
  16554. return ret;
  16555. }
  16556. static const struct snd_kcontrol_new module_cfg_controls[] = {
  16557. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  16558. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  16559. };
  16560. static int msm_routing_get_lsm_app_type_cfg_control(
  16561. struct snd_kcontrol *kcontrol,
  16562. struct snd_ctl_elem_value *ucontrol)
  16563. {
  16564. return 0;
  16565. }
  16566. static int msm_routing_put_lsm_app_type_cfg_control(
  16567. struct snd_kcontrol *kcontrol,
  16568. struct snd_ctl_elem_value *ucontrol)
  16569. {
  16570. int shift = ((struct soc_multi_mixer_control *)
  16571. kcontrol->private_value)->shift;
  16572. int i = 0, j;
  16573. int num_app_types = ucontrol->value.integer.value[i++];
  16574. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  16575. sizeof(struct msm_pcm_routing_app_type_data));
  16576. if (num_app_types > MAX_APP_TYPES) {
  16577. pr_err("%s: number of app types exceed the max supported\n",
  16578. __func__);
  16579. return -EINVAL;
  16580. }
  16581. for (j = 0; j < num_app_types; j++) {
  16582. lsm_app_type_cfg[j].app_type =
  16583. ucontrol->value.integer.value[i++];
  16584. lsm_app_type_cfg[j].sample_rate =
  16585. ucontrol->value.integer.value[i++];
  16586. lsm_app_type_cfg[j].bit_width =
  16587. ucontrol->value.integer.value[i++];
  16588. /* Shift of 1 indicates this is V2 mixer control */
  16589. if (shift == 1)
  16590. lsm_app_type_cfg[j].num_out_channels =
  16591. ucontrol->value.integer.value[i++];
  16592. }
  16593. return 0;
  16594. }
  16595. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  16596. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  16597. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16598. msm_routing_put_lsm_app_type_cfg_control),
  16599. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  16600. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16601. msm_routing_put_lsm_app_type_cfg_control),
  16602. };
  16603. static int msm_routing_get_use_ds1_or_ds2_control(
  16604. struct snd_kcontrol *kcontrol,
  16605. struct snd_ctl_elem_value *ucontrol)
  16606. {
  16607. ucontrol->value.integer.value[0] = is_ds2_on;
  16608. return 0;
  16609. }
  16610. static int msm_routing_put_use_ds1_or_ds2_control(
  16611. struct snd_kcontrol *kcontrol,
  16612. struct snd_ctl_elem_value *ucontrol)
  16613. {
  16614. is_ds2_on = ucontrol->value.integer.value[0];
  16615. return 0;
  16616. }
  16617. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  16618. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  16619. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  16620. msm_routing_put_use_ds1_or_ds2_control),
  16621. };
  16622. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  16623. struct snd_ctl_elem_value *ucontrol) {
  16624. int rc = 0;
  16625. int be_idx = 0;
  16626. char *param_value;
  16627. int *update_param_value;
  16628. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  16629. struct param_hdr_v3 param_hdr;
  16630. param_value = kzalloc(param_size, GFP_KERNEL);
  16631. if (!param_value)
  16632. return -ENOMEM;
  16633. memset(&param_hdr, 0, sizeof(param_hdr));
  16634. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  16635. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  16636. break;
  16637. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  16638. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  16639. param_hdr.instance_id = INSTANCE_ID_0;
  16640. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  16641. param_hdr.param_size = param_size;
  16642. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  16643. NULL, &param_hdr, (u8 *) param_value);
  16644. if (rc) {
  16645. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  16646. kfree(param_value);
  16647. return -EINVAL;
  16648. }
  16649. update_param_value = (int *)param_value;
  16650. ucontrol->value.integer.value[0] = update_param_value[0];
  16651. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  16652. __func__, update_param_value[0]);
  16653. }
  16654. kfree(param_value);
  16655. return 0;
  16656. }
  16657. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  16658. struct snd_ctl_elem_value *ucontrol)
  16659. {
  16660. voc_session_id = ucontrol->value.integer.value[0];
  16661. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  16662. return 0;
  16663. }
  16664. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  16665. struct snd_ctl_elem_value *ucontrol)
  16666. {
  16667. ucontrol->value.integer.value[0] = voc_session_id;
  16668. return 0;
  16669. }
  16670. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  16671. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  16672. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  16673. msm_voc_session_id_put),
  16674. };
  16675. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  16676. struct snd_ctl_elem_info *uinfo)
  16677. {
  16678. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16679. uinfo->count = sizeof(struct sound_focus_param);
  16680. return 0;
  16681. }
  16682. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  16683. struct snd_ctl_elem_value *ucontrol)
  16684. {
  16685. int ret = 0;
  16686. struct sound_focus_param soundFocusData;
  16687. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16688. sizeof(struct sound_focus_param));
  16689. ret = voc_set_sound_focus(soundFocusData);
  16690. if (ret) {
  16691. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16692. __func__, ret);
  16693. ret = -EINVAL;
  16694. }
  16695. return ret;
  16696. }
  16697. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  16698. struct snd_ctl_elem_value *ucontrol)
  16699. {
  16700. int ret = 0;
  16701. struct sound_focus_param soundFocusData;
  16702. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  16703. ret = voc_get_sound_focus(&soundFocusData);
  16704. if (ret) {
  16705. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  16706. __func__, ret);
  16707. ret = -EINVAL;
  16708. goto done;
  16709. }
  16710. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16711. sizeof(struct sound_focus_param));
  16712. done:
  16713. return ret;
  16714. }
  16715. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  16716. struct snd_ctl_elem_info *uinfo)
  16717. {
  16718. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16719. uinfo->count = sizeof(struct source_tracking_param);
  16720. return 0;
  16721. }
  16722. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  16723. struct snd_ctl_elem_value *ucontrol)
  16724. {
  16725. int ret = 0;
  16726. struct source_tracking_param sourceTrackingData;
  16727. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  16728. ret = voc_get_source_tracking(&sourceTrackingData);
  16729. if (ret) {
  16730. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  16731. __func__, ret);
  16732. ret = -EINVAL;
  16733. goto done;
  16734. }
  16735. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16736. sizeof(struct source_tracking_param));
  16737. done:
  16738. return ret;
  16739. }
  16740. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  16741. int *copp_idx)
  16742. {
  16743. int i, idx, be_idx;
  16744. int ret = 0;
  16745. unsigned long copp;
  16746. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  16747. ret = q6audio_validate_port(port_id);
  16748. if (ret < 0) {
  16749. pr_err("%s: port validation failed id 0x%x ret %d\n",
  16750. __func__, port_id, ret);
  16751. ret = -EINVAL;
  16752. goto done;
  16753. }
  16754. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16755. if (msm_bedais[be_idx].port_id == port_id)
  16756. break;
  16757. }
  16758. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16759. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  16760. ret = -EINVAL;
  16761. goto done;
  16762. }
  16763. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  16764. MSM_FRONTEND_DAI_MM_SIZE) {
  16765. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16766. copp = session_copp_map[i]
  16767. [session_type][be_idx];
  16768. if (test_bit(idx, &copp))
  16769. break;
  16770. }
  16771. if (idx >= MAX_COPPS_PER_PORT)
  16772. continue;
  16773. else
  16774. break;
  16775. }
  16776. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  16777. pr_debug("%s: Invalid FE, exiting\n", __func__);
  16778. ret = -EINVAL;
  16779. goto done;
  16780. }
  16781. *copp_idx = idx;
  16782. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  16783. done:
  16784. return ret;
  16785. }
  16786. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  16787. const char *prefix, int *port_id)
  16788. {
  16789. int ret = 0;
  16790. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  16791. /*
  16792. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  16793. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  16794. * and compare the string with the backend name to derive the port id.
  16795. */
  16796. if (!strcmp(kcontrol->id.name + strlen(prefix),
  16797. "SLIMBUS_0")) {
  16798. *port_id = SLIMBUS_0_TX;
  16799. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16800. "TERT_MI2S")) {
  16801. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  16802. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16803. "INT3_MI2S")) {
  16804. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  16805. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16806. "VA_CDC_DMA_TX_0")) {
  16807. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  16808. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16809. "TX_CDC_DMA_TX_3")) {
  16810. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  16811. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16812. "QUIN_TDM_TX_0")) {
  16813. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  16814. } else {
  16815. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  16816. __func__, kcontrol->id.name);
  16817. ret = -EINVAL;
  16818. goto done;
  16819. }
  16820. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  16821. __func__, kcontrol->id.name, *port_id);
  16822. done:
  16823. return ret;
  16824. }
  16825. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  16826. struct snd_ctl_elem_value *ucontrol)
  16827. {
  16828. int ret = 0;
  16829. struct sound_focus_param soundFocusData;
  16830. int port_id, copp_idx;
  16831. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16832. "Sound Focus Audio Tx ", &port_id);
  16833. if (ret != 0) {
  16834. pr_err("%s: Error in deriving port id, err=%d\n",
  16835. __func__, ret);
  16836. ret = -EINVAL;
  16837. goto done;
  16838. }
  16839. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16840. &copp_idx);
  16841. if (ret) {
  16842. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16843. __func__, port_id);
  16844. ret = -EINVAL;
  16845. goto done;
  16846. }
  16847. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16848. sizeof(struct sound_focus_param));
  16849. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  16850. if (ret) {
  16851. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16852. __func__, ret);
  16853. ret = -EINVAL;
  16854. goto done;
  16855. }
  16856. done:
  16857. return ret;
  16858. }
  16859. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  16860. struct snd_ctl_elem_value *ucontrol)
  16861. {
  16862. int ret = 0;
  16863. struct sound_focus_param soundFocusData;
  16864. int port_id, copp_idx;
  16865. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16866. "Sound Focus Audio Tx ", &port_id);
  16867. if (ret) {
  16868. pr_err("%s: Error in deriving port id, err=%d\n",
  16869. __func__, ret);
  16870. ret = -EINVAL;
  16871. goto done;
  16872. }
  16873. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16874. &copp_idx);
  16875. if (ret) {
  16876. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  16877. __func__, port_id);
  16878. ret = -EINVAL;
  16879. goto done;
  16880. }
  16881. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  16882. if (ret) {
  16883. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16884. __func__, ret);
  16885. ret = -EINVAL;
  16886. goto done;
  16887. }
  16888. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16889. sizeof(struct sound_focus_param));
  16890. done:
  16891. return ret;
  16892. }
  16893. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  16894. struct snd_ctl_elem_value *ucontrol)
  16895. {
  16896. int ret = 0;
  16897. struct source_tracking_param sourceTrackingData;
  16898. int port_id, copp_idx;
  16899. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16900. "Source Tracking Audio Tx ", &port_id);
  16901. if (ret) {
  16902. pr_err("%s: Error in deriving port id, err=%d\n",
  16903. __func__, ret);
  16904. ret = -EINVAL;
  16905. goto done;
  16906. }
  16907. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16908. &copp_idx);
  16909. if (ret) {
  16910. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  16911. __func__, port_id);
  16912. ret = -EINVAL;
  16913. goto done;
  16914. }
  16915. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  16916. if (ret) {
  16917. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  16918. __func__, ret);
  16919. ret = -EINVAL;
  16920. goto done;
  16921. }
  16922. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16923. sizeof(struct source_tracking_param));
  16924. done:
  16925. return ret;
  16926. }
  16927. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  16928. {
  16929. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16930. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16931. .name = "Sound Focus Voice Tx SLIMBUS_0",
  16932. .info = msm_sound_focus_info,
  16933. .get = msm_voice_sound_focus_get,
  16934. .put = msm_voice_sound_focus_put,
  16935. },
  16936. {
  16937. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16938. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16939. .name = "Source Tracking Voice Tx SLIMBUS_0",
  16940. .info = msm_source_tracking_info,
  16941. .get = msm_voice_source_tracking_get,
  16942. },
  16943. {
  16944. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16945. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16946. .name = "Sound Focus Audio Tx SLIMBUS_0",
  16947. .info = msm_sound_focus_info,
  16948. .get = msm_audio_sound_focus_get,
  16949. .put = msm_audio_sound_focus_put,
  16950. },
  16951. {
  16952. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16953. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16954. .name = "Source Tracking Audio Tx SLIMBUS_0",
  16955. .info = msm_source_tracking_info,
  16956. .get = msm_audio_source_tracking_get,
  16957. },
  16958. {
  16959. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16960. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16961. .name = "Sound Focus Voice Tx TERT_MI2S",
  16962. .info = msm_sound_focus_info,
  16963. .get = msm_voice_sound_focus_get,
  16964. .put = msm_voice_sound_focus_put,
  16965. },
  16966. {
  16967. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16968. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16969. .name = "Source Tracking Voice Tx TERT_MI2S",
  16970. .info = msm_source_tracking_info,
  16971. .get = msm_voice_source_tracking_get,
  16972. },
  16973. {
  16974. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16976. .name = "Sound Focus Audio Tx TERT_MI2S",
  16977. .info = msm_sound_focus_info,
  16978. .get = msm_audio_sound_focus_get,
  16979. .put = msm_audio_sound_focus_put,
  16980. },
  16981. {
  16982. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16983. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16984. .name = "Source Tracking Audio Tx TERT_MI2S",
  16985. .info = msm_source_tracking_info,
  16986. .get = msm_audio_source_tracking_get,
  16987. },
  16988. {
  16989. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16990. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16991. .name = "Sound Focus Voice Tx INT3_MI2S",
  16992. .info = msm_sound_focus_info,
  16993. .get = msm_voice_sound_focus_get,
  16994. .put = msm_voice_sound_focus_put,
  16995. },
  16996. {
  16997. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16998. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16999. .name = "Source Tracking Voice Tx INT3_MI2S",
  17000. .info = msm_source_tracking_info,
  17001. .get = msm_voice_source_tracking_get,
  17002. },
  17003. {
  17004. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17006. .name = "Sound Focus Audio Tx INT3_MI2S",
  17007. .info = msm_sound_focus_info,
  17008. .get = msm_audio_sound_focus_get,
  17009. .put = msm_audio_sound_focus_put,
  17010. },
  17011. {
  17012. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17013. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17014. .name = "Source Tracking Audio Tx INT3_MI2S",
  17015. .info = msm_source_tracking_info,
  17016. .get = msm_audio_source_tracking_get,
  17017. },
  17018. {
  17019. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17020. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17021. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  17022. .info = msm_sound_focus_info,
  17023. .get = msm_voice_sound_focus_get,
  17024. .put = msm_voice_sound_focus_put,
  17025. },
  17026. {
  17027. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17028. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17029. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  17030. .info = msm_source_tracking_info,
  17031. .get = msm_voice_source_tracking_get,
  17032. },
  17033. {
  17034. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17035. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17036. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  17037. .info = msm_sound_focus_info,
  17038. .get = msm_audio_sound_focus_get,
  17039. .put = msm_audio_sound_focus_put,
  17040. },
  17041. {
  17042. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17043. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17044. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  17045. .info = msm_source_tracking_info,
  17046. .get = msm_audio_source_tracking_get,
  17047. },
  17048. {
  17049. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17050. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17051. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  17052. .info = msm_sound_focus_info,
  17053. .get = msm_voice_sound_focus_get,
  17054. .put = msm_voice_sound_focus_put,
  17055. },
  17056. {
  17057. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17058. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17059. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  17060. .info = msm_source_tracking_info,
  17061. .get = msm_voice_source_tracking_get,
  17062. },
  17063. {
  17064. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17065. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17066. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  17067. .info = msm_sound_focus_info,
  17068. .get = msm_audio_sound_focus_get,
  17069. .put = msm_audio_sound_focus_put,
  17070. },
  17071. {
  17072. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17073. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17074. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  17075. .info = msm_source_tracking_info,
  17076. .get = msm_audio_source_tracking_get,
  17077. },
  17078. {
  17079. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17080. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17081. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  17082. .info = msm_sound_focus_info,
  17083. .get = msm_voice_sound_focus_get,
  17084. .put = msm_voice_sound_focus_put,
  17085. },
  17086. {
  17087. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17088. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17089. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  17090. .info = msm_source_tracking_info,
  17091. .get = msm_voice_source_tracking_get,
  17092. },
  17093. {
  17094. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17095. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17096. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  17097. .info = msm_sound_focus_info,
  17098. .get = msm_audio_sound_focus_get,
  17099. .put = msm_audio_sound_focus_put,
  17100. },
  17101. {
  17102. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17103. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17104. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  17105. .info = msm_source_tracking_info,
  17106. .get = msm_audio_source_tracking_get,
  17107. },
  17108. };
  17109. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  17110. struct snd_ctl_elem_value *ucontrol)
  17111. {
  17112. int ret = 0;
  17113. int item;
  17114. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17115. pr_debug("%s item is %d\n", __func__,
  17116. ucontrol->value.enumerated.item[0]);
  17117. mutex_lock(&routing_lock);
  17118. item = ucontrol->value.enumerated.item[0];
  17119. if (item < e->items) {
  17120. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17121. __func__, e->shift_l, e->values[item]);
  17122. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17123. e->values[item] < MSM_BACKEND_DAI_MAX)
  17124. /* Enable feedback TX path */
  17125. ret = afe_spk_prot_feed_back_cfg(
  17126. msm_bedais[e->values[item]].port_id,
  17127. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  17128. else {
  17129. pr_debug("%s values are out of range item %d\n",
  17130. __func__, e->values[item]);
  17131. /* Disable feedback TX path */
  17132. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17133. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  17134. else
  17135. ret = -EINVAL;
  17136. }
  17137. } else {
  17138. pr_err("%s item value is out of range item\n", __func__);
  17139. ret = -EINVAL;
  17140. }
  17141. mutex_unlock(&routing_lock);
  17142. return ret;
  17143. }
  17144. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  17145. struct snd_ctl_elem_value *ucontrol)
  17146. {
  17147. int ret = 0;
  17148. int item;
  17149. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17150. pr_debug("%s item is %d\n", __func__,
  17151. ucontrol->value.enumerated.item[0]);
  17152. mutex_lock(&routing_lock);
  17153. item = ucontrol->value.enumerated.item[0];
  17154. if (item < e->items) {
  17155. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17156. __func__, e->shift_l, e->values[item]);
  17157. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17158. e->values[item] < MSM_BACKEND_DAI_MAX)
  17159. /* Enable feedback TX path */
  17160. ret = afe_spk_prot_feed_back_cfg(
  17161. msm_bedais[e->values[item]].port_id,
  17162. msm_bedais[e->shift_l].port_id,
  17163. 1, 1, 1);
  17164. else {
  17165. pr_debug("%s values are out of range item %d\n",
  17166. __func__, e->values[item]);
  17167. /* Disable feedback TX path */
  17168. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17169. ret = afe_spk_prot_feed_back_cfg(0,
  17170. 0, 0, 0, 0);
  17171. else
  17172. ret = -EINVAL;
  17173. }
  17174. } else {
  17175. pr_err("%s item value is out of range item\n", __func__);
  17176. ret = -EINVAL;
  17177. }
  17178. mutex_unlock(&routing_lock);
  17179. return ret;
  17180. }
  17181. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  17182. struct snd_ctl_elem_value *ucontrol)
  17183. {
  17184. pr_debug("%s\n", __func__);
  17185. return 0;
  17186. }
  17187. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  17188. struct snd_ctl_elem_value *ucontrol)
  17189. {
  17190. pr_debug("%s\n", __func__);
  17191. ucontrol->value.enumerated.item[0] = 0;
  17192. return 0;
  17193. }
  17194. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  17195. "ZERO", "SLIM4_TX"
  17196. };
  17197. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  17198. "ZERO", "SLIM4_TX"
  17199. };
  17200. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  17201. "ZERO", "WSA_CDC_DMA_TX_0"
  17202. };
  17203. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  17204. "ZERO", "WSA_CDC_DMA_TX_0"
  17205. };
  17206. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  17207. "ZERO", "SENARY_TX"
  17208. };
  17209. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  17210. "ZERO", "INT5_MI2S_TX"
  17211. };
  17212. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  17213. "ZERO", "INT5_MI2S_TX"
  17214. };
  17215. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  17216. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17217. };
  17218. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  17219. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17220. };
  17221. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  17222. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17223. };
  17224. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  17225. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17226. };
  17227. static const int const mi2s_rx_vi_fb_tx_value[] = {
  17228. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  17229. };
  17230. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  17231. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17232. };
  17233. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  17234. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17235. };
  17236. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  17237. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17238. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  17239. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  17240. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  17241. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17242. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  17243. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  17244. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  17245. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17246. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  17247. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  17248. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  17249. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17250. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  17251. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  17252. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  17253. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  17254. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  17255. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  17256. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  17257. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17258. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  17259. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  17260. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  17261. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  17262. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17263. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  17264. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  17265. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  17266. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  17267. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  17268. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17269. spkr_prot_put_vi_lch_port);
  17270. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  17271. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  17272. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17273. spkr_prot_put_vi_rch_port);
  17274. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  17275. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  17276. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17277. spkr_prot_put_vi_lch_port);
  17278. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  17279. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  17280. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17281. spkr_prot_put_vi_rch_port);
  17282. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  17283. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  17284. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  17285. spkr_prot_put_vi_lch_port);
  17286. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  17287. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  17288. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  17289. spkr_prot_put_vi_lch_port);
  17290. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  17291. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  17292. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  17293. spkr_prot_put_vi_rch_port);
  17294. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  17295. /* Frontend AIF */
  17296. /* Widget name equals to Front-End DAI name<Need confirmation>,
  17297. * Stream name must contains substring of front-end dai name
  17298. */
  17299. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  17300. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  17301. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  17302. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  17303. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  17304. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  17305. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  17306. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  17307. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  17308. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  17309. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  17310. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  17311. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  17312. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  17313. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  17314. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  17315. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  17316. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  17317. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  17318. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  17319. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  17320. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  17321. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  17322. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  17323. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  17324. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  17325. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  17326. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  17327. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  17328. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  17329. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  17330. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  17331. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  17332. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  17333. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  17334. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  17335. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  17336. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  17337. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  17338. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  17339. "VoiceMMode1 Playback", 0, 0, 0, 0),
  17340. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  17341. "VoiceMMode1 Capture", 0, 0, 0, 0),
  17342. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  17343. "VoiceMMode2 Playback", 0, 0, 0, 0),
  17344. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  17345. "VoiceMMode2 Capture", 0, 0, 0, 0),
  17346. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  17347. 0, 0, 0, 0),
  17348. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  17349. 0, 0, 0, 0),
  17350. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  17351. 0, 0, 0, 0),
  17352. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  17353. 0, 0, 0, 0),
  17354. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  17355. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  17356. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  17357. 0, 0, 0, 0),
  17358. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  17359. 0, 0, 0, 0),
  17360. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  17361. 0, 0, 0, 0),
  17362. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  17363. 0, 0, 0, 0),
  17364. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  17365. 0, 0, 0, 0),
  17366. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  17367. 0, 0, 0, 0),
  17368. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  17369. 0, 0, 0, 0),
  17370. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  17371. 0, 0, 0, 0),
  17372. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  17373. 0, 0, 0, 0),
  17374. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  17375. 0, 0, 0, 0),
  17376. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  17377. 0, 0, 0, 0),
  17378. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  17379. 0, 0, 0, 0),
  17380. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  17381. 0, 0, 0, 0),
  17382. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  17383. 0, 0, 0, 0),
  17384. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  17385. 0, 0, 0, 0),
  17386. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  17387. 0, 0, 0, 0),
  17388. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  17389. 0, 0, 0, 0),
  17390. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  17391. 0, 0, 0, 0),
  17392. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  17393. 0, 0, 0, 0),
  17394. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  17395. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  17396. 0, 0, 0, 0),
  17397. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  17398. "INT0 MI2S_RX Hostless Playback",
  17399. 0, 0, 0, 0),
  17400. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  17401. "INT4 MI2S_RX Hostless Playback",
  17402. 0, 0, 0, 0),
  17403. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  17404. "Primary MI2S_RX Hostless Playback",
  17405. 0, 0, 0, 0),
  17406. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  17407. "Secondary MI2S_RX Hostless Playback",
  17408. 0, 0, 0, 0),
  17409. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  17410. "Tertiary MI2S_RX Hostless Playback",
  17411. 0, 0, 0, 0),
  17412. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  17413. "Quaternary MI2S_RX Hostless Playback",
  17414. 0, 0, 0, 0),
  17415. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  17416. "Quinary MI2S_RX Hostless Playback",
  17417. 0, 0, 0, 0),
  17418. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  17419. 0, 0, 0, 0),
  17420. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  17421. 0, 0, 0, 0),
  17422. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  17423. 0, 0, 0, 0),
  17424. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  17425. 0, 0, 0, 0),
  17426. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  17427. 0, 0, 0, 0),
  17428. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  17429. "INT3 MI2S_TX Hostless Capture",
  17430. 0, 0, 0, 0),
  17431. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  17432. "Tertiary MI2S_TX Hostless Capture",
  17433. 0, 0, 0, 0),
  17434. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  17435. "Secondary MI2S_TX Hostless Capture",
  17436. 0, 0, 0, 0),
  17437. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  17438. "Primary MI2S_TX Hostless Capture",
  17439. 0, 0, 0, 0),
  17440. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  17441. 0, 0, 0, 0),
  17442. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  17443. 0, 0, 0, 0),
  17444. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  17445. "Quaternary MI2S_TX Hostless Capture",
  17446. 0, 0, 0, 0),
  17447. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  17448. "Quinary MI2S_TX Hostless Capture",
  17449. 0, 0, 0, 0),
  17450. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  17451. "Primary TDM0 Hostless Playback",
  17452. 0, 0, 0, 0),
  17453. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  17454. "Primary TDM0 Hostless Capture",
  17455. 0, 0, 0, 0),
  17456. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  17457. "Primary TDM1 Hostless Playback",
  17458. 0, 0, 0, 0),
  17459. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  17460. "Primary TDM1 Hostless Capture",
  17461. 0, 0, 0, 0),
  17462. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  17463. "Primary TDM2 Hostless Playback",
  17464. 0, 0, 0, 0),
  17465. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  17466. "Primary TDM2 Hostless Capture",
  17467. 0, 0, 0, 0),
  17468. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  17469. "Primary TDM3 Hostless Playback",
  17470. 0, 0, 0, 0),
  17471. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  17472. "Primary TDM3 Hostless Capture",
  17473. 0, 0, 0, 0),
  17474. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  17475. "Primary TDM4 Hostless Playback",
  17476. 0, 0, 0, 0),
  17477. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  17478. "Primary TDM4 Hostless Capture",
  17479. 0, 0, 0, 0),
  17480. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  17481. "Primary TDM5 Hostless Playback",
  17482. 0, 0, 0, 0),
  17483. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  17484. "Primary TDM5 Hostless Capture",
  17485. 0, 0, 0, 0),
  17486. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  17487. "Primary TDM6 Hostless Playback",
  17488. 0, 0, 0, 0),
  17489. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  17490. "Primary TDM6 Hostless Capture",
  17491. 0, 0, 0, 0),
  17492. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  17493. "Primary TDM7 Hostless Playback",
  17494. 0, 0, 0, 0),
  17495. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  17496. "Primary TDM7 Hostless Capture",
  17497. 0, 0, 0, 0),
  17498. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  17499. "Secondary TDM0 Hostless Playback",
  17500. 0, 0, 0, 0),
  17501. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  17502. "Secondary TDM0 Hostless Capture",
  17503. 0, 0, 0, 0),
  17504. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  17505. "Secondary TDM1 Hostless Playback",
  17506. 0, 0, 0, 0),
  17507. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  17508. "Secondary TDM1 Hostless Capture",
  17509. 0, 0, 0, 0),
  17510. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  17511. "Secondary TDM2 Hostless Playback",
  17512. 0, 0, 0, 0),
  17513. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  17514. "Secondary TDM2 Hostless Capture",
  17515. 0, 0, 0, 0),
  17516. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  17517. "Secondary TDM3 Hostless Playback",
  17518. 0, 0, 0, 0),
  17519. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  17520. "Secondary TDM3 Hostless Capture",
  17521. 0, 0, 0, 0),
  17522. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  17523. "Secondary TDM4 Hostless Playback",
  17524. 0, 0, 0, 0),
  17525. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  17526. "Secondary TDM4 Hostless Capture",
  17527. 0, 0, 0, 0),
  17528. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  17529. "Secondary TDM5 Hostless Playback",
  17530. 0, 0, 0, 0),
  17531. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  17532. "Secondary TDM5 Hostless Capture",
  17533. 0, 0, 0, 0),
  17534. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  17535. "Secondary TDM6 Hostless Playback",
  17536. 0, 0, 0, 0),
  17537. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  17538. "Secondary TDM6 Hostless Capture",
  17539. 0, 0, 0, 0),
  17540. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  17541. "Secondary TDM7 Hostless Playback",
  17542. 0, 0, 0, 0),
  17543. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  17544. "Secondary TDM7 Hostless Capture",
  17545. 0, 0, 0, 0),
  17546. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  17547. "Tertiary TDM0 Hostless Playback",
  17548. 0, 0, 0, 0),
  17549. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  17550. "Tertiary TDM0 Hostless Capture",
  17551. 0, 0, 0, 0),
  17552. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  17553. "Tertiary TDM1 Hostless Playback",
  17554. 0, 0, 0, 0),
  17555. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  17556. "Tertiary TDM1 Hostless Capture",
  17557. 0, 0, 0, 0),
  17558. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  17559. "Tertiary TDM2 Hostless Playback",
  17560. 0, 0, 0, 0),
  17561. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  17562. "Tertiary TDM2 Hostless Capture",
  17563. 0, 0, 0, 0),
  17564. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  17565. "Tertiary TDM3 Hostless Playback",
  17566. 0, 0, 0, 0),
  17567. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  17568. "Tertiary TDM3 Hostless Capture",
  17569. 0, 0, 0, 0),
  17570. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  17571. "Tertiary TDM4 Hostless Playback",
  17572. 0, 0, 0, 0),
  17573. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  17574. "Tertiary TDM4 Hostless Capture",
  17575. 0, 0, 0, 0),
  17576. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  17577. "Tertiary TDM5 Hostless Playback",
  17578. 0, 0, 0, 0),
  17579. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  17580. "Tertiary TDM5 Hostless Capture",
  17581. 0, 0, 0, 0),
  17582. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  17583. "Tertiary TDM6 Hostless Playback",
  17584. 0, 0, 0, 0),
  17585. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  17586. "Tertiary TDM6 Hostless Capture",
  17587. 0, 0, 0, 0),
  17588. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  17589. "Tertiary TDM7 Hostless Playback",
  17590. 0, 0, 0, 0),
  17591. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  17592. "Tertiary TDM7 Hostless Capture",
  17593. 0, 0, 0, 0),
  17594. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  17595. "Quaternary TDM0 Hostless Playback",
  17596. 0, 0, 0, 0),
  17597. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  17598. "Quaternary TDM0 Hostless Capture",
  17599. 0, 0, 0, 0),
  17600. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  17601. "Quaternary TDM1 Hostless Playback",
  17602. 0, 0, 0, 0),
  17603. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  17604. "Quaternary TDM1 Hostless Capture",
  17605. 0, 0, 0, 0),
  17606. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  17607. "Quaternary TDM2 Hostless Playback",
  17608. 0, 0, 0, 0),
  17609. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  17610. "Quaternary TDM2 Hostless Capture",
  17611. 0, 0, 0, 0),
  17612. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  17613. "Quaternary TDM3 Hostless Playback",
  17614. 0, 0, 0, 0),
  17615. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  17616. "Quaternary TDM3 Hostless Capture",
  17617. 0, 0, 0, 0),
  17618. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  17619. "Quaternary TDM4 Hostless Playback",
  17620. 0, 0, 0, 0),
  17621. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  17622. "Quaternary TDM4 Hostless Capture",
  17623. 0, 0, 0, 0),
  17624. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  17625. "Quaternary TDM5 Hostless Playback",
  17626. 0, 0, 0, 0),
  17627. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  17628. "Quaternary TDM5 Hostless Capture",
  17629. 0, 0, 0, 0),
  17630. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  17631. "Quaternary TDM6 Hostless Playback",
  17632. 0, 0, 0, 0),
  17633. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  17634. "Quaternary TDM6 Hostless Capture",
  17635. 0, 0, 0, 0),
  17636. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  17637. "Quaternary TDM7 Hostless Playback",
  17638. 0, 0, 0, 0),
  17639. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  17640. "Quaternary TDM7 Hostless Capture",
  17641. 0, 0, 0, 0),
  17642. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  17643. "Quinary TDM0 Hostless Playback",
  17644. 0, 0, 0, 0),
  17645. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  17646. "Quinary TDM0 Hostless Capture",
  17647. 0, 0, 0, 0),
  17648. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  17649. "Quinary TDM1 Hostless Playback",
  17650. 0, 0, 0, 0),
  17651. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  17652. "Quinary TDM1 Hostless Capture",
  17653. 0, 0, 0, 0),
  17654. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  17655. "Quinary TDM2 Hostless Playback",
  17656. 0, 0, 0, 0),
  17657. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  17658. "Quinary TDM2 Hostless Capture",
  17659. 0, 0, 0, 0),
  17660. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  17661. "Quinary TDM3 Hostless Playback",
  17662. 0, 0, 0, 0),
  17663. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  17664. "Quinary TDM3 Hostless Capture",
  17665. 0, 0, 0, 0),
  17666. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  17667. "Quinary TDM4 Hostless Playback",
  17668. 0, 0, 0, 0),
  17669. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  17670. "Quinary TDM4 Hostless Capture",
  17671. 0, 0, 0, 0),
  17672. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  17673. "Quinary TDM5 Hostless Playback",
  17674. 0, 0, 0, 0),
  17675. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  17676. "Quinary TDM5 Hostless Capture",
  17677. 0, 0, 0, 0),
  17678. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  17679. "Quinary TDM6 Hostless Playback",
  17680. 0, 0, 0, 0),
  17681. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  17682. "Quinary TDM6 Hostless Capture",
  17683. 0, 0, 0, 0),
  17684. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  17685. "Quinary TDM7 Hostless Playback",
  17686. 0, 0, 0, 0),
  17687. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  17688. "Quinary TDM7 Hostless Capture",
  17689. 0, 0, 0, 0),
  17690. /* LSM */
  17691. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  17692. 0, 0, 0, 0),
  17693. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  17694. 0, 0, 0, 0),
  17695. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  17696. 0, 0, 0, 0),
  17697. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  17698. 0, 0, 0, 0),
  17699. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  17700. 0, 0, 0, 0),
  17701. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  17702. 0, 0, 0, 0),
  17703. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  17704. 0, 0, 0, 0),
  17705. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  17706. 0, 0, 0, 0),
  17707. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  17708. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  17709. /* Backend AIF */
  17710. /* Stream name equals to backend dai link stream name */
  17711. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  17712. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  17713. 0, 0, 0, 0),
  17714. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  17715. 0, 0, 0, 0),
  17716. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  17717. 0, 0, 0, 0),
  17718. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  17719. 0, 0, 0, 0),
  17720. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  17721. 0, 0, 0, 0),
  17722. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  17723. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  17724. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  17725. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  17726. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  17727. 0, 0, 0, 0),
  17728. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  17729. 0, 0, 0, 0),
  17730. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  17731. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  17732. 0, 0, 0, 0),
  17733. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  17734. 0, 0, 0, 0),
  17735. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  17736. 0, 0, 0, 0),
  17737. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  17738. "Secondary MI2S Playback SD1",
  17739. 0, 0, 0, 0),
  17740. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  17741. 0, 0, 0, 0),
  17742. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  17743. 0, 0, 0, 0),
  17744. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  17745. 0, 0, 0, 0),
  17746. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  17747. 0, 0, 0, 0),
  17748. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  17749. 0, 0, 0, 0),
  17750. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  17751. 0, 0, 0, 0),
  17752. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  17753. 0, 0, 0, 0),
  17754. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  17755. 0, 0, 0, 0),
  17756. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  17757. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  17758. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  17759. 0, 0, 0, 0),
  17760. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  17761. 0, 0, 0, 0),
  17762. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  17763. 0, 0, 0, 0),
  17764. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  17765. 0, 0, 0, 0),
  17766. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  17767. 0, 0, 0, 0),
  17768. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  17769. 0, 0, 0, 0),
  17770. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  17771. 0, 0, 0, 0),
  17772. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  17773. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  17774. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  17775. 0, 0, 0, 0),
  17776. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  17777. 0, 0, 0, 0),
  17778. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  17779. 0, 0, 0, 0),
  17780. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  17781. 0, 0, 0, 0),
  17782. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  17783. 0, 0, 0, 0),
  17784. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  17785. 0, 0, 0, 0),
  17786. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  17787. 0, 0, 0, 0),
  17788. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  17789. 0, 0, 0, 0),
  17790. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  17791. 0, 0, 0, 0),
  17792. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  17793. 0, 0, 0, 0),
  17794. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  17795. 0, 0, 0, 0),
  17796. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  17797. 0, 0, 0, 0),
  17798. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  17799. 0, 0, 0, 0),
  17800. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  17801. 0, 0, 0, 0),
  17802. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  17803. 0, 0, 0, 0),
  17804. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  17805. 0, 0, 0, 0),
  17806. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  17807. 0, 0, 0, 0),
  17808. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  17809. 0, 0, 0, 0),
  17810. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  17811. 0, 0, 0, 0),
  17812. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  17813. 0, 0, 0, 0),
  17814. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  17815. 0, 0, 0, 0),
  17816. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  17817. 0, 0, 0, 0),
  17818. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  17819. 0, 0, 0, 0),
  17820. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  17821. 0, 0, 0, 0),
  17822. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  17823. 0, 0, 0, 0),
  17824. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  17825. 0, 0, 0, 0),
  17826. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  17827. 0, 0, 0, 0),
  17828. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  17829. 0, 0, 0, 0),
  17830. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  17831. 0, 0, 0, 0),
  17832. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  17833. 0, 0, 0, 0),
  17834. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  17835. 0, 0, 0, 0),
  17836. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  17837. 0, 0, 0, 0),
  17838. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  17839. 0, 0, 0, 0),
  17840. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  17841. 0, 0, 0, 0),
  17842. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  17843. 0, 0, 0, 0),
  17844. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  17845. 0, 0, 0, 0),
  17846. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  17847. 0, 0, 0, 0),
  17848. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  17849. 0, 0, 0, 0),
  17850. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  17851. 0, 0, 0, 0),
  17852. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  17853. 0, 0, 0, 0),
  17854. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  17855. 0, 0, 0, 0),
  17856. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  17857. 0, 0, 0, 0),
  17858. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  17859. 0, 0, 0, 0),
  17860. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  17861. 0, 0, 0, 0),
  17862. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  17863. 0, 0, 0, 0),
  17864. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  17865. 0, 0, 0, 0),
  17866. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  17867. 0, 0, 0, 0),
  17868. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  17869. 0, 0, 0, 0),
  17870. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  17871. 0, 0, 0, 0),
  17872. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  17873. 0, 0, 0, 0),
  17874. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  17875. 0, 0, 0, 0),
  17876. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  17877. 0, 0, 0, 0),
  17878. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  17879. 0, 0, 0, 0),
  17880. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  17881. 0, 0, 0, 0),
  17882. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  17883. 0, 0, 0, 0),
  17884. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  17885. 0, 0, 0, 0),
  17886. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  17887. 0, 0, 0, 0),
  17888. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  17889. 0, 0, 0, 0),
  17890. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  17891. 0, 0, 0, 0),
  17892. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  17893. 0, 0, 0, 0),
  17894. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  17895. 0, 0, 0, 0),
  17896. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  17897. 0, 0, 0, 0),
  17898. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  17899. 0, 0, 0, 0),
  17900. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  17901. 0, 0, 0, 0),
  17902. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  17903. 0, 0, 0, 0),
  17904. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  17905. 0, 0, 0, 0),
  17906. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  17907. 0, 0, 0, 0),
  17908. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  17909. 0, 0, 0, 0),
  17910. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  17911. 0, 0, 0, 0),
  17912. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  17913. 0, 0, 0, 0),
  17914. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  17915. 0, 0, 0, 0),
  17916. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  17917. 0, 0, 0, 0),
  17918. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  17919. 0, 0, 0, 0),
  17920. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  17921. 0, 0, 0, 0),
  17922. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  17923. 0, 0, 0, 0),
  17924. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  17925. 0, 0, 0, 0),
  17926. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  17927. 0, 0, 0, 0),
  17928. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  17929. 0, 0, 0, 0),
  17930. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  17931. 0, 0, 0, 0),
  17932. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  17933. 0, 0, 0, 0),
  17934. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  17935. 0, 0, 0, 0),
  17936. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  17937. 0, 0, 0, 0),
  17938. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  17939. 0, 0, 0, 0),
  17940. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  17941. 0, 0, 0, 0),
  17942. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  17943. 0, 0, 0, 0),
  17944. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  17945. 0, 0, 0, 0),
  17946. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  17947. 0, 0, 0, 0),
  17948. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  17949. 0, 0, 0, 0),
  17950. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  17951. 0, 0, 0, 0),
  17952. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  17953. 0, 0, 0, 0),
  17954. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  17955. 0, 0, 0, 0),
  17956. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  17957. 0, 0, 0, 0),
  17958. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  17959. 0, 0, 0, 0),
  17960. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  17961. 0, 0, 0, 0),
  17962. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  17963. 0, 0, 0, 0),
  17964. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  17965. 0, 0, 0, 0),
  17966. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  17967. 0, 0, 0, 0),
  17968. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  17969. 0, 0, 0, 0),
  17970. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  17971. 0, 0, 0, 0),
  17972. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  17973. 0, 0, 0, 0),
  17974. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  17975. 0, 0, 0, 0),
  17976. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  17977. 0, 0, 0, 0),
  17978. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  17979. 0, 0, 0, 0),
  17980. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  17981. 0, 0, 0, 0),
  17982. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  17983. 0, 0, 0, 0),
  17984. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  17985. 0, 0, 0, 0),
  17986. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  17987. 0, 0, 0, 0),
  17988. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  17989. 0, 0, 0, 0),
  17990. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  17991. 0, 0, 0, 0),
  17992. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  17993. 0, 0, 0, 0),
  17994. /* incall */
  17995. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  17996. 0, 0, 0, 0),
  17997. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  17998. 0, 0, 0, 0),
  17999. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  18000. 0, 0, 0, 0),
  18001. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  18002. 0, 0, 0, 0),
  18003. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  18004. 0, 0, 0, 0),
  18005. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  18006. 0, 0, 0, 0),
  18007. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  18008. 0, 0, 0, 0),
  18009. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  18010. 0, 0, 0, 0),
  18011. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  18012. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  18013. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  18014. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  18015. 0, 0, 0, 0),
  18016. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  18017. 0, 0, 0, 0),
  18018. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  18019. 0, 0, 0, 0),
  18020. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  18021. 0, 0, 0, 0),
  18022. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  18023. 0, 0, 0, 0),
  18024. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  18025. 0, 0, 0, 0),
  18026. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  18027. 0, 0, 0, 0),
  18028. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  18029. 0, 0, 0, 0),
  18030. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  18031. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  18032. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  18033. 0, 0, 0, 0),
  18034. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  18035. 0, 0, 0, 0),
  18036. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  18037. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  18038. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  18039. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  18040. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  18041. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  18042. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  18043. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  18044. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  18045. /* In- call recording */
  18046. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  18047. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  18048. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  18049. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  18050. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  18051. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  18052. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  18053. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  18054. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  18055. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  18056. /* Switch Definitions */
  18057. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  18058. &slim_fm_switch_mixer_controls),
  18059. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  18060. &slim1_fm_switch_mixer_controls),
  18061. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  18062. &slim3_fm_switch_mixer_controls),
  18063. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  18064. &slim4_fm_switch_mixer_controls),
  18065. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  18066. &slim6_fm_switch_mixer_controls),
  18067. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18068. &pcm_rx_switch_mixer_controls),
  18069. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18070. &int0_mi2s_rx_switch_mixer_controls),
  18071. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18072. &int4_mi2s_rx_switch_mixer_controls),
  18073. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18074. &pri_mi2s_rx_switch_mixer_controls),
  18075. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18076. &sec_mi2s_rx_switch_mixer_controls),
  18077. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18078. &tert_mi2s_rx_switch_mixer_controls),
  18079. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18080. &quat_mi2s_rx_switch_mixer_controls),
  18081. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18082. &quin_mi2s_rx_switch_mixer_controls),
  18083. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18084. &hfp_pri_aux_switch_mixer_controls),
  18085. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18086. &hfp_aux_switch_mixer_controls),
  18087. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  18088. &hfp_int_switch_mixer_controls),
  18089. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18090. &hfp_slim7_switch_mixer_controls),
  18091. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  18092. &usb_switch_mixer_controls),
  18093. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18094. &a2dp_slim7_switch_mixer_controls),
  18095. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18096. &cdc_dma_wsa_switch_mixer_controls),
  18097. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18098. &cdc_dma_rx_switch_mixer_controls),
  18099. /* Mixer definitions */
  18100. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18101. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  18102. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18103. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  18104. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18105. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  18106. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18107. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  18108. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18109. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  18110. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18111. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  18112. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18113. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  18114. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  18115. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  18116. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  18117. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  18118. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  18119. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  18120. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18121. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  18122. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18123. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  18124. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18125. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  18126. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18127. quaternary_mi2s_rx_mixer_controls,
  18128. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  18129. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18130. tertiary_mi2s_rx_mixer_controls,
  18131. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  18132. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18133. secondary_mi2s_rx_mixer_controls,
  18134. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  18135. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18136. secondary_mi2s_rx2_mixer_controls,
  18137. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  18138. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18139. primary_mi2s_rx_mixer_controls,
  18140. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  18141. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18142. int0_mi2s_rx_mixer_controls,
  18143. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  18144. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18145. int4_mi2s_rx_mixer_controls,
  18146. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  18147. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18148. quinary_mi2s_rx_mixer_controls,
  18149. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  18150. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18151. pri_tdm_rx_0_mixer_controls,
  18152. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  18153. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18154. pri_tdm_rx_1_mixer_controls,
  18155. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  18156. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18157. pri_tdm_rx_2_mixer_controls,
  18158. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  18159. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18160. pri_tdm_rx_3_mixer_controls,
  18161. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  18162. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18163. pri_tdm_tx_0_mixer_controls,
  18164. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  18165. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18166. sec_tdm_rx_0_mixer_controls,
  18167. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  18168. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18169. sec_tdm_rx_1_mixer_controls,
  18170. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  18171. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18172. sec_tdm_rx_2_mixer_controls,
  18173. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  18174. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18175. sec_tdm_rx_3_mixer_controls,
  18176. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  18177. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18178. sec_tdm_tx_0_mixer_controls,
  18179. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  18180. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18181. tert_tdm_rx_0_mixer_controls,
  18182. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  18183. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18184. tert_tdm_tx_0_mixer_controls,
  18185. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  18186. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18187. tert_tdm_rx_1_mixer_controls,
  18188. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  18189. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18190. tert_tdm_rx_2_mixer_controls,
  18191. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  18192. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18193. tert_tdm_rx_3_mixer_controls,
  18194. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  18195. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18196. tert_tdm_rx_4_mixer_controls,
  18197. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  18198. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18199. quat_tdm_rx_0_mixer_controls,
  18200. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  18201. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18202. quat_tdm_tx_0_mixer_controls,
  18203. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  18204. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18205. quat_tdm_rx_1_mixer_controls,
  18206. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  18207. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18208. quat_tdm_rx_2_mixer_controls,
  18209. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  18210. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18211. quat_tdm_rx_3_mixer_controls,
  18212. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  18213. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18214. quin_tdm_rx_0_mixer_controls,
  18215. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  18216. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18217. quin_tdm_tx_0_mixer_controls,
  18218. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  18219. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18220. quin_tdm_rx_1_mixer_controls,
  18221. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  18222. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18223. quin_tdm_rx_2_mixer_controls,
  18224. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  18225. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18226. quin_tdm_rx_3_mixer_controls,
  18227. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  18228. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18229. wsa_cdc_dma_rx_0_mixer_controls,
  18230. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  18231. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18232. wsa_cdc_dma_rx_1_mixer_controls,
  18233. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  18234. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18235. rx_cdc_dma_rx_0_mixer_controls,
  18236. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  18237. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18238. rx_cdc_dma_rx_1_mixer_controls,
  18239. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  18240. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18241. rx_cdc_dma_rx_2_mixer_controls,
  18242. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  18243. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18244. rx_cdc_dma_rx_3_mixer_controls,
  18245. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  18246. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18247. rx_cdc_dma_rx_4_mixer_controls,
  18248. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  18249. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18250. rx_cdc_dma_rx_5_mixer_controls,
  18251. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  18252. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18253. rx_cdc_dma_rx_6_mixer_controls,
  18254. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  18255. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18256. rx_cdc_dma_rx_7_mixer_controls,
  18257. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  18258. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  18259. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  18260. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  18261. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  18262. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  18263. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  18264. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  18265. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  18266. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  18267. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  18268. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  18269. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  18270. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  18271. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  18272. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  18273. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  18274. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  18275. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  18276. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  18277. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  18278. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  18279. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  18280. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  18281. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  18282. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  18283. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  18284. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  18285. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  18286. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  18287. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  18288. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  18289. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  18290. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  18291. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  18292. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  18293. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  18294. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18295. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  18296. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18297. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  18298. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18299. tert_auxpcm_rx_mixer_controls,
  18300. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  18301. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18302. quat_auxpcm_rx_mixer_controls,
  18303. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  18304. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18305. quin_auxpcm_rx_mixer_controls,
  18306. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  18307. /* incall */
  18308. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  18309. incall_music_delivery_mixer_controls,
  18310. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  18311. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18312. incall_music2_delivery_mixer_controls,
  18313. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  18314. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18315. slimbus_4_rx_mixer_controls,
  18316. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  18317. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18318. slimbus_6_rx_mixer_controls,
  18319. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  18320. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18321. usb_audio_rx_mixer_controls,
  18322. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  18323. /* Voice Mixer */
  18324. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  18325. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  18326. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  18327. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  18328. SND_SOC_NOPM, 0, 0,
  18329. sec_i2s_rx_voice_mixer_controls,
  18330. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  18331. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  18332. SND_SOC_NOPM, 0, 0,
  18333. sec_mi2s_rx_voice_mixer_controls,
  18334. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  18335. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  18336. SND_SOC_NOPM, 0, 0,
  18337. slimbus_rx_voice_mixer_controls,
  18338. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  18339. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  18340. SND_SOC_NOPM, 0, 0,
  18341. bt_sco_rx_voice_mixer_controls,
  18342. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  18343. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  18344. SND_SOC_NOPM, 0, 0,
  18345. afe_pcm_rx_voice_mixer_controls,
  18346. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  18347. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  18348. SND_SOC_NOPM, 0, 0,
  18349. aux_pcm_rx_voice_mixer_controls,
  18350. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  18351. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  18352. SND_SOC_NOPM, 0, 0,
  18353. sec_aux_pcm_rx_voice_mixer_controls,
  18354. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  18355. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  18356. SND_SOC_NOPM, 0, 0,
  18357. tert_aux_pcm_rx_voice_mixer_controls,
  18358. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  18359. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  18360. SND_SOC_NOPM, 0, 0,
  18361. quat_aux_pcm_rx_voice_mixer_controls,
  18362. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  18363. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  18364. SND_SOC_NOPM, 0, 0,
  18365. quin_aux_pcm_rx_voice_mixer_controls,
  18366. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  18367. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  18368. SND_SOC_NOPM, 0, 0,
  18369. hdmi_rx_voice_mixer_controls,
  18370. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  18371. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  18372. SND_SOC_NOPM, 0, 0,
  18373. mi2s_rx_voice_mixer_controls,
  18374. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  18375. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  18376. SND_SOC_NOPM, 0, 0,
  18377. pri_mi2s_rx_voice_mixer_controls,
  18378. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  18379. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  18380. SND_SOC_NOPM, 0, 0,
  18381. int0_mi2s_rx_voice_mixer_controls,
  18382. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  18383. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  18384. SND_SOC_NOPM, 0, 0,
  18385. int4_mi2s_rx_voice_mixer_controls,
  18386. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  18387. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  18388. SND_SOC_NOPM, 0, 0,
  18389. tert_mi2s_rx_voice_mixer_controls,
  18390. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  18391. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  18392. SND_SOC_NOPM, 0, 0,
  18393. quat_mi2s_rx_voice_mixer_controls,
  18394. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  18395. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  18396. SND_SOC_NOPM, 0, 0,
  18397. quin_mi2s_rx_voice_mixer_controls,
  18398. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  18399. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  18400. SND_SOC_NOPM, 0, 0,
  18401. quat_tdm_rx_2_voice_mixer_controls,
  18402. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  18403. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  18404. SND_SOC_NOPM, 0, 0,
  18405. wsa_cdc_dma_rx_0_voice_mixer_controls,
  18406. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  18407. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  18408. SND_SOC_NOPM, 0, 0,
  18409. rx_cdc_dma_rx_0_voice_mixer_controls,
  18410. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  18411. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  18412. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  18413. ARRAY_SIZE(tx_voip_mixer_controls)),
  18414. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  18415. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  18416. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  18417. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  18418. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  18419. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  18420. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18421. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  18422. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18423. int_bt_a2dp_rx_mixer_controls,
  18424. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  18425. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18426. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  18427. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18428. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  18429. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18430. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  18431. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18432. tx_voice2_stub_mixer_controls,
  18433. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  18434. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18435. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  18436. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  18437. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  18438. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  18439. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  18440. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18441. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  18442. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  18443. SND_SOC_NOPM, 0, 0,
  18444. slimbus_6_rx_voice_mixer_controls,
  18445. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  18446. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18447. slimbus_7_rx_voice_mixer_controls,
  18448. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  18449. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18450. slimbus_8_rx_voice_mixer_controls,
  18451. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  18452. /* port mixer */
  18453. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  18454. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  18455. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  18456. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  18457. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  18458. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  18459. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  18460. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  18461. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  18462. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  18463. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  18464. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  18465. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  18466. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  18467. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  18468. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  18469. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  18470. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  18471. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18472. sbus_1_rx_port_mixer_controls,
  18473. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  18474. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18475. bt_sco_rx_port_mixer_controls,
  18476. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  18477. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  18478. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  18479. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  18480. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  18481. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  18482. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  18483. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  18484. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  18485. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  18486. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  18487. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  18488. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  18489. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  18490. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  18491. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  18492. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  18493. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  18494. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  18495. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  18496. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  18497. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  18498. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18499. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  18500. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18501. primary_mi2s_rx_port_mixer_controls,
  18502. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  18503. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18504. sec_mi2s_rx_port_mixer_controls,
  18505. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  18506. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18507. tert_mi2s_rx_port_mixer_controls,
  18508. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  18509. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18510. quat_mi2s_rx_port_mixer_controls,
  18511. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  18512. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18513. quin_mi2s_rx_port_mixer_controls,
  18514. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  18515. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18516. pri_tdm_rx_0_port_mixer_controls,
  18517. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  18518. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18519. pri_tdm_rx_1_port_mixer_controls,
  18520. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  18521. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18522. pri_tdm_rx_2_port_mixer_controls,
  18523. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  18524. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18525. pri_tdm_rx_3_port_mixer_controls,
  18526. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  18527. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18528. sec_tdm_rx_0_port_mixer_controls,
  18529. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  18530. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18531. sec_tdm_rx_1_port_mixer_controls,
  18532. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  18533. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18534. sec_tdm_rx_2_port_mixer_controls,
  18535. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  18536. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18537. sec_tdm_rx_3_port_mixer_controls,
  18538. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  18539. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  18540. sec_tdm_rx_7_port_mixer_controls,
  18541. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  18542. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18543. tert_tdm_rx_0_port_mixer_controls,
  18544. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  18545. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18546. tert_tdm_rx_1_port_mixer_controls,
  18547. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  18548. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18549. tert_tdm_rx_2_port_mixer_controls,
  18550. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  18551. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18552. tert_tdm_rx_3_port_mixer_controls,
  18553. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  18554. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18555. quat_tdm_rx_0_port_mixer_controls,
  18556. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  18557. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18558. quat_tdm_rx_1_port_mixer_controls,
  18559. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  18560. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18561. quat_tdm_rx_2_port_mixer_controls,
  18562. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  18563. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18564. quat_tdm_rx_3_port_mixer_controls,
  18565. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  18566. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18567. quin_tdm_rx_0_port_mixer_controls,
  18568. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  18569. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18570. quin_tdm_rx_1_port_mixer_controls,
  18571. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  18572. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18573. quin_tdm_rx_2_port_mixer_controls,
  18574. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  18575. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18576. quin_tdm_rx_3_port_mixer_controls,
  18577. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  18578. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18579. int0_mi2s_rx_port_mixer_controls,
  18580. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  18581. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18582. int4_mi2s_rx_port_mixer_controls,
  18583. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  18584. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18585. wsa_cdc_dma_rx_0_port_mixer_controls,
  18586. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  18587. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18588. rx_cdc_dma_rx_0_port_mixer_controls,
  18589. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  18590. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  18591. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  18592. ARRAY_SIZE(tx_qchat_mixer_controls)),
  18593. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  18594. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  18595. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  18596. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  18597. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  18598. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  18599. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  18600. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  18601. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  18602. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  18603. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  18604. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  18605. /* lsm mixer definitions */
  18606. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  18607. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  18608. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  18609. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  18610. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  18611. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  18612. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  18613. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  18614. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  18615. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  18616. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  18617. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  18618. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  18619. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  18620. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  18621. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  18622. /* Virtual Pins to force backends ON atm */
  18623. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  18624. SND_SOC_DAPM_INPUT("BE_IN"),
  18625. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18626. &slim0_rx_vi_fb_lch_mux),
  18627. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18628. &slim0_rx_vi_fb_rch_mux),
  18629. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18630. &wsa_rx_0_vi_fb_lch_mux),
  18631. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18632. &wsa_rx_0_vi_fb_rch_mux),
  18633. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  18634. &mi2s_rx_vi_fb_mux),
  18635. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18636. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  18637. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18638. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  18639. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  18640. &voc_ext_ec_mux),
  18641. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  18642. &ext_ec_ref_mux_ul1),
  18643. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  18644. &ext_ec_ref_mux_ul2),
  18645. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  18646. &ext_ec_ref_mux_ul3),
  18647. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  18648. &ext_ec_ref_mux_ul4),
  18649. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  18650. &ext_ec_ref_mux_ul5),
  18651. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  18652. &ext_ec_ref_mux_ul6),
  18653. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  18654. &ext_ec_ref_mux_ul8),
  18655. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  18656. &ext_ec_ref_mux_ul9),
  18657. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  18658. &ext_ec_ref_mux_ul10),
  18659. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  18660. &ext_ec_ref_mux_ul16),
  18661. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  18662. &ext_ec_ref_mux_ul17),
  18663. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  18664. &ext_ec_ref_mux_ul18),
  18665. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  18666. &ext_ec_ref_mux_ul19),
  18667. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  18668. &ext_ec_ref_mux_ul28),
  18669. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  18670. &ext_ec_ref_mux_ul29),
  18671. };
  18672. static const struct snd_soc_dapm_route intercon[] = {
  18673. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18674. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18675. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18676. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18677. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18678. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18679. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18680. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18681. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18682. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18683. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18684. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18685. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18686. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18687. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18688. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18689. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18690. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  18691. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18692. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18693. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18694. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18695. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18696. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18697. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18698. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18699. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18700. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18701. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18702. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18703. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18704. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18705. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18706. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18707. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18708. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  18709. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18710. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18711. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18712. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18713. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18714. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18715. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18716. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18717. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18718. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18719. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18720. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18721. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18722. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18723. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18724. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18725. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18726. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  18727. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18728. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18729. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18730. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18731. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18732. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18733. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18734. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18735. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18736. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18737. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18738. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18739. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18740. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18741. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18742. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18743. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18744. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  18745. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18746. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18747. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18748. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18749. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18750. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18751. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18752. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18753. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18754. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18755. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18756. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18757. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18758. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18759. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18760. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18761. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18762. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  18763. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18764. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18765. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18766. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18767. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18768. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18769. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18770. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18771. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18772. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18773. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18774. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18775. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18776. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18777. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18778. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18779. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18780. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  18781. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18782. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18783. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18784. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18785. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18786. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18787. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18788. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18789. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18790. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18791. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18792. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18793. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18794. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18795. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18796. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18797. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18798. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  18799. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18800. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18801. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18802. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18803. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18804. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18805. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18806. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18807. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18808. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18809. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18810. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18811. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18812. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18813. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18814. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18815. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18816. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  18817. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18818. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18819. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18820. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18821. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18822. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18823. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18824. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18825. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18826. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18827. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18828. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18829. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18830. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18831. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18832. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18833. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18834. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  18835. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18836. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18837. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18838. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18839. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18840. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18841. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18842. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18843. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18844. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18845. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18846. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18847. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18848. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18849. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18850. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18851. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18852. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  18853. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18854. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18855. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18856. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18857. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18858. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18859. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18860. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18861. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18862. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18863. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18864. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18865. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18866. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18867. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18868. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18869. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18870. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  18871. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18872. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18873. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18874. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18875. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18876. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18877. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18878. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18879. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18880. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18881. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18882. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18883. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18884. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18885. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18886. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18887. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18888. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  18889. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18890. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18891. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18892. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18893. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18894. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18895. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18896. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18897. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18898. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18899. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18900. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18901. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18902. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18903. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18904. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18905. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18906. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  18907. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18908. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18909. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18910. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18911. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18912. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18913. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18914. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18915. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18916. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18917. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18918. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18919. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18920. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18921. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18922. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18923. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18924. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  18925. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18926. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18927. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18928. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18929. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18930. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18931. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18932. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18933. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18934. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18935. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18936. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18937. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18938. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18939. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18940. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18941. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18942. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  18943. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  18944. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  18945. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  18946. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  18947. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  18948. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  18949. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  18950. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  18951. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  18952. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  18953. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  18954. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  18955. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  18956. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  18957. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  18958. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  18959. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  18960. {"HDMI", NULL, "HDMI Mixer"},
  18961. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  18962. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  18963. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  18964. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  18965. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  18966. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  18967. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  18968. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  18969. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  18970. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  18971. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  18972. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  18973. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  18974. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  18975. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  18976. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  18977. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  18978. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  18979. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  18980. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  18981. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  18982. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  18983. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  18984. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  18985. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  18986. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  18987. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  18988. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  18989. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  18990. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  18991. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  18992. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  18993. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  18994. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  18995. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  18996. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  18997. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18998. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18999. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19000. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19001. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19002. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19003. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19004. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19005. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19006. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19007. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19008. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19009. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19010. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19011. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19012. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19013. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19014. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  19015. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19016. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19017. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19018. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19019. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19020. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19021. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19022. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19023. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19024. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19025. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19026. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19027. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19028. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19029. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19030. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19031. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19032. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  19033. /* incall */
  19034. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  19035. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  19036. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  19037. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  19038. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  19039. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19040. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19041. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19042. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19043. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  19044. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19045. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19046. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19047. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19048. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  19049. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19050. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19051. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19052. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19053. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19054. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19055. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19056. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19057. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19058. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19059. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19060. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19061. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19062. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19063. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19064. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19065. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19066. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  19067. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19068. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19069. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19070. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19071. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19072. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19073. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19074. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19075. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19076. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19077. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19078. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19079. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19080. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19081. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19082. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19083. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19084. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  19085. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19086. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19087. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19088. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19089. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19090. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19091. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19092. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19093. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19094. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19095. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19096. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19097. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19098. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19099. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19100. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19101. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19102. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  19103. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19104. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19105. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19106. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19107. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19108. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19109. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19110. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19111. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19112. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19113. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19114. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19115. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19116. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19117. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19118. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19119. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19120. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  19121. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19122. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19123. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19124. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19125. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19126. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19127. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  19128. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19129. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19130. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19131. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19132. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19133. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19134. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19135. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19136. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19137. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19138. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19139. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19140. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19141. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19142. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19143. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19144. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19145. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19146. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19147. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19148. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19149. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19150. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19151. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19152. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19153. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19154. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19155. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19156. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19157. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19158. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19159. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19160. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19161. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19162. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19163. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19164. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19165. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19166. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19167. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19168. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19169. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19170. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19171. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19172. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19173. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19174. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19175. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19176. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19177. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19178. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19179. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19180. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19181. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19182. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19183. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19184. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19185. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19186. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19187. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19188. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19189. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19190. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  19191. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19192. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19193. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19194. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19195. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19196. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19197. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19198. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19199. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19200. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19201. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19202. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19203. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19204. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19205. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19206. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19207. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  19208. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19209. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19210. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19211. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19212. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19213. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19214. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19215. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19216. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19217. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19218. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19219. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19220. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19221. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19222. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19223. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  19224. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19225. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19226. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19227. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19228. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19229. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19230. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19231. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19232. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19233. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19234. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19235. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19236. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19237. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19238. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19239. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  19240. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19241. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  19242. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19243. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19244. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19245. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19246. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19247. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19248. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19249. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19250. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19251. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19252. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19253. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19254. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19255. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19256. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19257. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19258. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19259. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19260. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  19261. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19262. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19263. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19264. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19265. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19266. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19267. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19268. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19269. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19270. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19271. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19272. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19273. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19274. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19275. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19276. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  19277. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19278. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19279. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19280. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19281. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19282. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19283. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19284. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19285. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19286. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19287. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19288. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19289. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19290. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19291. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19292. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  19293. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19294. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19295. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19296. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19297. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19298. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19299. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19300. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19301. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19302. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19303. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19304. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19305. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19306. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19307. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19308. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19309. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19310. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  19311. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19312. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19313. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19314. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19315. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19316. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19317. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19318. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19319. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19320. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19321. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19322. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19323. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19324. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19325. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19326. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19327. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19328. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  19329. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19330. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19331. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19332. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19333. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19334. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19335. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19336. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19337. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19338. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19339. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19340. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19341. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19342. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19343. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19344. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19345. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19346. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  19347. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19348. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19349. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19350. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19351. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19352. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19353. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19354. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19355. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19356. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19357. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19358. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19359. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19360. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19361. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19362. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19363. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19364. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  19365. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19366. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19367. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19368. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19369. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19370. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19371. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19372. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19373. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19374. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19375. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19376. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19377. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19378. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19379. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19380. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19381. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19382. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  19383. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19384. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19385. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19386. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19387. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19388. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19389. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19390. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19391. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19392. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19393. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19394. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19395. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19396. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19397. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19398. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19399. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  19400. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19401. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19402. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19403. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19404. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19405. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19406. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19407. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19408. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19409. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19410. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19411. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19412. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19413. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19414. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19415. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19416. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19417. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  19418. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19419. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19420. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19421. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19422. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19423. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19424. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19425. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19426. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19427. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19428. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19429. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19430. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19431. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19432. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19433. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19434. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19435. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  19436. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19437. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19438. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19439. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19440. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19441. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19442. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19443. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19444. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19445. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19446. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19447. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19448. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19449. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19450. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19451. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19452. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19453. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  19454. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19455. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19456. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19457. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19458. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19459. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19460. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19461. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19462. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19463. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19464. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19465. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19466. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19467. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19468. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19469. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19470. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19471. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  19472. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19473. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19474. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19475. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19476. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19477. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19478. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19479. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19480. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19481. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19482. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19483. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19484. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19485. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19486. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19487. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19488. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  19489. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19490. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19491. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19492. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19493. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19494. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19495. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19496. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19497. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19498. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19499. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19500. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19501. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19502. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19503. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19504. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19505. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19506. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  19507. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19508. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19509. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19510. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19511. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19512. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19513. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19514. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19515. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19516. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19517. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19518. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19519. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19520. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19521. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19522. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19523. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  19524. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19525. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19526. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19527. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19528. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19529. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19530. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19531. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19532. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19533. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19534. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19535. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19536. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19537. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19538. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19539. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19540. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19541. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  19542. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19543. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19544. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19545. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19546. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19547. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19548. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19549. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19550. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19551. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19552. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19553. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19554. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19555. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19556. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19557. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19558. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19559. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  19560. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19561. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19562. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19563. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19564. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19565. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19566. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19567. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19568. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19569. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19570. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19571. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19572. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19573. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19574. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19575. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19576. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19577. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  19578. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19579. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19580. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19581. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19582. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19583. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19584. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19585. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19586. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19587. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19588. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19589. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19590. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19591. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19592. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19593. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19594. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19595. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  19596. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19597. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19598. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19599. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19600. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19601. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19602. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19603. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19604. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19605. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19606. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19607. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19608. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19609. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19610. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19611. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19612. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19613. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19614. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  19615. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19616. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19617. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19618. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19619. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19620. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19621. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19622. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19623. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19624. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19625. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19626. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19627. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19628. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19629. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19630. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19631. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  19632. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19633. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19634. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19635. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19636. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19637. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19638. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19639. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19640. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19641. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19642. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19643. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19644. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19645. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19646. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19647. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19648. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19649. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19650. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  19651. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19652. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19653. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19654. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19655. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19656. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19657. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19658. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19659. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19660. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19661. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19662. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19663. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19664. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19665. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19666. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19667. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19668. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19669. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  19670. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19671. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19672. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19673. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19674. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19675. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19676. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19677. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19678. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19679. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19680. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19681. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19682. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19683. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19684. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19685. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19686. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19687. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19688. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  19689. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19690. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19691. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19692. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19693. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19694. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19695. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19696. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19697. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19698. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19699. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19700. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19701. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19702. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19703. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19704. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19705. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19706. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19707. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  19708. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19709. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19710. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19711. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19712. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19713. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19714. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19715. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19716. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19717. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19718. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19719. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19720. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19721. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19722. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19723. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19724. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  19725. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19726. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19727. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19728. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19729. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19730. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19731. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19732. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19733. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19734. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19735. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19736. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19737. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19738. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19739. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19740. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19741. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19742. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19743. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  19744. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19745. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19746. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19747. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19748. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19749. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19750. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19751. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19752. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19753. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19754. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19755. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19756. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19757. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19758. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19759. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19760. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19761. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19762. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  19763. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19764. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19765. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19766. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19767. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19768. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19769. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19770. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19771. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19772. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19773. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19774. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19775. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19776. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19777. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19778. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19779. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19780. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19781. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  19782. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  19783. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  19784. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  19785. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  19786. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  19787. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  19788. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  19789. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19790. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19791. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19792. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19793. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19794. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19795. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19796. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19797. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19798. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19799. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19800. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19801. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19802. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19803. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19804. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19805. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19806. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19807. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19808. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19809. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19810. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19811. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  19812. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19813. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19814. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19815. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  19816. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19817. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19818. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19819. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19820. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  19821. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19822. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19823. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19824. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19825. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19826. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19827. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19828. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19829. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19830. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19831. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19832. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19833. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19834. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19835. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19836. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19837. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19838. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19839. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19840. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19841. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19842. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19843. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19844. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19845. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19846. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19847. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19848. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19849. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19850. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19851. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19852. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19853. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19854. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19855. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19856. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19857. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19858. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19859. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19860. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19861. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19862. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19863. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19864. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19865. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19866. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19867. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19868. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19869. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19870. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19871. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19872. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19873. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19874. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19875. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19876. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19877. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19878. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19879. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19880. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19881. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19882. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19883. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19884. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19885. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19886. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19887. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19888. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19889. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19890. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19891. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19892. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19893. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19894. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19895. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19896. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19897. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19898. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19899. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19900. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19901. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19902. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19903. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19904. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19905. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19906. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19907. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19908. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19909. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19910. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19911. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19912. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19913. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19914. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19915. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19916. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19917. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19918. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19919. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19920. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19921. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19922. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19923. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19924. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19925. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19926. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19927. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19928. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19929. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19930. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19931. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19932. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19933. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19934. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19935. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19936. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19937. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19938. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19939. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19940. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19941. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19942. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19943. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19944. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19945. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19946. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19947. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19948. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19949. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19950. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19951. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19952. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19953. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19954. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19955. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19956. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19957. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19958. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19959. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19960. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19961. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19962. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19963. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19964. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19965. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19966. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19967. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19968. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19969. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19970. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19971. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19972. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19973. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19974. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19975. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19976. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19977. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19978. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19979. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19980. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19981. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19982. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19983. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19984. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19985. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19986. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19987. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19988. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19989. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19990. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19991. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19992. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19993. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19994. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19995. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19996. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19997. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19998. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19999. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20000. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20001. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20002. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20003. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20004. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20005. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20006. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20007. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20008. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20009. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20010. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20011. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20012. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20013. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20014. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20015. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20016. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20017. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20018. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20019. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20020. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20021. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20022. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20023. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20024. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20025. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20026. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20027. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20028. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20029. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20030. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20031. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20032. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20033. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20034. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20035. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20036. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20037. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20038. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20039. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20040. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20041. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20042. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20043. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20044. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20045. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20046. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20047. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20048. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20049. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20050. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20051. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20052. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20053. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20054. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20055. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20056. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20057. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20058. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20059. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20060. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20061. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20062. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20063. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20064. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20065. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20066. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20067. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20068. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20069. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20070. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20071. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20072. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20073. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20074. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20075. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20076. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20077. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20078. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20079. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20080. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20081. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20082. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20083. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20084. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20085. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20086. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20087. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20088. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20089. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20090. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20091. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20092. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20093. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20094. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20095. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20096. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20097. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20098. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20099. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20100. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20101. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20102. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20103. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20104. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20105. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20106. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20107. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20108. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20109. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20110. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20111. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20112. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20113. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20114. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20115. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20116. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20117. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20118. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20119. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20120. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20121. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20122. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20123. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20124. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20125. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20126. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20127. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20128. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20129. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20130. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20131. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20132. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20133. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20134. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20135. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20136. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20137. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20138. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20139. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20140. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20141. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20142. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20143. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20144. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20145. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20146. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20147. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20148. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20149. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20150. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20151. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20152. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20153. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20154. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20155. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20156. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20157. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20158. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20159. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20160. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20161. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20162. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20163. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20164. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20165. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20166. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20167. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20168. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20169. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20170. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20171. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20172. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20173. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20174. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20175. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20176. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20177. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20178. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20179. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20180. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20181. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20182. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20183. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20184. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20185. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20186. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20187. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20188. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20189. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20190. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20191. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20192. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20193. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20194. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20195. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20196. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20197. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20198. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20199. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  20200. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20201. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  20202. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20203. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20204. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20205. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20206. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20207. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20208. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20209. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20210. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20211. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20212. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20213. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20214. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20215. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20216. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20217. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20218. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20219. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20220. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20221. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20222. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20223. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20224. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20225. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20226. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20227. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20228. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20229. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20230. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20231. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20232. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20233. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20234. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20235. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20236. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20237. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20238. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20239. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20240. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20241. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20242. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20243. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20244. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20245. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20246. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20247. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20248. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20249. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20250. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20251. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20252. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20253. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20254. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20255. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20256. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20257. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20258. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20259. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20260. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20261. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20262. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20263. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20264. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20265. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20266. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20267. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20268. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20269. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20270. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20271. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20272. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20273. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20274. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20275. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20276. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20277. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20278. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20279. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20280. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20281. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20282. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20283. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20284. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20285. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20286. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20287. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20288. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20289. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20290. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20291. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20292. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20293. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  20294. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20295. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20296. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20297. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20298. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20299. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20300. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20301. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20302. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20303. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20304. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20305. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20306. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20307. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20308. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20309. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20310. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20311. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  20312. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20313. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20314. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20315. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20316. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20317. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20318. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20319. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20320. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20321. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20322. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20323. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20324. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20325. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20326. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20327. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20328. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  20329. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20330. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20331. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20332. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20333. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20334. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20335. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20336. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20337. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20338. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20339. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20340. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20341. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20342. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20343. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20344. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20345. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  20346. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20347. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20348. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20349. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20350. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20351. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20352. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20353. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20354. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20355. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20356. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20357. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20358. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20359. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20360. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20361. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20362. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20363. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20364. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20365. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20366. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20367. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20368. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20369. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20370. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20371. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20372. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20373. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20374. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20375. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20376. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20377. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20378. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20379. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20380. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20381. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  20382. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20383. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  20384. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  20385. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  20386. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  20387. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  20388. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  20389. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  20390. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  20391. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  20392. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  20393. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  20394. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  20395. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  20396. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  20397. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  20398. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  20399. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  20400. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20401. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20402. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20403. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20404. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20405. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20406. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20407. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20408. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20409. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20410. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20411. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20412. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20413. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20414. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20415. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20416. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20417. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  20418. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20419. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20420. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20421. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20422. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20423. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20424. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20425. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20426. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20427. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20428. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20429. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20430. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20431. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20432. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20433. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20434. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20435. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  20436. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20437. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20438. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20439. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20440. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20441. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20442. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20443. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20444. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20445. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20446. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20447. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20448. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20449. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20450. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20451. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20452. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  20453. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20454. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20455. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20456. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20457. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20458. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20459. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20460. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20461. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20462. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20463. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20464. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20465. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20466. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20467. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20468. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20469. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  20470. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20471. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20472. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20473. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20474. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20475. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20476. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20477. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20478. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20479. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20480. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20481. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20482. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20483. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20484. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20485. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20486. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  20487. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20488. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20489. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20490. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20491. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20492. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  20493. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20494. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20495. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20496. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  20497. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20498. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20499. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20500. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20501. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20502. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  20503. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20504. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20505. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20506. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20507. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20508. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  20509. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20510. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20511. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20512. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20513. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20514. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  20515. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20516. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20517. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20518. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20519. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20520. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  20521. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20522. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20523. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20524. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20525. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20526. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  20527. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  20528. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20529. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20530. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20531. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20532. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  20533. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20534. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20535. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20536. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20537. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20538. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  20539. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20540. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20541. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20542. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20543. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20544. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  20545. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20546. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20547. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20548. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20549. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20550. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  20551. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20552. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20553. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20554. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20555. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20556. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  20557. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20558. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20559. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20560. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20561. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20562. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  20563. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20564. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20565. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20566. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20567. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20568. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  20569. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20570. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20571. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20572. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20573. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20574. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  20575. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20576. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20577. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20578. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20579. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20580. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  20581. {"HDMI", NULL, "HDMI_DL_HL"},
  20582. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20583. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20584. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20585. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20586. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20587. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  20588. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20589. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20590. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20591. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20592. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20593. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  20594. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20595. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20596. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20597. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20598. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20599. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  20600. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20601. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20602. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20603. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20604. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20605. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  20606. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20607. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20608. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20609. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20610. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20611. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  20612. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20613. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20614. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20615. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20616. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  20617. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20618. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20619. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20620. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20621. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  20622. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20623. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  20624. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20625. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20626. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  20627. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20628. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20629. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  20630. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20631. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20632. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20633. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20634. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20635. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20636. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  20637. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  20638. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  20639. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  20640. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20641. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20642. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20643. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20644. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20645. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20646. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20647. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20648. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20649. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20650. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20651. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20652. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20653. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20654. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20655. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20656. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20657. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20658. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20659. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20660. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20661. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20662. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20663. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20664. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20665. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20666. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20667. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20668. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20669. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20670. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20671. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20672. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20673. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20674. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20675. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20676. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20677. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20678. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20679. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20680. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20681. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20682. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20683. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20684. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20685. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20686. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20687. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20688. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20689. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20690. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20691. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20692. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20693. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20694. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20695. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20696. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20697. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20698. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20699. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20700. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20701. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20702. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20703. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20704. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20705. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20706. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20707. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20708. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20709. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20710. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20711. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20712. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20713. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20714. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20715. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20716. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20717. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20718. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20719. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20720. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20721. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  20722. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  20723. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  20724. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  20725. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  20726. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  20727. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  20728. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  20729. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  20730. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  20731. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  20732. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  20733. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  20734. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  20735. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  20736. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  20737. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  20738. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  20739. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  20740. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  20741. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  20742. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  20743. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  20744. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  20745. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  20746. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  20747. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  20748. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  20749. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  20750. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  20751. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  20752. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  20753. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  20754. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  20755. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  20756. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  20757. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  20758. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  20759. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  20760. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  20761. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  20762. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  20763. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  20764. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  20765. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  20766. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  20767. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  20768. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  20769. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  20770. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  20771. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  20772. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  20773. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  20774. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  20775. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  20776. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  20777. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  20778. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  20779. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  20780. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  20781. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  20782. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  20783. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  20784. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  20785. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  20786. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  20787. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  20788. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  20789. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  20790. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  20791. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  20792. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  20793. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  20794. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  20795. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  20796. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  20797. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  20798. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  20799. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  20800. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  20801. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  20802. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  20803. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  20804. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  20805. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  20806. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  20807. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  20808. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  20809. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  20810. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  20811. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  20812. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  20813. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  20814. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20815. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  20816. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  20817. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20818. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  20819. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  20820. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20821. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20822. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20823. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20824. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20825. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20826. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20827. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20828. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20829. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20830. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20831. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20832. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  20833. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20834. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20835. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20836. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20837. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20838. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20839. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20840. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20841. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20842. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20843. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20844. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20845. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  20846. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20847. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20848. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20849. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20850. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20851. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20852. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20853. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20854. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20855. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20856. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20857. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20858. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  20859. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20860. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20861. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20862. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20863. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20864. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20865. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20866. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20867. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20868. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20869. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20870. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20871. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  20872. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20873. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20874. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20875. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20876. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20877. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20878. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20879. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20880. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20881. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20882. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20883. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20884. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  20885. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20886. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20887. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20888. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20889. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20890. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20891. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20892. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20893. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20894. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20895. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  20896. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20897. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20898. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20899. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20900. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20901. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20902. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20903. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20904. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20905. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20906. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  20907. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20908. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20909. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20910. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20911. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20912. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20913. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20914. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20915. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20916. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20917. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  20918. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  20919. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  20920. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  20921. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  20922. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  20923. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  20924. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  20925. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  20926. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  20927. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  20928. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  20929. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  20930. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  20931. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  20932. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  20933. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  20934. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  20935. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  20936. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  20937. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  20938. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  20939. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  20940. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  20941. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  20942. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  20943. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  20944. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  20945. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20946. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  20947. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  20948. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  20949. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20950. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  20951. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  20952. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  20953. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  20954. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  20955. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  20956. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  20957. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  20958. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20959. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  20960. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20961. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  20962. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  20963. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  20964. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  20965. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  20966. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  20967. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  20968. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  20969. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  20970. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  20971. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  20972. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20973. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  20974. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20975. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  20976. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  20977. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  20978. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  20979. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  20980. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  20981. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  20982. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  20983. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  20984. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  20985. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  20986. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  20987. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  20988. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  20989. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  20990. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  20991. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  20992. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  20993. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  20994. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  20995. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  20996. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  20997. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  20998. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  20999. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  21000. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  21001. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  21002. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  21003. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  21004. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  21005. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  21006. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  21007. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  21008. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  21009. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  21010. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  21011. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  21012. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  21013. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  21014. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  21015. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  21016. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  21017. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  21018. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  21019. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  21020. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  21021. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  21022. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  21023. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  21024. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21025. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21026. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21027. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21028. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21029. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21030. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21031. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21032. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21033. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21034. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21035. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21036. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21037. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21038. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21039. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21040. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21041. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21042. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21043. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21044. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  21045. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21046. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21047. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21048. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21049. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21050. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21051. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21052. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21053. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21054. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21055. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21056. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21057. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21058. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21059. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21060. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21061. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21062. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21063. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21064. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21065. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  21066. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21067. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21068. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21069. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21070. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21071. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21072. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21073. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21074. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21075. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21076. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21077. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21078. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21079. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21080. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21081. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21082. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21083. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21084. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21085. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21086. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  21087. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21088. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21089. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21090. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21091. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21092. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21093. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21094. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21095. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21096. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21097. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21098. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21099. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21100. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21101. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21102. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21103. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21104. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21105. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21106. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21107. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  21108. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21109. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21110. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21111. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21112. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21113. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21114. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21115. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21116. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21117. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21118. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21119. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21120. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21121. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21122. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21123. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21124. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21125. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21126. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21127. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21128. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  21129. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21130. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21131. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21132. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21133. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21134. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21135. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21136. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21137. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21138. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21139. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21140. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21141. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21142. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21143. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21144. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21145. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21146. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21147. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21148. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21149. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  21150. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21151. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21152. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21153. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21154. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21155. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21156. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21157. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21158. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21159. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21160. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21161. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21162. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21163. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21164. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21165. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21166. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21167. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21168. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21169. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21170. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  21171. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21172. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21173. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21174. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21175. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21176. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21177. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21178. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21179. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21180. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21181. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21182. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21183. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21184. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21185. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21186. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21187. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21188. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21189. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21190. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21191. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  21192. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  21193. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  21194. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21195. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21196. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21197. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21198. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21199. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21200. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21201. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21202. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21203. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21204. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21205. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21206. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21207. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21208. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21209. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21210. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21211. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21212. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21213. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21214. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  21215. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21216. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21217. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21218. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21219. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21220. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21221. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21222. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21223. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21224. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21225. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21226. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21227. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21228. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21229. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21230. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21231. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21232. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21233. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21234. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21235. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  21236. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21237. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21238. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21239. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21240. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21241. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21242. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21243. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21244. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21245. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21246. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21247. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21248. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21249. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21250. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21251. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21252. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21253. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21254. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21255. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21256. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  21257. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21258. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21259. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21260. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21261. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21262. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21263. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21264. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21265. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21266. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21267. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21268. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21269. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21270. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21271. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21272. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21273. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21274. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21275. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21276. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21277. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  21278. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21279. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21280. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21281. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21282. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21283. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21284. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21285. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21286. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21287. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21288. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21289. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21290. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21291. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21292. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21293. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21294. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21295. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21296. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21297. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21298. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  21299. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21300. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21301. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21302. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21303. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21304. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21305. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21306. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21307. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21308. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21309. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21310. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21311. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21312. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21313. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21314. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21315. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21316. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21317. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21318. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21319. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  21320. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21321. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21322. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21323. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21324. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21325. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21326. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21327. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21328. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21329. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21330. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21331. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21332. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21333. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21334. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21335. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21336. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21337. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21338. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21339. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21340. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  21341. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21342. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21343. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21344. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21345. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21346. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21347. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21348. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21349. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21350. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21351. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21352. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21353. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21354. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21355. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21356. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21357. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21358. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21359. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21360. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21361. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  21362. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21363. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21364. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21365. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21366. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21367. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21368. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21369. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21370. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21371. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21372. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21373. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21374. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21375. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21376. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21377. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21378. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21379. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21380. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21381. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21382. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  21383. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21384. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21385. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21386. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21387. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21388. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21389. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21390. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21391. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21392. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21393. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21394. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21395. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21396. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21397. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21398. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21399. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21400. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21401. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21402. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21403. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  21404. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21405. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21406. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21407. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21408. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21409. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21410. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21411. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21412. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21413. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21414. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21415. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21416. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21417. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21418. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21419. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21420. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21421. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21422. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21423. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21424. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  21425. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21426. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21427. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21428. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21429. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21430. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21431. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21432. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21433. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21434. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21435. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21436. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21437. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21438. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21439. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21440. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21441. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21442. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21443. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21444. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21445. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  21446. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21447. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21448. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21449. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21450. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21451. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21452. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21453. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21454. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21455. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21456. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21457. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  21458. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21459. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21460. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21461. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21462. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21463. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21464. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21465. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21466. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21467. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21468. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21469. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  21470. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21471. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21472. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21473. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21474. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21475. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21476. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21477. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21478. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21479. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21480. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21481. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21482. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21483. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21484. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21485. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21486. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21487. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21488. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21489. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21490. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21491. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21492. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21493. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  21494. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21495. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21496. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  21497. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21498. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  21499. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  21500. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  21501. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  21502. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21503. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21504. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21505. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21506. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21507. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21508. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  21509. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21510. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21511. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21512. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21513. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  21514. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21515. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21516. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21517. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  21518. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21519. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21520. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21521. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  21522. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21523. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21524. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21525. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  21526. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21527. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21528. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21529. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21530. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21531. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21532. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21533. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21534. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21535. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  21536. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21537. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21538. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21539. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21540. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21541. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21542. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21543. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21544. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21545. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  21546. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21547. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21548. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21549. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21550. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21551. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21552. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21553. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21554. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21555. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21556. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21557. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  21558. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21559. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21560. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21561. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21562. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21563. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21564. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21565. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21566. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21567. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21568. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21569. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  21570. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21571. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21572. {"STUB_RX", NULL, "STUB_RX Mixer"},
  21573. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21574. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21575. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  21576. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21577. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21578. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  21579. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21580. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21581. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21582. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21583. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21584. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  21585. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21586. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21587. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21588. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21589. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21590. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  21591. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21592. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21593. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21594. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  21595. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21596. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21597. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  21598. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  21599. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21600. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  21601. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  21602. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  21603. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  21604. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21605. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21606. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21607. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21608. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21609. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21610. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21611. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21612. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21613. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21614. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21615. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21616. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21617. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  21618. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21619. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  21620. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21621. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  21622. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  21623. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  21624. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21625. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  21626. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21627. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21628. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  21629. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21630. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21631. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21632. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21633. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21634. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21635. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21636. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21637. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21638. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21639. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  21640. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21641. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21642. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21643. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21644. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21645. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21646. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21647. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21648. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21649. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  21650. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21651. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21652. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21653. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21654. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21655. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21656. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21657. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  21658. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21659. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21660. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21661. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21662. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21663. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21664. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21665. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21666. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21667. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  21668. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21669. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21670. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21671. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21672. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21673. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21674. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21675. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  21676. /* Backend Enablement */
  21677. {"BE_OUT", NULL, "PRI_I2S_RX"},
  21678. {"BE_OUT", NULL, "SEC_I2S_RX"},
  21679. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  21680. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  21681. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  21682. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21683. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  21684. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  21685. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  21686. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  21687. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  21688. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  21689. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  21690. {"BE_OUT", NULL, "HDMI"},
  21691. {"BE_OUT", NULL, "DISPLAY_PORT"},
  21692. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  21693. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  21694. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  21695. {"BE_OUT", NULL, "MI2S_RX"},
  21696. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  21697. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  21698. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  21699. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  21700. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  21701. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  21702. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  21703. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  21704. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  21705. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  21706. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  21707. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21708. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  21709. {"BE_OUT", NULL, "INT_FM_RX"},
  21710. {"BE_OUT", NULL, "PCM_RX"},
  21711. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21712. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21713. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  21714. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  21715. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  21716. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  21717. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21718. {"BE_OUT", NULL, "INT_FM_RX"},
  21719. {"BE_OUT", NULL, "PCM_RX"},
  21720. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21721. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  21722. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  21723. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  21724. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  21725. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  21726. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  21727. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  21728. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  21729. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  21730. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  21731. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  21732. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  21733. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  21734. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  21735. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  21736. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  21737. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  21738. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  21739. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  21740. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  21741. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  21742. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  21743. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  21744. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  21745. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  21746. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  21747. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  21748. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  21749. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  21750. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  21751. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  21752. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  21753. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  21754. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  21755. {"PRI_I2S_TX", NULL, "BE_IN"},
  21756. {"MI2S_TX", NULL, "BE_IN"},
  21757. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  21758. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  21759. {"PRI_MI2S_TX", NULL, "BE_IN"},
  21760. {"TERT_MI2S_TX", NULL, "BE_IN"},
  21761. {"INT0_MI2S_TX", NULL, "BE_IN"},
  21762. {"INT2_MI2S_TX", NULL, "BE_IN"},
  21763. {"INT3_MI2S_TX", NULL, "BE_IN"},
  21764. {"INT4_MI2S_TX", NULL, "BE_IN"},
  21765. {"INT5_MI2S_TX", NULL, "BE_IN"},
  21766. {"SEC_MI2S_TX", NULL, "BE_IN"},
  21767. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  21768. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  21769. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  21770. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  21771. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  21772. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  21773. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  21774. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  21775. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  21776. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  21777. {"USB_AUDIO_TX", NULL, "BE_IN" },
  21778. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  21779. {"INT_FM_TX", NULL, "BE_IN"},
  21780. {"PCM_TX", NULL, "BE_IN"},
  21781. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21782. {"BE_OUT", NULL, "STUB_RX"},
  21783. {"STUB_TX", NULL, "BE_IN"},
  21784. {"STUB_1_TX", NULL, "BE_IN"},
  21785. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21786. {"AUX_PCM_TX", NULL, "BE_IN"},
  21787. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  21788. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  21789. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  21790. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  21791. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  21792. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  21793. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21794. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21795. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21796. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21797. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  21798. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21799. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21800. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  21801. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  21802. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  21803. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  21804. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  21805. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  21806. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  21807. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  21808. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  21809. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  21810. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  21811. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  21812. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  21813. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  21814. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  21815. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  21816. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  21817. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  21818. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  21819. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  21820. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  21821. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  21822. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  21823. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  21824. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  21825. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  21826. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  21827. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  21828. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21829. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21830. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  21831. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21832. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21833. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  21834. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  21835. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  21836. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  21837. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  21838. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  21839. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  21840. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  21841. };
  21842. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  21843. struct snd_pcm_hw_params *params)
  21844. {
  21845. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21846. unsigned int be_id = rtd->dai_link->id;
  21847. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21848. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21849. return -EINVAL;
  21850. }
  21851. mutex_lock(&routing_lock);
  21852. msm_bedais[be_id].sample_rate = params_rate(params);
  21853. msm_bedais[be_id].channel = params_channels(params);
  21854. msm_bedais[be_id].format = params_format(params);
  21855. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  21856. __func__, msm_bedais[be_id].sample_rate,
  21857. msm_bedais[be_id].format, be_id);
  21858. mutex_unlock(&routing_lock);
  21859. return 0;
  21860. }
  21861. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  21862. {
  21863. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21864. unsigned int be_id = rtd->dai_link->id;
  21865. int i, session_type, path_type, topology;
  21866. struct msm_pcm_routing_bdai_data *bedai;
  21867. struct msm_pcm_routing_fdai_data *fdai;
  21868. pr_debug("%s: substream->pcm->id:%s\n",
  21869. __func__, substream->pcm->id);
  21870. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21871. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21872. return -EINVAL;
  21873. }
  21874. bedai = &msm_bedais[be_id];
  21875. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  21876. 0 : 1);
  21877. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21878. path_type = ADM_PATH_PLAYBACK;
  21879. else
  21880. path_type = ADM_PATH_LIVE_REC;
  21881. mutex_lock(&routing_lock);
  21882. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21883. if (!is_mm_lsm_fe_id(i))
  21884. continue;
  21885. fdai = &fe_dai_map[i][session_type];
  21886. if (fdai->strm_id != INVALID_SESSION) {
  21887. int idx;
  21888. int port_id;
  21889. unsigned long copp =
  21890. session_copp_map[i][session_type][be_id];
  21891. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  21892. if (test_bit(idx, &copp))
  21893. break;
  21894. if (idx >= MAX_COPPS_PER_PORT) {
  21895. pr_debug("%s: copp idx is invalid, exiting\n",
  21896. __func__);
  21897. continue;
  21898. }
  21899. fdai->be_srate = bedai->sample_rate;
  21900. port_id = bedai->port_id;
  21901. topology = adm_get_topology_for_port_copp_idx(port_id,
  21902. idx);
  21903. msm_routing_unload_topology(topology);
  21904. adm_close(bedai->port_id, fdai->perf_mode, idx);
  21905. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  21906. __func__, copp, i, session_type, be_id,
  21907. topology);
  21908. clear_bit(idx,
  21909. &session_copp_map[i][session_type][be_id]);
  21910. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  21911. (fdai->passthr_mode == LEGACY_PCM))
  21912. msm_pcm_routing_deinit_pp(bedai->port_id,
  21913. topology);
  21914. }
  21915. }
  21916. bedai->active = 0;
  21917. bedai->sample_rate = 0;
  21918. bedai->channel = 0;
  21919. mutex_unlock(&routing_lock);
  21920. return 0;
  21921. }
  21922. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  21923. {
  21924. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21925. unsigned int be_id = rtd->dai_link->id;
  21926. int i, path_type, topology;
  21927. int session_type = INVALID_SESSION;
  21928. struct msm_pcm_routing_bdai_data *bedai;
  21929. u32 channels, sample_rate;
  21930. uint16_t bits_per_sample = 16, voc_path_type;
  21931. struct msm_pcm_routing_fdai_data *fdai;
  21932. u32 session_id;
  21933. struct media_format_info voc_be_media_format;
  21934. bool is_lsm;
  21935. pr_debug("%s: substream->pcm->id:%s\n",
  21936. __func__, substream->pcm->id);
  21937. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21938. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21939. return -EINVAL;
  21940. }
  21941. bedai = &msm_bedais[be_id];
  21942. mutex_lock(&routing_lock);
  21943. if (bedai->active == 1)
  21944. goto done; /* Ignore prepare if back-end already active */
  21945. /* AFE port is not active at this point. However, still
  21946. * go ahead setting active flag under the notion that
  21947. * QDSP6 is able to handle ADM starting before AFE port
  21948. * is started.
  21949. */
  21950. bedai->active = 1;
  21951. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21952. if (!(is_mm_lsm_fe_id(i) &&
  21953. route_check_fe_id_adm_support(i)))
  21954. continue;
  21955. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  21956. SESSION_TYPE_RX : SESSION_TYPE_TX;
  21957. fdai = &fe_dai_map[i][session_type];
  21958. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  21959. if (fdai->passthr_mode != LEGACY_PCM)
  21960. path_type = ADM_PATH_COMPRESSED_RX;
  21961. else
  21962. path_type = ADM_PATH_PLAYBACK;
  21963. } else {
  21964. if ((fdai->passthr_mode != LEGACY_PCM) &&
  21965. (fdai->passthr_mode != LISTEN))
  21966. path_type = ADM_PATH_COMPRESSED_TX;
  21967. else
  21968. path_type = ADM_PATH_LIVE_REC;
  21969. }
  21970. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  21971. (i <= MSM_FRONTEND_DAI_LSM8);
  21972. if (fdai->strm_id != INVALID_SESSION) {
  21973. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  21974. if (session_type == SESSION_TYPE_TX &&
  21975. fdai->be_srate &&
  21976. (fdai->be_srate != bedai->sample_rate)) {
  21977. pr_debug("%s: flush strm %d diff BE rates\n",
  21978. __func__,
  21979. fdai->strm_id);
  21980. if (fdai->event_info.event_func)
  21981. fdai->event_info.event_func(
  21982. MSM_PCM_RT_EVT_BUF_RECFG,
  21983. fdai->event_info.priv_data);
  21984. fdai->be_srate = 0; /* might not need it */
  21985. }
  21986. bits_per_sample = msm_routing_get_bit_width(
  21987. bedai->format);
  21988. app_type =
  21989. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  21990. if (app_type && is_lsm) {
  21991. app_type_idx =
  21992. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  21993. sample_rate =
  21994. fe_dai_app_type_cfg[i][session_type][be_id]
  21995. .sample_rate;
  21996. bits_per_sample =
  21997. lsm_app_type_cfg[app_type_idx].bit_width;
  21998. } else if (app_type) {
  21999. app_type_idx =
  22000. msm_pcm_routing_get_app_type_idx(app_type);
  22001. sample_rate =
  22002. fe_dai_app_type_cfg[i][session_type]
  22003. [be_id].sample_rate;
  22004. bits_per_sample =
  22005. app_type_cfg[app_type_idx].bit_width;
  22006. } else
  22007. sample_rate = bedai->sample_rate;
  22008. /*
  22009. * check if ADM needs to be configured with different
  22010. * channel mapping than backend
  22011. */
  22012. if (!bedai->adm_override_ch)
  22013. channels = bedai->channel;
  22014. else
  22015. channels = bedai->adm_override_ch;
  22016. acdb_dev_id =
  22017. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  22018. topology = msm_routing_get_adm_topology(i, session_type,
  22019. be_id);
  22020. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  22021. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  22022. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  22023. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  22024. copp_idx = adm_open(bedai->port_id, path_type,
  22025. sample_rate, channels, topology,
  22026. fdai->perf_mode, bits_per_sample,
  22027. app_type, acdb_dev_id);
  22028. if ((copp_idx < 0) ||
  22029. (copp_idx >= MAX_COPPS_PER_PORT)) {
  22030. pr_err("%s: adm open failed\n", __func__);
  22031. mutex_unlock(&routing_lock);
  22032. return -EINVAL;
  22033. }
  22034. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  22035. __func__, i, session_type, be_id);
  22036. set_bit(copp_idx,
  22037. &session_copp_map[i][session_type][be_id]);
  22038. if (msm_is_resample_needed(
  22039. sample_rate,
  22040. bedai->sample_rate))
  22041. adm_copp_mfc_cfg(
  22042. bedai->port_id, copp_idx,
  22043. bedai->sample_rate);
  22044. msm_pcm_routing_build_matrix(i, session_type, path_type,
  22045. fdai->perf_mode, fdai->passthr_mode);
  22046. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22047. (fdai->passthr_mode == LEGACY_PCM))
  22048. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  22049. topology, channels);
  22050. }
  22051. }
  22052. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22053. session_id = msm_pcm_routing_get_voc_sessionid(i);
  22054. if (session_id) {
  22055. pr_debug("%s voice session_id: 0x%x\n", __func__,
  22056. session_id);
  22057. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  22058. voc_path_type = RX_PATH;
  22059. else
  22060. voc_path_type = TX_PATH;
  22061. voc_set_route_flag(session_id, voc_path_type, 1);
  22062. memset(&voc_be_media_format, 0,
  22063. sizeof(struct media_format_info));
  22064. voc_be_media_format.port_id = bedai->port_id;
  22065. voc_be_media_format.num_channels = bedai->channel;
  22066. voc_be_media_format.sample_rate = bedai->sample_rate;
  22067. voc_be_media_format.bits_per_sample = bedai->format;
  22068. /* Defaulting this to 1 for voice call usecases */
  22069. voc_be_media_format.channel_mapping[0] = 1;
  22070. voc_set_device_config(session_id, voc_path_type,
  22071. &voc_be_media_format);
  22072. if (voc_get_route_flag(session_id, RX_PATH) &&
  22073. voc_get_route_flag(session_id, TX_PATH))
  22074. voc_enable_device(session_id);
  22075. }
  22076. }
  22077. /* Check if backend is an external ec ref port and set as needed */
  22078. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  22079. memset(&voc_be_media_format, 0,
  22080. sizeof(struct media_format_info));
  22081. /* Get format info for ec ref port from msm_bedais[] */
  22082. voc_be_media_format.port_id = bedai->port_id;
  22083. voc_be_media_format.num_channels = bedai->channel;
  22084. voc_be_media_format.bits_per_sample = bedai->format;
  22085. voc_be_media_format.sample_rate = bedai->sample_rate;
  22086. /* Defaulting this to 1 for voice call usecases */
  22087. voc_be_media_format.channel_mapping[0] = 1;
  22088. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  22089. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  22090. __func__, voc_be_media_format.port_id,
  22091. voc_be_media_format.num_channels,
  22092. voc_be_media_format.bits_per_sample,
  22093. voc_be_media_format.sample_rate);
  22094. }
  22095. done:
  22096. mutex_unlock(&routing_lock);
  22097. return 0;
  22098. }
  22099. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  22100. int fe_id)
  22101. {
  22102. int index, topo_id, be_idx;
  22103. unsigned long pp_config = 0;
  22104. bool mute_on;
  22105. int latency, session_type;
  22106. bool compr_passthr_mode = true;
  22107. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  22108. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  22109. pr_err("%s: Device pp params on invalid port %d\n",
  22110. __func__, port_id);
  22111. return -EINVAL;
  22112. }
  22113. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22114. if (port_id == msm_bedais[be_idx].port_id)
  22115. break;
  22116. }
  22117. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22118. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22119. return -EINVAL;
  22120. }
  22121. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22122. if (msm_bedais_pp_params[index].port_id == port_id)
  22123. break;
  22124. }
  22125. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22126. pr_err("%s: Invalid backend pp params index %d\n",
  22127. __func__, index);
  22128. return -EINVAL;
  22129. }
  22130. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  22131. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  22132. pr_err("%s: Invalid passthrough topology 0x%x\n",
  22133. __func__, topo_id);
  22134. return -EINVAL;
  22135. }
  22136. session_type =
  22137. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22138. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22139. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  22140. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  22141. compr_passthr_mode = false;
  22142. pp_config = msm_bedais_pp_params[index].pp_params_config;
  22143. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  22144. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22145. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  22146. mute_on = msm_bedais_pp_params[index].mute_on;
  22147. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22148. adm_send_compressed_device_mute(port_id,
  22149. copp_idx,
  22150. mute_on);
  22151. }
  22152. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  22153. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22154. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  22155. &pp_config);
  22156. latency = msm_bedais_pp_params[index].latency;
  22157. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22158. adm_send_compressed_device_latency(port_id,
  22159. copp_idx,
  22160. latency);
  22161. }
  22162. return 0;
  22163. }
  22164. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  22165. {
  22166. uint32_t topology = NULL_COPP_TOPOLOGY;
  22167. void *cal_info = NULL;
  22168. uint32_t size = 0;
  22169. /* Retrieve cal_info size from cal data*/
  22170. size = data_size - sizeof(struct audio_cal_type_basic);
  22171. cal_info = kzalloc(size, GFP_KERNEL);
  22172. if (!cal_info)
  22173. goto done;
  22174. memcpy(cal_info,
  22175. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  22176. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  22177. kfree(cal_info);
  22178. cal_info = NULL;
  22179. done:
  22180. pr_debug("%s: Using topology %d\n", __func__, topology);
  22181. return topology;
  22182. }
  22183. static void msm_routing_load_topology(size_t data_size, void *data)
  22184. {
  22185. uint32_t topology_id;
  22186. int ret = -EINVAL;
  22187. topology_id = msm_routing_get_topology(data_size, data);
  22188. if (topology_id != NULL_COPP_TOPOLOGY)
  22189. ret = q6core_load_unload_topo_modules(topology_id,
  22190. CORE_LOAD_TOPOLOGY);
  22191. if (ret < 0)
  22192. pr_debug("%s %d load topology failed\n",
  22193. __func__, topology_id);
  22194. }
  22195. static void msm_routing_unload_topology(uint32_t topology_id)
  22196. {
  22197. int ret = -EINVAL;
  22198. if (topology_id != NULL_COPP_TOPOLOGY)
  22199. ret = q6core_load_unload_topo_modules(topology_id,
  22200. CORE_UNLOAD_TOPOLOGY);
  22201. if (ret < 0)
  22202. pr_debug("%s %d unload topology failed\n",
  22203. __func__, topology_id);
  22204. }
  22205. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22206. struct snd_ctl_elem_value *ucontrol)
  22207. {
  22208. int pp_id = ucontrol->value.integer.value[0];
  22209. int port_id = 0;
  22210. int index, be_idx, i, topo_id, idx;
  22211. bool mute;
  22212. int latency, session_type;
  22213. bool compr_passthr_mode = true;
  22214. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  22215. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22216. port_id = msm_bedais[be_idx].port_id;
  22217. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  22218. break;
  22219. }
  22220. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22221. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22222. return -EINVAL;
  22223. }
  22224. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22225. if (msm_bedais_pp_params[index].port_id == port_id)
  22226. break;
  22227. }
  22228. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22229. pr_err("%s: Invalid pp params backend index %d\n",
  22230. __func__, index);
  22231. return -EINVAL;
  22232. }
  22233. session_type =
  22234. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22235. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22236. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22237. MSM_FRONTEND_DAI_MM_SIZE) {
  22238. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  22239. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  22240. compr_passthr_mode = false;
  22241. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22242. unsigned long copp =
  22243. session_copp_map[i]
  22244. [SESSION_TYPE_RX][be_idx];
  22245. if (!test_bit(idx, &copp))
  22246. continue;
  22247. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  22248. idx);
  22249. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  22250. continue;
  22251. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  22252. __func__, port_id, copp, msm_bedais[be_idx].active,
  22253. fe_dai_map[i][session_type].passthr_mode);
  22254. switch (pp_id) {
  22255. case ADM_PP_PARAM_MUTE_ID:
  22256. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22257. mute = ucontrol->value.integer.value[1] ? true : false;
  22258. msm_bedais_pp_params[index].mute_on = mute;
  22259. set_bit(ADM_PP_PARAM_MUTE_BIT,
  22260. &msm_bedais_pp_params[index].pp_params_config);
  22261. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22262. adm_send_compressed_device_mute(port_id,
  22263. idx, mute);
  22264. break;
  22265. case ADM_PP_PARAM_LATENCY_ID:
  22266. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22267. msm_bedais_pp_params[index].latency =
  22268. ucontrol->value.integer.value[1];
  22269. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  22270. &msm_bedais_pp_params[index].pp_params_config);
  22271. latency = msm_bedais_pp_params[index].latency =
  22272. ucontrol->value.integer.value[1];
  22273. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22274. adm_send_compressed_device_latency(port_id,
  22275. idx, latency);
  22276. break;
  22277. default:
  22278. pr_info("%s, device pp param %d not supported\n",
  22279. __func__, pp_id);
  22280. break;
  22281. }
  22282. }
  22283. }
  22284. return 0;
  22285. }
  22286. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22287. struct snd_ctl_elem_value *ucontrol)
  22288. {
  22289. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  22290. return 0;
  22291. }
  22292. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  22293. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  22294. 0, 3, msm_routing_get_device_pp_params_mixer,
  22295. msm_routing_put_device_pp_params_mixer),
  22296. };
  22297. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  22298. struct snd_ctl_elem_value *ucontrol)
  22299. {
  22300. ucontrol->value.integer.value[0] =
  22301. core_get_license_status(ASM_MEDIA_FMT_APTX);
  22302. pr_debug("%s: status %ld\n", __func__,
  22303. ucontrol->value.integer.value[0]);
  22304. return 0;
  22305. }
  22306. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  22307. struct snd_ctl_elem_value *ucontrol)
  22308. {
  22309. int32_t status = 0;
  22310. status = core_set_license(ucontrol->value.integer.value[0],
  22311. APTX_CLASSIC_DEC_LICENSE_ID);
  22312. pr_debug("%s: status %d\n", __func__, status);
  22313. return status;
  22314. }
  22315. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  22316. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  22317. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  22318. msm_aptx_dec_license_control_put),
  22319. };
  22320. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  22321. struct snd_ctl_elem_info *uinfo)
  22322. {
  22323. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22324. uinfo->count = sizeof(be_dai_name_table);
  22325. return 0;
  22326. }
  22327. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  22328. unsigned int __user *bytes,
  22329. unsigned int size)
  22330. {
  22331. int i;
  22332. int ret = 0;
  22333. if (size < sizeof(be_dai_name_table)) {
  22334. pr_err("%s: invalid size %d requested, returning\n",
  22335. __func__, size);
  22336. ret = -EINVAL;
  22337. goto done;
  22338. }
  22339. /*
  22340. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  22341. * needed when adding new backends
  22342. */
  22343. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22344. be_dai_name_table[i].be_id = i;
  22345. strlcpy(be_dai_name_table[i].be_name,
  22346. msm_bedais[i].name,
  22347. LPASS_BE_NAME_MAX_LENGTH);
  22348. }
  22349. ret = copy_to_user(bytes, &be_dai_name_table,
  22350. sizeof(be_dai_name_table));
  22351. if (ret) {
  22352. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  22353. ret = -EFAULT;
  22354. }
  22355. done:
  22356. return ret;
  22357. }
  22358. static const struct snd_kcontrol_new
  22359. msm_routing_be_dai_name_table_mixer_controls[] = {
  22360. {
  22361. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  22362. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  22363. .info = msm_routing_be_dai_name_table_info,
  22364. .name = "Backend DAI Name Table",
  22365. .tlv.c = snd_soc_bytes_tlv_callback,
  22366. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  22367. .max = sizeof(be_dai_name_table),
  22368. .get = msm_routing_be_dai_name_table_tlv_get,
  22369. }
  22370. },
  22371. };
  22372. static int msm_routing_stereo_channel_reverse_control_get(
  22373. struct snd_kcontrol *kcontrol,
  22374. struct snd_ctl_elem_value *ucontrol)
  22375. {
  22376. ucontrol->value.integer.value[0] = swap_ch;
  22377. pr_debug("%s: Swap channel value: %ld\n", __func__,
  22378. ucontrol->value.integer.value[0]);
  22379. return 0;
  22380. }
  22381. static int msm_routing_stereo_channel_reverse_control_put(
  22382. struct snd_kcontrol *kcontrol,
  22383. struct snd_ctl_elem_value *ucontrol)
  22384. {
  22385. int i, idx, be_index, port_id;
  22386. int ret = 0;
  22387. unsigned long copp;
  22388. pr_debug("%s Swap channel value:%ld\n", __func__,
  22389. ucontrol->value.integer.value[0]);
  22390. swap_ch = ucontrol->value.integer.value[0];
  22391. mutex_lock(&routing_lock);
  22392. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  22393. port_id = msm_bedais[be_index].port_id;
  22394. if (!msm_bedais[be_index].active)
  22395. continue;
  22396. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  22397. MSM_FRONTEND_DAI_MM_SIZE) {
  22398. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  22399. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22400. if (!test_bit(idx, &copp))
  22401. continue;
  22402. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  22403. __func__, port_id, idx);
  22404. ret = adm_swap_speaker_channels(
  22405. port_id, idx,
  22406. msm_bedais[be_index].sample_rate,
  22407. swap_ch);
  22408. if (ret) {
  22409. pr_err("%s:Swap_channel failed, err=%d\n",
  22410. __func__, ret);
  22411. goto done;
  22412. }
  22413. }
  22414. }
  22415. }
  22416. done:
  22417. mutex_unlock(&routing_lock);
  22418. return ret;
  22419. }
  22420. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  22421. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  22422. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  22423. msm_routing_stereo_channel_reverse_control_put),
  22424. };
  22425. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  22426. struct snd_ctl_elem_info *uinfo)
  22427. {
  22428. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  22429. uinfo->count = 1;
  22430. return 0;
  22431. }
  22432. static int msm_routing_instance_id_support_put(
  22433. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22434. {
  22435. bool supported = ucontrol->value.integer.value[0] ? true : false;
  22436. q6common_update_instance_id_support(supported);
  22437. return 0;
  22438. }
  22439. static int msm_routing_instance_id_support_get(
  22440. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22441. {
  22442. bool supported = false;
  22443. supported = q6common_is_instance_id_supported();
  22444. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  22445. return 0;
  22446. }
  22447. static const struct snd_kcontrol_new
  22448. msm_routing_feature_support_mixer_controls[] = {
  22449. {
  22450. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  22451. SNDRV_CTL_ELEM_ACCESS_WRITE,
  22452. .info = msm_routing_instance_id_support_info,
  22453. .name = "Instance ID Support",
  22454. .put = msm_routing_instance_id_support_put,
  22455. .get = msm_routing_instance_id_support_get,
  22456. },
  22457. };
  22458. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  22459. .hw_params = msm_pcm_routing_hw_params,
  22460. .close = msm_pcm_routing_close,
  22461. .prepare = msm_pcm_routing_prepare,
  22462. };
  22463. /* Not used but frame seems to require it */
  22464. static int msm_routing_probe(struct snd_soc_platform *platform)
  22465. {
  22466. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  22467. ARRAY_SIZE(msm_qdsp6_widgets));
  22468. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  22469. ARRAY_SIZE(intercon));
  22470. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  22471. snd_soc_add_platform_controls(platform, lsm_controls,
  22472. ARRAY_SIZE(lsm_controls));
  22473. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  22474. ARRAY_SIZE(aanc_slim_0_rx_mux));
  22475. snd_soc_add_platform_controls(platform, aanc_noise_level,
  22476. ARRAY_SIZE(aanc_noise_level));
  22477. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  22478. ARRAY_SIZE(msm_voc_session_controls));
  22479. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  22480. ARRAY_SIZE(app_type_cfg_controls));
  22481. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  22482. ARRAY_SIZE(lsm_app_type_cfg_controls));
  22483. snd_soc_add_platform_controls(platform, module_cfg_controls,
  22484. ARRAY_SIZE(module_cfg_controls));
  22485. snd_soc_add_platform_controls(platform,
  22486. stereo_to_custom_stereo_controls,
  22487. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  22488. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  22489. ARRAY_SIZE(ec_ref_param_controls));
  22490. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  22491. ARRAY_SIZE(channel_mixer_controls));
  22492. msm_qti_pp_add_controls(platform);
  22493. msm_dts_srs_tm_add_controls(platform);
  22494. msm_dolby_dap_add_controls(platform);
  22495. snd_soc_add_platform_controls(platform,
  22496. use_ds1_or_ds2_controls,
  22497. ARRAY_SIZE(use_ds1_or_ds2_controls));
  22498. snd_soc_add_platform_controls(platform,
  22499. device_pp_params_mixer_controls,
  22500. ARRAY_SIZE(device_pp_params_mixer_controls));
  22501. snd_soc_add_platform_controls(platform,
  22502. msm_routing_be_dai_name_table_mixer_controls,
  22503. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  22504. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  22505. ARRAY_SIZE(msm_source_tracking_controls));
  22506. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  22507. ARRAY_SIZE(adm_channel_config_controls));
  22508. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  22509. ARRAY_SIZE(aptx_dec_license_controls));
  22510. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  22511. ARRAY_SIZE(stereo_channel_reverse_control));
  22512. snd_soc_add_platform_controls(
  22513. platform, msm_routing_feature_support_mixer_controls,
  22514. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  22515. return 0;
  22516. }
  22517. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  22518. {
  22519. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  22520. }
  22521. void msm_routing_pcm_free(struct snd_pcm *pcm)
  22522. {
  22523. msm_pcm_routing_hwdep_free(pcm);
  22524. }
  22525. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  22526. .ops = &msm_routing_pcm_ops,
  22527. .probe = msm_routing_probe,
  22528. .pcm_new = msm_routing_pcm_new,
  22529. .pcm_free = msm_routing_pcm_free,
  22530. };
  22531. static int msm_routing_pcm_probe(struct platform_device *pdev)
  22532. {
  22533. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  22534. return snd_soc_register_platform(&pdev->dev,
  22535. &msm_soc_routing_platform);
  22536. }
  22537. static int msm_routing_pcm_remove(struct platform_device *pdev)
  22538. {
  22539. snd_soc_unregister_platform(&pdev->dev);
  22540. return 0;
  22541. }
  22542. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  22543. {.compatible = "qcom,msm-pcm-routing"},
  22544. {}
  22545. };
  22546. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  22547. static struct platform_driver msm_routing_pcm_driver = {
  22548. .driver = {
  22549. .name = "msm-pcm-routing",
  22550. .owner = THIS_MODULE,
  22551. .of_match_table = msm_pcm_routing_dt_match,
  22552. },
  22553. .probe = msm_routing_pcm_probe,
  22554. .remove = msm_routing_pcm_remove,
  22555. };
  22556. int msm_routing_check_backend_enabled(int fedai_id)
  22557. {
  22558. int i;
  22559. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  22560. /* bad ID assigned in machine driver */
  22561. pr_err("%s: bad MM ID\n", __func__);
  22562. return 0;
  22563. }
  22564. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22565. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  22566. return msm_bedais[i].active;
  22567. }
  22568. return 0;
  22569. }
  22570. static int get_cal_type_index(int32_t cal_type)
  22571. {
  22572. int ret = -EINVAL;
  22573. switch (cal_type) {
  22574. case ADM_TOPOLOGY_CAL_TYPE:
  22575. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  22576. break;
  22577. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  22578. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  22579. break;
  22580. default:
  22581. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  22582. }
  22583. return ret;
  22584. }
  22585. static int msm_routing_set_cal(int32_t cal_type,
  22586. size_t data_size, void *data)
  22587. {
  22588. int ret = 0;
  22589. int cal_index;
  22590. pr_debug("%s\n", __func__);
  22591. cal_index = get_cal_type_index(cal_type);
  22592. if (cal_index < 0) {
  22593. pr_err("%s: Could not get cal index %d\n",
  22594. __func__, cal_index);
  22595. ret = -EINVAL;
  22596. goto done;
  22597. }
  22598. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  22599. if (ret < 0) {
  22600. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  22601. __func__, ret, cal_type);
  22602. ret = -EINVAL;
  22603. goto done;
  22604. }
  22605. /* Pre-load if it is ADM topology */
  22606. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  22607. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  22608. msm_routing_load_topology(data_size, data);
  22609. }
  22610. done:
  22611. return ret;
  22612. }
  22613. static void msm_routing_delete_cal_data(void)
  22614. {
  22615. pr_debug("%s\n", __func__);
  22616. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  22617. }
  22618. static int msm_routing_init_cal_data(void)
  22619. {
  22620. int ret = 0;
  22621. struct cal_type_info cal_type_info[] = {
  22622. {{ADM_TOPOLOGY_CAL_TYPE,
  22623. {NULL, NULL, NULL,
  22624. msm_routing_set_cal, NULL, NULL} },
  22625. {NULL, NULL, cal_utils_match_buf_num} },
  22626. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  22627. {NULL, NULL, NULL,
  22628. msm_routing_set_cal, NULL, NULL} },
  22629. {NULL, NULL, cal_utils_match_buf_num} },
  22630. };
  22631. pr_debug("%s\n", __func__);
  22632. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  22633. &cal_type_info[0]);
  22634. if (ret < 0) {
  22635. pr_err("%s: could not create cal type!\n",
  22636. __func__);
  22637. ret = -EINVAL;
  22638. goto err;
  22639. }
  22640. return ret;
  22641. err:
  22642. msm_routing_delete_cal_data();
  22643. return ret;
  22644. }
  22645. int __init msm_soc_routing_platform_init(void)
  22646. {
  22647. mutex_init(&routing_lock);
  22648. if (msm_routing_init_cal_data())
  22649. pr_err("%s: could not init cal data!\n", __func__);
  22650. afe_set_routing_callback(
  22651. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  22652. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22653. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  22654. return platform_driver_register(&msm_routing_pcm_driver);
  22655. }
  22656. void msm_soc_routing_platform_exit(void)
  22657. {
  22658. msm_routing_delete_cal_data();
  22659. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22660. mutex_destroy(&routing_lock);
  22661. platform_driver_unregister(&msm_routing_pcm_driver);
  22662. }
  22663. MODULE_DESCRIPTION("MSM routing platform driver");
  22664. MODULE_LICENSE("GPL v2");